/* ==========================================================================
   RAKHT — menswear storefront UI
   Persian / RTL first. Warm paper, ink, forest accent.
   ========================================================================== */

:root {
  --paper: #f4f1eb;
  --paper-2: #ece7dd;
  --card: #e7e2d8;
  --ink: #151413;
  --ink-2: #3a3733;
  --muted: #7b756c;
  --line: #d9d2c5;
  --accent: #2f3b2f;
  --accent-2: #46563f;
  --on-accent: #f4f1eb;
  --sale: #9b3a22;
  --gold: #b08457;

  --font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;

  --gutter: clamp(16px, 3vw, 44px);
  --max: 1640px;
  --hdr: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.latin { font-family: var(--serif); letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.num { font-feature-settings: "tnum"; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-u {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding-bottom: 2px;
}
.link-u::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .35s var(--ease);
}
.link-u:hover::after { transform: scaleX(.35); }

/* ==========================================================================
   Top bar (marquee)
   ========================================================================== */
.topbar {
  background: var(--ink); color: var(--paper);
  font-size: 12px; height: 34px; overflow: hidden; position: relative; z-index: 60;
}
.topbar__track {
  display: flex; gap: 56px; width: max-content; height: 100%; align-items: center;
  animation: marquee 38s linear infinite;
}
.topbar__track span { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.topbar__track span::after { content: "✦"; font-size: 8px; opacity: .55; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; }
.topbar:hover .topbar__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ==========================================================================
   Header
   ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .4s var(--ease), border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in {
  height: var(--hdr);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  position: relative; padding: 8px 12px; font-size: 14px; font-weight: 500;
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__item:hover .nav__link::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link--sale { color: var(--sale); }
.nav__link--sale::after { background: var(--sale); }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 4px; }
.logo__fa { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.logo__en { font-family: var(--serif); font-size: 10px; letter-spacing: .5em; margin-inline-start: .5em; color: var(--ink-2); }

.actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 50%; transition: background .2s;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn .badge {
  position: absolute; top: 4px; inset-inline-start: 4px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: var(--on-accent);
  font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.icon-btn .badge:empty, .icon-btn .badge[data-n="0"] { display: none; }
.search-pill {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 18px;
  min-width: 210px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 13px;
}
.search-pill:hover { color: var(--ink); }
.menu-btn { display: none; }

/* mega menu */
.mega {
  position: absolute; inset-inline: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  pointer-events: none;
}
.nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega__in { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 40px; padding-block: 36px 44px; }
.mega h4 { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 14px; letter-spacing: .02em; }
.mega li a { display: block; padding: 5px 0; font-size: 14px; transition: color .2s, padding .25s var(--ease); }
.mega li a:hover { padding-inline-start: 6px; color: var(--accent); }
.mega__feature { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--card); }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega__feature:hover img { transform: scale(1.04); }
.mega__feature span {
  position: absolute; inset-inline-start: 18px; bottom: 16px; color: #fff; font-size: 15px; font-weight: 600;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

/* ==========================================================================
   Drawers, overlays
   ========================================================================== */
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(21,20,19,.38);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.scrim.is-on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 90; width: min(440px, 100vw);
  background: var(--paper); display: flex; flex-direction: column;
  visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
}
.drawer.is-open { visibility: visible; transition: transform .45s var(--ease); box-shadow: 0 0 60px rgba(0,0,0,.08); }
.drawer--end { inset-inline-end: 0; transform: translateX(-100%); }   /* RTL: end = left */
.drawer--start { inset-inline-start: 0; transform: translateX(100%); }
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding-inline: 24px; border-bottom: 1px solid var(--line); flex: none;
}
.drawer__head h3 { font-size: 16px; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { flex: none; padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }

/* mobile nav */
.mnav__list > li { border-bottom: 1px solid var(--line); }
.mnav__list > li > a, .mnav__list > li > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 17px; font-weight: 500; text-align: start;
}
.mnav__sub { display: none; padding: 0 0 16px; columns: 2; }
.mnav__sub a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 14px; }
.mnav__list li.is-open .mnav__sub { display: block; }
.mnav__list li.is-open svg { transform: rotate(180deg); }
.mnav__extra { margin-top: 28px; display: grid; gap: 12px; font-size: 14px; color: var(--ink-2); }

/* cart */
.cart-ship { font-size: 13px; margin-bottom: 18px; }
.cart-ship__bar { height: 3px; background: var(--line); margin-top: 10px; position: relative; overflow: hidden; }
.cart-ship__bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--accent); transition: width .6s var(--ease); }
.citem { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.citem img { width: 84px; aspect-ratio: 3/4; object-fit: cover; background: var(--card); }
.citem__name { font-size: 14px; font-weight: 500; }
.citem__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.citem__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); height: 32px; }
.qty button { width: 30px; height: 100%; display: grid; place-items: center; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.citem__rm { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty svg { width: 46px; height: 46px; margin: 0 auto 16px; stroke-width: 1; }
.cart-sum { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

/* search overlay */
.search {
  position: fixed; inset: 0; z-index: 95; background: var(--paper);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__top { display: flex; align-items: center; gap: 20px; padding-block: 28px 10px; }
.search__field { flex: 1; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.search__field input { flex: 1; border: 0; background: transparent; outline: 0; font-size: clamp(20px, 3vw, 34px); font-weight: 300; }
.search__body { flex: 1; overflow-y: auto; padding-block: 24px 60px; }
.search__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 40px; font-size: 13px; background: transparent;
  white-space: nowrap; flex: none;
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: 12px; }
.hero__stage { position: relative; height: min(84vh, 820px); min-height: 520px; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide:not(.is-active) { pointer-events: none; }
.slide__main, .slide__side { position: relative; overflow: hidden; background: var(--card); }
.slide__main img, .slide__side img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08); transition: transform 7s linear;
}
.slide.is-active img { transform: scale(1); }
.slide__col { display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 0; }
.slide__text {
  background: var(--paper-2); padding: clamp(22px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 16px;
}
.slide__kicker { display: flex; align-items: center; justify-content: space-between; }
.slide__kicker .latin { font-size: 13px; letter-spacing: .3em; }
.slide__title { font-size: clamp(34px, 4.4vw, 68px); font-weight: 200; line-height: 1.12; letter-spacing: -.02em; }
.slide__title b { font-weight: 800; }
.slide__desc { color: var(--ink-2); max-width: 36ch; font-size: 14px; }
.slide__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.slide__tagline {
  position: absolute; inset-inline-start: 24px; bottom: 22px; color: #fff;
  font-family: var(--serif); font-size: clamp(42px, 7vw, 120px); line-height: .9; letter-spacing: -.02em;
  direction: ltr; text-shadow: 0 2px 40px rgba(0,0,0,.2); pointer-events: none;
}
.hero__ctrl {
  display: flex; align-items: center; gap: 18px; padding-block: 16px 0;
}
.hero__bars { flex: 1; display: grid; grid-auto-flow: column; gap: 8px; }
.hero__bars button { height: 22px; position: relative; }
.hero__bars button::before, .hero__bars button i {
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; background: var(--line);
}
.hero__bars button i { background: var(--ink); width: 0; inset-inline-end: auto; }
.hero__bars button.is-active i { animation: bar var(--dur, 6s) linear forwards; }
.hero__bars button.is-done i { width: 100%; }
@keyframes bar { to { width: 100%; } }
.hero__count { font-size: 13px; min-width: 64px; text-align: center; }
.hero__arrows { display: flex; gap: 6px; }
.round-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; transition: background .2s, border-color .2s, color .2s;
}
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ==========================================================================
   Section heads
   ========================================================================== */
.sec { padding-block: clamp(56px, 7vw, 104px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; letter-spacing: -.01em; line-height: 1.3; }
.sec-head h2 b { font-weight: 700; }
.sec-head .eyebrow { margin-bottom: 8px; display: block; }
.sec-head__end { display: flex; align-items: center; gap: 16px; }

/* ==========================================================================
   Category rail
   ========================================================================== */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--col, 18%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.cats { --col: calc((100% - 14px * 6) / 7); }
.cat { display: block; text-align: center; }
.cat__img {
  aspect-ratio: 3/4; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--card);
  position: relative;
}
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.06); }
.cat__name { margin-top: 12px; font-size: 14px; font-weight: 600; }
.cat__en { font-family: var(--serif); font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

/* ==========================================================================
   Promo band
   ========================================================================== */
.promo {
  background: var(--accent); color: var(--on-accent);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 60px);
  padding: clamp(26px, 3.4vw, 46px) clamp(22px, 4vw, 56px);
  position: relative; overflow: hidden;
}
.promo::before {
  content: "SALE"; position: absolute; inset-inline-end: -10px; bottom: -0.32em;
  font-family: var(--serif); font-size: clamp(120px, 16vw, 240px); line-height: 1; opacity: .07; direction: ltr;
}
.promo__big { font-family: var(--serif); font-size: clamp(54px, 7vw, 104px); line-height: .9; direction: ltr; }
.promo__big small { font-size: .3em; letter-spacing: .2em; display: block; margin-top: 8px; font-family: var(--font); }
.promo__txt h3 { font-size: clamp(18px, 2vw, 26px); font-weight: 600; margin-bottom: 4px; }
.promo__txt p { opacity: .78; font-size: 14px; }
.countdown { display: flex; gap: 10px; margin-top: 16px; direction: ltr; justify-content: flex-end; }
.countdown div { display: grid; justify-items: center; min-width: 58px; padding: 8px 6px; border: 1px solid rgba(244,241,235,.28); }
.countdown b { font-size: 22px; font-weight: 600; line-height: 1.2; font-feature-settings: "tnum"; }
.countdown span { font-size: 10px; opacity: .7; }

/* ==========================================================================
   Product card
   ========================================================================== */
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__frame { position: relative; overflow: hidden; }
.pcard__media { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--card); }
.pcard__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s var(--ease), transform 1.2s var(--ease);
}
.pcard__media img + img { opacity: 0; }
.pcard:hover .pcard__media img + img { opacity: 1; }
.pcard:hover .pcard__media img:first-child { transform: scale(1.03); }
.pcard__tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; padding: 3px 9px; background: var(--paper); color: var(--ink);
}
.pcard__tag--sale { background: var(--sale); color: #fff; }
.pcard__fav {
  position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); transition: transform .2s;
}
.pcard__fav:hover { transform: scale(1.1); }
.pcard__fav.is-on svg { fill: var(--sale); stroke: var(--sale); }
.qadd {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 12px 12px;
  transform: translateY(calc(100% + 14px)); transition: transform .4s var(--ease);
}
.pcard:hover .qadd, .pcard:focus-within .qadd { transform: none; }
.qadd__lbl { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.qadd__sizes { display: flex; flex-wrap: wrap; gap: 4px; direction: ltr; justify-content: flex-end; }
.qadd__sizes button {
  min-width: 36px; height: 30px; padding: 0 6px; font-size: 12px; border: 1px solid var(--line); background: var(--paper);
}
.qadd__sizes button:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.qadd__sizes button[disabled] { color: var(--muted); text-decoration: line-through; pointer-events: none; opacity: .6; }
.pcard__body { padding-top: 12px; display: grid; gap: 2px; }
.pcard__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pcard__name { font-size: 13.5px; font-weight: 500; line-height: 1.55; }
.pcard__plus {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; margin-top: -2px;
  border: 1px solid transparent; transition: border-color .2s;
}
.pcard__plus:hover { border-color: var(--ink); }
.pcard__plus svg { width: 14px; height: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.price b { font-weight: 600; }
.price s { color: var(--muted); font-size: 12px; }
.price .off { color: var(--sale); font-size: 12px; font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.sw {
  width: 14px; height: 14px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
  outline: 1px solid transparent; outline-offset: 2px;
}
.sw.is-on, .sw:hover { outline-color: var(--ink); }
.pcard__code { font-size: 11px; color: var(--muted); }

.products-rail { --col: calc((100% - 14px * 4) / 5); }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 36px 14px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  height: 34px; padding: 0 14px; font-size: 13px; border-radius: 40px; border: 1px solid transparent; color: var(--muted);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-on { border-color: var(--ink); color: var(--ink); }

/* ==========================================================================
   Editorial duo
   ========================================================================== */
.duo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: end; }
.story { display: block; }
.story__img { position: relative; overflow: hidden; background: var(--card); }
.duo > .story:first-child .story__img { aspect-ratio: 5/4; }
.duo > .story:last-child .story__img { aspect-ratio: 4/5; }
.story__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.story:hover .story__img img { transform: scale(1.04); }
.story__cap { display: flex; align-items: baseline; gap: 18px; padding-top: 16px; }
.story__n { font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--muted); direction: ltr; }
.story__cap h3 { font-size: 18px; font-weight: 600; }
.story__cap p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.story__cap .link-u { margin-inline-start: auto; }

/* ==========================================================================
   Lookbook teaser (home)
   ========================================================================== */
.lbt { background: var(--paper-2); padding-block: clamp(60px, 8vw, 120px); margin-top: clamp(56px, 7vw, 104px); }
.lbt__head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 40px; gap: 20px; }
.lbt__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 76px); line-height: .95; direction: ltr; text-align: right; letter-spacing: -.01em; }
.lbt__title small { display: block; font-family: var(--font); font-size: 13px; letter-spacing: 0; margin-top: 14px; color: var(--muted); direction: rtl; }
.lbt__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.lbt__grid a { display: block; position: relative; overflow: hidden; background: var(--card); }
.lbt__grid a:first-child { grid-row: span 2; }
.lbt__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lbt__grid a:hover img { transform: scale(1.03); }
.lbt__grid a:not(:first-child) { aspect-ratio: 4/5; }
.lbt__grid figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 10px 12px;
  font-size: 12px; display: flex; justify-content: space-between; background: var(--paper);
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.lbt__grid a:hover figcaption { transform: none; }

/* ==========================================================================
   Sets with hotspots
   ========================================================================== */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.set__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--card); }
.set__media > img { width: 100%; height: 100%; object-fit: cover; }
.set__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.set__foot h3 { font-size: 15px; font-weight: 600; }
.set__foot span { font-size: 12px; color: var(--muted); }
.spot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; z-index: 2;
}
.spot::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.85);
  animation: pulse 2.4s var(--ease) infinite;
}
.spot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.spot__pop {
  position: absolute; z-index: 3; width: 220px; background: var(--paper); padding: 10px;
  display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  left: var(--x); top: var(--y); transform: translate(-50%, 22px);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.spot__pop img { width: 56px; aspect-ratio: 3/4; object-fit: cover; }
.spot__pop strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.spot__pop span { font-size: 12px; color: var(--ink-2); }
.spot:hover + .spot__pop, .spot:focus + .spot__pop, .spot__pop:hover { opacity: 1; visibility: visible; transform: translate(-50%, 26px); }

/* ==========================================================================
   Services
   ========================================================================== */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.svc__item { display: flex; gap: 16px; align-items: flex-start; padding: 30px 24px; }
.svc__item + .svc__item { border-inline-start: 1px solid var(--line); }
.svc__item svg { width: 28px; height: 28px; stroke-width: 1.1; }
.svc__item h4 { font-size: 14px; font-weight: 600; }
.svc__item p { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* UGC */
.ugc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ugc a { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--card); }
.ugc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.ugc a:hover img { transform: scale(1.06); filter: brightness(.82); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ftr { background: var(--ink); color: #d9d4ca; margin-top: clamp(64px, 8vw, 120px); }
.ftr a:hover { color: #fff; }
.ftr__news {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end;
  padding-block: clamp(48px, 6vw, 80px) 48px; border-bottom: 1px solid #34312d;
}
.ftr__news h3 { font-size: clamp(24px, 3vw, 40px); font-weight: 200; color: #fff; line-height: 1.3; }
.ftr__news h3 b { font-weight: 700; }
.news-form { display: flex; border-bottom: 1px solid #6b665e; }
.news-form input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; padding: 14px 0; font-size: 15px; }
.news-form input::placeholder { color: #8e887e; }
.news-form button { color: #fff; font-weight: 600; font-size: 14px; padding-inline: 8px; }
.news-note { font-size: 12px; color: #8e887e; margin-top: 10px; }
.ftr__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 52px; }
.ftr__brand .logo { align-items: flex-start; color: #fff; }
.ftr__brand p { font-size: 13px; color: #9a948a; margin-top: 18px; max-width: 34ch; }
.ftr h4 { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 16px; }
.ftr li a { display: inline-block; padding: 4px 0; font-size: 13.5px; }
.social { display: flex; gap: 8px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border: 1px solid #44403a; border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.social svg { width: 17px; height: 17px; }
.ftr__about { border-top: 1px solid #34312d; padding-block: 30px; font-size: 13px; color: #9a948a; line-height: 2; }
.ftr__about h2 { font-size: 15px; color: #e8e3d9; font-weight: 600; margin-bottom: 8px; }
.ftr__about .clamp { max-height: 4em; overflow: hidden; position: relative; transition: max-height .5s var(--ease); }
.ftr__about .clamp.is-open { max-height: 600px; }
.ftr__about button { color: #fff; font-size: 12.5px; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.ftr__bottom {
  border-top: 1px solid #34312d; padding-block: 20px; font-size: 12px; color: #8e887e;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pay-badges { display: flex; gap: 8px; }
.pay-badges span { border: 1px solid #44403a; padding: 3px 10px; font-size: 11px; border-radius: 3px; }

/* floating help */
.fab {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
  height: 48px; padding: 0 18px 0 14px; border-radius: 30px;
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(47,59,47,.3); transition: transform .25s var(--ease);
}
.fab:hover { transform: translateY(-2px); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, calc(100% + 60px));
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 13px;
  display: flex; align-items: center; gap: 14px; transition: transform .45s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast button { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; white-space: nowrap; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; z-index: 0; background: rgba(21,20,19,.38); }
.modal__box { position: relative; background: var(--paper); width: min(680px, 100%); max-height: 88vh; overflow: auto; padding: 32px; z-index: 1; }
.modal__x { position: absolute; top: 14px; inset-inline-end: 14px; }
.modal__box h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 18px; text-align: center; }
.table th, .table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; background: var(--paper-2); }

/* ==========================================================================
   Breadcrumb / listing page
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); padding-block: 22px 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.plp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 18px 22px; }
.plp-head h1 { font-size: clamp(28px, 3.6vw, 52px); font-weight: 200; line-height: 1.1; letter-spacing: -.02em; }
.plp-head h1 b { font-weight: 800; }
.plp-head p { color: var(--muted); font-size: 13px; margin-top: 8px; }
.toolbar {
  position: sticky; top: var(--hdr); z-index: 20; background: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px; border-block: 1px solid var(--line); margin-bottom: 26px;
  transition: top .4s var(--ease);
}
.hdr.is-hidden ~ main .toolbar { top: 0; }
.toolbar__start { display: flex; align-items: center; gap: 10px; min-width: 0; }
.toolbar__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.toolbar__chips::-webkit-scrollbar { display: none; }
.toolbar__end { display: flex; align-items: center; gap: 16px; flex: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--ink); font-size: 13px; font-weight: 500; flex: none; }
.filter-btn:hover { background: var(--ink); color: var(--paper); }
.filter-btn .badge { background: var(--accent); color: var(--on-accent); border-radius: 9px; font-size: 10px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; }
.filter-btn .badge:empty { display: none; }
.sort { border: 0; background: transparent; font-size: 13px; cursor: pointer; padding: 6px 0; }
.density { display: flex; gap: 2px; }
.density button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.density button.is-on, .density button:hover { color: var(--ink); }
.density svg { width: 18px; height: 18px; }
.load-more { display: grid; justify-items: center; gap: 14px; margin-top: 56px; font-size: 13px; color: var(--muted); }
.load-more__bar { width: 200px; height: 2px; background: var(--line); position: relative; }
.load-more__bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--ink); }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* filters drawer content */
.fgroup { border-bottom: 1px solid var(--line); padding-block: 18px; }
.fgroup h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.fsizes { display: flex; flex-wrap: wrap; gap: 6px; direction: ltr; justify-content: flex-end; }
.fsizes button { min-width: 46px; height: 38px; border: 1px solid var(--line); font-size: 13px; }
.fsizes button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fcolors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.fcolors button { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; }
.fcolors .sw { width: 18px; height: 18px; }
.fcolors button.is-on .sw { outline-color: var(--ink); }
.fcolors button.is-on { font-weight: 600; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.fcheck input { width: 16px; height: 16px; accent-color: var(--ink); }
.range { display: grid; gap: 10px; }
.range input[type=range] { width: 100%; accent-color: var(--ink); }
.range__vals { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }

/* ==========================================================================
   Product page
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: clamp(24px, 4vw, 72px); padding-top: 18px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--card); cursor: zoom-in; }
.gallery figure:first-child { grid-column: span 2; aspect-ratio: 4/5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure.is-zoom img { transform: scale(1.8); cursor: zoom-out; }
.gallery__dots { display: none; }
.buy { position: sticky; top: calc(var(--hdr) + 20px); padding-bottom: 20px; }
.buy__code { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.buy h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.4; margin: 8px 0 12px; }
.buy .price { font-size: 18px; }
.buy .price s { font-size: 14px; }
.installment {
  margin-top: 16px; padding: 12px 14px; background: var(--paper-2); font-size: 13px;
  display: flex; gap: 10px; align-items: center;
}
.installment svg { width: 22px; height: 22px; }
.installment b { font-weight: 600; }
.buy__lbl { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; font-size: 13px; }
.buy__lbl b { font-weight: 600; }
.buy__lbl button { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.cswatch { display: flex; gap: 10px; }
.cswatch button { width: 34px; height: 34px; border-radius: 50%; padding: 3px; border: 1px solid transparent; }
.cswatch button span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.cswatch button.is-on { border-color: var(--ink); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; direction: ltr; }
.sizes button { height: 46px; border: 1px solid var(--line); font-size: 13.5px; position: relative; transition: border-color .2s; }
.sizes button:hover { border-color: var(--ink); }
.sizes button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sizes button[disabled] { color: #b3ada3; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(0,0,0,.04) 7px 8px); }
.size-hint { font-size: 12px; color: var(--sale); margin-top: 8px; min-height: 18px; }
.buy__cta { display: grid; grid-template-columns: 1fr 48px; gap: 8px; margin-top: 18px; }
.fav-btn { height: 48px; border: 1px solid var(--ink); display: grid; place-items: center; }
.fav-btn.is-on svg { fill: var(--sale); stroke: var(--sale); }
.perks { margin-top: 22px; display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { width: 18px; height: 18px; }
.acc { margin-top: 26px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 14px; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { transition: transform .3s; width: 16px; height: 16px; }
.acc details[open] summary svg { transform: rotate(45deg); }
.acc .acc__body { padding-bottom: 18px; font-size: 13.5px; color: var(--ink-2); }
.acc ul { list-style: disc; padding-inline-start: 18px; }
.look { display: grid; gap: 12px; }
.look__item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.look__item img { width: 72px; aspect-ratio: 3/4; object-fit: cover; background: var(--card); }
.look__item h4 { font-size: 13.5px; font-weight: 500; }
.look__item .price { font-size: 12.5px; }
.sticky-buy { display: none; }

/* ==========================================================================
   Lookbook page — editorial layout built from the site's own components
   ========================================================================== */
.lb-hero { display: grid; grid-template-columns: 1fr 1.55fr; gap: 12px; padding-top: 12px; min-height: min(78vh, 760px); }
.lb-hero__text {
  background: var(--paper-2); padding: clamp(24px, 3.4vw, 52px);
  display: flex; flex-direction: column; gap: 18px;
}
.lb-hero__media { position: relative; overflow: hidden; background: var(--card); }
.lb-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-hero__media .slide__tagline { transform: none; }
.lb-index { margin-top: auto; border-top: 1px solid var(--line); }
.lb-index a {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; transition: padding .3s var(--ease);
}
.lb-index a:hover { padding-inline-start: 8px; }
.lb-index .latin { font-size: 18px; color: var(--muted); }
.lb-index small { font-size: 12px; color: var(--muted); }

.lb-chapter { scroll-margin-top: calc(var(--hdr) + 70px); }
.lb-chapter .sec-head p { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 46ch; }
.lb-rows { display: grid; gap: clamp(28px, 3vw, 44px); }
.looks { display: grid; gap: 14px; align-items: end; }
.looks--duo { grid-template-columns: 1.35fr 1fr; }
.looks--duo-r { grid-template-columns: 1fr 1.35fr; }
.looks--trio { grid-template-columns: repeat(3, 1fr); }
.looks--wide { grid-template-columns: 1fr; }
.look-card { display: block; transition: opacity .4s; }
.look-card .story__img { aspect-ratio: 4/5; }
.looks--duo .look-card:first-child .story__img, .looks--duo-r .look-card:last-child .story__img { aspect-ratio: 5/4; }
.looks--trio .story__img { aspect-ratio: 3/4; }
.looks--wide .story__img { aspect-ratio: 21/9; }
.looks--wide .story__img img { object-position: 50% 72%; }
.look-card .story__cap p { max-width: 40ch; }
.look-card .story__cap .price { margin-top: 4px; }
.lb-products { margin-top: clamp(28px, 3vw, 44px); }
.is-dim { opacity: .18; pointer-events: none; }

.lb-quote {
  background: var(--paper-2); margin-top: clamp(56px, 7vw, 104px);
  padding: clamp(48px, 6vw, 92px) var(--gutter); text-align: center;
}
.lb-quote .eyebrow { display: block; margin-bottom: 14px; }
.lb-quote p { font-size: clamp(24px, 3vw, 44px); font-weight: 200; line-height: 1.4; letter-spacing: -.01em; }
.lb-quote p b { font-weight: 700; }

/* closed overlays never catch clicks, even if a child is forced visible */
.scrim:not(.is-on), .drawer:not(.is-open), .search:not(.is-open), .modal:not(.is-open) { pointer-events: none; }
.modal:not(.is-open) * { visibility: hidden; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .cats { --col: calc((100% - 14px * 4) / 5); }
  .products-rail { --col: calc((100% - 14px * 3) / 4); }
  .mega__in { grid-template-columns: repeat(3, 1fr); }
  .mega__feature { display: none; }
  .search-pill { min-width: 0; padding: 0 10px; border: 0; }
  .search-pill span { display: none; }
}
@media (max-width: 960px) {
  :root { --hdr: 60px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .hdr__in { grid-template-columns: auto 1fr auto; }
  .hdr__in .logo { justify-self: center; }
  .logo__fa { font-size: 25px; }
  .hero__stage { height: auto; min-height: 0; }
  .slide { position: relative; display: none; grid-template-columns: 1fr; }
  .slide.is-active { display: grid; }
  .slide__main { aspect-ratio: 4/5; }
  .slide__side { display: none; }
  .slide__col { grid-template-rows: auto; }
  .promo { grid-template-columns: 1fr; text-align: center; }
  .countdown { justify-content: center; }
  .duo { grid-template-columns: 1fr; }
  .lb-hero { grid-template-columns: 1fr; min-height: 0; }
  .lb-hero__media { aspect-ratio: 4/5; order: -1; }
  .looks--duo, .looks--duo-r { grid-template-columns: 1fr 1fr; }
  .looks--duo .look-card .story__img, .looks--duo-r .look-card .story__img { aspect-ratio: 3/4 !important; }
  .looks--wide .story__img { aspect-ratio: 4/3; }
  .duo > .story .story__img { aspect-ratio: 4/5 !important; }
  .lbt__grid { grid-template-columns: 1fr 1fr; }
  .lbt__grid a:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4/5; }
  .sets { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc__item:nth-child(3) { border-inline-start: 0; }
  .svc__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ugc { grid-template-columns: repeat(3, 1fr); }
  .ftr__news { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: span 2; }
  .grid { --cols: 2 !important; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure, .gallery figure:first-child { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4/5; }
  .gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .gallery__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
  .gallery__dots i.is-on { background: var(--ink); }
  .buy { position: static; }
  .sticky-buy {
    display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; gap: 12px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .sticky-buy.is-on { transform: none; }
  .sticky-buy .price { font-size: 14px; flex: 1; }
  .sticky-buy .btn { height: 44px; padding: 0 22px; }
  body.has-sticky .fab { bottom: 84px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar { font-size: 11px; }
  .actions .hide-sm { display: none; }
  .icon-btn { width: 38px; height: 38px; }
  .cats { --col: 38%; }
  .products-rail { --col: 64%; }
  .sec-head { flex-wrap: wrap; align-items: flex-start; }
  .sec-head__end { width: 100%; justify-content: space-between; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; }
  .slide__tagline { font-size: 52px; }
  .hero__arrows { display: none; }
  .lbt__head { grid-template-columns: 1fr; }
  .looks--duo, .looks--duo-r, .looks--trio { grid-template-columns: 1fr; gap: 32px; }
  .look-card .story__cap { flex-wrap: wrap; }
  .svc__item { padding: 22px 14px; flex-direction: column; gap: 10px; }
  .ftr__cols { gap: 30px; }
  .ftr__bottom { flex-direction: column; }
  .fab span { display: none; }
  .fab { width: 48px; padding: 0; justify-content: center; }
  .qadd { display: none; }
  .grid { gap: 26px 10px; }
  .toolbar__chips { display: none; }
  .density { display: none; }
  .plp-head { flex-direction: column; align-items: flex-start; }
  .modal__box { padding: 24px 18px; }
  .table { font-size: 12px; }
}

/* ==========================================================================
   Forms (checkout, account, help)
   ========================================================================== */
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field > span i { color: var(--sale); font-style: normal; }
.input {
  width: 100%; height: 48px; padding: 0 14px; background: #fbfaf7;
  border: 1px solid var(--line); outline: 0; font-size: 14px; transition: border-color .2s, background .2s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.8; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: 16px 21px, 21px 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus { border-color: var(--ink); background: #fff; }
.input[dir="ltr"] { text-align: left; }
.field.is-err .input { border-color: var(--sale); background: #fdf6f3; }
.field__err { font-size: 12px; color: var(--sale); min-height: 0; }
.field:not(.is-err) .field__err { display: none; }
.fgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 14px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; cursor: pointer; line-height: 1.7; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }

/* radio cards */
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); background: #fbfaf7; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--ink-2); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink-2); display: grid; place-items: center; }
.opt__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .2s var(--ease); }
.opt:has(input:checked) { border-color: var(--ink); background: #fff; }
.opt:has(input:checked) .opt__dot::after { transform: scale(1); }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt__t { font-size: 14px; font-weight: 600; }
.opt__d { font-size: 12.5px; color: var(--muted); }
.opt__p { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.opt__p.free { color: var(--accent-2); }
.opt__more { grid-column: 1 / -1; display: none; padding-top: 6px; }
.opt:has(input:checked) .opt__more { display: block; }

/* ==========================================================================
   Checkout
   ========================================================================== */
.co-hdr { border-bottom: 1px solid var(--line); background: var(--paper); }
.co-hdr .wrap { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.co-hdr__back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.co-hdr__secure { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.co-steps { display: flex; gap: 0; margin: 28px 0 34px; counter-reset: st; }
.co-steps li { flex: 1; position: relative; padding-top: 14px; font-size: 12.5px; color: var(--muted); }
.co-steps li::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: var(--line); }
.co-steps li.is-done, .co-steps li.is-on { color: var(--ink); }
.co-steps li.is-done::before, .co-steps li.is-on::before { background: var(--ink); }
.co-steps li b { font-weight: 600; margin-inline-end: 6px; }
.co { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.co h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; margin-bottom: 4px; }
.co h1 b { font-weight: 700; }
.step { border-top: 1px solid var(--line); padding-block: 22px; }
.step:first-of-type { border-top: 0; }
.step__head { display: flex; align-items: center; gap: 14px; }
.step__n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; }
.step.is-on .step__n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step.is-done .step__n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step__head h2 { font-size: 17px; font-weight: 600; flex: 1; }
.step:not(.is-on):not(.is-done) .step__head h2 { color: var(--muted); }
.step__edit { font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; display: none; }
.step.is-done .step__edit { display: inline; }
.step__body { display: none; padding-top: 22px; }
.step.is-on .step__body { display: block; }
.step__sum { display: none; padding: 10px 44px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.9; }
.step.is-done .step__sum { display: block; }
.step__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.slot { border: 1px solid var(--line); padding: 8px 14px; font-size: 12.5px; background: var(--paper); line-height: 1.6; text-align: center; }
.slot.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.slot small { display: block; opacity: .75; font-size: 11px; }
.gateways { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.inst-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.inst-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.inst-table td:last-child { text-align: left; font-weight: 600; }

.summary { position: sticky; top: 20px; background: var(--paper-2); padding: 24px; }
.summary h3 { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.summary h3 button { font-size: 12.5px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.sitem { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sitem__img { position: relative; }
.sitem__img img { width: 60px; aspect-ratio: 3/4; object-fit: cover; background: var(--card); }
.sitem__img b { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.sitem h4 { font-size: 13px; font-weight: 500; line-height: 1.6; }
.sitem small { font-size: 11.5px; color: var(--muted); }
.sitem > span { font-size: 13px; font-weight: 600; white-space: nowrap; }
.promo-code { display: flex; gap: 8px; margin: 18px 0 4px; }
.promo-code .input { height: 44px; background: var(--paper); }
.promo-code .btn { height: 44px; padding: 0 18px; }
.promo-msg { font-size: 12px; min-height: 20px; }
.promo-msg.ok { color: var(--accent-2); } .promo-msg.err { color: var(--sale); }
.totals { display: grid; gap: 8px; font-size: 13.5px; padding-top: 8px; }
.totals div { display: flex; justify-content: space-between; }
.totals .neg { color: var(--accent-2); }
.totals .grand { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 17px; font-weight: 700; }
.totals small { font-size: 12px; color: var(--muted); }
.trust { display: grid; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--ink-2); }
.trust span { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; }
.sum-toggle { display: none; }

.co-wait { position: fixed; inset: 0; z-index: 130; background: rgba(244,241,235,.94); display: grid; place-items: center; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s; }
.co-wait.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.spinner { width: 42px; height: 42px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; margin: 0 auto 16px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { max-width: 760px; margin: 40px auto 0; text-align: center; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin: 0 auto 20px; }
.done__icon svg { width: 30px; height: 30px; stroke-width: 2; }
.done h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 300; }
.done h1 b { font-weight: 700; }
.done p { color: var(--ink-2); margin-top: 8px; }
.done__box { text-align: start; background: var(--paper-2); padding: 24px; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.done__box div span { display: block; font-size: 12px; color: var(--muted); }
.done__box div b { font-size: 14px; font-weight: 600; }
.done__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.empty-co { text-align: center; padding: 70px 0 20px; }
.empty-co svg { width: 52px; height: 52px; stroke-width: 1; margin: 0 auto 16px; color: var(--muted); }
.empty-co h1 { font-size: 26px; font-weight: 300; margin-bottom: 10px; }

/* order timeline (confirmation + account) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; }
.timeline li { position: relative; padding-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.timeline li::before { content: ""; position: absolute; top: 6px; inset-inline: 0; height: 2px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--accent); }
.timeline li.is-done::after { background: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   Account + help (side-nav pages)
   ========================================================================== */
.side-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 10px; }
.side-nav { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 2px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; border-inline-start: 2px solid transparent; text-align: start; width: 100%; color: var(--ink-2); }
.side-nav a:hover, .side-nav button:hover { color: var(--ink); background: var(--paper-2); }
.side-nav .is-on { border-inline-start-color: var(--ink); color: var(--ink); font-weight: 600; background: var(--paper-2); }
.side-nav svg { width: 18px; height: 18px; }
.side-nav h5 { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 500; padding: 14px 14px 6px; }
.panel-h { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; margin-bottom: 6px; }
.panel-h b { font-weight: 700; }
.panel-sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.card { background: #fbfaf7; border: 1px solid var(--line); padding: 22px; }
.auth { max-width: 440px; margin: 40px auto 0; }
.auth h1 { font-size: 28px; font-weight: 300; margin-bottom: 6px; }
.auth h1 b { font-weight: 700; }
.auth .btn { margin-top: 18px; }
.auth__note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.9; }
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp input { width: 56px; height: 60px; text-align: center; font-size: 22px; border: 1px solid var(--line); background: #fbfaf7; outline: 0; }
.otp input:focus { border-color: var(--ink); background: #fff; }
.order { border: 1px solid var(--line); background: #fbfaf7; margin-bottom: 14px; }
.order__head { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.order__head b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.order__head .badge-st { margin-inline-start: auto; align-self: center; background: var(--accent); color: var(--on-accent); padding: 3px 12px; font-size: 12px; }
.order__body { padding: 16px 20px 20px; }
.order__thumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.order__thumbs img { width: 54px; aspect-ratio: 3/4; object-fit: cover; background: var(--card); }
.addr { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.addr p { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); }
.help-sec { padding-block: 10px 46px; border-bottom: 1px solid var(--line); margin-bottom: 40px; scroll-margin-top: calc(var(--hdr) + 24px); }
.help-sec:last-child { border-bottom: 0; }
.help-sec h2 { font-size: 22px; font-weight: 300; margin-bottom: 14px; }
.help-sec h2 b { font-weight: 700; }
.help-sec p, .help-sec li { font-size: 14px; color: var(--ink-2); line-height: 2; }
.help-sec ul { list-style: disc; padding-inline-start: 20px; }
.help-sec .acc { margin-top: 0; }
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.store-card p { font-size: 13px !important; line-height: 1.9 !important; }
.store-card .tag { display: inline-block; font-size: 11px; background: var(--paper-2); padding: 2px 10px; margin-top: 10px; }
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); list-style: none; }
.jobs ul { padding: 0; }
.jobs small { color: var(--muted); font-size: 12px; display: block; }
.ok-box { display: flex; gap: 12px; align-items: center; background: #eef1ea; border: 1px solid #cdd5c6; padding: 14px 16px; font-size: 13.5px; margin-top: 16px; }
.ok-box svg { color: var(--accent); }

@media (max-width: 960px) {
  .co { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; padding: 18px; }
  .sum-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 14px; font-weight: 600; }
  .sum-toggle svg { transition: transform .3s; }
  .summary.is-collapsed .sum-body { display: none; }
  .summary:not(.is-collapsed) .sum-toggle svg { transform: rotate(180deg); }
  .summary h3:first-of-type { display: none; }
  .side-page { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav h5 { display: none; }
  .side-nav a, .side-nav button { white-space: nowrap; border-inline-start: 0; border-bottom: 2px solid transparent; width: auto; }
  .side-nav .is-on { border-bottom-color: var(--ink); background: none; }
  .stores { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: 1 / -1; }
  .fgrid .half { grid-column: span 1; }
  .co-steps li span { display: none; }
  .co-hdr__back span, .co-hdr__secure span { display: none; }
  .step__sum { padding-inline-start: 0; }
  .done__box { grid-template-columns: 1fr 1fr; }
  .timeline li { font-size: 10.5px; }
  .otp input { width: 50px; height: 54px; }
}
