/* ==========================================================================
   Game of Fros — storefront design system (PRD §3)
   Black & white, high contrast, product imagery does the talking.
   ========================================================================== */

:root {
  /* Palette — PRD §3.2 */
  --white:      #FFFFFF;
  --black:      #000000;
  --gray-hover: #333333;
  --border:     #E5E5E5;
  --muted:      #666666;
  --sale:       #E63946;
  --success:    #2D6A4F;
  --error:      #DC3545;
  --bg-soft:    #F7F7F7;

  /* Type — PRD §3.3 */
  --font-head: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1400px;   /* PRD §3.5 large desktop */
  --header-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--black); color: var(--white);
  border: 2px solid var(--black);
  transition: background .2s var(--ease), color .2s var(--ease), transform .1s var(--ease);
  text-align: center;
}
.btn:hover { background: var(--gray-hover); border-color: var(--gray-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--outline { background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn--wa { background: #25D366; border-color: #25D366; color: #fff; }
.btn--wa:hover { background: #1da851; border-color: #1da851; }
.btn--tg { background: #229ED9; border-color: #229ED9; color: #fff; }
.btn--tg:hover { background: #1b81b0; border-color: #1b81b0; }

/* ---------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease);
}
.header.is-stuck { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.header__logo img { height: 30px; width: auto; }
.header__nav { display: flex; gap: 34px; }
.nav__link {
  position: relative;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 26px 0; display: inline-flex; align-items: center; gap: 5px;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 22px;
  width: 0; height: 2px; background: var(--black);
  transition: width .25s var(--ease);
}
.nav__link:hover::after, .nav__item.is-active > .nav__link::after { width: 100%; }
.nav__item { position: relative; }
.nav__caret { transition: transform .2s var(--ease); }
.nav__item:hover .nav__caret { transform: rotate(180deg); }

/* Store dropdown — 10 subcategories (PRD §2.1) */
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  min-width: 260px; padding: 10px 0;
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 10px 22px; font-size: 14px;
  transition: background .15s var(--ease), padding-left .15s var(--ease);
}
.dropdown a:hover { background: var(--bg-soft); padding-left: 28px; }
.dropdown__all { border-bottom: 1px solid var(--border); margin-bottom: 6px; padding-bottom: 6px; }
.dropdown__all a { font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .1em; }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  position: relative; transition: opacity .15s var(--ease);
}
.icon-btn:hover { opacity: .6; }
.cart-count {
  position: absolute; top: 5px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--black); color: var(--white);
  border-radius: 9px; font-size: 10px; font-weight: 700;
}
.cart-count[hidden] { display: none; }
.hamburger { display: none; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(255,255,255,.98);
  display: grid; place-items: start center; padding-top: 18vh;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay form { width: min(680px, 90vw); display: flex; gap: 12px; border-bottom: 2px solid var(--black); }
.search-overlay input {
  flex: 1; border: none; background: none; padding: 14px 0;
  font-family: var(--font-head); font-size: 26px; font-weight: 700;
}
.search-overlay input:focus { outline: none; }
.search-overlay__close { position: absolute; top: 26px; right: 30px; }

/* Mobile drawer */
.mobile-nav {
  /* Must sit ABOVE the .drawer-backdrop (z-index 220), or the backdrop covers
     the drawer and swallows every tap. Below the cart drawer (230); the two are
     never open at once. */
  position: fixed; inset: 0 22% 0 0; z-index: 225;
  background: var(--white); padding: 20px 24px;
  transform: translateX(-100%); transition: transform .3s var(--ease);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { transform: translateX(0); }

/* Top-level plain links (Home, About, Contact, etc.) */
.mobile-nav__link {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 13px; letter-spacing: .1em;
}

/* Collapsible parent (Store) */
.mobile-nav__item { border-bottom: 1px solid var(--border); }
.mobile-nav__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; text-align: left;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 13px; letter-spacing: .1em; color: var(--black);
}
.mobile-nav__chevron { transition: transform .3s var(--ease); flex-shrink: 0; }
.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__chevron { transform: rotate(180deg); }

/* The submenu animates open via max-height. Starts collapsed. */
.mobile-nav__sub { max-height: 0; overflow: hidden; transition: max-height .32s var(--ease); }
.mobile-nav__sub-inner { padding: 4px 0 12px; }
.mobile-nav__sub a {
  display: block; padding: 10px 0 10px 14px; font-size: 13px; font-weight: 500;
  color: var(--muted); border-bottom: none;
}
.mobile-nav__sub a:hover { color: var(--black); }
.mobile-nav__sub-all {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 11px; letter-spacing: .08em; color: var(--black) !important;
}
.mobile-nav__divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: clamp(440px, 72vh, 720px); overflow: hidden; background: var(--black); }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .9s var(--ease);
  display: grid; place-items: center;
  /* Inactive slides stay in the DOM stacked on top of the active one. An
     opacity:0 element still receives clicks, so without this the topmost
     (last) slide would intercept every CTA click. Disable their pointers and
     lift the active slide above them. */
  z-index: 1; pointer-events: none;
}
.hero__slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
/* The arrows/dots must always be clickable, above every slide. */
.hero__arrow, .hero__dots { z-index: 3; }
/* Absolute, not a grid item — otherwise the image takes its own row and pushes
   the overlay content out of the slide. */
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.62)); }
.hero__content {
  position: relative; text-align: center; color: var(--white);
  max-width: 760px; padding: 0 24px;
}
.hero__content h1 { font-size: clamp(32px, 5.5vw, 62px); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 14px; }
.hero__content p { font-size: clamp(15px, 1.6vw, 18px); opacity: .92; margin-bottom: 28px; }
.hero__dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero__dot { width: 34px; height: 3px; background: rgba(255,255,255,.4); transition: background .2s; }
.hero__dot.is-active { background: var(--white); }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--white); background: rgba(0,0,0,.25); transition: background .2s;
}
.hero__arrow:hover { background: rgba(0,0,0,.6); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

/* -------------------------------------------------------------- sections */
.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; margin-bottom: 44px; }
.section__head h2 { text-transform: uppercase; }
.section__head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.section__head--row { display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
.link-more { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid var(--black); padding-bottom: 3px; }

/* ------------------------------------------------------- category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--black); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); opacity: .85; }
.cat-card:hover img { transform: scale(1.07); opacity: .6; }
.cat-card__label {
  position: absolute; inset: auto 0 0 0; padding: 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  color: var(--white); font-family: var(--font-head); font-weight: 700;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; text-align: center;
}

/* ---------------------------------------------------- category carousel */
/* Shows N cards per view (5 desktop → 2 mobile) and auto-advances one card at
   a time. --cat-per-view drives how many are visible; the JS reads it too. */
.cat-carousel { position: relative; --cat-per-view: 5; --cat-gap: 16px; }
.cat-carousel__viewport { overflow: hidden; }
.cat-carousel__track {
  display: flex; gap: var(--cat-gap);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.cat-carousel .cat-card {
  /* Each card takes an equal slice of the viewport, minus the shared gaps. */
  flex: 0 0 calc((100% - (var(--cat-per-view) - 1) * var(--cat-gap)) / var(--cat-per-view));
}
.cat-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--white); color: var(--black); border: 1px solid var(--border);
  border-radius: 50%; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cat-carousel__arrow:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.cat-carousel__arrow--prev { left: -14px; }
.cat-carousel__arrow--next { right: -14px; }
@media (max-width: 1440px) {
  .cat-carousel__arrow--prev { left: 6px; }
  .cat-carousel__arrow--next { right: 6px; }
}

/* --------------------------------------------------------- product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media {
  position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft);
  margin-bottom: 14px;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__name { font-size: 14.5px; font-weight: 500; margin: 0 0 6px; }
.product-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-card__cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.product-card__price { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.product-card__price del { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-right: 7px; }
.product-card__price ins { color: var(--sale); text-decoration: none; }
.product-card__btn { margin-top: auto; }
.product-card__actions {
  position: absolute; inset: auto 0 0 0; padding: 10px;
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.product-card__media:hover .product-card__actions { transform: translateY(0); }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 10px; font-family: var(--font-head);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.badge--sale { background: var(--sale); color: var(--white); }
.badge--new  { background: var(--black); color: var(--white); }
.badge--out  { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.badge--oos-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: rgba(255,255,255,.72);
  font-family: var(--font-head); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; font-size: 13px;
}

/* -------------------------------------------------------- store layout */
.store { display: grid; grid-template-columns: 250px 1fr; gap: 46px; align-items: start; padding-bottom: 72px; }
.filters {
  position: sticky; top: calc(var(--header-h) + 24px);
  /* Scroll the sidebar on its own when the filters are taller than the
     viewport, instead of only when the whole page scrolls to the bottom. */
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 6px; margin-right: -6px;   /* keep the scrollbar off the content */
}
.filters__group { border-bottom: 1px solid var(--border); padding: 18px 0; }
.filters__group:first-child { padding-top: 0; }
/* Accordion header — the whole row is the toggle */
.filters__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 0; cursor: pointer; text-align: left; color: inherit;
}
.filters__group h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  margin: 0; font-weight: 800;
}
.filters__chevron { flex-shrink: 0; color: var(--muted); transition: transform .25s var(--ease); }
.filters__group.is-collapsed .filters__chevron { transform: rotate(-90deg); }
/* Collapsible body. JS sets an explicit max-height (the group's natural height)
   so the transition animates cleanly to/from 0 with no clipping. Without JS the
   body just shows at natural height — no max-height set, nothing hidden. */
.filters__body { overflow: hidden; transition: max-height .3s var(--ease); margin-top: 12px; }
.filters__group.is-collapsed .filters__body { margin-top: 0; }
.filters label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.filters label:hover { color: var(--muted); }
.filters input[type=checkbox] { accent-color: var(--black); width: 15px; height: 15px; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price input { width: 100%; padding: 9px; border: 1px solid var(--border); font-size: 13px; }
.store__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--border);
}
.store__count { color: var(--muted); font-size: 13.5px; }
.select {
  padding: 9px 32px 9px 12px; border: 1px solid var(--border); background: var(--white);
  font-size: 13.5px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filters-toggle { display: none; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 52px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
  transition: all .15s var(--ease);
}
.pagination a:hover { border-color: var(--black); }
.pagination .is-current { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination .is-disabled { opacity: .35; pointer-events: none; }

/* ------------------------------------------------------ product detail */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }
.gallery__main { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); margin-bottom: 12px; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.gallery__thumb { aspect-ratio: 1; overflow: hidden; border: 2px solid transparent; background: var(--bg-soft); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--black); }

.pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp__cat { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pdp__title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.pdp__price { font-size: 27px; font-weight: 800; margin-bottom: 4px; font-family: var(--font-head); }
.pdp__price del { color: var(--muted); font-weight: 400; font-size: 19px; margin-right: 10px; }
.pdp__price ins { color: var(--sale); text-decoration: none; }
.pdp__stock { font-size: 13px; margin-bottom: 22px; font-weight: 600; }
.pdp__stock--in { color: var(--success); }
.pdp__stock--out { color: var(--error); }
.pdp__stock--low { color: var(--sale); }

.variants { margin-bottom: 22px; }
.variants__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; margin-bottom: 10px; }
.variants__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  padding: 10px 16px; border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 600;
  transition: all .15s var(--ease); background: var(--white);
}
.variant-opt:hover:not(:disabled) { border-color: var(--black); }
.variant-opt.is-selected { background: var(--black); color: var(--white); border-color: var(--black); }
.variant-opt:disabled {
  opacity: .4; cursor: not-allowed; text-decoration: line-through;
}

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--black); }
.qty button { width: 42px; height: 46px; font-size: 17px; font-weight: 700; transition: background .15s; }
.qty button:hover { background: var(--bg-soft); }
.qty input {
  width: 52px; height: 46px; text-align: center; border: none;
  border-left: 1.5px solid var(--black); border-right: 1.5px solid var(--black);
  font-weight: 700; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__buy { display: flex; gap: 12px; margin-bottom: 16px; }
.pdp__buy .btn { flex: 1; }

.bulk-note {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: var(--bg-soft); font-size: 13.5px;
  border-left: 3px solid #25D366; margin-bottom: 26px;
}
.bulk-note a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 17px 0; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.accordion__icon { transition: transform .25s var(--ease); flex-shrink: 0; }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.accordion__body-inner { padding: 0 0 20px; color: #333; font-size: 14.5px; }
.accordion__body-inner ul, .accordion__body-inner ol { padding-left: 20px; }

/* breadcrumb */
.breadcrumb { font-size: 12.5px; color: var(--muted); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.breadcrumb a:hover { color: var(--black); text-decoration: underline; }
.breadcrumb span { color: var(--border); }

/* ------------------------------------------------------------ cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 220; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 230;
  width: min(430px, 100vw); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer__head h3 { margin: 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-drawer__foot { border-top: 1px solid var(--border); padding: 20px 24px; }

.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-line:last-child { border-bottom: none; }
.cart-line__img { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.cart-line__variant { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.cart-line__price { font-weight: 700; font-size: 14px; }
.cart-line__remove { font-size: 12px; color: var(--muted); text-decoration: underline; margin-top: 6px; }
.cart-line__remove:hover { color: var(--error); }
.qty--sm { border-width: 1px; }
.qty--sm button { width: 30px; height: 32px; font-size: 14px; }
.qty--sm input { width: 38px; height: 32px; border-width: 1px; font-size: 13px; }

.totals { font-size: 14px; }
.totals__row { display: flex; justify-content: space-between; padding: 7px 0; }
.totals__row--total {
  border-top: 2px solid var(--black); margin-top: 10px; padding-top: 14px;
  font-family: var(--font-head); font-weight: 800; font-size: 18px;
}
.totals__muted { color: var(--muted); }
.totals__discount { color: var(--success); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--black); margin-bottom: 8px; }

/* ------------------------------------------------------------- cart page */
.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 14px; border-bottom: 2px solid var(--black); font-weight: 800;
}
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table__product { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; }
.cart-table__img { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.cart-table__img img { width: 100%; height: 100%; object-fit: cover; }
.summary { border: 1px solid var(--border); padding: 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.summary h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.coupon-form { display: flex; gap: 8px; margin: 18px 0; }
.coupon-form input { flex: 1; padding: 11px 12px; border: 1px solid var(--border); font-size: 13.5px; text-transform: uppercase; }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: #E8F5EC; border-left: 3px solid var(--success);
  font-size: 13px; margin: 18px 0;
}

/* ---------------------------------------------------------------- forms */
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 800; margin-bottom: 7px;
}
.form-row .req { color: var(--sale); }
.input, .form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 14.5px; transition: border-color .15s var(--ease);
}
.input:focus, .form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--black);
}
.form-row input[aria-invalid="true"] { border-color: var(--error); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 12.5px; color: var(--error); margin-top: 6px; font-weight: 600; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--black); margin-top: 2px; flex-shrink: 0; }

.alert { padding: 13px 16px; font-size: 14px; margin-bottom: 20px; border-left: 3px solid; }
.alert--success { background: #E8F5EC; border-color: var(--success); color: #17492F; }
.alert--error   { background: #FDECEE; border-color: var(--error);   color: #8B1D28; }
.alert--info    { background: var(--bg-soft); border-color: var(--black); }
.alert--warn    { background: #FFF6E5; border-color: #C97A00; color: #7A4A00; }

.auth-wrap { max-width: 430px; margin: 0 auto; padding: 60px 0 90px; }
.auth-wrap h1 { text-align: center; text-transform: uppercase; font-size: 26px; }
.auth-wrap__sub { text-align: center; color: var(--muted); margin-bottom: 32px; font-size: 14px; }
.auth-alt { text-align: center; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.auth-alt a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------- checkout */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.checkout__step { margin-bottom: 38px; }
.checkout__step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.checkout__step-num {
  width: 27px; height: 27px; display: grid; place-items: center;
  background: var(--black); color: var(--white); font-size: 12.5px; font-weight: 700;
  border-radius: 50%; flex-shrink: 0;
}
.checkout__step-head h3 { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.ship-opt {
  display: flex; align-items: center; gap: 12px; padding: 15px;
  border: 1.5px solid var(--border); margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s var(--ease);
}
.ship-opt:hover { border-color: #999; }
.ship-opt.is-selected { border-color: var(--black); }
.ship-opt input { accent-color: var(--black); width: 16px; height: 16px; }
.ship-opt__name { font-weight: 600; font-size: 14px; }
.ship-opt__meta { font-size: 12.5px; color: var(--muted); }
.ship-opt__cost { margin-left: auto; font-weight: 700; }
.ship-opt__cost--free { color: var(--success); }

.mini-line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.mini-line__img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.mini-line__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-line__qty {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  min-width: 19px; height: 19px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--black); color: var(--white); font-size: 10.5px; font-weight: 700;
}

/* ------------------------------------------------------- confirmation */
.confirm { max-width: 720px; margin: 0 auto; text-align: center; padding: 60px 0 90px; }
.confirm__tick {
  width: 68px; height: 68px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--success); color: var(--white);
}
.confirm__num {
  display: inline-block; padding: 9px 20px; background: var(--bg-soft);
  font-family: var(--font-head); font-weight: 800; letter-spacing: .1em; margin-bottom: 30px;
}
.confirm__box { border: 1px solid var(--border); padding: 26px; text-align: left; margin-bottom: 22px; }

/* -------------------------------------------------------- brand banner */
.brand-banner { position: relative; min-height: 460px; display: grid; place-items: center; overflow: hidden; background: var(--black); }
.brand-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.brand-banner__content { position: relative; text-align: center; color: var(--white); max-width: 700px; padding: 60px 24px; }
.brand-banner__content h2 { text-transform: uppercase; }

/* ------------------------------------------------------------ CTA rows */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; }
.cta-panel { padding: 62px 48px; text-align: center; }
.cta-panel--dark { background: var(--black); color: var(--white); }
.cta-panel--light { background: var(--bg-soft); }
.cta-panel h2 { font-size: 26px; text-transform: uppercase; margin-bottom: 12px; }
.cta-panel p { margin-bottom: 26px; opacity: .85; max-width: 420px; margin-inline: auto; }
.cta-panel__icon { margin-bottom: 18px; }

/* ---------------------------------------------------------- newsletter */
.newsletter { background: var(--black); color: var(--white); padding: 60px 0; text-align: center; }
.newsletter h2 { text-transform: uppercase; margin-bottom: 8px; }
.newsletter p { color: #aaa; margin-bottom: 26px; }
.newsletter__form { display: flex; gap: 10px; max-width: 470px; margin: 0 auto; }
.newsletter__form input {
  flex: 1; padding: 14px 16px; border: 1.5px solid #444;
  background: transparent; color: var(--white); font-size: 14px;
}
.newsletter__form input::placeholder { color: #777; }
.newsletter__form input:focus { outline: none; border-color: var(--white); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--black); color: #999; padding: 66px 0 0; font-size: 13.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer h4 {
  color: var(--white); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer__logo img { height: 26px; margin-bottom: 18px; filter: invert(1) brightness(2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--white); }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid #333; transition: all .2s var(--ease);
}
.footer__social a:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.footer__bottom {
  border-top: 1px solid #222; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px;
}

/* ------------------------------------------------------ floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  animation: wa-pop .4s var(--ease) both;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37, 211, 102, .6); }
.wa-float::after {
  /* Soft pulse ring to draw the eye without being noisy. */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; opacity: .6;
  animation: wa-ring 2.4s var(--ease) infinite;
}
@keyframes wa-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .6; } 70%,100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float::after { animation: none; }
}
@media (max-width: 768px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* --------------------------------------------------------------- toast */
.toast-stack { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--black); color: var(--white);
  padding: 13px 22px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  animation: toast-in .3s var(--ease);
}
.toast--error { background: var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------- prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 25px; margin: 40px 0 14px; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; }
.prose h4 { font-size: 15px; margin: 22px 0 6px; font-weight: 700; }
.prose p, .prose li { color: #333; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 1em; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.prose th { text-align: left; padding: 11px; border-bottom: 2px solid var(--black); font-family: var(--font-head); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.prose td { padding: 11px; border-bottom: 1px solid var(--border); }
.prose a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.page-head { text-align: center; padding: 56px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 50px; }
.page-head h1 { text-transform: uppercase; margin-bottom: 8px; }
.page-head p { color: var(--muted); }

/* Full-width image hero for About / Contact */
.page-hero { position: relative; min-height: 340px; display: grid; place-items: center; overflow: hidden; background: var(--black); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.65)); }
.page-hero__content { position: relative; text-align: center; color: var(--white); padding: 70px 24px; max-width: 720px; }
.page-hero__content h1 { text-transform: uppercase; font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 12px; }
.page-hero__content p { font-size: clamp(15px, 1.6vw, 18px); opacity: .92; margin: 0; }
.page-hero__crumb { justify-content: center; color: rgba(255,255,255,.75); padding: 0 0 14px; }
.page-hero__crumb a:hover { color: #fff; }
.page-hero__crumb span { color: rgba(255,255,255,.4); }

/* ------------------------------------------------------------- account */
.account { display: grid; grid-template-columns: 230px 1fr; gap: 50px; align-items: start; }
.account__nav { border: 1px solid var(--border); }
.account__nav a {
  display: block; padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-size: 13.5px; font-weight: 600; transition: background .15s;
}
.account__nav a:last-child { border-bottom: none; }
.account__nav a:hover { background: var(--bg-soft); }
.account__nav a.is-active { background: var(--black); color: var(--white); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 12px; background: var(--bg-soft);
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800;
}
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: #FAFAFA; }

.status {
  display: inline-block; padding: 4px 10px; border-radius: 3px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.status--pending    { background: #FFF3CD; color: #7A5C00; }
.status--paid       { background: #D7EDE0; color: #17492F; }
.status--processing { background: #DDE7FF; color: #1F3A93; }
.status--shipped    { background: #E4DAF7; color: #46257A; }
.status--delivered  { background: #D7EDE0; color: #17492F; }
.status--cancelled  { background: #F1F1F1; color: #555; }
.status--refunded   { background: #FDECEE; color: #8B1D28; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 2px solid var(--border); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -7px; top: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
}
.timeline li.is-done::before { background: var(--black); border-color: var(--black); }
.timeline__label { font-weight: 700; font-size: 13.5px; }
.timeline__time { font-size: 12px; color: var(--muted); }

.card { border: 1px solid var(--border); padding: 24px; }
.card + .card { margin-top: 18px; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card__head h3 { margin: 0; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------------------------------- responsive §3.5 */
@media (max-width: 1180px) {
  /* Keep the footer at four columns on tablet — just tighten the gap and
     even out the column widths so they still fit. */
  .footer__grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .pdp { gap: 36px; }
}

/* Tablet: 3 product columns */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-carousel { --cat-per-view: 4; }
  .store { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 230; width: min(310px, 88vw);
    background: var(--white); padding: 24px; overflow-y: auto;
    transform: translateX(-100%); transition: transform .3s var(--ease);
  }
  .filters.is-open { transform: translateX(0); }
  .filters-toggle { display: inline-flex; }
  .cart-page, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
  .account { grid-template-columns: 1fr; }
}

/* Mobile: 2 product columns, hamburger */
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .header__nav { display: none; }
  .hamburger { display: grid; }
  .header__logo img { height: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-carousel { --cat-per-view: 2; --cat-gap: 10px; }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 30px; }
  .cta-split { grid-template-columns: 1fr; }
  .cta-panel { padding: 44px 24px; }
  /* Phones: 2×2 grid rather than a single tall column. */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .newsletter__form { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .cart-table thead { display: none; }
  .cart-table td { display: block; padding: 8px 0; border: none; }
  .cart-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--border); }
  .pdp__buy { flex-direction: column; }
  .search-overlay input { font-size: 19px; }
  .store__bar { flex-wrap: wrap; }
  .hero__arrow { display: none; }
  .mobile-nav { inset: 0 12% 0 0; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media print {
  .header, .footer, .cart-drawer, .drawer-backdrop, .newsletter, .btn { display: none !important; }
}
