/* ==========================================================================
   AIDESIGN storefront
   Studio bone + espresso ink, one terracotta accent lifted from the Abstract print.
   ========================================================================== */

:root {
  --bone: oklch(0.928 0.012 78);
  --bone-2: oklch(0.895 0.014 76);
  --bone-3: oklch(0.86 0.016 74);
  --paper: oklch(0.962 0.007 80);
  --ink: oklch(0.205 0.009 50);
  --ink-2: oklch(0.255 0.011 50);
  --ink-3: oklch(0.31 0.012 52);
  --sheet: oklch(0.175 0.008 50);
  --text: var(--ink);
  --muted: oklch(0.47 0.013 60);
  --on-ink: oklch(0.95 0.008 80);
  --on-ink-muted: oklch(0.72 0.012 72);
  --clay: oklch(0.6 0.115 42);
  --clay-deep: oklch(0.5 0.11 40);
  --clay-soft: oklch(0.84 0.045 58);
  --line: oklch(0.205 0.009 50 / 0.13);
  --line-ink: oklch(0.95 0.008 80 / 0.14);
  --ok: oklch(0.55 0.1 150);

  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Libre Caslon Text", Georgia, serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.94rem, 0.9rem + 0.18vw, 1.04rem);
  --step-1: clamp(1.15rem, 1.06rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.9rem);

  --gutter: clamp(16px, 3.2vw, 48px);
  --header-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-obj: drop-shadow(0 28px 30px oklch(0.25 0.02 50 / 0.18)) drop-shadow(0 6px 8px oklch(0.25 0.02 50 / 0.12));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

/* ---------- announce + header ---------- */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  background: var(--ink); color: var(--on-ink-muted);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px var(--gutter);
}
.announce-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }
@media (max-width: 560px) { .announce-sep, .announce-extra { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: oklch(0.928 0.012 78 / 0.86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
body[data-route="product"] .site-header, body[data-route="collection"] .site-header, body[data-route="saved"] .site-header { background: oklch(0.962 0.007 80 / 0.88); }
.header-inner {
  height: var(--header-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
}
.header-inner .logo { order: 1; }
.header-inner .main-nav { order: 2; justify-content: center; }
.header-inner .header-actions { order: 3; }
@media (max-width: 860px) { .header-inner .logo { justify-self: center; } .header-inner { gap: 8px; } }
.main-nav { display: flex; gap: clamp(16px, 2vw, 30px); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.logo {
  font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 125;
}
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background 0.2s; }
.icon-btn:hover { background: var(--line); }
.bag-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 8px; border-radius: 22px; font-weight: 600; font-size: 0.85rem; transition: background 0.2s; }
.bag-btn:hover { background: var(--line); }
.bag-count { min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 0.72rem; padding: 0 6px; transition: transform 0.4s var(--ease); }
.bag-count.bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } }
.menu-btn { display: none; }
.mobile-nav {
  display: grid; padding: 8px var(--gutter) 22px; border-top: 1px solid var(--line);
  background: var(--bone);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 112; border-bottom: 1px solid var(--line); }
.mobile-nav a span { font-size: 0.75rem; font-weight: 500; color: var(--muted); width: 22px; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; margin-left: -10px; }
  .hide-sm { display: none !important; }
  :root { --header-h: 58px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px;
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.98); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-3); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: oklch(1 0 0 / 0.95); box-shadow: 0 10px 30px oklch(0 0 0 / 0.25); }
.btn-block { width: 100%; }
.link-u { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; display: inline-flex; gap: 10px; align-items: center; }
.link-u svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link-u:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HERO: product-led split. Big AIDESIGN title on the left, a bold cropped mannequin on the right.
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  grid-template-rows: 1fr auto auto;
  grid-template-areas: "top stage" "buy stage" "crumb stage";
  height: clamp(580px, calc(100svh - var(--header-h) - 34px), 940px);
  background: linear-gradient(180deg, oklch(0.94 0.005 80), oklch(0.915 0.007 78));
}
.hero-top { grid-area: top; align-self: end; padding: 0 0 0 var(--gutter); }
.hero-kicker { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.02em; min-height: 1.5em; }
.hero-title {
  font-weight: 800; font-variation-settings: "wdth" 104; letter-spacing: -0.045em;
  font-size: clamp(3.4rem, 8.6vw, 9.6rem); line-height: 0.86; margin-top: 14px; white-space: nowrap;
}
.hero-buy { grid-area: buy; padding: clamp(26px, 3.2vw, 44px) 0 0 var(--gutter); max-width: 480px; }
.hero-price { display: flex; align-items: baseline; gap: 22px; }
.hero-price b { font-size: var(--step-2); font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-price span { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; }
.hero-desc { color: var(--muted); font-size: 0.9rem; max-width: 36ch; margin: 16px 0 28px; min-height: 3em; }
.btn-clay { background: var(--clay); color: oklch(0.985 0.006 60); border-radius: 4px; min-width: 190px; }
.btn-clay:hover { background: var(--clay-deep); }
.hero-crumb { grid-area: crumb; display: flex; gap: clamp(18px, 4vw, 60px); font-size: 0.74rem; color: var(--muted); padding: 34px 0 26px var(--gutter); }
.hero-crumb a:hover { color: var(--ink); }
[data-h] { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.hero.is-swapping [data-h] { opacity: 0; transform: translateY(8px); }

.hero-stage { grid-area: stage; position: relative; min-height: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0s 0.9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease); }
.hero-fig {
  position: absolute; left: 50%; bottom: -12%; height: 114%; aspect-ratio: var(--ar, 0.7);
  transform: translateX(-50%) translateY(5%) scale(1.04); transform-origin: 50% 100%;
  transition: transform 1.3s var(--ease);
}
.hero-slide.is-active .hero-fig { transform: translateX(-50%) translateY(0) scale(1); }
/* product cut-out: floats, centred */
.hero-fig.is-cut { bottom: 10%; height: 76%; max-width: 92%; }
.hero-fig.is-cut img { animation: hero-float 7s var(--ease-io) infinite; filter: drop-shadow(0 26px 28px oklch(0.25 0.02 50 / 0.2)); will-change: transform; transform: translateZ(0); } /* own layer: the float never repaints the shadow */
.hero-slide:not(.is-active) .hero-fig img { animation-play-state: paused; }
.hero-fig.is-cut::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -8%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.28 0.02 50 / 0.28), transparent); z-index: -1; }
/* worn cap photo: full height, fades into the hero on its left edge */
.hero-fig.is-photo { left: auto; right: 0; bottom: 0; height: 100%; transform: translateX(4%); }
.hero-slide.is-active .hero-fig.is-photo { transform: none; }
.hero-fig.is-photo img { object-fit: cover; filter: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.hero-fig img { width: 100%; height: 100%; object-fit: contain; }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  box-shadow: 0 6px 20px oklch(0.25 0.02 50 / 0.18);
  transform: scale(0); transition: transform 0.5s var(--ease) 0.5s;
}
.hero-slide.is-active .hotspot { transform: scale(1); }
.hotspot svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid oklch(0.98 0.005 80 / 0.9); animation: ping 2.4s var(--ease) infinite; }
.hotspot:hover svg, .hotspot:focus-visible svg { transform: rotate(90deg); }
.hotspot span {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px);
  white-space: nowrap; background: var(--ink); color: var(--on-ink); font-size: 0.74rem; font-weight: 600;
  padding: 7px 11px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.hotspot:hover span, .hotspot:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
@keyframes ping { 0% { transform: scale(0.8); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

.hero-count { position: absolute; z-index: 3; right: var(--gutter); top: 30%; font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-count sup { font-size: 0.62rem; font-weight: 600; margin-left: 2px; color: var(--muted); }
.hero-index { position: absolute; z-index: 3; right: var(--gutter); top: calc(30% + 52px); display: grid; justify-items: end; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hero-index button { font-size: 0.7rem; font-variant-numeric: tabular-nums; color: var(--muted); padding: 3px 0 3px 18px; transition: color 0.2s; }
.hero-index button[aria-current="true"] { color: var(--ink); font-weight: 700; }
.hero-index a { margin-top: 10px; font-size: 0.78rem; font-weight: 650; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); display: flex; gap: 18px; }
.hero-arrows { position: absolute; z-index: 3; right: var(--gutter); bottom: 26px; display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: oklch(1 0 0 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s; }
.hero-arrows button:hover { background: var(--paper); }
.hero-arrows svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .hero {
    height: auto; grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "top" "stage" "buy";
  }
  .hero-top { padding: 22px var(--gutter) 0; align-self: start; position: relative; z-index: 2; }
  .hero-title { font-size: 18.4vw; }
  .hero-stage { height: min(112vw, 58svh); margin-top: 6px; }
  .hero-fig.is-cut { bottom: 12%; height: 74%; }
  .hero-fig.is-photo { right: 50%; transform: translateX(50%); }
  .hero-slide.is-active .hero-fig.is-photo { transform: translateX(50%); }
  .hero-fig.is-photo img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .hero-buy { padding: 22px var(--gutter) 30px; max-width: none; background: var(--paper); position: relative; z-index: 4; }
  .hero-desc { margin: 10px 0 20px; }
  .hero-buy .btn { width: 100%; }
  .hero-crumb { display: none; }
  .hero-count { top: 18px; font-size: 1.1rem; }
  .hero-index { display: none; }
  .hero-arrows { right: var(--gutter); bottom: 14px; }
  .hotspot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
}

/* ==========================================================================
   DESIGN STUDIO: plain piece + lettering + your words
   ========================================================================== */
.studio-sec { padding: clamp(56px, 8vw, 110px) var(--gutter); background: var(--bone); }
.studio-sec.is-page { padding-top: 28px; background: var(--paper); }
.studio-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: clamp(20px, 3vw, 52px); align-items: start; }
.studio-stage {
  position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  display: grid; place-items: center; container-type: size;
  background: radial-gradient(70% 62% at 50% 44%, oklch(0.975 0.006 80), var(--bone-2) 80%);
}
.studio-stage::after { content: ""; position: absolute; left: 26%; right: 26%; bottom: 7%; height: 5%; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.28 0.02 50 / 0.24), transparent); }
.studio-obj { position: relative; z-index: 1; aspect-ratio: var(--ar, 1); width: min(80cqw, 80cqh * var(--ar, 1)); }
.studio-obj img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 26px oklch(0.25 0.02 50 / 0.2)); }
.studio-words {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  text-align: center; pointer-events: none; line-height: 0.88; transition: color 0.3s, opacity 0.3s;
}
.studio-words span { white-space: nowrap; }
.studio-words[data-style="bold"] { letter-spacing: -0.01em; }
.studio-words[data-style="line"] { line-height: 1.2; letter-spacing: -0.01em; }
.studio-words.is-ghost { opacity: 0.35; }
.studio-tag { position: absolute; left: 20px; bottom: 16px; z-index: 2; font-size: 0.78rem; color: var(--muted); }
.studio-panel fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.studio-panel legend, .studio-legend { display: flex; gap: 10px; align-items: center; width: 100%; padding: 0; margin-bottom: 12px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.studio-panel legend span, .studio-legend span { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: inline-grid; place-items: center; font-size: 0.7rem; letter-spacing: 0; }
.studio-panel legend b { margin-left: auto; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.studio-items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.studio-items button { display: grid; gap: 6px; justify-items: center; padding: 10px 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease); }
.studio-items button:hover { transform: translateY(-2px); }
.studio-items img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.studio-items span { font-size: 0.78rem; font-weight: 650; text-align: center; line-height: 1.25; }
.studio-items small { display: block; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-items [aria-checked="true"], .studio-styles [aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.studio .colour[aria-checked="true"]::after { border-color: var(--ink); }
.studio .colour i { box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.16); }
.studio-colours, .studio-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.studio-styles button { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-align: left; transition: border-color 0.2s, box-shadow 0.2s; }
.studio-styles b { font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); font-weight: 400; line-height: 1; }
.studio-styles small { font-size: 0.76rem; color: var(--muted); }
.studio-input { position: relative; }
.studio-input input { width: 100%; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); padding: 0 70px 0 16px; font-size: 1.1rem; outline: none; transition: border-color 0.2s; }
.studio-input input:focus { border-color: var(--clay); }
.studio-input span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.studio-row { display: flex; gap: 20px; align-items: flex-end; margin-bottom: 20px; }
.studio-row > div:first-child { flex: 1; min-width: 0; }
.studio .size { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.studio .size:hover { background: var(--bone); }
.studio .size[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.studio .studio-qty { background: var(--paper); border: 1px solid var(--line); }
.studio .studio-qty button { width: 42px; height: 46px; font-size: 1.1rem; }
.studio-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.studio-total b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.studio-panel .btn-wa:disabled { opacity: 0.7; cursor: progress; }
.studio-dl { display: block; margin: 12px auto 0; font-size: 0.82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.studio-note { font-size: 0.82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.studio-note.is-warn { color: var(--clay-deep); font-weight: 650; }
.nav-custom { color: var(--clay-deep); }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  /* keep the preview in view while choosing and typing */
  .studio-stage { top: calc(var(--header-h) + 6px); z-index: 5; aspect-ratio: auto; height: min(46svh, 92vw); box-shadow: 0 10px 30px oklch(0.25 0.02 50 / 0.12); }
  .studio-items span { font-size: 0.7rem; }
  .studio-styles button { padding: 12px; }
}

/* ==========================================================================
   LISTING PAGES (collections index, collection, category)
   ========================================================================== */
.lgroup { padding: clamp(28px, 4vw, 52px) var(--gutter) 0; }
.lgroup + .lgroup { border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 52px); }
.lgroup-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.lgroup-head h2 { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.01em; font-variation-settings: "wdth" 112; text-transform: uppercase; }
.lgroup-head h2.serif { font-family: var(--f-serif); text-transform: none; font-weight: 400; }
.lgroup-head span { color: var(--muted); font-size: 0.86rem; }
.cindex { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(3, 1fr); padding: clamp(28px, 4vw, 48px) var(--gutter) 0; }
@media (max-width: 860px) { .cindex { grid-template-columns: 1fr; } }
.cat-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   SECTION BASICS
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 120px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.h-display { font-size: var(--step-3); font-weight: 750; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "wdth" 116; text-transform: uppercase; }
.lede { color: var(--muted); max-width: 52ch; margin-top: 12px; }

/* ---------- collections band (dark) ---------- */
.band { background: var(--ink); color: var(--on-ink); padding: clamp(28px, 4vw, 48px) var(--gutter); }
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.ctile { display: flex; flex-direction: column; gap: 16px; color: var(--on-ink); }
.ctile-media {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 62% at 50% 44%, oklch(0.95 0.009 80), var(--bone-2) 78%);
}
.ctile-media::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 8%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.3 0.02 50 / 0.22), transparent); z-index: -1; }
.ctile-num { position: absolute; left: 16px; top: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ctile-media img { position: absolute; object-fit: contain; filter: var(--shadow-obj); transition: transform 0.8s var(--ease); }
.ctile-a { left: 10%; top: 9%; width: 58%; height: 80%; }
.ctile-b { right: 7%; bottom: 10%; width: 36%; height: 46%; }
.ctile:hover .ctile-a { transform: translateY(-8px) rotate(-1.5deg); }
.ctile:hover .ctile-b { transform: translateY(-4px) rotate(2deg); }
.ctile h3 { font-size: var(--step-1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-variation-settings: "wdth" 112; }
.ctile h3.serif { font-family: var(--f-serif); text-transform: none; font-weight: 400; letter-spacing: -0.01em; font-size: var(--step-2); line-height: 1.05; }
.ctile p { color: var(--on-ink-muted); font-size: 0.86rem; margin: 6px 0 12px; max-width: 34ch; }
.ctile .link-u { font-size: 0.72rem; }
@media (max-width: 860px) {
  .band-grid { grid-template-columns: repeat(3, 78vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .band-grid::-webkit-scrollbar { display: none; }
  .ctile { scroll-snap-align: start; }
}

/* ---------- product grid ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
@media (max-width: 860px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.card { position: relative; display: block; }
.card-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 42%, oklch(0.95 0.009 80), var(--bone-2) 75%);
  perspective: 900px;
}
.card-media::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, oklch(0.3 0.02 50 / 0.22), transparent); transition: transform 0.6s var(--ease), opacity 0.6s; }
.card-media img {
  position: absolute; inset: 9% 9% 13%; width: 82%; height: 78%; object-fit: contain;
  filter: var(--shadow-obj);
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease);
}
.card-media img.alt { opacity: 0; transform: translateY(6px) scale(0.98); }
.card:hover .card-media img.main { transform: translateY(-8px) rotateX(6deg) scale(1.03); }
.card:hover .card-media::after { transform: scale(0.86); opacity: 0.7; }
.card.show-alt .card-media img.main { opacity: 0; }
.card.show-alt .card-media img.alt { opacity: 1; transform: translateY(-8px) scale(1.03); }
.card-coll { position: absolute; left: 12px; top: 12px; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.save-btn { position: absolute; right: 8px; top: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s, transform 0.25s var(--ease); }
.save-btn svg { width: 20px; height: 20px; }
.save-btn:hover { background: oklch(1 0 0 / 0.6); }
.save-btn[aria-pressed="true"] svg { fill: var(--clay); stroke: var(--clay); }
.save-btn:active { transform: scale(0.88); }
.card-info { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 14px; align-items: baseline; }
.card-name { font-weight: 650; font-size: 0.92rem; letter-spacing: 0.01em; font-variation-settings: "wdth" 104; }
.card-price { font-weight: 650; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.card-type { color: var(--muted); font-size: 0.82rem; }
.swatches { display: flex; gap: 6px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.18); }
.swatch-dot.is-on { box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.18), 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }

/* ---------- editorial (ITSTs) ---------- */
.editorial { display: grid; grid-template-columns: 1fr 1fr; background: var(--bone); min-height: clamp(520px, 52vw, 760px); }
.editorial-copy { padding: clamp(40px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.editorial-kicker { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.editorial-quote { font-family: var(--f-serif); font-weight: 400; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; margin: 18px 0 22px; }
.editorial-quote em { color: var(--clay-deep); }
.editorial-copy p.body { color: var(--muted); max-width: 40ch; }
.editorial-pieces { display: flex; gap: 12px; }
.editorial-pieces a { width: 96px; aspect-ratio: 1; border-radius: 10px; background: var(--bone-2); display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.editorial-pieces a:hover { transform: translateY(-4px); }
.editorial-pieces img { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 10px oklch(0.25 0.02 50 / 0.18)); }
.editorial-media { position: relative; overflow: hidden; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial-media { order: -1; aspect-ratio: 4 / 5; }
}

/* custom text overlay on the product page stage */
.ptext {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: translate(-50%, -50%);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip;
  color: var(--ink-c, var(--ink)); pointer-events: none;
  font-size: var(--fs, 16px); line-height: 1.1;
  mix-blend-mode: var(--blend, multiply); opacity: 0.94;
  transition: opacity 0.3s;
}
.ptext:empty { opacity: 0; }
.ptext[data-style="serif"] { font-family: var(--f-serif); letter-spacing: -0.01em; }
.ptext[data-style="bold"] { font-family: var(--f-sans); font-weight: 850; font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: -0.01em; }
.ptext[data-style="clean"] { font-family: var(--f-sans); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; font-variation-settings: "wdth" 110; }

/* ---------- promise row ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.promise div { display: flex; gap: 16px; align-items: center; padding: 26px var(--gutter); }
.promise div + div { border-left: 1px solid var(--line); }
.promise strong { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.promise span { font-size: 0.86rem; color: var(--muted); }
.promise svg { width: 28px; height: 28px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } .promise div + div { border-left: 0; border-top: 1px solid var(--line); } .promise div { padding: 18px var(--gutter); } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 6vw, 80px) var(--gutter) 24px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; }
.footer-h { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-ink-muted); margin-bottom: 14px; }
.footer-col { display: grid; gap: 10px; align-content: start; font-size: 0.92rem; }
.footer-col a:hover { color: var(--clay-soft); }
.footer-mark { font-weight: 800; font-variation-settings: "wdth" 125; font-size: 16.2vw; line-height: 0.8; letter-spacing: -0.04em; margin: clamp(40px, 6vw, 80px) 0 18px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.footer-legal { font-size: 0.78rem; color: var(--on-ink-muted); }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   COLLECTION PAGE
   ========================================================================== */
.chead { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(24px, 3vw, 36px); background: var(--bone); position: relative; overflow: hidden; }
.chead-crumb { font-size: 0.78rem; color: var(--muted); grid-column: 1 / -1; }
.chead-crumb a:hover { color: var(--ink); }
.chead h1 { font-size: var(--step-4); font-weight: 800; line-height: 0.92; letter-spacing: -0.03em; font-variation-settings: "wdth" 122; text-transform: uppercase; }
.chead h1.serif { font-family: var(--f-serif); font-weight: 400; text-transform: none; letter-spacing: -0.04em; }
.chead p { color: var(--muted); max-width: 46ch; margin-top: 14px; }
.chead-mark { height: clamp(110px, 14vw, 200px); width: auto; filter: drop-shadow(0 10px 18px oklch(0.25 0.02 50 / 0.12)); }
.chead-count { font-size: 0.82rem; color: var(--muted); }
.ctools { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 10; background: oklch(0.962 0.007 80 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ctabs { display: flex; gap: 22px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.ctabs a { padding: 8px 0; color: var(--muted); }
.ctabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1.5px 0 var(--ink); }
@media (max-width: 860px) {
  .chead { grid-template-columns: 1fr; }
  .chead-mark { height: 84px; position: absolute; right: var(--gutter); top: 26px; opacity: 0.9; }
  .ctools { flex-direction: column; align-items: stretch; }
  .ctabs { overflow-x: auto; scrollbar-width: none; }
}
.empty { padding: 80px var(--gutter); text-align: center; color: var(--muted); display: grid; gap: 18px; justify-items: center; }
.empty h2 { color: var(--ink); font-size: var(--step-2); font-weight: 700; }

/* ==========================================================================
   PRODUCT PAGE
   ========================================================================== */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); min-height: calc(100svh - var(--header-h) - 34px); background: var(--bone); }
.pdp-media { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 28px 0 28px var(--gutter); }
.thumbs { display: grid; gap: 10px; align-content: start; position: sticky; top: calc(var(--header-h) + 28px); }
.thumb { width: 76px; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--bone-2); display: grid; place-items: center; overflow: hidden; outline: 1.5px solid transparent; outline-offset: 2px; transition: outline-color 0.2s, transform 0.3s var(--ease); }
.thumb img { width: 86%; height: 86%; object-fit: contain; }
.thumb img.photo { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { transform: translateY(-2px); }
.thumb[aria-current="true"] { outline-color: var(--ink); }

.stage {
  position: relative; height: min(calc(100svh - var(--header-h) - 90px), 860px); min-height: 460px;
  perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage-glow { position: absolute; left: 50%; top: 48%; width: 78%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, oklch(0.975 0.006 80), transparent); }
.stage-ring { position: absolute; left: 50%; top: 48%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--line); }
.stage-floor { position: absolute; left: 50%; bottom: 7%; width: 46%; height: 6%; transform: translate(calc(-50% + var(--fx, 0px)), 0) scale(var(--fs-scale, 1)); border-radius: 50%; background: radial-gradient(closest-side, oklch(0.28 0.02 50 / 0.32), transparent); filter: blur(4px); transition: transform 0.6s var(--ease); }
.stage-view { position: absolute; inset: 4% 6% 10%; display: grid; place-items: center; container-type: size; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s; }
.stage-view.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }
.stage-obj {
  position: relative; aspect-ratio: var(--ar, 0.85);
  width: min(100cqw, 100cqh * var(--ar, 0.85)); /* fit whichever side is tighter */
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.7s var(--ease);
  animation: idle 7s var(--ease-io) infinite;
}
.stage.is-tracking .stage-obj { transition: transform 0.12s linear; }
@keyframes idle { 50% { translate: 0 -10px; } }
@keyframes hero-float { 50% { transform: translate3d(0, -10px, 0); } }
.stage-obj > img { width: 100%; height: 100%; object-fit: contain; filter: var(--shadow-obj); }
.stage-obj.photo { aspect-ratio: auto; height: auto; max-height: 100%; width: min(100cqw, 680px); animation: none; }
.stage-obj.photo > img { border-radius: var(--radius); height: auto; max-height: calc(min(calc(100svh - var(--header-h) - 90px), 860px) * 0.86); object-fit: cover; box-shadow: 0 30px 60px oklch(0.25 0.02 50 / 0.18); filter: none; }
.stage-sheen { /* light that slides across the fabric as it tilts */
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(42% 36% at var(--lx, 35%) var(--ly, 25%), oklch(1 0 0 / 0.55), transparent 70%);
  -webkit-mask-image: var(--mask); mask-image: var(--mask); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
}
.stage-obj .ptext { transform: translate(-50%, -50%) translateZ(18px); }
.stage-hint { position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.stage-hint svg { width: 16px; height: 16px; }
.stage-back { display: none; }
.stage-dots { display: none; }
.stage.is-turning .stage-view.is-active .stage-obj { animation: turn 0.75s var(--ease); }
@keyframes turn { 0% { transform: rotateY(-70deg) scale(0.94); opacity: 0.2; } 100% { transform: rotateY(0) scale(1); opacity: 1; } }

/* sheet */
.sheet { background: var(--sheet); color: var(--on-ink); padding: clamp(28px, 3vw, 44px) clamp(22px, 2.6vw, 40px) 40px; position: relative; }
.sheet-inner { position: sticky; top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.sheet-handle { display: none; }
.crumbs { font-size: 0.76rem; color: var(--on-ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--on-ink); }
.pdp-title-row { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.pdp-price { font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 108; }
.pdp-name { font-family: var(--f-serif); font-size: var(--step-1); font-weight: 400; margin-top: 2px; }
.pdp-coll { display: inline-block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-soft); margin-bottom: 8px; }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.84rem; color: var(--on-ink-muted); margin-bottom: 10px; }
.field-label b { color: var(--on-ink); font-weight: 600; }
.colours { display: flex; gap: 10px; flex-wrap: wrap; }
.colour { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.colour i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.18); transition: transform 0.3s var(--ease); }
.colour::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid transparent; transition: border-color 0.2s; }
.colour[aria-checked="true"]::after { border-color: var(--on-ink); }
.colour:hover i { transform: scale(1.08); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 52px; height: 46px; padding: 0 12px; border-radius: 10px; background: var(--ink-2); font-size: 0.9rem; font-weight: 600; transition: background 0.2s, color 0.2s, transform 0.2s; }
.size:hover { background: var(--ink-3); }
.size[aria-checked="true"] { background: var(--on-ink); color: var(--ink); }
.sizes.needs { animation: shake 0.45s var(--ease); }
@keyframes shake { 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.size-note { font-size: 0.78rem; color: var(--clay-soft); margin-top: 8px; min-height: 1.2em; }

.perso { border: 1px solid var(--line-ink); border-radius: var(--radius); padding: 16px; background: oklch(1 0 0 / 0.025); }
.perso-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.perso-head h3 { font-size: 0.92rem; font-weight: 650; }
.perso-head span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-soft); }
.perso p { font-size: 0.82rem; color: var(--on-ink-muted); margin: 4px 0 12px; }
.perso-input { position: relative; }
.perso-input input { width: 100%; height: 50px; border-radius: 10px; border: 1px solid var(--line-ink); background: var(--ink-2); padding: 0 64px 0 14px; outline: none; transition: border-color 0.2s; }
.perso-input input:focus { border-color: var(--clay-soft); }
.perso-input input::placeholder { color: oklch(0.6 0.01 70); }
.perso-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.perso-styles { display: flex; gap: 8px; margin-top: 10px; }
.perso-styles button { flex: 1; height: 40px; border-radius: 10px; background: var(--ink-2); font-size: 0.86rem; transition: background 0.2s, color 0.2s; }
.perso-styles button[aria-checked="true"] { background: var(--on-ink); color: var(--ink); }
.perso-styles [data-style="serif"] { font-family: var(--f-serif); }
.perso-styles [data-style="bold"] { font-weight: 850; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: 0.8rem; }
.perso-styles [data-style="clean"] { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }

.qty-row { display: flex; gap: 12px; align-items: stretch; }
.qty { display: flex; align-items: center; border-radius: 999px; background: var(--ink-2); }
.qty button { width: 46px; height: 54px; display: grid; place-items: center; }
.qty button svg { width: 18px; height: 18px; }
.qty output { min-width: 18px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.qty-row .btn { flex: 1; min-height: 54px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 400px) { .btn-price { display: none; } }
.pdp-actions { display: flex; justify-content: space-around; font-size: 0.9rem; }
.pdp-actions button { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; transition: background 0.2s; }
.pdp-actions button:hover { background: var(--ink-2); }
.pdp-actions button[aria-pressed="true"] svg { fill: var(--clay); stroke: var(--clay); }
.specs { display: grid; gap: 8px; font-size: 0.86rem; }
.specs h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.05rem; margin-bottom: 4px; }
.specs div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.specs dt { color: var(--on-ink-muted); }
.specs dd { margin: 0; }
.similar h3 { font-family: var(--f-serif); font-weight: 400; font-size: 1.05rem; margin-bottom: 12px; }
.similar-row { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.similar-row::-webkit-scrollbar { display: none; }
.sim { scroll-snap-align: start; font-size: 0.78rem; }
.sim-media { aspect-ratio: 4 / 5; border-radius: 10px; background: linear-gradient(180deg, oklch(0.94 0.009 80), var(--bone-2)); display: grid; place-items: center; margin-bottom: 8px; overflow: hidden; }
.sim-media img { width: 84%; height: 84%; object-fit: contain; transition: transform 0.5s var(--ease); filter: drop-shadow(0 8px 8px oklch(0.25 0.02 50 / 0.2)); }
.sim:hover .sim-media img { transform: translateY(-4px) scale(1.04); }
.sim b { display: block; font-weight: 650; }
.sim span { color: var(--on-ink-muted); }

@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; background: var(--bone); }
  .pdp-media { grid-template-columns: 1fr; padding: 0; }
  .thumbs { display: none; }
  .stage { height: min(118vw, 64svh); min-height: 380px; }
  .stage-view { inset: 6% 8% 12%; }
  .stage-back { display: grid; position: absolute; left: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: oklch(0.962 0.007 80 / 0.8); }
  .stage-dots { display: flex; position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); gap: 6px; z-index: 3; }
  .stage-dots button { width: 22px; height: 22px; display: grid; place-items: center; }
  .stage-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--ink); opacity: 0.25; transition: width 0.3s var(--ease), opacity 0.3s; }
  .stage-dots button[aria-current="true"]::before { width: 18px; opacity: 1; }
  .stage-hint { bottom: 12px; }
  .sheet { margin-top: -28px; border-radius: 26px 26px 0 0; padding-top: 14px; z-index: 2; box-shadow: 0 -18px 40px oklch(0.2 0.01 50 / 0.12); }
  .sheet-inner { position: static; }
  .sheet-handle { display: block; width: 44px; height: 4px; border-radius: 2px; background: oklch(0.95 0.008 80 / 0.3); margin: 0 auto 4px; }
  .crumbs { display: none; }
  .add-bar { position: sticky; bottom: 0; z-index: 5; margin: 0 -22px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, oklch(0.175 0.008 50 / 0), var(--sheet) 28%); }
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 60; background: oklch(0.2 0.01 50 / 0.42); opacity: 0; transition: opacity 0.4s var(--ease); }
.scrim.is-on { opacity: 1; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(440px, 100%);
  background: var(--paper); display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(104%); transition: transform 0.55s var(--ease); box-shadow: -20px 0 60px oklch(0.2 0.01 50 / 0.18);
}
.cart.is-open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cart-head h2 span { color: var(--muted); font-weight: 500; }
.cart-body { overflow-y: auto; padding: 8px 22px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-media { aspect-ratio: 4 / 5; border-radius: 10px; background: var(--bone-2); display: grid; place-items: center; position: relative; }
.line-media img { width: 86%; height: 86%; object-fit: contain; }
.line h3 { font-size: 0.92rem; font-weight: 650; }
.line p { font-size: 0.8rem; color: var(--muted); }
.line .ltext { font-size: 0.8rem; margin-top: 4px; color: var(--clay-deep); overflow-wrap: anywhere; }
.line-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border: 1px solid var(--line); border-radius: 999px; }
.line-qty button { width: 34px; height: 34px; display: grid; place-items: center; }
.line-qty button svg { width: 16px; height: 16px; }
.line-qty span { min-width: 16px; text-align: center; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.line-right { display: grid; justify-items: end; align-content: space-between; }
.line-right b { font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.line-remove { font-size: 0.76rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.cart-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--bone); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.cart-note { font-size: 0.8rem; color: var(--muted); }
.cart-empty { padding: 56px 8px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.cart-empty strong { color: var(--ink); font-size: 1.1rem; }
.btn-wa { background: oklch(0.48 0.11 155); color: oklch(0.98 0.01 150); }
.btn-wa:hover { background: oklch(0.43 0.11 155); }
.btn-wa svg { width: 20px; height: 20px; }
.btn-wa:hover svg { transform: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 999px; font-size: 0.88rem; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform 0.5s var(--ease); }
.toast button { color: var(--clay-soft); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; }

/* page transition */
#app > * { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
