/* =====================================================================
   MILEPOST TOY CO. — CORE STYLES
   1. Tokens   2. Base   3. Primitives   4. Header   5. Sections
   6. Overlays 7. Footer
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* colour */
  --ivory: #F3EEE4;
  --paper: #FAF7F1;
  --sand: #E9E2D4;
  --line: #D8CFBE;
  --line-soft: #E4DCCD;
  --ink: #1A1917;
  --ink-2: #47433B;
  --muted: #7F786B;
  --accent: #E2471D;          /* racing red-orange */
  --accent-deep: #B9360F;
  --olive: #56623F;           /* muted green */
  --olive-soft: #DFE1D0;
  --yellow: #EDB43A;          /* milestone yellow, used sparingly */
  --wa: #1DA851;

  /* typography */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;

  --fs-hero: clamp(3.3rem, 10.4vw, 11.75rem);
  --fs-h1: clamp(2.5rem, 5.6vw, 5.6rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-lg: clamp(1.06rem, 1.2vw, 1.2rem);
  --fs-base: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1520px;
  --section-y: clamp(80px, 10vw, 168px);

  /* radii (kept deliberately small: editorial, not "app") */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-pill: 999px;

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .2s;
  --dur: .45s;
  --dur-slow: .9s;

  /* layout */
  --nav-h: 76px;
  --announce-h: 36px;
}

/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
html.is-locked { overflow: hidden; padding-right: var(--sbw, 0); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -80px; left: 8px; z-index: 1000; padding: 10px 16px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-sm);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 8px; }
.noscript { padding: 16px; text-align: center; background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------------
   3. PRIMITIVES
   --------------------------------------------------------------------- */
.eyebrow, .section-index, .label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section-index { display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--s-5); }
.section-index::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-index--light { color: rgba(250, 247, 241, .7); }
.label { color: var(--muted); margin-bottom: var(--s-3); display: block; }

.section { padding-block: var(--section-y); }
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.045em;
}
.section-title em, .story__title em, .why__title em, .newsletter__title em, .footer__tagline em, .hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
}
.section-title em { color: var(--accent); }
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head .section-index { grid-column: 1 / -1; }
.section-head .section-title { grid-column: 1 / 8; }
.section-head .section-note { grid-column: 9 / 13; color: var(--ink-2); max-width: 36ch; font-size: var(--fs-lg); line-height: 1.5; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }

/* Buttons */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-display); font-size: .95rem; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn svg { font-size: 1.1em; transition: transform var(--dur) var(--ease); }
.btn:hover svg[class=""], .btn:hover > svg:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn::before { /* fill sweep */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-sweep, var(--ink));
  transform: translateY(101%); transition: transform var(--dur) var(--ease);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-sweep: var(--accent); }
.btn--accent  { --btn-bg: var(--accent); --btn-fg: var(--paper); --btn-sweep: var(--paper); }
.btn--accent:hover { --btn-fg: var(--ink); }
.btn--ghost   { --btn-fg: var(--ink); --btn-bd: transparent; padding-inline: 6px; min-height: 44px; border-radius: 0; }
.btn--ghost::before { display: none; }
.btn--ghost { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 calc(100% - 8px); background-repeat: no-repeat; transition: background-size var(--dur) var(--ease), color var(--dur); }
.btn--ghost:hover { background-size: 0 1px; background-position: 100% calc(100% - 8px); color: var(--accent); }
.btn--outline { --btn-bd: var(--ink); --btn-sweep: var(--ink); }
.btn--outline:hover { --btn-fg: var(--paper); }
.btn--ghost-light { --btn-fg: var(--paper); --btn-bd: rgba(250,247,241,.35); --btn-sweep: var(--paper); }
.btn--ghost-light:hover { --btn-fg: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-sweep: var(--accent); }
.btn--light:hover { --btn-fg: var(--paper); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-sweep: var(--paper); }
.btn--dark:hover { --btn-fg: var(--ink); }
.btn--whatsapp { --btn-bg: var(--wa); --btn-fg: #fff; --btn-sweep: var(--ink); }
.btn--block { width: 100%; }
.btn.is-added { --btn-bg: var(--olive); --btn-fg: var(--paper); }
.btn.is-loading { pointer-events: none; opacity: .7; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  font-size: 22px; color: inherit;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}
.icon-btn:hover { background: rgba(26, 25, 23, .06); }
.icon-btn--outline { border: 1px solid var(--line); }
.icon-btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.icon-btn--outline:disabled { opacity: .35; pointer-events: none; }
.icon-btn--outline-light { border: 1px solid rgba(250,247,241,.25); }
.icon-btn--outline-light:hover { background: var(--paper); color: var(--ink); }

.count-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--paper);
  font: 600 11px/18px var(--font-display); text-align: center;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast);
}
.count-badge.is-empty { background: var(--ink); opacity: 0; transform: scale(.5); }

.badge {
  display: inline-block; padding: 5px 8px 4px;
  font: 600 10.5px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); border-radius: var(--r-xs);
}
.badge--sale { background: var(--accent); }
.badge--new { background: var(--olive); }

.stars { display: inline-flex; gap: 2px; color: var(--accent); font-size: 15px; vertical-align: middle; }
.stars .is-off { color: var(--line); }

.price { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.price__now { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.price__was, .showcase__price s, .arrival__price s { color: var(--muted); font-size: .85em; font-weight: 400; }

.chip {
  flex-shrink: 0; padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font: 500 .875rem/1 var(--font-display);
  color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
  outline: 1px solid transparent; outline-offset: 3px;
  transition: outline-color var(--dur-fast), transform var(--dur-fast) var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { outline-color: var(--ink); }
.swatch--light.is-active { outline-color: var(--paper); }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-pill); height: 52px;
}
.qty button { width: 44px; height: 100%; display: grid; place-items: center; font-size: 18px; border-radius: var(--r-pill); }
.qty button:hover:not(:disabled) { color: var(--accent); }
.qty button:disabled { opacity: .3; }
.qty output { min-width: 24px; text-align: center; font: 500 1rem var(--font-display); }
.qty--sm { height: 36px; }
.qty--sm button { width: 34px; font-size: 15px; }

/* ---------------------------------------------------------------------
   4. ANNOUNCEMENT + NAV
   --------------------------------------------------------------------- */
.announce {
  height: var(--announce-h);
  background: var(--ink); color: var(--ivory);
  overflow: hidden; display: flex; align-items: center;
  font: 500 12.5px/1 var(--font-display); letter-spacing: .02em;
}
.announce__track { display: flex; width: max-content; }
.announce__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.announce__group span { white-space: nowrap; }
.announce__dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(243, 238, 228, 0);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), height var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(243, 238, 228, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  height: 64px;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 24px; height: 31px; transition: transform var(--dur) var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg); }
.logo__word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.06em; line-height: 1;
  display: inline-flex; align-items: flex-start;
}
.logo__word sup {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: .62rem; letter-spacing: 0; margin-left: 4px; top: 0; color: var(--accent);
}

.nav__links { position: relative; display: flex; gap: 6px; }
.nav__link {
  position: relative; padding: 10px 14px;
  font: 500 .925rem/1 var(--font-display); letter-spacing: -.01em;
  color: var(--ink-2); transition: color var(--dur-fast);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__indicator {
  position: absolute; left: 0; bottom: 2px; height: 2px; width: 0;
  background: var(--accent); opacity: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease), opacity var(--dur-fast);
}
.nav__actions { display: flex; align-items: center; gap: 2px; }
.nav__burger { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-io);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mobile-menu__head { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__head .logo__word { color: var(--paper); }
.mobile-menu__links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font: 600 clamp(2.4rem, 11vw, 4rem)/1.05 var(--font-display); letter-spacing: -.05em;
  padding: 6px 0; border-bottom: 1px solid rgba(250,247,241,.1);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color var(--dur-fast);
}
.mobile-menu__links a span { font: 500 .8rem var(--font-display); letter-spacing: .1em; color: var(--accent); }
.mobile-menu__links a:hover { color: var(--accent); }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .23s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .33s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: .38s; }
.mobile-menu__foot { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mobile-menu__meta { margin-top: 14px; font-size: var(--fs-sm); color: rgba(250,247,241,.6); text-align: center; }

/* ---------------------------------------------------------------------
   5. SECTIONS
   --------------------------------------------------------------------- */

/* ===== C. HERO ===== */
.hero {
  position: relative; isolation: isolate;
  background: var(--ivory);
  overflow-x: clip;
  padding-bottom: clamp(32px, 4vw, 56px);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  column-gap: var(--s-5);
  min-height: min(calc(100svh - var(--nav-h) - var(--announce-h) - 90px), 900px);
  min-height: min(calc(100vh - var(--nav-h) - var(--announce-h) - 90px), 900px);
}
@supports (height: 100svh) {
  .hero__grid { min-height: min(calc(100svh - var(--nav-h) - var(--announce-h) - 90px), 900px); }
}
.hero__media {
  grid-column: 6 / -1; grid-row: 1 / -1;
  position: relative; overflow: hidden;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw)) / 2)));
  min-height: 560px;
  background: var(--ink);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__media::after { /* gentle bottom tone so captions sit well */
  content: ''; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, rgba(26,25,23,.35), transparent);
  pointer-events: none;
}
.hero__vertical {
  position: absolute; right: calc(var(--gutter) + max(0px, (100vw - var(--maxw)) / 2) - 4px); bottom: 110px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 500 11px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(250,247,241,.85); z-index: 1;
}
.price-tag {
  position: absolute; z-index: 2;
  top: clamp(24px, 4vw, 48px); right: calc(var(--gutter) + max(0px, (100vw - var(--maxw)) / 2) + 24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 18px 12px 34px;
  background: var(--yellow); color: var(--ink);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  transform: rotate(-7deg);
  font-family: var(--font-display);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}
.price-tag__hole { position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink); opacity: .85; }
.price-tag__label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.price-tag__value { font-size: 1.45rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }

.hero__content { grid-column: 1 / -1; grid-row: 1; padding-top: clamp(28px, 6vh, 72px); pointer-events: none; }
.hero__content .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(18px, 3vh, 32px); pointer-events: auto; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: .86;
  letter-spacing: -.065em;
  color: #fff;
  mix-blend-mode: difference;     /* near-black on ivory, light on the photograph */
  max-width: 9.5em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-size: 1.04em; letter-spacing: -.03em; padding-right: .04em; }

.hero__aside { grid-column: 1 / 6; grid-row: 2; padding-top: clamp(24px, 4vh, 44px); max-width: 440px; }
.hero__lede { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; margin-bottom: var(--s-6); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.hero__inset {
  grid-column: 4 / 7; grid-row: 3; align-self: end;
  position: relative; z-index: 2;
  margin-top: var(--s-6);
  transform: translateY(28px);
  background: var(--ivory);
  padding: 10px 10px 0;
  max-width: 320px; justify-self: end; width: 100%;
}
.hero__inset img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero__inset figcaption {
  display: flex; gap: 10px; padding: 10px 2px 12px;
  font: 500 12px/1.3 var(--font-display); color: var(--ink-2);
}
.hero__inset figcaption span { color: var(--accent); }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
  margin-top: clamp(48px, 6vw, 80px);
}
.hero__facts li { border-top: 1px solid var(--ink); padding-top: 14px; font-size: var(--fs-sm); color: var(--ink-2); }
.hero__facts strong { display: block; font: 600 1rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -.01em; }

/* Ribbon */
.ribbon {
  background: var(--accent); color: var(--ink);
  overflow: hidden; padding: 18px 0;
  border-block: 1px solid var(--ink);
}
.ribbon__track { display: flex; align-items: center; gap: 32px; width: max-content; }
.ribbon span { font: 600 clamp(1.6rem, 3vw, 2.6rem)/1 var(--font-display); letter-spacing: -.045em; white-space: nowrap; }
.ribbon i { font-style: normal; font-size: 1.2rem; }

/* ===== D. COLLECTIONS ===== */
.collections__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 88px) var(--s-5);
  align-items: start;
}
.col { position: relative; display: block; color: var(--ink); }
.col__media { position: relative; overflow: hidden; background: var(--sand); }
.col__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.col:hover .col__media img { transform: scale(1.05); }
.col__text { padding-top: 18px; display: grid; gap: 6px; }
.col__no { font: 500 var(--fs-xs) var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.col__no i { font-style: normal; color: var(--muted); }
.col__title { font: 600 var(--fs-h2)/1 var(--font-display); letter-spacing: -.045em; }
.col__desc { color: var(--ink-2); max-width: 38ch; }
.col__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font: 500 .9rem var(--font-display); width: max-content;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.col__link svg { transition: transform var(--dur) var(--ease); }
.col:hover .col__link { color: var(--accent); }
.col:hover .col__link svg { transform: translateX(5px); }

.col--a { grid-column: 1 / 6; grid-row: 1 / span 2; }
.col--a .col__media { aspect-ratio: 4 / 5.4; }
.col--b { grid-column: 7 / 10; grid-row: 1; margin-top: clamp(40px, 8vw, 140px); }
.col--b .col__media { aspect-ratio: 3 / 4; }
.col--c { grid-column: 10 / 13; grid-row: 1; }
.col--c .col__media { aspect-ratio: 1 / 1; }
.col--d { grid-column: 7 / 13; grid-row: 2; }
.col--d .col__media { aspect-ratio: 16 / 10; }
.col--e { grid-column: 1 / 8; grid-row: 3; }
.col--e .col__media { aspect-ratio: 16 / 9; }
.col--f { grid-column: 9 / 13; grid-row: 3; margin-top: clamp(0px, 6vw, 120px); }
.col--f .col__media { aspect-ratio: 4 / 5; }
/* overlaid captions on the wide tiles for rhythm */
.col--d .col__text, .col--e .col__text {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background: var(--ivory); padding: 22px 28px 4px 0; max-width: min(78%, 460px);
}
.col--d .col__desc, .col--e .col__desc { display: none; }

/* ===== E. SHOP ===== */
.shop { background: var(--paper); }
.shop__count { font: 500 var(--fs-sm) var(--font-display); color: var(--muted); }
.shop__count span { color: var(--ink); font-weight: 600; }

.toolbar {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr auto;
  align-items: center; gap: var(--s-5);
  padding-block: 18px; margin-bottom: clamp(32px, 4vw, 56px);
  border-block: 1px solid var(--line);
}
.toolbar__search { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.toolbar__search svg { font-size: 20px; }
.toolbar__search input {
  width: 100%; border: 0; background: none; padding: 10px 0;
  font: 500 1rem var(--font-display); color: var(--ink); outline: none;
}
.toolbar__search:focus-within { color: var(--ink); }
.toolbar__search input::placeholder { color: var(--muted); font-weight: 400; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font: 500 var(--fs-xs) var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toolbar__sort select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%231A1917' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  padding: 9px 38px 9px 16px; font: 500 .875rem var(--font-display); letter-spacing: 0; text-transform: none; color: var(--ink);
  cursor: pointer;
}

.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(40px, 4vw, 64px) var(--s-5);
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: var(--r-xs); }
.card__link { position: absolute; inset: 0; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter var(--dur); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media.is-contain, .pm__media.is-contain { background: #fff; }
.card__media.is-contain img, .pm__media.is-contain img { object-fit: contain; padding: 8%; }
.card.is-soldout .card__media img { filter: grayscale(.85) contrast(.9); opacity: .8; }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.card__wish {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(250,247,241,.88); color: var(--ink);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast), background var(--dur-fast);
}
.card__wish:hover { background: var(--paper); transform: scale(1.06); }
.card__wish.is-on { color: var(--accent); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  font: 500 .875rem var(--font-display);
  transform: translateY(calc(100% + 16px));
  transition: transform var(--dur) var(--ease), background var(--dur-fast), color var(--dur-fast);
}
.card__quick:hover { background: var(--ink); color: var(--paper); }
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; }
.card__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.card__meta {
  display: flex; justify-content: space-between; gap: 8px;
  font: 500 11px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.stock { display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.stock--low::before { background: var(--yellow); }
.stock--low { color: var(--ink-2); }
.stock--out::before { background: var(--accent); }
.card__name { margin-top: 10px; font: 500 1.08rem/1.25 var(--font-display); letter-spacing: -.02em; }
.card__name a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur) var(--ease); }
.card:hover .card__name a { background-size: 100% 1px; }
.card__sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__add {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--ink); font: 500 .85rem var(--font-display);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.card__add svg { font-size: 16px; transition: transform var(--dur) var(--ease); }
.card__add:hover { background: var(--ink); color: var(--paper); }
.card__add:hover svg { transform: rotate(90deg); }
.card__add.is-added { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.card__add.is-added svg { transform: none; }
.card__add--notify { border-color: var(--line); color: var(--ink-2); }

.empty-state { text-align: center; padding: 64px 16px; display: grid; justify-items: center; gap: 10px; color: var(--ink-2); }
.empty-state__title { font: 600 var(--fs-h2)/1.1 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.shop__more { display: flex; justify-content: center; margin-top: clamp(48px, 5vw, 80px); }

/* ===== F. SHOWCASE ===== */
.showcase { background: var(--ink); color: var(--paper); padding-block: var(--section-y); overflow: hidden; }
.showcase__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.showcase__media { position: sticky; top: 96px; }
.showcase__frame { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #2a2825; border-radius: var(--r-xs); }
.showcase__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease), transform 1.2s var(--ease), clip-path .7s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.showcase__frame.is-swapping img { opacity: 0; transform: scale(1.04); clip-path: inset(0 0 0 12%); }
.showcase__caption {
  display: flex; justify-content: space-between; margin-top: 14px;
  font: 500 var(--fs-xs) var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,241,.6);
}
.showcase__body { transition: opacity .3s var(--ease), transform .45s var(--ease); }
.showcase__body.is-swapping { opacity: 0; transform: translateY(14px); }
.showcase__name { font: 600 clamp(2.2rem, 4.2vw, 4rem)/.95 var(--font-display); letter-spacing: -.05em; }
.showcase__price { margin-top: 18px; font: 500 1.5rem var(--font-display); color: var(--yellow); letter-spacing: -.02em; }
.showcase__price s { color: rgba(250,247,241,.45); font-size: 1rem; margin-left: 6px; }
.showcase__story { margin-top: 22px; font-family: var(--font-serif); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.35; color: rgba(250,247,241,.86); max-width: 34ch; }
.showcase__variants { margin-top: 28px; }
.showcase__variants .label { color: rgba(250,247,241,.6); }
.showcase__variants .label span { color: var(--paper); text-transform: none; letter-spacing: 0; font-size: .85rem; margin-left: 4px; }
.showcase__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.showcase__list { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid rgba(250,247,241,.15); }
.showcase__tab {
  width: 100%; display: grid; grid-template-columns: 34px 52px 1fr auto; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(250,247,241,.15);
  text-align: left; color: rgba(250,247,241,.55);
  transition: color var(--dur-fast);
}
.showcase__tab img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-xs); filter: grayscale(1); opacity: .6; transition: filter var(--dur), opacity var(--dur); }
.showcase__tab-no { font: 500 var(--fs-xs) var(--font-display); letter-spacing: .1em; }
.showcase__tab-name { font: 500 1.05rem var(--font-display); letter-spacing: -.02em; }
.showcase__tab-price { font: 500 .9rem var(--font-display); }
.showcase__tab:hover, .showcase__tab.is-active { color: var(--paper); }
.showcase__tab:hover img, .showcase__tab.is-active img { filter: none; opacity: 1; }
.showcase__tab.is-active .showcase__tab-no { color: var(--accent); }

/* ===== G. STORY ===== */
.story__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
.story__main { grid-column: 1 / 7; grid-row: 1; overflow: hidden; align-self: start; }
.story__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__inset { grid-column: 5 / 8; grid-row: 1; align-self: end; margin-bottom: -8%; position: relative; z-index: 1; transform: translateY(18%); border: 10px solid var(--ivory); }
.story__inset img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.story__text { grid-column: 8 / 13; grid-row: 1; padding-top: clamp(0px, 4vw, 64px); }
.story__title { font: 600 clamp(2.6rem, 5vw, 5rem)/.95 var(--font-display); letter-spacing: -.05em; margin-bottom: clamp(28px, 3vw, 44px); }
.story__title em { color: var(--accent); }
.story__copy { display: grid; gap: 1.1em; color: var(--ink-2); font-size: 1.05rem; max-width: 46ch; }
.dropcap::first-letter {
  float: left; font-family: var(--font-serif); font-size: 4.6em; line-height: .8;
  padding: 6px 10px 0 0; color: var(--accent);
}
.story__sign { margin-top: 28px; font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; }
.story__stats {
  grid-column: 8 / 13; margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
  border-top: 1px solid var(--ink); padding-top: 18px;
}
.story__stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.story__stats dt { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .04em; }
.story__stats dd { font: 600 clamp(2rem, 3.4vw, 3.2rem)/1 var(--font-display); letter-spacing: -.05em; }

/* ===== H. WHY ===== */
.why { background: var(--olive-soft); padding-block: clamp(80px, 9vw, 140px); }
.why__head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--s-5); margin-bottom: clamp(48px, 6vw, 88px); }
.why__head .section-index { grid-column: 1 / -1; }
.why__title { grid-column: 1 / 9; font: 600 clamp(2.2rem, 4.4vw, 4.4rem)/.98 var(--font-display); letter-spacing: -.05em; }
.why__title em { color: var(--olive); }
.why__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.why__list li { padding: 8px clamp(16px, 2vw, 28px) 8px; border-left: 1px solid rgba(26,25,23,.18); }
.why__list li:first-child { border-left: 0; padding-left: 0; }
.why__list svg { font-size: 30px; color: var(--accent); margin-bottom: 40px; }
.why__list h3 { font: 600 1.15rem/1.2 var(--font-display); letter-spacing: -.02em; margin-bottom: 10px; }
.why__list p { font-size: .925rem; color: var(--ink-2); }

/* ===== Band ===== */
.band { position: relative; height: clamp(440px, 78vh, 760px); overflow: hidden; color: var(--paper); display: flex; align-items: flex-end; }
.band__img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,19,17,.82) 0%, rgba(20,19,17,.45) 45%, rgba(20,19,17,.05) 80%); }
.band__text { position: relative; z-index: 1; padding-bottom: clamp(40px, 6vw, 88px); }
.band__text p { font: 600 clamp(2.6rem, 7vw, 7rem)/.9 var(--font-display); letter-spacing: -.06em; margin-bottom: 32px; }
.band__text em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--yellow); letter-spacing: -.02em; }

/* ===== I. NEW ARRIVALS ===== */
.arrivals { overflow: hidden; }
.carousel-nav { display: flex; gap: 8px; }
.carousel {
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 360px);
  column-gap: var(--s-5);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding-inline: var(--pad); padding-bottom: 8px;
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.is-dragging * { pointer-events: none; }
.carousel:focus-visible { outline-offset: -2px; }
.arrival { scroll-snap-align: start; min-width: 0; }
.arrival__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: var(--r-xs); }
.arrival__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); -webkit-user-drag: none; user-select: none; }
.arrival:hover .arrival__media img { transform: scale(1.05); }
.arrival__label {
  position: absolute; top: 12px; left: 12px;
  padding: 7px 11px 6px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  font: 500 11px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
}
.arrival__label--out { left: auto; right: 12px; background: var(--ink); color: var(--paper); }
.arrival__body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 14px; }
.arrival__name { font: 500 1.05rem/1.25 var(--font-display); letter-spacing: -.02em; }
.arrival__price { margin-top: 4px; font: 600 .95rem var(--font-display); }
.arrival__add {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: var(--ink); color: var(--paper);
  transition: background var(--dur-fast), transform var(--dur) var(--ease);
}
.arrival__add:hover { background: var(--accent); transform: rotate(90deg); }
.arrival__add.is-added { background: var(--olive); transform: none; }
.arrival__add--out { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.arrival__add--out:hover { background: var(--wa); color: #fff; transform: none; border-color: var(--wa); }
.carousel-progress { position: relative; height: 2px; background: var(--line); margin-top: 32px; overflow: hidden; }
.carousel-progress span { position: absolute; left: 0; top: 0; height: 100%; background: var(--ink); transition: transform .15s linear; }

/* ===== J. REVIEWS ===== */
.reviews { background: var(--paper); }
.reviews__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
.reviews__head { grid-column: 1 / 5; position: sticky; top: 110px; }
.reviews__head .section-title { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.reviews__score { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.reviews__big { font: 600 4.5rem/1 var(--font-display); letter-spacing: -.06em; }
.reviews__score p { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; max-width: 22ch; }
.reviews__list { grid-column: 6 / 13; columns: 2; column-gap: var(--s-6); }
.review { break-inside: avoid; padding: 26px 0 32px; border-top: 1px solid var(--line); margin-bottom: 8px; }
.review blockquote { margin: 16px 0 22px; font-family: var(--font-serif); font-size: clamp(1.25rem, 1.5vw, 1.45rem); line-height: 1.3; letter-spacing: -.005em; }
.review figcaption { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; }
.avatar {
  grid-row: span 2; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 .85rem var(--font-display); letter-spacing: .02em;
  background: var(--accent); color: var(--paper);
}
.avatar--1 { background: var(--olive); }
.avatar--2 { background: var(--yellow); color: var(--ink); }
.avatar--3 { background: var(--ink); }
.review__who { font-size: var(--fs-sm); color: var(--muted); }
.review__who strong { display: inline; color: var(--ink); font-weight: 600; margin-right: 6px; }
.review__product { font: 500 11px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }

/* ===== K. GALLERY ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__item { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery__item--0 { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter var(--dur); }
.gallery__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 34px; color: var(--paper); background: rgba(26,25,23,.35);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover .gallery__icon, .gallery__item:focus-visible .gallery__icon { opacity: 1; }

/* ===== L. NEWSLETTER ===== */
.newsletter { background: var(--accent); color: var(--ink); padding-block: clamp(72px, 8vw, 128px); }
.newsletter__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: end; }
.newsletter__title { grid-column: 1 / 8; font: 600 clamp(2.6rem, 6vw, 6rem)/.92 var(--font-display); letter-spacing: -.055em; }
.newsletter__title em { color: var(--paper); }
.newsletter__side { grid-column: 8 / 13; }
.newsletter__side > p { font-size: 1.02rem; margin-bottom: 26px; max-width: 44ch; }
.newsletter__form { display: flex; gap: 10px; border-bottom: 1.5px solid var(--ink); padding-bottom: 10px; }
.newsletter__form input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: 500 1.15rem var(--font-display); color: var(--ink); padding: 8px 0;
}
.newsletter__form input::placeholder { color: rgba(26,25,23,.55); }
.newsletter__form input[aria-invalid="true"] { color: var(--ink); }
.newsletter__form .btn { min-height: 48px; }
.newsletter__form.is-done { border-bottom-color: rgba(26,25,23,.3); }
.newsletter__msg { min-height: 1.5em; margin-top: 12px; font: 500 .9rem var(--font-display); }
.newsletter__msg.is-error { color: var(--paper); }

/* ---------------------------------------------------------------------
   6. OVERLAYS
   --------------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20, 19, 17, .45);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.scrim.is-open { opacity: 1; }

/* Cart drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(460px, 100vw);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  overflow: hidden;
  box-shadow: -20px 0 60px rgba(0,0,0,.08);
}
.drawer.is-open { transform: none; }
.drawer__views { display: flex; width: 200%; height: 100%; transition: transform .5s var(--ease); }
.drawer__views[data-view="checkout"] { transform: translateX(-50%); }
.drawer__view { width: 50%; height: 100%; display: flex; flex-direction: column; min-width: 0; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line-soft);
}
.drawer__view--checkout .drawer__head { padding-left: 14px; }
.drawer__head h2 { font: 600 1.35rem var(--font-display); letter-spacing: -.035em; flex: 1; }
.drawer__count { color: var(--muted); font-weight: 500; }
.ship-meter { padding: 16px 28px; background: var(--ivory); font-size: var(--fs-sm); }
.ship-meter__bar { height: 3px; background: var(--line); margin-top: 10px; border-radius: 3px; overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.ship-meter.is-complete .ship-meter__bar span { background: var(--olive); }
.cart-list { flex: 1; overflow-y: auto; padding: 0 28px; overscroll-behavior: contain; }
.cart-line {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line-soft);
  transition: opacity .25s, transform .25s var(--ease);
}
.cart-line.is-leaving { opacity: 0; transform: translateX(24px); }
.cart-line img { width: 88px; height: 104px; object-fit: cover; background: var(--sand); border-radius: var(--r-xs); }
.cart-line__name { font: 500 1rem/1.25 var(--font-display); letter-spacing: -.02em; }
.cart-line__meta { font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 12px; }
.cart-line__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line__total { font: 600 1rem var(--font-display); }
.cart-line__remove { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--muted); padding: 6px 0; }
.cart-line__remove:hover { color: var(--accent); }
.cart-line__remove svg { font-size: 15px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px; color: var(--ink-2); }
.cart-empty__title { font: 600 1.8rem/1.1 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.cart-empty .btn { margin-top: 16px; }
.drawer__foot { padding: 20px 28px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--paper); }
.totals { display: grid; gap: 8px; margin-bottom: 18px; }
.totals div { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-2); }
.totals dd { font-family: var(--font-display); font-weight: 500; color: var(--ink); }
.totals__grand { padding-top: 10px; border-top: 1px solid var(--line-soft); }
.totals__grand dt { color: var(--ink); font-weight: 600; }
.totals__grand dd { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.drawer__fine { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); text-align: center; line-height: 1.5; }

/* Checkout */
.checkout { flex: 1; overflow-y: auto; padding: 0 28px 28px; overscroll-behavior: contain; }
.checkout__summary { padding: 20px 0; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; }
.checkout__summary ul { display: grid; gap: 8px; margin-bottom: 16px; font-size: var(--fs-sm); }
.checkout__summary li { display: flex; justify-content: space-between; gap: 12px; }
.checkout__summary li em { color: var(--muted); }
.totals--compact { margin: 0; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font: 500 var(--fs-sm) var(--font-display); }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: 1rem; outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,25,23,.07); }
.has-error input, .has-error textarea { border-color: var(--accent); }
.field__error { color: var(--accent-deep); font-size: var(--fs-xs); min-height: 0; margin-top: 5px; }
.field__error:empty { display: none; }
.field__phone { display: flex; }
.field__phone span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--ivory); font: 500 .95rem var(--font-display); }
.field__phone input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--row label { display: block; margin-bottom: 7px; font: 500 var(--fs-sm) var(--font-display); }
.checkout__demo { font-size: var(--fs-xs); background: #FCEFD3; color: #6B4B0E; padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 14px; }
.checkout__demo code { font-size: .95em; }
.checkout__done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px 28px; }
.checkout__done h3 { font: 600 2rem var(--font-display); letter-spacing: -.04em; }
.checkout__done p { color: var(--ink-2); margin-bottom: 12px; }
.checkout__tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--paper); font-size: 34px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.modal.is-open { opacity: 1; }
.modal__panel {
  position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; background: var(--paper); border-radius: var(--r-sm);
  transform: translateY(24px) scale(.985); transition: transform .55s var(--ease);
  overscroll-behavior: contain;
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--paper); }
.pm { display: grid; grid-template-columns: 1.05fr 1fr; }
.pm__media { background: var(--sand); min-height: 100%; }
.pm__media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pm__info { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.pm__cat { font: 500 var(--fs-xs) var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-right: 40px; }
.pm__name { margin-top: 12px; font: 600 clamp(1.9rem, 3vw, 2.8rem)/1 var(--font-display); letter-spacing: -.045em; }
.pm__rating { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: var(--fs-sm); color: var(--muted); }
.pm__price { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-display); }
.pm__price .price__now { font-size: 1.7rem; letter-spacing: -.03em; }
.pm__desc { margin-top: 18px; color: var(--ink-2); }
.pm__variants { margin-top: 24px; }
.pm__variants .label span { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.pm__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pm__specs li { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--ink-2); }
.pm__buy { display: flex; gap: 10px; margin-top: 28px; align-items: center; }
.pm__add { flex: 1; }
.pm__wish { width: 52px; height: 52px; }
.pm__wish.is-on { color: var(--accent); border-color: var(--accent); }
.pm__wish.is-on:hover { color: var(--paper); background: var(--accent); }
.pm__ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 500 .9rem var(--font-display); color: var(--wa); width: max-content; }
.pm__ask svg { font-size: 20px; }
.pm__ask:hover { text-decoration: underline; text-underline-offset: 4px; }
.pm__stock { margin-top: 14px; font-size: var(--fs-sm); color: var(--olive); }
.pm__stock.is-low { color: #8A5E00; }
.pm__stock.is-out { color: var(--accent-deep); }

.modal--text .modal__panel { width: min(640px, 100%); }
.legal { padding: clamp(28px, 4vw, 48px); }
.legal h2 { font: 600 2rem var(--font-display); letter-spacing: -.04em; margin-bottom: 18px; }
.legal p { color: var(--ink-2); margin-bottom: 12px; }
.legal__note { font-size: var(--fs-xs); color: var(--muted) !important; }

/* Search */
.search {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(243, 238, 228, .97);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow-y: auto;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.search.is-open { opacity: 1; }
.search__panel { padding-top: clamp(24px, 6vh, 72px); padding-bottom: 48px; max-width: 980px; transform: translateY(-16px); transition: transform .55s var(--ease); }
.search.is-open .search__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.search__bar > svg { font-size: 30px; }
.search__bar input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  font: 600 clamp(1.6rem, 4vw, 3rem) var(--font-display); letter-spacing: -.045em; color: var(--ink);
}
.search__bar input::placeholder { color: rgba(26,25,23,.3); }
.search__bar input::-webkit-search-cancel-button { display: none; }
.search__suggest { margin-top: 32px; }
.search__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search__tags button { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); font: 500 .9rem var(--font-display); transition: all var(--dur-fast); }
.search__tags button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search__results { margin-top: 16px; }
.search__hit {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left;
  transition: padding var(--dur) var(--ease), background var(--dur-fast);
}
.search__hit:hover, .search__hit:focus-visible { padding-left: 10px; background: rgba(26,25,23,.03); }
.search__hit img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-xs); background: var(--sand); }
.search__hit-name { font: 500 1.15rem/1.25 var(--font-display); letter-spacing: -.02em; }
.search__hit-name small { display: block; font: 400 var(--fs-sm) var(--font-body); color: var(--muted); letter-spacing: 0; }
.search__hit-price { font: 600 1rem var(--font-display); }
.search__all { margin-top: 18px; font: 500 .95rem var(--font-display); color: var(--accent); }
.search__all:hover { text-decoration: underline; text-underline-offset: 4px; }
.search__none { padding: 28px 0; color: var(--ink-2); }
.search__none a { color: var(--accent); text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 95;
  display: flex; align-items: center; gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 10px 12px 10px 10px;
  background: var(--ink); color: var(--paper); border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0;
  transition: transform .55s var(--ease), opacity .3s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast__img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--r-sm); background: #333; }
.toast > div { flex: 1; min-width: 0; }
.toast__title { font: 600 .95rem var(--font-display); letter-spacing: -.01em; }
.toast__text { font-size: var(--fs-xs); color: rgba(250,247,241,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__btn { padding: 10px 14px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 500 .825rem var(--font-display); white-space: nowrap; }
.toast__btn:hover { background: var(--accent); color: var(--paper); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 28px;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px rgba(29,168,81,.35);
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
html.is-locked .wa-float { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------------
   7. FOOTER
   --------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--paper); padding-top: clamp(72px, 8vw, 120px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(32px, 4vw, 64px); }
.footer__tagline { font: 600 clamp(2rem, 3vw, 2.8rem)/1 var(--font-display); letter-spacing: -.05em; }
.footer__tagline em { color: var(--accent); }
.footer__about { margin-top: 18px; color: rgba(250,247,241,.6); max-width: 36ch; font-size: .95rem; }
.footer__social { display: flex; gap: 8px; margin-top: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.footer__col h3 { font: 500 var(--fs-xs) var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(250,247,241,.45); margin-bottom: 8px; }
.footer__col a, .footer__col p { color: rgba(250,247,241,.85); font-size: .95rem; width: max-content; max-width: 100%; }
.footer__col p { width: auto; }
.footer__col a { transition: color var(--dur-fast); }
.footer__col a:hover { color: var(--accent); }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: #5BD889 !important; }
.footer__wa svg { font-size: 20px; }
.footer__word {
  font: 700 clamp(5rem, 24vw, 26rem)/.78 var(--font-display); letter-spacing: -.075em;
  color: #2A2825; margin: clamp(48px, 6vw, 96px) 0 0 -.04em; padding-bottom: .2em; user-select: none; white-space: nowrap;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(250,247,241,.12);
  font-size: var(--fs-xs); color: rgba(250,247,241,.5);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--paper); }
