/* =============================================================================
   Velours Pro — Editorial Fashion Clothing-Store (Pro Tier)
   Direction: Editorial · Warm Ivory + Ink Navy + Dusty Rose
   Signature: Lookbook scrollytelling pin (GSAP Pro)
   Fonts: Cormorant Garamond (variable opsz+wght) + DM Sans
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --primary:        #0f1520;
  --primary-dark:   #080e16;
  --primary-light:  #1e2a3d;
  --accent:         #c0556a;
  --accent-dark:    #a8445a;
  --accent-light:   #d4788a;
  --background:     #faf8f4;
  --surface:        #f4f0ea;
  --surface-2:      #ece6db;
  --text:           #0f1520;
  --text-muted:     rgba(15,21,32,.55);
  --text-faint:     rgba(15,21,32,.35);
  --border:         rgba(15,21,32,.10);
  --border-mid:     rgba(15,21,32,.18);
  --success:        #2e7d32;

  /* Dark-section overrides (applied via [data-theme="dark"]) */
  --dark-bg:        #0f1520;
  --dark-surface:   #19243a;
  --dark-text:      #f0ede6;
  --dark-muted:     rgba(240,237,230,.55);
  --dark-border:    rgba(240,237,230,.12);
  --dark-accent:    #d4788a;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type scale */
  --text-xs:   clamp(.70rem,  .68rem + .10vw, .75rem);
  --text-sm:   clamp(.825rem, .80rem + .12vw, .9rem);
  --text-base: clamp(.9375rem,.90rem + .18vw, 1rem);
  --text-md:   clamp(1.05rem, 1.00rem + .25vw, 1.125rem);
  --text-lg:   clamp(1.15rem, 1.05rem + .5vw,  1.375rem);
  --text-xl:   clamp(1.35rem, 1.20rem + .75vw, 1.75rem);
  --text-2xl:  clamp(1.75rem, 1.40rem + 1.75vw,2.5rem);
  --text-3xl:  clamp(2.25rem, 1.60rem + 3.25vw,4rem);
  --text-4xl:  clamp(3rem,    2rem   + 5vw,    6.5rem);

  /* Spacing */
  --sp-1:  .25rem;  --sp-2:  .5rem;   --sp-3:  .75rem;
  --sp-4:  1rem;    --sp-5:  1.25rem; --sp-6:  1.5rem;
  --sp-8:  2rem;    --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-14: 3.5rem;  --sp-16: 4rem;    --sp-20: 5rem;
  --sp-24: 6rem;    --sp-32: 8rem;

  /* Motion */
  --dur-micro:  80ms;
  --dur-ui:     220ms;
  --dur-reveal: 520ms;
  --dur-slow:   1000ms;
  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --ease-out:      cubic-bezier(0,0,0.2,1);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);

  /* Layout */
  --header-h:  72px;
  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --container: 1280px;
}

/* ─── Reset + Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
img[src=""], img:not([src]), img[src$="placeholder.jpg"] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Visually Hidden ───────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important; white-space: nowrap !important;
}

/* ─── Skip Link ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 9999;
  padding: var(--sp-2) var(--sp-4); background: var(--accent); color: #fff;
  font-size: var(--text-sm); letter-spacing: .08em;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ─── Focus ─────────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Scroll Progress ───────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 9999;
  transform-origin: left; transition: none;
}

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container--narrow { max-width: 820px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* ─── CSS Scroll-Driven Reveals ─────────────────────────────────────────── */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-fade linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
    .reveal--up {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
    .reveal--left {
      animation: reveal-left linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
    .reveal--right {
      animation: reveal-right linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
  }
}
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-up   { from { opacity: 0; transform: translateY(2rem); } to { opacity: 1; } }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-2rem); } to { opacity: 1; } }
@keyframes reveal-right{ from { opacity: 0; transform: translateX(2rem); } to { opacity: 1; } }

/* ─── Kinetic Typography ────────────────────────────────────────────────── */
.kinetic-rise { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .kinetic-rise {
      animation: kt-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
      will-change: clip-path, transform, opacity;
    }
  }
}
@keyframes kt-rise {
  from { opacity: 0; transform: translateY(0.5em); clip-path: inset(0 0 110% 0); }
  to   { opacity: 1;              clip-path: inset(0 0 -10% 0); }
}

@property --kt-shimmer { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.kinetic-shimmer {
  background-image: linear-gradient(
    100deg,
    var(--text) 0%,
    var(--text) calc(var(--kt-shimmer) - 12%),
    color-mix(in oklab, var(--accent) 80%, var(--text)) var(--kt-shimmer),
    var(--text) calc(var(--kt-shimmer) + 12%),
    var(--text) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .kinetic-shimmer {
      animation: kt-shimmer linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}
@keyframes kt-shimmer { from { --kt-shimmer: 0%; } to { --kt-shimmer: 120%; } }

/* ─── Data-list Grid Fix ────────────────────────────────────────────────── */
[data-list] { display: contents; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: .8em 2em; font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: var(--radius);
  transition: all var(--dur-ui) var(--ease-standard);
  white-space: nowrap; cursor: pointer;
}
.btn--primary {
  background: var(--primary); color: var(--background); border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn--accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--border-mid);
}
.btn--ghost:hover { border-color: var(--text); }
.btn--ghost-inv {
  background: transparent; color: var(--dark-text); border-color: rgba(240,237,230,.35);
}
.btn--ghost-inv:hover { border-color: var(--dark-text); }
.btn--sm  { padding: .55em 1.4em; font-size: var(--text-xs); }
.btn--lg  { padding: 1em 2.5em; font-size: var(--text-md); }

/* ─── Chips / Tags ──────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .35em 1em; font-size: var(--text-xs); letter-spacing: .08em;
  text-transform: uppercase; border: 1px solid var(--border-mid);
  border-radius: var(--radius); cursor: pointer; background: transparent;
  transition: all var(--dur-ui) var(--ease-standard);
  font-family: var(--font-body);
}
.chip:hover, .chip.is-active {
  background: var(--primary); color: var(--background); border-color: var(--primary);
}
.badge--new {
  display: inline-block; padding: .2em .65em; font-size: var(--text-xs);
  letter-spacing: .1em; text-transform: uppercase; background: var(--primary);
  color: var(--background); border-radius: 2px; line-height: 1;
}
.badge--sale {
  display: inline-block; padding: .2em .65em; font-size: var(--text-xs);
  letter-spacing: .1em; text-transform: uppercase; background: var(--accent);
  color: #fff; border-radius: 2px; line-height: 1;
}

/* ─── Eyebrow ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: block; font-family: var(--font-body); font-size: var(--text-xs);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--sp-4);
}

/* ─── Section + Layout ──────────────────────────────────────────────────── */
section { padding-block: var(--sp-20); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); margin-bottom: var(--sp-12); }
.section-header h2 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; line-height: 1.1; letter-spacing: -.01em;
}

/* ─── HEADER ────────────────────────────────────────────────────────────── */
[data-section="header"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-ui) var(--ease-standard),
              box-shadow var(--dur-ui) var(--ease-standard);
}
[data-section="header"].is-scrolled {
  background: color-mix(in oklab, var(--background) 96%, transparent);
  box-shadow: 0 1px 20px rgba(15,21,32,.06);
}
[data-section="header"] .container { height: 100%; }
[data-section="header"] nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--sp-6);
}
[data-section="header"] nav:not(.nav__mobile) { display: flex; }
.logo img { height: 36px; width: auto; }
.logo { display: flex; align-items: center; }

.nav__links {
  display: flex; align-items: center; gap: var(--sp-8);
}
.nav__links a {
  font-size: var(--text-sm); letter-spacing: .06em; font-weight: 500;
  color: var(--text); position: relative; padding-bottom: 2px;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width var(--dur-ui) var(--ease-standard);
}
.nav__links a:hover::after, .nav__links a[aria-current]::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-5); }
.nav__cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--text);
}
.nav__cart {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.nav__toggle {
  display: none; background: none; border: none;
  width: 40px; height: 40px; padding: 8px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all var(--dur-ui) var(--ease-standard);
}

/* Mobile nav drawer */
.nav__mobile {
  display: none; position: fixed; inset: 0; top: var(--header-h);
  background: var(--background); z-index: 199; padding: var(--sp-8) var(--sp-6);
  flex-direction: column; gap: var(--sp-6);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300;
  color: var(--text); border-bottom: 1px solid var(--border); padding-bottom: var(--sp-5);
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
[data-section="hero"] {
  padding: 0; overflow: hidden;
}
.hero__split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh; align-items: stretch;
  padding-top: var(--header-h);
}
.hero__image-col {
  position: relative; overflow: hidden;
  background: var(--surface-2); min-height: 60vh;
}
.hero__image-col img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: hero-img-drift 18s ease-in-out infinite alternate;
}
@keyframes hero-img-drift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.08) translateY(-2%); }
}
.hero__content-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-16) clamp(var(--sp-8), 5vw, var(--sp-20)) var(--sp-16) var(--sp-12);
  background: var(--background);
}
.hero__eyebrow {
  display: block; font-size: var(--text-xs); letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-6);
  animation: fade-up .8s var(--ease-out) .1s both;
}
.hero__prefix {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: var(--text-xl); font-weight: 300; color: var(--text-muted);
  margin-bottom: var(--sp-3);
  animation: fade-up .8s var(--ease-out) .2s both;
}
.hero__title {
  font-family: var(--font-display); font-size: var(--text-4xl);
  font-weight: 300; line-height: 1.0; letter-spacing: -.02em;
  color: var(--text); margin-bottom: var(--sp-6);
  animation: fade-up .8s var(--ease-out) .35s both;
}
.hero__subtitle {
  font-size: var(--text-lg); color: var(--text-muted); font-weight: 300;
  line-height: 1.6; max-width: 42ch; margin-bottom: var(--sp-10);
  animation: fade-up .8s var(--ease-out) .5s both;
}
.hero__cta-group {
  display: flex; gap: var(--sp-4); flex-wrap: wrap;
  animation: fade-up .8s var(--ease-out) .65s both;
}
.hero__meta {
  margin-top: auto; padding-top: var(--sp-10);
  display: flex; gap: var(--sp-6); align-items: center;
  animation: fade-up .8s var(--ease-out) .8s both;
}
.hero__meta-item {
  display: flex; flex-direction: column; gap: 2px;
}
.hero__meta-num {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 300; line-height: 1;
}
.hero__meta-label {
  font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero__meta-sep { width: 1px; height: 36px; background: var(--border-mid); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; }
}

/* ─── CATEGORIES GRID ──────────────────────────────────────────────────── */
[data-section="categories"] { padding-block: var(--sp-20); background: var(--surface); }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.category-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3/4; cursor: pointer;
  background: var(--surface-2);
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.category-card:hover img { transform: scale(1.07); }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,21,32,.7) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: var(--sp-6);
}
.category-card__name {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  color: #fff; letter-spacing: .02em; line-height: 1.1;
}
.category-card__link {
  position: absolute; inset: 0;
}

/* ─── PRODUCTS GRID ─────────────────────────────────────────────────────── */
[data-section="products"] { padding-block: var(--sp-24); background: var(--background); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6) var(--sp-5);
}
/* Nth-child editorial variety */
.products__grid .product-card:nth-child(5n+1) { grid-row: span 1; }
.products__grid .product-card:first-child { grid-column: span 2; }

.product-card {
  position: relative; display: flex; flex-direction: column;
  cursor: pointer; background: var(--surface);
}
.product-card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface-2);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badges {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.product-card__quick-view {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--primary); color: var(--background);
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  padding: var(--sp-3); text-align: center;
  transform: translateY(100%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.product-card:hover .product-card__quick-view { transform: translateY(0); }
.product-card__body { padding: var(--sp-4) var(--sp-3) var(--sp-5); flex: 1; }
.product-card__meta {
  font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: var(--sp-2);
}
.product-card__title {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; line-height: 1.2; margin-bottom: var(--sp-2);
}
.product-card__fabric {
  font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--sp-3);
  font-style: italic;
}
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
}
.product-card__price {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500;
}
.price { font-family: var(--font-display); }
.product-card__atc {
  width: 36px; height: 36px; border: 1px solid var(--border-mid);
  border-radius: 50%; background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-ui) var(--ease-standard);
}
.product-card__atc:hover { background: var(--primary); border-color: var(--primary); color: var(--background); }

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  margin-bottom: var(--sp-10); padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
.filter-bar__label {
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted);
}
.filter-bar__sort { margin-left: auto; display: flex; align-items: center; gap: var(--sp-3); }
.sort-select {
  font-family: var(--font-body); font-size: var(--text-sm);
  border: 1px solid var(--border-mid); border-radius: var(--radius);
  padding: .4em 2em .4em .8em; background: transparent; color: var(--text);
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f1520' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75em center;
  cursor: pointer;
}

/* ─── LOOKBOOK (Scrollytelling Pin) ─────────────────────────────────────── */
[data-section="lookbook"] { padding-block: 0; background: var(--primary); }
.lookbook__scene {
  position: relative;
  min-height: 400vh;
}
.lookbook__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
}
.lookbook__image-pane {
  position: relative; overflow: hidden; background: var(--dark-surface);
}
.lookbook__slide {
  position: absolute; inset: 0;
  opacity: 0; clip-path: inset(100% 0 0 0);
  transition: none;
}
/* RESTING-VISIBLE (2026-09-17). The rule above hides every slide. With no
   timeline resolved — a same-origin iframe, an older engine, an owner preview —
   the sequencing animation below is simply never applied, so this is the state
   that survives, and it must show something. Slide one it is. */
.lookbook__slide:first-child { opacity: 1; clip-path: inset(0 0 0 0); }
.lookbook__caption-item:first-child { opacity: 1; transform: none; position: static; }

/* ── Lookbook sequencing on a named ViewTimeline (LOOM v2 Phase 6, 2026-09-17) ─
   Replaces GSAP ScrollTrigger's `onUpdate` index mapping. The PIN was never
   GSAP's: `.lookbook__stage` is `position: sticky` inside a 400vh
   `.lookbook__scene`, so the browser already pinned the stage and
   ScrollTrigger's `pin:` was redundant. All that was actually library-driven was
   "which slide is active" — which is a timeline, and CSS has one.

   NAMED on the scene, not anonymous `view()` on each slide, and deliberately:
   the slides sit inside `.lookbook__stage { overflow: hidden }`, and an
   anonymous `view()` resolves against the nearest scrollport — which that
   overflow makes the stage itself
   (les-overflow-hidden-section-becomes-scroll-container-and-kills-view-timelines).
   A named timeline is defined by the SCENE's progress through the document, so
   the intervening overflow is irrelevant.

   `contain` is the right range for an element taller than the viewport: it spans
   exactly the period the scene fully covers the viewport, which is exactly while
   the stage is pinned.

   SCOPED TO >1100px because that is where the pin exists: `@media (max-width:
   1100px)` below sets `.lookbook__scene { min-height: auto }` and
   `.lookbook__stage { position: relative }`, and hides the image pane entirely.
   Running a `contain` range against a scene shorter than the viewport there
   would sequence captions nobody asked to sequence. Measured 2026-09-17 at
   341px wide: the scene is 220px tall, not 400vh.

   THE `:last-child` RULES ARE NOT DECORATION. The slide count is tenant data and
   CSS cannot count it, so the slices are fixed sixths — which leaves the tail of
   the pinned scroll showing an EMPTY stage whenever a tenant has fewer than six
   items. GSAP did not have this bug: it divided by the real count. Each
   `:nth-child(n):last-child` pair therefore stretches the final slide's range to
   100%, so every count from one to six fills the scene. Caught by reading the
   computed `animation-range` back off the element rather than trusting the
   stylesheet. */
@media (min-width: 1101px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .lookbook__scene {
        view-timeline-name: --wb-lookbook;
        view-timeline-axis: block;
      }

      .lookbook__slide,
      .lookbook__caption-item {
        animation: lb-cycle linear both;
        animation-timeline: --wb-lookbook;
      }

      .lookbook__slides-wrap > :nth-child(1),
      .lookbook__caption-track > :nth-child(1) { animation-range: contain 0% contain 17%; }

      .lookbook__slides-wrap > :nth-child(2),
      .lookbook__caption-track > :nth-child(2) { animation-range: contain 17% contain 34%; }

      .lookbook__slides-wrap > :nth-child(3),
      .lookbook__caption-track > :nth-child(3) { animation-range: contain 34% contain 51%; }

      .lookbook__slides-wrap > :nth-child(4),
      .lookbook__caption-track > :nth-child(4) { animation-range: contain 51% contain 68%; }

      .lookbook__slides-wrap > :nth-child(5),
      .lookbook__caption-track > :nth-child(5) { animation-range: contain 68% contain 85%; }

      .lookbook__slides-wrap > :nth-child(n + 6),
      .lookbook__caption-track > :nth-child(n + 6) { animation-range: contain 85% contain 100%; }

      /* The FIRST item does not fade IN, for the mirror reason. `animation-fill-mode:
         both` clamps to the `from` frame everywhere before the range starts — and the
         sticky stage is already on screen during `entry`, before `contain` begins. A
         from-frame of opacity 0 therefore blanks the stage exactly while the visitor
         is scrolling into it. Measured 2026-09-17 at scrollY 0: all four slides at
         opacity 0, with the rule-level resting-visible declaration overridden by the
         fill. This is the same class as the bug that opened this batch, in a narrower
         window. */
      .lookbook__slides-wrap > :first-child,
      .lookbook__caption-track > :first-child { animation-name: lb-cycle-start; }

      /* One item: visible for the whole scene, start to finish. */
      .lookbook__slides-wrap > :first-child:last-child,
      .lookbook__caption-track > :first-child:last-child { animation-name: lb-cycle-solo; }

      @keyframes lb-cycle-start {
        from { opacity: 1; clip-path: inset(0 0 0 0); }
        86%  { opacity: 1; clip-path: inset(0 0 0 0); }
        to   { opacity: 0; clip-path: inset(0 0 100% 0); }
      }

      @keyframes lb-cycle-solo {
        from { opacity: 1; clip-path: inset(0 0 0 0); }
        to   { opacity: 1; clip-path: inset(0 0 0 0); }
      }
      /* ...and does NOT fade out at the end. `lb-cycle` closes on opacity 0 so one
         slide can hand over to the next; the LAST one has nobody to hand over to,
         and closing it the same way blanks the stage for the final stretch of the
         pin. Measured 2026-09-17 at scrollY 3504 on a four-slide scene: all four
         slides at opacity 0, an empty pinned stage. */
      .lookbook__slides-wrap > :last-child,
      .lookbook__caption-track > :last-child { animation-name: lb-cycle-end; }

      @keyframes lb-cycle-end {
        from { opacity: 0; clip-path: inset(100% 0 0 0); }
        14%  { opacity: 1; clip-path: inset(0 0 0 0); }
        to   { opacity: 1; clip-path: inset(0 0 0 0); }
      }
      /* The last item always runs to the end of the scene, whatever the count. */
      .lookbook__slides-wrap > :nth-child(1):last-child,
      .lookbook__caption-track > :nth-child(1):last-child { animation-range: contain 0% contain 100%; }

      .lookbook__slides-wrap > :nth-child(2):last-child,
      .lookbook__caption-track > :nth-child(2):last-child { animation-range: contain 17% contain 100%; }

      .lookbook__slides-wrap > :nth-child(3):last-child,
      .lookbook__caption-track > :nth-child(3):last-child { animation-range: contain 34% contain 100%; }

      .lookbook__slides-wrap > :nth-child(4):last-child,
      .lookbook__caption-track > :nth-child(4):last-child { animation-range: contain 51% contain 100%; }

      .lookbook__slides-wrap > :nth-child(5):last-child,
      .lookbook__caption-track > :nth-child(5):last-child { animation-range: contain 68% contain 100%; }

      /* Only opacity and clip-path move: nothing reflows. `to` declares no
         transform, so a caption's resting transform and any hover lift survive
         the animation's fill
         (les-filling-view-animation-outranks-hover-and-inline-transform). */
      @keyframes lb-cycle {
        from { opacity: 0; clip-path: inset(100% 0 0 0); }
        14%  { opacity: 1; clip-path: inset(0 0 0 0); }
        86%  { opacity: 1; clip-path: inset(0 0 0 0); }
        to   { opacity: 0; clip-path: inset(0 0 100% 0); }
      }
    }
  }
}
.lookbook__slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.lookbook__content-pane {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-16) clamp(var(--sp-8), 6vw, var(--sp-20));
  background: var(--primary);
}
.lookbook__header {
  margin-bottom: var(--sp-12);
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: var(--sp-8);
}
.lookbook__header .eyebrow { color: var(--dark-accent); }
.lookbook__header h2 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; color: var(--dark-text); line-height: 1.05;
}
.lookbook__caption {
  position: relative; min-height: 120px;
}
.lookbook__caption-item {
  position: absolute; top: 0; left: 0;
  opacity: 0; transform: translateY(1rem);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
.lookbook__caption-item.is-active {
  opacity: 1; transform: none; position: static;
}
.lookbook__caption-text {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-xl); font-weight: 300; color: var(--dark-text);
  line-height: 1.4; margin-bottom: var(--sp-4);
}
.lookbook__caption-link {
  font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase;
  color: var(--dark-accent); display: inline-flex; align-items: center; gap: var(--sp-2);
}
.lookbook__caption-link::after { content: '→'; }
.lookbook__dots {
  display: flex; gap: var(--sp-3); margin-top: var(--sp-10);
}
.lookbook__dot {
  width: 28px; height: 1px; background: rgba(240,237,230,.25);
  cursor: pointer; transition: background var(--dur-ui) var(--ease-standard);
}
.lookbook__dot.is-active { background: var(--dark-accent); }
.lookbook__index {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--dark-muted); letter-spacing: .1em; margin-top: var(--sp-8);
}

/* ─── SEASONAL COLLECTION ─────────────────────────────────────────────── */
[data-section="seasonal_collection"] {
  padding-block: 0; background: var(--surface);
  position: relative; overflow: hidden; min-height: 70vh;
  display: flex; align-items: center;
}
.seasonal__bg {
  position: absolute; inset: 0; z-index: 0;
}
.seasonal__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center;
}
.seasonal__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(15,21,32,.78) 0%, rgba(15,21,32,.28) 100%);
}
.seasonal__content {
  position: relative; z-index: 2;
  padding-block: var(--sp-24);
  max-width: 56ch;
}
.seasonal__eyebrow { color: var(--dark-accent); }
.seasonal__title {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; color: var(--dark-text); line-height: 1.05;
  margin-bottom: var(--sp-6);
}
.seasonal__subtitle { color: var(--dark-muted); font-size: var(--text-lg); margin-bottom: var(--sp-10); }

/* ─── CATEGORY NAVIGATION (DB-backed) ──────────────────────────────────── */
[data-section="category_navigation"] { padding-block: var(--sp-24); background: var(--background); }
.cat-nav__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3);
}
.cat-nav-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3/4; cursor: pointer; background: var(--surface-2);
}
.cat-nav-item:first-child { grid-column: span 2; aspect-ratio: 6/4; }
.cat-nav-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.cat-nav-item:hover img { transform: scale(1.06); }
.cat-nav-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,21,32,.65) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--sp-6);
}
.cat-nav-item__name {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  color: #fff; line-height: 1.1; margin-bottom: var(--sp-2);
}
.cat-nav-item__cta {
  font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.cat-nav-item__link { position: absolute; inset: 0; }

/* ─── TESTIMONIALS ──────────────────────────────────────────────────────── */
[data-section="testimonials"] { background: var(--primary); padding-block: var(--sp-24); }
.testimonials__header h2 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; color: var(--dark-text); line-height: 1.05;
  margin-bottom: var(--sp-12);
}
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
}
.testimonial-card {
  padding: var(--sp-8); border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: var(--sp-6);
  transition: border-color var(--dur-ui) var(--ease-standard);
}
.testimonial-card:hover { border-color: var(--dark-accent); }
.testimonial-card__quote-mark {
  font-family: var(--font-display); font-size: 4rem;
  line-height: .6; color: var(--dark-accent); font-style: italic;
}
.testimonial-card__content {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); color: var(--dark-text); font-weight: 300;
  line-height: 1.55; flex: 1;
}
.testimonial-card__author {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-top: var(--sp-4); border-top: 1px solid var(--dark-border);
}
.testimonial-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-card__name {
  font-size: var(--text-sm); font-weight: 600; color: var(--dark-text);
}
.testimonial-card__role { font-size: var(--text-xs); color: var(--dark-muted); }

/* ─── FAQS ──────────────────────────────────────────────────────────────── */
[data-section="faqs"] { padding-block: var(--sp-20); background: var(--surface); }
[data-section="faqs"] h2 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; margin-bottom: var(--sp-12); line-height: 1.1;
}
.faq-list { max-width: 780px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item__trigger {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-6) 0; gap: var(--sp-4); cursor: pointer;
}
.faq-item__question {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--text); line-height: 1.3;
}
.faq-item__icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--border-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: transform var(--dur-ui) var(--ease-standard),
    background var(--dur-ui), border-color var(--dur-ui);
}
.faq-item.is-open .faq-item__icon {
  background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg);
}
.faq-item__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-reveal) var(--ease-out);
}
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }
.faq-item__body-inner { overflow: hidden; }
.faq-item__answer {
  padding-bottom: var(--sp-6); color: var(--text-muted);
  font-size: var(--text-base); line-height: 1.75;
}

/* ─── POLICIES ──────────────────────────────────────────────────────────── */
[data-section="policies"] { padding-block: var(--sp-20); background: var(--background); }
[data-section="policies"] h2 {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 300; margin-bottom: var(--sp-10); text-align: center; line-height: 1.1;
}
.policies__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8);
}
.policy-card { text-align: center; }
.policy-card__icon {
  font-size: 1.8rem; margin-bottom: var(--sp-4); display: block; color: var(--accent);
}
.policy-card__title {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; margin-bottom: var(--sp-3); line-height: 1.2;
}
.policy-card__content { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; }

/* ─── CONTACT ───────────────────────────────────────────────────────────── */
[data-section="contact"] { padding-block: var(--sp-24); background: var(--primary); }
.contact__layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center;
}
.contact__heading {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; color: var(--dark-text); line-height: 1.05; margin-bottom: var(--sp-8);
}
.contact__details { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact__detail {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: var(--text-base); color: var(--dark-muted);
}
.contact__detail-icon { color: var(--dark-accent); font-size: 1.1rem; flex-shrink: 0; }
.contact__detail a { color: var(--dark-muted); }
.contact__detail a:hover { color: var(--dark-text); }

/* ─── PRODUCT DETAIL ────────────────────────────────────────────────────── */
[data-section="product_detail"] { padding-top: calc(var(--header-h) + var(--sp-12)); padding-bottom: var(--sp-20); }
.product-detail__layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start;
}
.product-gallery { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-gallery__main {
  aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); position: relative;
}
.product-gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--dur-ui) var(--ease-standard);
}
.product-gallery__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2);
}
.product-gallery__thumb {
  aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-standard);
}
.product-gallery__thumb.is-active { border-color: var(--accent); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: var(--sp-6); }
.product-info__breadcrumb {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.product-info__breadcrumb span { color: var(--text-faint); }
.product-info__badges { display: flex; gap: var(--sp-2); }
.product-info__name {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; line-height: 1.05; letter-spacing: -.01em;
}
.product-info__fabric {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-base); color: var(--text-muted);
  padding: var(--sp-3) var(--sp-5); background: var(--surface);
  border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
}
.product-info__price {
  display: flex; align-items: baseline; gap: var(--sp-4);
}
.price--current {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500;
}
.price--original { font-size: var(--text-lg); color: var(--text-muted); text-decoration: line-through; }

.product-info__variants { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-info__variant-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .06em;
}
.variant-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; transition: border-color var(--dur-ui);
}
.color-swatch.is-active { border-color: var(--text); outline: 2px solid var(--text); outline-offset: 2px; }

/* Size guide trigger */
.size-guide-trigger {
  font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); text-decoration: underline; cursor: pointer;
  background: none; border: none; font-family: var(--font-body);
}

/* Size guide modal */
.size-guide-modal {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(15,21,32,.6); align-items: center; justify-content: center;
  padding: var(--sp-6);
}
.size-guide-modal.open { display: flex; }
.size-guide-modal__inner {
  background: var(--background); border-radius: var(--radius-md);
  padding: var(--sp-10); max-width: 680px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.size-guide-modal__close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--text-muted);
}
.size-guide-modal h3 {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 300; margin-bottom: var(--sp-6);
}
.size-guide-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.size-guide-table th, .size-guide-table td {
  padding: var(--sp-3) var(--sp-4); text-align: left;
  border-bottom: 1px solid var(--border);
}
.size-guide-table th {
  font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.size-guide-section { margin-bottom: var(--sp-8); }
[data-section="size_guide"] { display: none; } /* hidden — triggered from product detail */

.product-info__atc {
  display: flex; gap: var(--sp-4); align-items: stretch;
}
.qty-control {
  display: flex; align-items: center; border: 1px solid var(--border-mid); border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 44px; height: 52px; background: none; border: none;
  font-size: 1.25rem; color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-ui);
}
.qty-control button:hover { background: var(--surface); }
.qty-control input {
  width: 52px; text-align: center; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); background: transparent;
  font-family: var(--font-body); font-size: var(--text-base); color: var(--text);
}
.qty-control input:focus { outline: none; background: var(--surface); }

.product-info__trust {
  display: flex; gap: var(--sp-6); flex-wrap: wrap;
  padding-top: var(--sp-6); border-top: 1px solid var(--border);
}
.trust-item {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.trust-item__icon { color: var(--accent); }

/* Care instructions accordion */
.care-accordion { border-top: 1px solid var(--border); }
.care-accordion__trigger {
  width: 100%; background: none; border: none; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) 0; cursor: pointer;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  font-family: var(--font-body); color: var(--text);
}
.care-accordion__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-reveal) var(--ease-out);
}
.care-accordion.is-open .care-accordion__body { grid-template-rows: 1fr; }
.care-accordion__inner { overflow: hidden; }
.care-accordion__content {
  padding: var(--sp-5) 0 var(--sp-6);
  color: var(--text-muted); font-size: var(--text-sm); line-height: 1.75;
}

/* ─── REVIEWS ───────────────────────────────────────────────────────────── */
[data-section="reviews"] { padding-block: var(--sp-16); background: var(--surface); }
[data-section="reviews"] h2 {
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300;
  margin-bottom: var(--sp-6); line-height: 1.1;
}

/* ─── CART ──────────────────────────────────────────────────────────────── */
[data-section="cart"] { padding-top: calc(var(--header-h) + var(--sp-12)); padding-bottom: var(--sp-20); }
[data-section="cart"] h2 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; margin-bottom: var(--sp-10); line-height: 1.1;
}
.cart__empty {
  text-align: center; padding-block: var(--sp-24);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-6);
}
.cart__empty p {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  color: var(--text-muted);
}
.cart__layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-12); align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto auto auto;
  gap: var(--sp-5); align-items: center;
  padding-block: var(--sp-6); border-bottom: 1px solid var(--border);
}
.cart-item__img-wrap { border-radius: var(--radius); overflow: hidden; }
.cart-item__img-wrap img { width: 100px; height: 130px; object-fit: cover; }
.cart-item__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; }
.cart-item__original { color: var(--text-muted); font-size: var(--text-sm); }
.cart-item__price { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.cart-item__qty { display: flex; align-items: center; gap: var(--sp-3); }
.qty-btn {
  width: 32px; height: 32px; border: 1px solid var(--border-mid); border-radius: 50%;
  background: none; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-ui);
}
.qty-btn:hover { background: var(--surface); }
.qty-val { font-size: var(--text-base); min-width: 24px; text-align: center; }
.cart-item__line-total { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.cart-item__remove {
  background: none; border: none; color: var(--text-faint);
  padding: var(--sp-2); cursor: pointer; transition: color var(--dur-ui);
}
.cart-item__remove:hover { color: var(--accent); }
.cart__summary {
  background: var(--surface); border-radius: var(--radius-md);
  padding: var(--sp-8); position: sticky; top: calc(var(--header-h) + var(--sp-6));
}
.cart__summary h3 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border);
}
.summary-line {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: var(--sp-3); font-size: var(--text-sm);
}
.summary-line--total { font-weight: 600; font-size: var(--text-base); }
.summary-line__value { font-family: var(--font-display); font-weight: 500; }

/* ─── CHECKOUT ──────────────────────────────────────────────────────────── */
[data-section="checkout"] { padding-top: calc(var(--header-h) + var(--sp-12)); padding-bottom: var(--sp-24); }
[data-section="checkout"] h2 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 300; margin-bottom: var(--sp-10); line-height: 1.1;
}
.checkout__layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--sp-12); align-items: start; }
.checkout__steps {
  display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-8); border-bottom: 1px solid var(--border);
}
.checkout__step {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted);
}
.checkout__step.is-active { color: var(--text); }
.checkout__step.is-active .checkout__step-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.checkout__step-num {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 600;
}
.checkout__step-sep {
  flex: 1; height: 1px; background: var(--border);
}
.checkout__form-section { margin-bottom: var(--sp-8); }
.checkout__form-section h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400;
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-field { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .75em 1em; border: 1px solid var(--border-mid);
  border-radius: var(--radius); background: transparent; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--text);
  transition: border-color var(--dur-ui);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { resize: vertical; }

.checkout__cart-summary {
  background: var(--surface); border-radius: var(--radius-md); padding: var(--sp-8);
  position: sticky; top: calc(var(--header-h) + var(--sp-6));
}
.checkout__cart-summary h3 {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border);
}
.checkout__divider { height: 1px; background: var(--border); margin-block: var(--sp-5); }
.checkout-summary-item {
  display: flex; gap: var(--sp-3); align-items: center; padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
}
.checkout-summary-item img { width: 56px; height: 72px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.checkout-summary-item__info { flex: 1; }
.checkout-summary-item__title { font-size: var(--text-sm); font-weight: 500; display: block; }
.checkout-summary-item__qty { font-size: var(--text-xs); color: var(--text-muted); display: block; }
.checkout-summary-item__price { font-family: var(--font-display); font-weight: 500; white-space: nowrap; }

.trust-badge { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-xs); color: var(--text-muted); }
.trust-badge__icon { color: var(--accent); }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--primary); color: var(--dark-text);
  padding-block: var(--sp-20) var(--sp-10);
  position: relative; overflow: hidden;
}
[data-section="footer"]::before {
  content: 'VELOURS';
  position: absolute; bottom: -1rem; right: -1rem;
  font-family: var(--font-display); font-size: clamp(6rem, 15vw, 18rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: rgba(240,237,230,.03); pointer-events: none; user-select: none;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12); margin-bottom: var(--sp-12);
}
.footer__brand img { height: 36px; width: auto; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); opacity: .8; }
.footer__brand p { color: var(--dark-muted); font-size: var(--text-sm); line-height: 1.7; max-width: 30ch; }
.footer__col h4 {
  font-size: var(--text-xs); letter-spacing: .2em; text-transform: uppercase;
  color: var(--dark-muted); margin-bottom: var(--sp-5);
}
.footer__col a {
  display: block; color: var(--dark-muted); font-size: var(--text-sm);
  margin-bottom: var(--sp-3); transition: color var(--dur-ui);
}
.footer__col a:hover { color: var(--dark-text); }
.footer__newsletter { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.footer__newsletter input {
  flex: 1; padding: .65em 1em; background: rgba(240,237,230,.08);
  border: 1px solid var(--dark-border); border-radius: var(--radius);
  color: var(--dark-text); font-family: var(--font-body); font-size: var(--text-sm);
}
.footer__newsletter input::placeholder { color: var(--dark-muted); }
.footer__newsletter input:focus { outline: none; border-color: var(--dark-accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-8); border-top: 1px solid var(--dark-border);
  font-size: var(--text-xs); color: var(--dark-muted); letter-spacing: .06em;
}
.footer__bottom-brand { color: var(--dark-accent); letter-spacing: .18em; text-transform: uppercase; }

/* ─── BACK TO TOP ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: var(--sp-8); right: var(--sp-8);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--background); border: none;
  font-size: 1.1rem; z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui), transform var(--dur-ui);
  transform: translateY(1rem);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--primary-light); }

/* ─── Custom Cursor ─────────────────────────────────────────────────────── */
#custom-cursor {
  position: fixed; width: 24px; height: 24px;
  border: 1.5px solid var(--primary); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-ui), height var(--dur-ui), border-color var(--dur-ui),
              background var(--dur-ui), opacity var(--dur-ui);
  opacity: 0;
}
#custom-cursor.is-visible { opacity: 1; }
#custom-cursor.is-hovering {
  width: 48px; height: 48px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border-color: var(--accent);
}
@media (pointer: coarse) { #custom-cursor { display: none !important; } }

/* ─── View Transitions ──────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; } }
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
::view-transition-new(root)  { animation: vt-fade-in  var(--dur-reveal) var(--ease-out); }
::view-transition-old(root)  { animation: vt-fade-out var(--dur-ui) var(--ease-standard); }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root), ::view-transition-old(root) { animation: none; }
}

/* ─── Scrollbar + Selection ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::selection { background: color-mix(in oklab, var(--accent) 25%, transparent); color: var(--text); }

/* ─── Wire Loading ──────────────────────────────────────────────────────── */
[wire\:loading], [wire\:loading\.delay], [wire\:loading\.inline-block], [wire\:loading\.inline] { display: none; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__split { grid-template-columns: 1fr; min-height: auto; }
  .hero__image-col { min-height: 55vw; }
  .hero__content-col { padding: var(--sp-12) var(--sp-8); }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .products__grid .product-card:first-child { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .lookbook__stage { grid-template-columns: 1fr; }
  .lookbook__image-pane { display: none; }
  .lookbook__content-pane { padding: var(--sp-16) var(--sp-8); }
  .lookbook__scene { min-height: auto; }
  .lookbook__stage { position: relative; height: auto; }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: var(--sp-5);
    padding: var(--sp-6); background: var(--background);
    border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(15,21,32,.08);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-nav__grid { grid-template-columns: 1fr 1fr; }
  .cat-nav-item:first-child { grid-column: span 2; }
  .product-detail__layout { grid-template-columns: 1fr; }
  .cart__layout { grid-template-columns: 1fr; }
  .checkout__layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__qty, .cart-item__line-total, .cart-item__remove { grid-column: 2; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .policies__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .contact__layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .seasonal__content { padding-block: var(--sp-16); }
  .products__grid .product-card:first-child { grid-column: span 1; }
  .hero__split { grid-template-columns: 1fr; }
  .hero__content-col { padding: var(--sp-10) var(--sp-5); }
  .hero__image-col { min-height: 50vw; }
  .lookbook__scene { min-height: auto; }
  .cat-nav__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .categories__grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__meta { flex-wrap: wrap; gap: var(--sp-4); }
}

/* ─── Reduced Motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}


/* __wobooks-defensive__ — appended by HtmlZipThemeConverterV2.
   Hide images whose src resolves to empty (e.g. data-src-field bindings
   for Items / categories the owner hasn't uploaded a photo for yet).
   Without this rule, the browser shows the alt-text fallback —
   that's the bug behind the literal word 'image' showing in avatar
   slots and About images on the production Braise theme. */
img[src=""], img:not([src]) { display: none !important; }

/* Palette roles (BrandColourRoles, 2026-10-06): brand-coloured text on a band this theme draws dark keeps a lightness floor; text on a brand fill follows the fill. */
[data-section="contact"] { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
[data-section="lookbook"] { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* Palette roles, item 53 (BrandColourRoles, 2026-10-06): text on a band filled with a palette brand colour follows the fill; brand-coloured text on a band this theme draws dark keeps a lightness floor. */
:where([data-section="footer"]) .footer__col h4 { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where([data-section="footer"]) .footer__col a { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
:where([data-section="footer"]) .footer__bottom { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }
[data-section="footer"] { color: oklch(from var(--primary) clamp(0, (0.57 - l) * 1000, 1) 0 0); }

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:root {
  --accent: #b94f64; /* was #c0556a */
}

/* Own contrast (Weave item 54, theme:palette-stress --heal): with no palette, these read 4.5:1 on the theme's own
   backgrounds; each was proven by rendering the page. The palette block (html:root) still overrides the tokens. */
:where([data-section="faqs"]) .faq-item__answer { color: oklch(from var(--text-muted) min(l, 0.552) c h / calc(min(1, alpha + 0.06))); }
:where([data-section="policies"]) .policy-card__content { color: oklch(from var(--text-muted) min(l, 0.562) c h / calc(min(1, alpha + 0.06))); }
