/* =============================================================================
   Noir Atelier Pro — Dark-Luxe Jewellery Store (Pro Tier)
   WoBooks HTML Template — ecommerce app type
   2026 Design System: CSS scroll-driven baseline + GSAP Pro cinematic
   ============================================================================= */

/* ── 0. Motion Tokens (MANDATORY) ────────────────────────────────────────── */
:root {
  --dur-micro:  80ms;
  --dur-ui:     240ms;
  --dur-reveal: 540ms;
  --dur-slow:   1100ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.0, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── 1. Design Tokens — Dark-Luxe Direction ───────────────────────────────── */
:root {
  --background:  #0b0b0d;
  --surface:     #111115;
  --surface-2:   #18181e;
  --surface-3:   #1e1e26;
  --border:      rgba(197, 164, 124, 0.13);
  --border-mid:  rgba(197, 164, 124, 0.26);

  --text:        #ece7df;
  --text-muted:  rgba(236, 231, 223, 0.55);
  --text-faint:  rgba(236, 231, 223, 0.30);

  --accent:      #c5a47c;
  --accent-dim:  color-mix(in oklab, var(--accent) 55%, var(--background));
  --accent-glow: color-mix(in oklab, var(--accent) 18%, transparent);

  --danger:  #e57373;
  --success: #81c784;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type */
  --text-xs:   clamp(0.65rem,  0.6rem  + 0.25vw, 0.75rem);
  --text-sm:   clamp(0.8125rem,0.78rem + 0.2vw,  0.9375rem);
  --text-base: clamp(0.9375rem,0.9rem  + 0.2vw,  1.0625rem);
  --text-md:   clamp(1.0625rem,1rem    + 0.3vw,  1.25rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw,  1.5rem);
  --text-xl:   clamp(1.5rem,   1.3rem  + 1vw,    2.25rem);
  --text-2xl:  clamp(2rem,     1.6rem  + 2vw,    3.25rem);
  --text-3xl:  clamp(2.5rem,   1.8rem  + 3.5vw,  5rem);
  --text-4xl:  clamp(3rem,     2rem    + 5vw,    7rem);

  /* 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-16: 4rem;  --sp-20: 5rem;  --sp-24: 6rem;
  --sp-32: 8rem;

  --container: 1280px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,.45);
  --shadow-md:   0 4px 16px rgba(0,0,0,.55);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.6);
  --shadow-xl:   0 24px 80px rgba(0,0,0,.7);
  --shadow-glow: 0 0 32px var(--accent-glow);

  --header-h: 72px;
}

/* ── 2. Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter:wght@300;400;500;600&display=swap');

/* ── 3. 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);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ── 4. Layout Utils ──────────────────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow {
  width: min(var(--container-narrow), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
[data-list] { display: contents; }

.skip-link {
  position: absolute; top: -100%; left: var(--sp-4);
  background: var(--accent); color: var(--background);
  padding: .5rem 1rem; font-weight: 600;
  z-index: 10000; border-radius: var(--radius);
}
.skip-link:focus { top: var(--sp-4); }

.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;
}

/* ── 5. Typography helpers ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.sep {
  display: block; width: 2.5rem; height: 1px;
  background: var(--accent); margin-block: var(--sp-4);
}

/* ── 6. Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .8125rem 1.75rem;
  font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius);
  transition:
    background var(--dur-ui) var(--ease-out),
    color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out),
    transform var(--dur-micro) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--background); }
.btn--primary:hover, .btn--primary:focus-visible {
  background: color-mix(in oklab, var(--accent) 85%, #fff);
  box-shadow: var(--shadow-glow);
}
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  border-color: var(--accent); color: var(--accent);
}
.btn--outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--accent); color: var(--background);
}
.btn--sm { padding: .5625rem 1.25rem; font-size: var(--text-xs); }
.btn--lg { padding: 1.0625rem 2.25rem; font-size: var(--text-md); }

/* Chip / filter pill */
.chip {
  display: inline-flex; align-items: center;
  padding: .3125rem .875rem;
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color var(--dur-ui) var(--ease-out),
    color var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out);
}
.chip:hover, .chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── 7. CSS Scroll-Driven Reveals ─────────────────────────────────────────── */
.reveal { opacity: 1; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 38%;
      animation-delay: calc(var(--i, 0) * 90ms);
    }
    .reveal--up    { animation-name: reveal-up; }
    .reveal--left  { animation-name: reveal-left; }
    .reveal--right { animation-name: reveal-right; }
  }
}
@keyframes reveal-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-up    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; } }
@keyframes reveal-left  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; } }
@keyframes reveal-right { from { opacity: 0; transform: translateX(24px); }  to { opacity: 1; } }

/* ── 8. Kinetic Typography ────────────────────────────────────────────────── */
/* kinetic-rise */
.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); }
}
/* kinetic-weight */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .kinetic-weight {
      animation: kt-weight linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
  }
}
@keyframes kt-weight {
  from { font-variation-settings: "wght" 300; letter-spacing: 0.01em; }
  to   { font-variation-settings: "wght" 820; letter-spacing: -0.02em; }
}
/* kinetic-shimmer */
@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) 85%, 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%; } }
.kt-line { overflow: hidden; }
.kt-word, .kt-char { display: inline-block; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .kt-word, .kt-char { transform: none !important; opacity: 1 !important; }
}

/* ── 9. Hover-FX ──────────────────────────────────────────────────────────── */
.fx-card { position: relative; overflow: hidden; border-radius: var(--radius); }
.fx-card__media { overflow: hidden; }
.fx-card__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-reveal) var(--ease-out);
}
.fx-card:hover .fx-card__media img,
.fx-card:focus-within .fx-card__media img { transform: scale(1.06); }
.fx-card__body { transition: transform var(--dur-ui) var(--ease-out); }
.fx-card:hover .fx-card__body,
.fx-card:focus-within .fx-card__body { transform: translateY(-4px); }
.fx-card__rule {
  display: block; height: 1px; width: 0;
  background: var(--accent);
  transition: width var(--dur-ui) var(--ease-out);
}
.fx-card:hover .fx-card__rule,
.fx-card:focus-within .fx-card__rule { width: 2.5rem; }
.fx-card--lift {
  transition: box-shadow var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.fx-card--lift:hover, .fx-card--lift:focus-within {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}
.fx-spotlight { position: relative; isolation: isolate; }
.fx-spotlight::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-standard);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%);
}
.fx-spotlight:hover::before, .fx-spotlight:focus-within::before { opacity: 1; }
.fx-link { position: relative; }
.fx-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.fx-link:hover::after, .fx-link:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .fx-card__media img, .fx-card__body, .fx-card__rule,
  .fx-card--lift, .fx-link::after { transition: none; }
}

/* ── 10. Page Transitions ─────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: wb-vt-out var(--dur-ui) var(--ease-standard) both; }
  ::view-transition-new(root) { animation: wb-vt-in var(--dur-reveal) var(--ease-out) both; }
  ::view-transition-group(vt-product-hero) { animation-duration: var(--dur-reveal); }
}
@keyframes wb-vt-out { to   { opacity: 0; } }
@keyframes wb-vt-in  { from { opacity: 0; transform: translateY(8px); } }
.page-intro {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--background);
}
.page-intro__mark {
  width: clamp(64px, 12vw, 120px); height: 2px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 70%, var(--text));
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .page-intro__mark { animation: pi-grow var(--dur-slow) var(--ease-out) both; }
  .page-intro--out  { animation: pi-out var(--dur-reveal) var(--ease-standard) both; }
}
@keyframes pi-grow { from { transform: scaleX(0); opacity: .3; } to { transform: scaleX(1); opacity: 1; } }
@keyframes pi-out  { to   { opacity: 0; transform: translateY(-8px); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .page-intro { display: none; } }

/* ── 11. Cinematic CSS (Ken Burns + depth — Pro) ─────────────────────────── */
[data-cinematic-scene] {
  position: relative; overflow: hidden;
  perspective: 1000px; transform-style: preserve-3d;
}
[data-cinematic-scene] [data-depth] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; will-change: transform; backface-visibility: hidden;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0%, 0%); }
  50%  { transform: scale(1.12) translate(-2%, -1%); }
  100% { transform: scale(1.0) translate(0%, 0%); }
}
.ken-burns { animation: kenBurns 22s ease-in-out infinite; will-change: transform; }
.edge-mask {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) {
  .ken-burns, [data-cinematic-scene] [data-depth] { animation: none !important; transform: none !important; }
}

/* ── 12. Scroll Progress ──────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: 2px; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
  transition: transform var(--dur-micro) linear;
}

/* ── 13. Custom Cursor (Pro signature) ────────────────────────────────────── */
#custom-cursor {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%) scale(0.7);
  transition:
    opacity var(--dur-ui) var(--ease-standard),
    transform var(--dur-ui) var(--ease-spring),
    border-color var(--dur-ui) var(--ease-standard),
    background var(--dur-ui) var(--ease-standard);
  opacity: 0; mix-blend-mode: screen;
}
#custom-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#custom-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.9);
  background: var(--accent-glow); border-color: transparent;
}
#custom-cursor.is-clicking { transform: translate(-50%, -50%) scale(0.6); }
@media (pointer: coarse) { #custom-cursor { display: none; } }

/* ── 14. Header ───────────────────────────────────────────────────────────── */
[data-section="header"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur-ui) var(--ease-standard),
    border-color var(--dur-ui) var(--ease-standard),
    backdrop-filter var(--dur-ui) var(--ease-standard);
}
[data-section="header"].is-scrolled {
  background: color-mix(in oklab, var(--background) 82%, transparent);
  border-color: var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
[data-section="header"] .container {
  height: 100%; display: flex; align-items: center;
}
[data-section="header"] nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: var(--sp-8);
}
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; object-fit: contain; }
.nav__links {
  display: flex; align-items: center; gap: var(--sp-8);
}
.nav__links a {
  font-size: var(--text-sm); font-weight: 400; letter-spacing: 0.04em;
  color: var(--text-muted); position: relative;
  transition: color var(--dur-ui) var(--ease-standard);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
/* Nav cart badge */
.nav__cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.nav__cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav__cart {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  background: var(--accent); color: var(--background);
  font-size: 10px; font-weight: 600; border-radius: 999px;
  display: grid; place-items: center; padding-inline: 3px;
}
/* Mobile toggle */
.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: var(--sp-2); border: 1px solid var(--border); border-radius: var(--radius);
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 20px; height: 1px; background: currentColor;
  transition: transform var(--dur-ui) var(--ease-standard), opacity var(--dur-ui) var(--ease-standard);
  transform-origin: center;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── 15. Mobile Nav Drawer ────────────────────────────────────────────────── */
.nav__mobile {
  position: fixed; inset: 0; z-index: 800;
  display: flex; flex-direction: column;
  background: var(--background);
  padding: calc(var(--header-h) + var(--sp-8)) var(--gutter) var(--sp-8);
  transform: translateX(100%);
  transition: transform var(--dur-reveal) var(--ease-out);
}
.nav__mobile.is-open { transform: none; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 300;
  padding-block: var(--sp-3); border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--dur-ui) var(--ease-standard);
}
.nav__mobile a:hover { color: var(--text); }

/* ── 16. Section Spacing ──────────────────────────────────────────────────── */
section { padding-block: var(--sp-24); }
section + section { padding-top: 0; }
section:nth-child(even):not([data-section="hero"]):not([data-section="footer"]) {
  background: var(--surface);
}

/* ── 17. Section Header util ──────────────────────────────────────────────── */
.section-header { margin-bottom: var(--sp-12); }
.section-header--center { text-align: center; }
.section-header h2 {
  font-size: var(--text-2xl); font-weight: 300; letter-spacing: -0.02em;
}
.section-header .eyebrow { margin-bottom: var(--sp-3); }

/* ── 18. Hero ─────────────────────────────────────────────────────────────── */
[data-section="hero"] {
  position: relative; min-height: 100dvh;
  display: grid; place-items: center;
  padding-block: 0; overflow: hidden; background: var(--background);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.26; filter: grayscale(25%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 60% 50%,
    color-mix(in oklab, var(--background) 40%, transparent), var(--background) 80%);
}
.hero__content {
  position: relative; z-index: 1;
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding-block: var(--sp-32);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-6);
  max-width: 820px; text-align: center;
}
.hero__badge {
  font-size: var(--text-xs); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.hero__title-prefix {
  display: block; font-family: var(--font-display);
  font-style: italic; font-size: var(--text-xl);
  font-weight: 300; color: var(--text-muted); letter-spacing: 0;
}
.hero__title {
  font-size: var(--text-4xl); font-weight: 400;
  font-variation-settings: "opsz" 144; letter-spacing: -0.03em;
  line-height: 1.0; color: var(--text);
}
.hero__subtitle {
  font-size: var(--text-lg); color: var(--text-muted);
  font-weight: 300; max-width: 540px; line-height: 1.55;
}
.hero__cta-group {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-4); flex-wrap: wrap; padding-top: var(--sp-4);
}
/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
  .hero__badge        { animation: hero-fade 0.8s var(--ease-out) 0.05s both; }
  .hero__title-prefix { animation: hero-fade 0.8s var(--ease-out) 0.15s both; }
  .hero__title        { animation: hero-title-rise 1.2s var(--ease-out) 0.2s both; }
  .hero__subtitle     { animation: hero-fade 0.9s var(--ease-out) 0.55s both; }
  .hero__cta-group    { animation: hero-fade 0.9s var(--ease-out) 0.75s both; }
}
@keyframes hero-title-rise {
  from { opacity: 0; transform: translateY(0.4em); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1;              clip-path: inset(0 0 -5% 0); }
}
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(12px); } to { opacity: 1; }
}
/* Cursor spotlight overlay */
.hero__spotlight {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in oklab, var(--accent) 9%, transparent), transparent 55%);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease-standard);
}
[data-section="hero"]:hover .hero__spotlight { opacity: 1; }
/* Decorative deco line */
.hero__deco {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}
/* Scroll cue */
.hero__scroll-cue {
  position: absolute; bottom: var(--sp-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: var(--text-faint); font-size: var(--text-xs);
  letter-spacing: 0.12em; text-transform: uppercase; z-index: 2;
}
.hero__scroll-cue::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s var(--ease-standard) infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue::after { animation: none; } }

/* ── 19. Categories ───────────────────────────────────────────────────────── */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.category-card {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  background: var(--surface-2); cursor: pointer;
}
.category-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5; filter: grayscale(20%);
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-reveal) var(--ease-out);
}
.category-card:hover .category-card__img,
.category-card:focus-within .category-card__img { transform: scale(1.08); opacity: 0.68; }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%);
}
.category-card__body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: var(--sp-6);
  transition: transform var(--dur-ui) var(--ease-out);
}
.category-card:hover .category-card__body { transform: translateY(-6px); }
.category-card__name {
  display: block; font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 300;
  font-variation-settings: "opsz" 20; color: var(--text); margin-bottom: var(--sp-2);
}
.category-card__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  opacity: 0; transform: translateX(-8px);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.category-card__link::after { content: ' →'; }
.category-card:hover .category-card__link,
.category-card:focus-within .category-card__link { opacity: 1; transform: none; }

/* ── 20. Products Grid ────────────────────────────────────────────────────── */
[data-section="products"] .section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-8); flex-wrap: wrap;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}

/* Product Card */
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--dur-ui) var(--ease-out);
}
.product-card:hover, .product-card:focus-within { border-color: var(--border-mid); }
.product-card .fx-card__media {
  position: relative; aspect-ratio: 4/5; background: var(--surface-2);
}
.product-card .fx-card__media img { width: 100%; height: 100%; }
.product-card__badge {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; background: var(--accent); color: var(--background);
  border-radius: var(--radius);
}
/* Quick-view overlay */
.product-card__quick-view {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); border-top: 1px solid var(--border);
  transform: translateY(100%); transition: transform var(--dur-ui) var(--ease-out);
}
.product-card:hover .product-card__quick-view,
.product-card:focus-within .product-card__quick-view { transform: none; }
.product-card .fx-card__body {
  padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; gap: var(--sp-2);
}
.product-card__title {
  font-family: var(--font-display); font-size: var(--text-md);
  font-weight: 300; letter-spacing: -0.01em; color: var(--text); line-height: 1.3;
}
.product-card__meta {
  font-size: var(--text-xs); color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase;
}
.product-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--sp-3);
}
.product-card__price, .price {
  font-family: var(--font-mono); font-size: var(--text-md); font-weight: 400; color: var(--accent);
}
.product-card__price del, .price del {
  font-size: var(--text-sm); color: var(--text-faint); text-decoration: line-through; margin-right: var(--sp-2);
}
.product-card__atc {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid var(--border-mid); border-radius: var(--radius);
  color: var(--text-muted);
  transition: border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), background var(--dur-ui) var(--ease-out);
}
.product-card__atc:hover {
  border-color: var(--accent); color: var(--background); background: var(--accent);
}
.fx-card__rule { margin-top: var(--sp-3); }

/* ── 21. Filter Bar ───────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding-block: var(--sp-6); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-8);
}
.filter-bar__label {
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint);
  margin-right: var(--sp-2);
}
.filter-bar__sort { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.sort-select {
  background: transparent; color: var(--text-muted); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .375rem .75rem;
  font-size: var(--text-xs); cursor: pointer; -webkit-appearance: none;
}
.sort-select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
/* The open list has no backdrop to show through: give it the palette fill that pairs with --text. */
.sort-select option { background: var(--background); color: var(--text); }

/* ── 22. Testimonials ─────────────────────────────────────────────────────── */
[data-section="testimonials"] { background: var(--surface-2); }
[data-section="testimonials"] h2 {
  text-align: center; font-size: var(--text-2xl); font-weight: 300; margin-bottom: var(--sp-12);
}
.testimonials__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-6);
}
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-5);
  transition: border-color var(--dur-ui) var(--ease-out);
}
.testimonial-card:hover { border-color: var(--border-mid); }
.testimonial-card__stars { display: flex; gap: 3px; color: var(--accent); font-size: var(--text-sm); }
.testimonial-card__content {
  font-size: var(--text-md); font-style: italic; color: var(--text-muted);
  line-height: 1.65; font-family: var(--font-display); font-weight: 300;
}
.testimonial-card__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.testimonial-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-mid);
}
.testimonial-card__name { font-weight: 500; font-size: var(--text-sm); }
.testimonial-card__role { font-size: var(--text-xs); color: var(--text-faint); letter-spacing: 0.04em; }

/* ── 23. FAQs ─────────────────────────────────────────────────────────────── */
[data-section="faqs"] .section-header { text-align: center; }
.faqs__list {
  max-width: 720px; margin-inline: auto;
  display: flex; flex-direction: column; border-top: 1px solid var(--border);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-5); text-align: left;
  font-size: var(--text-md); font-weight: 400; color: var(--text);
  transition: color var(--dur-ui) var(--ease-standard);
}
.faq-item__trigger:hover { color: var(--accent); }
.faq-item__icon {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 1px solid var(--border-mid); border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  transition: transform var(--dur-ui) var(--ease-spring), border-color var(--dur-ui) var(--ease-standard);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.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; padding-bottom: var(--sp-5);
  color: var(--text-muted); font-size: var(--text-base); line-height: 1.7;
}

/* ── 24. Policies ─────────────────────────────────────────────────────────── */
[data-section="policies"] { background: var(--surface); }
[data-section="policies"] h2 {
  text-align: center; font-size: var(--text-xl); font-weight: 300; margin-bottom: var(--sp-10);
}
.policies__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-6);
}
.policy-card {
  padding: var(--sp-6); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface-2);
}
.policy-card__title {
  font-family: var(--font-display); font-size: var(--text-md);
  font-weight: 300; margin-bottom: var(--sp-3); color: var(--accent);
}
.policy-card__content {
  font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65;
}

/* ── 25. Contact ──────────────────────────────────────────────────────────── */
/* overflow-x: clip — the form reveals from 24px right (.reveal--right) and would widen a phone's layout viewport. */
[data-section="contact"] { background: var(--surface-2); overflow-x: clip; }
[data-section="contact"] h2 {
  font-size: var(--text-2xl); font-weight: 300; margin-bottom: var(--sp-10);
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start;
}
.contact__details { display: flex; flex-direction: column; gap: var(--sp-5); }
.contact__item {
  display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color var(--dur-ui) var(--ease-out);
}
.contact__item:hover { border-color: var(--border-mid); }
.contact__item-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent-glow); border-radius: var(--radius);
  color: var(--accent); flex-shrink: 0; font-size: 16px;
}
.contact__item-label {
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: var(--sp-1);
}
.contact__item-value { font-size: var(--text-sm); color: var(--text); font-weight: 400; }

/* ── 26. Product Detail ───────────────────────────────────────────────────── */
[data-section="product_detail"] { padding-top: calc(var(--header-h) + var(--sp-12)); }
.product-detail__layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--header-h) + var(--sp-8)); }
.product-gallery__main {
  position: relative; aspect-ratio: 1;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; margin-bottom: var(--sp-3);
}
.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: 1; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: var(--surface);
  transition: border-color var(--dur-ui) var(--ease-out);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active, .product-gallery__thumb:hover { border-color: var(--accent); }
/* AR viewer */
.ar-viewer { position: absolute; inset: 0; }
.ar-viewer__poster { width: 100%; height: 100%; object-fit: cover; }
[data-ar-button] {
  position: absolute; bottom: var(--sp-3); right: var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-mid); border-radius: 999px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  transition: background var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
[data-ar-button]:hover { background: var(--accent); color: var(--background); border-color: transparent; }
/* Product Info */
.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); color: var(--text-faint); letter-spacing: 0.04em;
}
.product-info__breadcrumb a:hover { color: var(--accent); }
.product-info__breadcrumb span { color: var(--border-mid); }
.product-info__name {
  font-size: var(--text-2xl); font-weight: 300;
  font-variation-settings: "opsz" 64; line-height: 1.1; letter-spacing: -0.025em;
}
.product-info__price {
  font-family: var(--font-mono); font-size: var(--text-xl); color: var(--accent);
}
.product-info__price del {
  font-size: var(--text-base); color: var(--text-faint); text-decoration: line-through; margin-right: var(--sp-3);
}
.product-info__variants { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-info__variant-label {
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; justify-content: space-between;
}
.variant-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; outline: 1px solid var(--border); cursor: pointer;
  transition: outline-color var(--dur-ui) var(--ease-out), transform var(--dur-micro) var(--ease-spring);
}
.color-swatch.is-active, .color-swatch:hover { outline-color: var(--accent); transform: scale(1.15); }
.product-info__atc { display: flex; gap: var(--sp-3); align-items: center; }
.qty-control {
  display: flex; align-items: center;
  border: 1px solid var(--border-mid); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.qty-control button {
  width: 40px; height: 46px; display: grid; place-items: center; font-size: var(--text-lg);
  color: var(--text-muted);
  transition: color var(--dur-ui) var(--ease-standard), background var(--dur-ui) var(--ease-standard);
}
.qty-control button:hover { color: var(--accent); background: var(--accent-glow); }
.qty-control input {
  width: 50px; text-align: center; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-mono); font-size: var(--text-base);
}
.btn--atc { flex: 1; }
.product-info__trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  padding-top: var(--sp-4); border-top: 1px solid var(--border);
}
.trust-badge { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-xs); color: var(--text-muted); }
.trust-badge__icon { color: var(--accent); font-size: 16px; }

/* ── 27. Reviews ──────────────────────────────────────────────────────────── */
[data-section="reviews"] { background: var(--surface); }
[data-section="reviews"] h2 {
  font-size: var(--text-xl); font-weight: 300; margin-bottom: var(--sp-8);
}

/* ── 28. Cart ─────────────────────────────────────────────────────────────── */
[data-section="cart"] { padding-top: calc(var(--header-h) + var(--sp-12)); }
[data-section="cart"] h2 { font-size: var(--text-2xl); font-weight: 300; margin-bottom: var(--sp-8); }
.cart__layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-10); align-items: start; }
[data-cart-items] { display: flex; flex-direction: column; gap: 0; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: var(--sp-5); align-items: start; padding-block: var(--sp-5); border-bottom: 1px solid var(--border);
}
.cart-item__img {
  aspect-ratio: 1; background: var(--surface-2); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title {
  font-family: var(--font-display); font-size: var(--text-base); font-weight: 300; margin-bottom: var(--sp-1);
}
.cart-item__variant { font-size: var(--text-xs); color: var(--text-faint); letter-spacing: 0.04em; }
.cart-item__qty { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.cart-item__price-col { text-align: right; }
.cart-item__price-subtotal { font-family: var(--font-mono); font-size: var(--text-base); color: var(--accent); }
.cart-item__remove {
  display: block; margin-top: var(--sp-2); font-size: var(--text-xs); color: var(--text-faint);
  transition: color var(--dur-ui) var(--ease-standard);
}
.cart-item__remove:hover { color: var(--danger); }
.cart__summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--sp-8); position: sticky; top: calc(var(--header-h) + var(--sp-4));
}
.cart__summary h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300;
  margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); 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); color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-line--total { font-size: var(--text-md); font-weight: 500; color: var(--text); }
.summary-line__value { font-family: var(--font-mono); color: var(--accent); }
.cart__empty { text-align: center; padding-block: var(--sp-20); color: var(--text-muted); }
.cart__empty p { margin-bottom: var(--sp-6); }

/* ── 29. Checkout ─────────────────────────────────────────────────────────── */
[data-section="checkout"] { padding-top: calc(var(--header-h) + var(--sp-12)); }
[data-section="checkout"] h2 { font-size: var(--text-2xl); font-weight: 300; margin-bottom: var(--sp-8); }
.checkout__layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-10); align-items: start; }
/* Progress steps */
.checkout__steps { display: flex; align-items: center; margin-bottom: var(--sp-8); }
.checkout__step {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
}
.checkout__step-num {
  width: 24px; height: 24px; border: 1px solid var(--border-mid); border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.checkout__step.is-active { color: var(--text); }
.checkout__step.is-active .checkout__step-num {
  border-color: var(--accent); background: var(--accent); color: var(--background);
}
.checkout__step-sep { flex: 1; height: 1px; background: var(--border); margin-inline: var(--sp-3); }
/* Form sections */
.checkout__form-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--sp-8); margin-bottom: var(--sp-5);
}
.checkout__form-section h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300;
  margin-bottom: var(--sp-5); 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: 0.08em; text-transform: uppercase; color: var(--text-faint);
}
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .6875rem var(--sp-4); color: var(--text); font: inherit; font-size: var(--text-sm);
  transition: border-color var(--dur-ui) var(--ease-standard); -webkit-appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
/* Checkout summary sidebar */
.checkout__cart-summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--sp-6); position: sticky; top: calc(var(--header-h) + var(--sp-4));
}
.checkout__cart-summary h3 {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 300;
  margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border);
}
[data-checkout-items] { display: flex; flex-direction: column; gap: var(--sp-4); }
.checkout-item {
  display: grid; grid-template-columns: 60px 1fr; gap: var(--sp-3);
  align-items: center; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--border);
}
.checkout-item__img {
  aspect-ratio: 1; background: var(--surface-2); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; position: relative;
}
.checkout-item__img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item__qty-badge {
  position: absolute; top: -5px; right: -5px; width: 18px; height: 18px;
  background: var(--accent); color: var(--background); border-radius: 50%;
  font-size: 10px; font-weight: 600; display: grid; place-items: center;
}
.checkout-item__name { font-size: var(--text-sm); font-weight: 400; margin-bottom: var(--sp-1); }
.checkout-item__price { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--accent); }
.checkout__divider { height: 1px; background: var(--border); margin-block: var(--sp-5); }

/* ── 30. Footer (Payoff Section) ──────────────────────────────────────────── */
[data-section="footer"] {
  background: var(--surface); padding-block: var(--sp-20) var(--sp-8);
  border-top: 1px solid var(--border); position: relative; overflow: hidden;
}
[data-section="footer"]::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60vw; height: 300px;
  background: radial-gradient(ellipse at bottom, color-mix(in oklab, var(--accent) 7%, transparent), transparent 70%);
  pointer-events: none;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12); margin-bottom: var(--sp-16);
}
.footer__brand img {
  height: 32px; width: auto; object-fit: contain;
  margin-bottom: var(--sp-5); filter: brightness(0.85);
}
.footer__brand p {
  font-size: var(--text-sm); color: var(--text-muted);
  line-height: 1.7; max-width: 280px; margin-bottom: var(--sp-6);
}
.footer__newsletter { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.footer__newsletter input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .625rem var(--sp-4);
  font: inherit; font-size: var(--text-sm); color: var(--text); min-width: 0;
}
.footer__newsletter input:focus { outline: none; border-color: var(--accent); }
.footer__col h4 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: var(--sp-5);
}
.footer__col a, .footer__links a, .footer__social a {
  display: block; font-size: var(--text-sm); color: var(--text-muted);
  padding-block: var(--sp-2); transition: color var(--dur-ui) var(--ease-standard);
}
.footer__col a:hover, .footer__links a:hover, .footer__social a:hover { color: var(--accent); }
.footer__social a { display: flex; align-items: center; gap: var(--sp-3); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4); padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--text-faint); letter-spacing: 0.04em;
}

/* ── 31. Back to Top ──────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: var(--sp-8); right: var(--sp-6);
  width: 44px; height: 44px; background: var(--surface-2);
  border: 1px solid var(--border-mid); border-radius: var(--radius);
  display: grid; place-items: center; font-size: 18px; color: var(--accent);
  z-index: 800; opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur-ui) var(--ease-standard), transform var(--dur-ui) var(--ease-standard),
              background var(--dur-ui) var(--ease-standard), border-color var(--dur-ui) var(--ease-standard);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--accent); color: var(--background); border-color: var(--accent); }

/* ── 32. Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .checkout__layout { grid-template-columns: 1fr; }
  .cart__layout { grid-template-columns: 1fr; }
  .product-detail__layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .checkout__cart-summary { position: static; }
  .cart__summary { position: static; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  [data-section="hero"] .hero__content { padding-block: var(--sp-20); }
  .hero__cta-group { flex-direction: column; align-items: stretch; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  [data-section="products"] .section-header { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__brand p { max-width: none; }
  .product-info__trust { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: 1; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__price-col { display: none; }
}
@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .categories__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.2rem, 8vw + 0.5rem, 4rem); }
}

/* ── 33. Focus + A11y ─────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* ── 34. Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── 35. Selection ────────────────────────────────────────────────────────── */
::selection {
  background: color-mix(in oklab, var(--accent) 28%, transparent);
  color: var(--text);
}

/* ── 36. Reduced Motion Catch-All ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  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; }

/* ── 19. Scroll-driven reveal lane (LOOM v2 Phase 6, 2026-09-17) ─────────────
   Replaces the GSAP `initCinematic()` staggers this theme used to self-load
   gsap + ScrollTrigger from a CDN for. Same three targets, same direction, same
   stagger feel — driven by the browser's own ViewTimeline instead of a library
   the theme had no sanctioned way to load.

   RESTING-VISIBLE, and that is the invariant, not a detail. The cards carry no
   `opacity: 0` in any rule, exactly as they did under GSAP's
   `immediateRender: false`. The hidden from-state lives ONLY inside the
   @keyframes: `@supports` proves the FEATURE exists, never that a ViewTimeline
   is ACTIVE, and inside a same-origin iframe (every owner-facing preview
   surface) the timeline resolves to null and the effect is simply not applied.
   Keyframed, the visible base declaration wins and nothing can be stranded.

   `to { opacity: 1 }` and never `to { transform: none }`: a filling animation
   outranks :hover AND inline styles for the element's life, so `transform:none`
   in the `to` frame would permanently kill the card hover lifts below
   (les-filling-view-animation-outranks-hover-and-inline-transform, incident 3).

   The stagger is an animation-RANGE shift, never a delay — a wall-clock delay on
   a scroll timeline finishes long before the visitor arrives
   (les-animation-shorthand-resets-timeline-and-delay-on-scroll). Both ends stay
   inside `entry` so every card completes once it has entered; an end anchored to
   `cover` would leave the last row permanently part-transparent.

   ONE `animation` shorthand per element: `.ken-burns` keeps its own on the hero
   image and is deliberately untouched here. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .category-card,
    .product-card,
    .testimonial-card {
      animation: na-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    :is(.categories__grid, .products__grid, .testimonials__grid) > :nth-child(2) {
      animation-range: entry 8% entry 48%;
    }

    :is(.categories__grid, .products__grid, .testimonials__grid) > :nth-child(3) {
      animation-range: entry 16% entry 56%;
    }

    :is(.categories__grid, .products__grid, .testimonials__grid) > :nth-child(4) {
      animation-range: entry 24% entry 64%;
    }

    :is(.categories__grid, .products__grid, .testimonials__grid) > :nth-child(n + 5) {
      animation-range: entry 32% entry 72%;
    }

    @keyframes na-rise {
      from { opacity: 0; transform: translateY(32px); }
      to   { opacity: 1; }
    }
  }
}

/* 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="products"]) .product-card__meta { color: oklch(from var(--text-faint) max(l, 0.507) c h / calc(min(1, alpha + 0.21))); }

/* 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="contact"]) .contact__item-label { color: oklch(from var(--text-faint) max(l, 0.507) c h / calc(min(1, alpha + 0.21))); }

/* 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. */
.testimonial-card__role:where([data-section="testimonials"], [data-section="testimonials"] *) { color: oklch(from var(--text-faint) max(l, 0.507) c h / calc(min(1, alpha + 0.21))); }
