/* Heritage to Home — storefront styles
   Concept: white-gallery streetwear-editorial, benchmarked against the
   reference site the client named (shopraftaar.com) and pushed past it.
   Ground is warm white, imagery sits on pale mats, type is uppercase Archivo
   at real display sizes, and the brand's antique gold is the only accent.
   Shape rule: every surface and control is sharp (no radius); only the tiny
   status pills stay rounded because they are system chips, not surfaces. */

:root {
  --paper: #fdfcfa;        /* page ground */
  --surface: #f4f1eb;      /* image mats, quiet panels */
  --ink: #131110;          /* text + black blocks */
  --ink-soft: #211d1a;
  --ink-line: rgba(253, 252, 250, 0.16);
  --gold: #c9a24b;
  --gold-deep: #96742a;    /* dark enough for AA text on white */
  --gold-wash: rgba(201, 162, 75, 0.16);
  --ivory: #f7f4ee;        /* kept for dark-block text */
  --line: #e7e2d8;
  --muted: #7c7466;
  --danger: #b3382e;
  --ok: #2e7d4f;

  --radius: 0px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 16px 44px -18px rgba(19, 17, 16, 0.22);
  --shadow-lift: 0 26px 60px -24px rgba(19, 17, 16, 0.32);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
/* No sideways scroll at any width. This used to live in the phone media query
   only, so on a desktop anything hanging past the right edge opened a
   horizontal scrollbar and left a strip of page background beside the
   full-width bands. `clip` rather than `hidden`: `hidden` on the root turns it
   into a scroll container, which kills the sticky header. */
html, body { overflow-x: clip; }
body {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
/* <picture> is a wrapper for the format choice, not a layout box. Without this
   every img that sizes against its parent would suddenly be sizing against the
   picture instead, and percentage heights would collapse. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }

/* Uppercase display headings carry the concept. The reference runs its
   headings at one weight and a 40px ceiling; this scale goes well past that
   and uses weight for hierarchy. */
h1, h2 {
  font-family: var(--font-display); font-weight: 600; margin: 0 0 .5rem;
  color: var(--ink); text-transform: uppercase; letter-spacing: .015em; line-height: 1.02;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.5rem); }
h1 em, h2 em { font-style: italic; color: var(--gold-deep); line-height: 1.1; display: inline-block; padding-bottom: .05em; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin: 0 0 .45rem; line-height: 1.3; color: var(--ink); }
p { margin: 0 0 1rem; max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* At most two of these per page. */
.eyebrow {
  font: 600 .68rem var(--font-display); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 1rem; display: block;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- Buttons: sharp, uppercase, letterspaced ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 2.1rem; border-radius: var(--radius); border: 1px solid transparent;
  font: 600 .74rem var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease-out), background .22s, color .22s,
              border-color .22s, box-shadow .22s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ink); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.on-dark { border-color: rgba(247,244,238,.65); color: var(--ivory); }
.btn-ghost.on-dark:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Header: nav left, wordmark centre, account right ---------- */
.site-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 90;
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: transform .28s var(--ease-out); will-change: transform;
}
.announce {
  background: var(--ink); color: var(--gold); text-align: center;
  font-size: .72rem; font-weight: 600; padding: .55rem 1rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.nav-close { display: none; }

/* Mobile menu drawer stays dark: it slides over the page, so it needs its own
   ground to separate from the white site. */
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 82vw);
  background: var(--ink); z-index: 96; display: flex; flex-direction: column;
  padding: 4.6rem 1.6rem 2rem; gap: .2rem;
  transform: translateX(-100%); transition: transform .3s var(--ease-out);
  box-shadow: 12px 0 40px rgba(0,0,0,.35);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  color: rgba(247,244,238,.88); font: 500 .85rem var(--font-display);
  letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 0; border-bottom: 1px solid var(--ink-line);
}
.mobile-drawer a:hover { color: var(--gold); }
.mobile-drawer .nav-close {
  display: flex; position: absolute; top: .9rem; right: .9rem;
  width: 38px; height: 38px; align-items: center; justify-content: center;
  border: 1px solid rgba(247,244,238,.3); border-radius: 50%;
  background: none; color: var(--ivory); font-size: 1.5rem; line-height: 1; cursor: pointer;
}

.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); height: 74px;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand em { color: var(--gold-deep); font-style: italic; }
.brand span { white-space: nowrap; }
.main-nav { display: flex; gap: 1.7rem; margin-left: auto; }
/* Desktop: menu left, wordmark centred, account and cart right (the reference
   header pattern, kept because it is genuinely good). */
@media (min-width: 861px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .main-nav { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 0; }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
}
.main-nav a {
  position: relative; font: 500 .74rem var(--font-display);
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(19,17,16,.72); padding: .4rem 0; transition: color .22s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold-deep); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease-out);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--ink); }
/* ---------- Shop All dropdown ---------- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-trigger { display: inline-flex; align-items: center; gap: .3rem; }
.nav-caret {
  width: 13px; height: 13px; margin-top: 1px; flex-shrink: 0;
  transition: transform .28s var(--ease-out);
}
.nav-drop.open .nav-caret { transform: rotate(180deg); }
.nav-drop-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  z-index: 60; background: var(--paper);
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  box-shadow: 0 26px 60px -22px rgba(19,17,16,.34);
  animation: nav-drop-in .2s var(--ease-out);
}
/* Bridges the gap between the link and the panel so the pointer can cross
   without the mouseleave firing. */
.nav-drop-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
@keyframes nav-drop-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-drop-inner { display: flex; gap: 2.6rem; padding: 1.6rem 2rem; }
.nav-drop-col { display: flex; flex-direction: column; gap: .1rem; min-width: 140px; }
.nav-drop-head {
  font: 600 .68rem var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep); padding-bottom: .6rem; margin-bottom: .4rem;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.nav-drop-col a:not(.nav-drop-head) {
  font: 400 .88rem var(--font-body); color: var(--muted);
  padding: .4rem 0; white-space: nowrap; transition: color .18s, padding-left .18s;
}
.nav-drop-col a:not(.nav-drop-head):hover { color: var(--ink); padding-left: .3rem; }
.nav-drop-all { border-left: 1px solid var(--line); padding-left: 2.2rem; margin-left: -.4rem; }

/* Categories inside the mobile drawer, always expanded. */
.drawer-cats { display: flex; flex-direction: column; }
.mobile-drawer .drawer-cat-head {
  color: var(--gold); font-size: .74rem; letter-spacing: .2em;
  padding-top: 1.1rem; border-bottom: 0;
}
.mobile-drawer .drawer-sub {
  padding: .5rem 0 .5rem .9rem; font-size: .78rem; letter-spacing: .1em;
  color: rgba(247,244,238,.68); border-bottom: 0; text-transform: none;
}
.mobile-drawer .drawer-sub:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.icon-link { display: flex; align-items: center; gap: .4rem; color: var(--ink); background: none; border: 0; cursor: pointer; font: 500 .82rem var(--font-body); position: relative; }
.icon-link svg { width: 21px; height: 21px; }
.icon-link:hover { color: var(--gold-deep); }
.cart-badge {
  position: absolute; top: -7px; right: -9px; background: var(--ink); color: var(--gold);
  font-size: .66rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 4.5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero: a full-bleed slideshow of the collections ----------
   One slide per collection, content sitting on the media. The photo is never
   cropped: a blurred, darkened copy of it fills the frame edge to edge so the
   band reads full-bleed, and the complete photo is contained on top of that.
   Copy sits in the lower third over a gradient, clear of the product. */
/* ---------- Hero: a full-bleed slideshow of the collections ----------
   Picture and one button, nothing else. The photo is never cropped: a blurred,
   darkened copy of it fills the frame edge to edge so the band reads
   full-bleed, and the complete photo is contained on top of that. The button
   sits low, clear of the product, and opens that collection. */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--ivory);
  height: clamp(30rem, 78vh, 46rem);
}
.hero-slides { position: absolute; inset: 0; }
/* Slides swipe sideways rather than cross-fading. Every slide waits parked off
   the right edge; the one showing sits at 0; the one being replaced is pushed
   off the left. .hero clips the overflow, so the parked slides are invisible. */
.hero-slide {
  /* A pixel of bleed each side so neighbouring slides overlap while they move.
     Butted exactly edge to edge, the seam lands on a fractional pixel mid
     animation and the compositor draws a coloured hairline down it. */
  position: absolute; inset: 0 -1px; transform: translateX(100%);
  /* A slide whose photo has not decoded yet shows the hero ground rather than
     a transparent hole. */
  background: var(--ink);
  /* Parked slides are still in the box, so they must not catch the clicks
     meant for the one on screen. */
  pointer-events: none;
}
.hero-slide.is-on { transform: translateX(0); pointer-events: auto; }
.hero-slide.is-out { transform: translateX(-100%); }
/* Stepping backwards reverses the whole thing: the new slide comes in from the
   left and the old one leaves to the right. */
.hero.is-rewinding .hero-slide { transform: translateX(-100%); }
.hero.is-rewinding .hero-slide.is-on { transform: translateX(0); }
.hero.is-rewinding .hero-slide.is-out { transform: translateX(100%); }
/* Until Motion loads, and for good if it never does, the swipe is a plain CSS
   transition. Motion then writes transform inline every frame, so the
   transition is dropped to stop the two fighting over the same property. */
.hero:not(.motion-on) .hero-slide {
  transition: transform .85s cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none !important; }
}
/* The photograph, whole, on the plain ink ground. There is deliberately no
   blurred copy of it filling the frame and no scrim over it: the blur put a
   soft light band down whichever side the picture happened to be pale on, and
   the button is solid gold on ink, so it reads over any photo without help. */
.hero-slide-shot img {
  /* Sized by its own proportions inside the slide rather than by object-fit,
     so the element's box is exactly the photograph's box. That is what lets
     the outline below land on the photo's own edge. */
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  /* The photo sits on a layer that moves by transform, and its edges land on
     fractional device pixels, where the compositor was drawing a coloured
     hairline down the side of the picture. The outline repaints that outer
     pixel ring in the hero's own ground, and the two hints below keep the
     layer rasterised on whole pixels. */
  outline: 1px solid var(--ink); outline-offset: -1px;
  backface-visibility: hidden; transform: translateZ(0);
}
/* The button. */
.hero-ctas {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; justify-content: center;
  padding: 0 var(--gutter) clamp(2.4rem, 6vh, 4rem);
  /* Only the button takes clicks; the rest of the band stays one big target
     for the slide link underneath. */
  pointer-events: none;
}
.hero-ctas .btn { pointer-events: auto; }

/* Arrows. Square, like every other control on the site. With no dots under
   the picture these are the only way to step through by hand, so they show at
   every width. */
.hero-arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  cursor: pointer; color: var(--ivory);
  background: rgba(19,17,16,.42); border: 1px solid rgba(201,162,75,.5);
  transition: background .25s ease, border-color .25s ease;
}
.hero-arrow:hover { background: rgba(19,17,16,.8); border-color: var(--gold); }
.hero-arrow:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero-arrow--prev { left: clamp(10px, 2.2vw, 26px); }
.hero-arrow--next { right: clamp(10px, 2.2vw, 26px); }
.hero-arrow--next svg { transform: scaleX(-1); }

/* The page still needs its heading for search engines and screen readers even
   though the hero shows no words. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
/* Centred section headers, the reference's strongest habit, executed larger. */
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .4rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.section-head p { margin: 0; color: var(--muted); }
.section-head .link {
  position: relative; font: 600 .72rem var(--font-display); letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-deep); padding-bottom: 4px; white-space: nowrap;
  margin-top: .5rem;
}
.section-head .link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .34s var(--ease-out);
}
.section-head .link:hover::after { transform: scaleX(0); transform-origin: left; }
.section.dark { background: var(--ink); color: rgba(247,244,238,.75); }
.section.dark h2, .section.dark h3 { color: var(--ivory); }
.section.dark .section-head p { color: rgba(247,244,238,.6); }
.section.dark .link { color: var(--gold); }
.section.dark .eyebrow { color: var(--gold); }

/* ---------- Category tiles: image, then label bar below ---------- */
/* The reference's collection card (photo, name left, count right) is its best
   component; this is that card with a sharper mat and a hover reveal. */
.cat-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); }
.cat-card { position: relative; display: block; }
.cat-card img {
  width: 100%; aspect-ratio: 4/3.4; object-fit: cover; background: var(--surface);
  transition: transform .9s var(--ease-soft);
}
.cat-card { overflow: hidden; }
.cat-card:hover img { transform: scale(1.045); }
.cat-card::after { content: none; }
.cat-card .cat-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem .2rem 0;
}
.cat-card .cat-label h3 {
  margin: 0; font: 600 1.05rem var(--font-display);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.cat-card .cat-label span { font-size: .78rem; color: var(--muted); font-weight: 500; letter-spacing: .05em; }

/* ---------- Product grid + cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.1rem, 2vw, 2rem); }
.product-card { background: transparent; display: flex; flex-direction: column; }
.card-media {
  position: relative; aspect-ratio: 1/1.18; overflow: hidden; background: var(--surface);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease-soft), opacity .4s; }
.product-card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--ink); color: var(--gold);
  font: 700 .6rem var(--font-display); letter-spacing: .18em; text-transform: uppercase;
  padding: .38rem .75rem;
}
.card-badge.sold { background: rgba(19,17,16,.82); color: rgba(247,244,238,.7); }
.card-body { padding: .9rem .05rem 0; display: flex; flex-direction: column; gap: .2rem; }
.card-cat { font: 600 .62rem var(--font-display); color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.card-body h3 { font-size: .94rem; margin: 0; font-weight: 500; line-height: 1.4; }
.card-price { display: flex; gap: .55rem; align-items: baseline; margin-top: .25rem; font-weight: 600; }
.card-price s { color: var(--muted); font-size: .84rem; font-weight: 400; }

/* Horizontal rail: second product layout, so two product sections never read
   as the same block twice. */
.product-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: clamp(1.1rem, 2vw, 1.8rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .6rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-rail > * { scroll-snap-align: start; }

/* Mobile parity: even count -> 2x2 grid; odd count -> full-width horizontal cards */
@media (max-width: 767px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .product-grid.grid-odd { grid-template-columns: 1fr; }
  .product-grid.grid-odd .product-card { flex-direction: row; align-items: stretch; gap: .9rem; }
  .product-grid.grid-odd .card-media { width: 42%; min-width: 42%; aspect-ratio: auto; }
  .product-grid.grid-odd .card-body { justify-content: center; padding: .4rem 0; }
  .card-body h3 { font-size: .88rem; }
}

/* ---------- Story band (dark editorial block) ---------- */
.story-band {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.story-band img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; box-shadow: var(--shadow-lift); }
.story-band img.img-contain { background: var(--ink-soft); padding: 1.4rem; }
/* .flip mirrors the band so two of them on one page do not repeat. */
.story-band.flip img { order: 2; }
.story-band .lead { font-size: 1.06rem; line-height: 1.75; }
.story-band > div > .btn { margin-top: .8rem; }

/* ---------- Marquee (one per page) ---------- */
.marquee {
  background: var(--ink); color: var(--gold); overflow: hidden;
  padding: .95rem 0;
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee-slide 34s linear infinite; }
.marquee span {
  font: 600 .82rem var(--font-display); letter-spacing: .26em; text-transform: uppercase;
  white-space: nowrap; display: flex; align-items: center; gap: 3.5rem;
}
.marquee span::after { content: "\25C6"; font-size: .5rem; opacity: .55; }
@keyframes marquee-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Lookbook: dark band, whole photograph, copy beside it ---------- */
.lookbook { background: var(--ink); color: var(--ivory); padding-block: clamp(3rem, 6vw, 5rem); }
.lookbook-grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.lookbook-inner h2 { color: var(--ivory); }
.lookbook-inner p { color: rgba(247,244,238,.8); margin-bottom: 1.7rem; }
.lookbook-media { position: relative; }
.lookbook-media::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid var(--gold); opacity: .5; pointer-events: none;
}
.lookbook-media img {
  position: relative; width: 100%; height: auto; max-height: 64vh;
  object-fit: contain; box-shadow: var(--shadow-lift);
}

/* ---------- Value strip: statement column vs hairline list ---------- */
.value-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.value-strip .value-lead h2 { margin: 0; }
.value-strip .value-list { display: flex; flex-direction: column; }
.value-strip .value { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.value-strip .value:first-child { border-top: 0; padding-top: 0; }
.value h3 { margin-bottom: .35rem; font-size: 1rem; }
.value p { margin: 0; color: var(--muted); font-size: .94rem; max-width: 54ch; }
.section.dark .value { border-color: var(--ink-line); }
.section.dark .value p { color: rgba(247,244,238,.66); }
.section.dark .value h3 { color: var(--ivory); }

/* ---------- Manifesto: one line of the house, set enormous ---------- */
.manifesto { text-align: center; }
.manifesto blockquote {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25; color: var(--ink);
}
.manifesto blockquote::before { content: "\201C"; color: var(--gold); margin-right: .08em; }

/* ---------- Testimonials: one featured voice, two beside it ---------- */
.quote-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.quote-feature blockquote {
  margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.35; color: var(--ink);
}
.quote-feature blockquote::before { content: "\201C"; color: var(--gold); margin-right: .1em; }
.quote-side { display: flex; flex-direction: column; }
.quote-side blockquote {
  margin: 0; padding: 1.4rem 0; border-top: 1px solid var(--line);
  font-size: .97rem; color: var(--ink); line-height: 1.6;
}
.quote-side blockquote:first-child { border-top: 0; padding-top: .4rem; }
.quote-attr {
  display: block; margin-top: .8rem;
  font: 600 .66rem var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep); font-style: normal;
}

/* ---------- Page hero (shop/about/policy pages): white, huge, quiet ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--ivory);
  padding-block: clamp(3rem, 6.5vw, 5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(95% 130% at 88% 0%, rgba(201,162,75,.16), transparent 60%);
}
.page-hero > * { position: relative; }
.page-hero h1 { margin: 0; color: var(--ivory); }
.page-hero p { color: rgba(247,244,238,.72); margin: .8rem 0 0; }
.page-hero .wrap::after {
  content: ""; display: block; width: 84px; height: 2px; margin-top: 1.4rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- Shop toolbar ---------- */
.shop-toolbar {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  margin-bottom: 2rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line);
}
.chip-scroll { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  padding: .5rem 1.25rem; font: 600 .7rem var(--font-display); letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, transform .16s var(--ease-out);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* Custom dropdown (sort) */
.dd { position: relative; margin-left: auto; }
.dd-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: .5rem .8rem .5rem 1.1rem; font: 600 .7rem var(--font-display);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  cursor: pointer; transition: border-color .15s, transform .16s var(--ease-out);
}
.dd-btn:hover { border-color: var(--ink); }
.dd-btn:active { transform: scale(.97); }
.dd-btn svg { width: 15px; height: 15px; transition: transform .2s var(--ease-out); color: var(--muted); }
.dd-btn.open svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); min-width: 210px; padding: .35rem;
  transform-origin: top right; animation: dd-in .16s var(--ease-out);
}
@keyframes dd-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.dd-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 0; background: none; text-align: left; padding: .6rem .8rem;
  font: 500 .88rem var(--font-body); color: var(--ink); cursor: pointer;
}
.dd-menu button:hover { background: var(--surface); }
.dd-menu button.active { background: var(--ink); color: var(--paper); font-weight: 600; }
.dd-menu button.active::after { content: "\2713"; color: var(--gold); margin-left: .8rem; }
.result-count { font-size: .85rem; color: var(--muted); width: 100%; }

/* Second filter row: sub-categories of the selected category. Reads as a
   quieter tier than the category chips, so the hierarchy is obvious. */
.subchip-row {
  display: flex; gap: .55rem; flex-wrap: wrap; align-items: center;
  margin: -.6rem 0 2rem;
}
.chip-sub {
  border-color: transparent; background: var(--surface); color: var(--muted);
  padding: .4rem 1rem; font-size: .66rem;
}
.chip-sub:hover { border-color: var(--line); color: var(--ink); background: var(--paper); }
.chip-sub.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 4vw, 4rem); }
.pdp-gallery { display: flex; gap: .8rem; align-items: flex-start; }
.pdp-thumbs { display: flex; flex-direction: column; gap: .6rem; width: 74px; }
.pdp-thumbs button {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  cursor: pointer; background: var(--surface); aspect-ratio: 1;
  transition: border-color .22s, opacity .22s; opacity: .72;
}
.pdp-thumbs button:hover { opacity: 1; }
.pdp-thumbs button.active { border-color: var(--ink); opacity: 1; }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-main { flex: 1; overflow: hidden; background: var(--surface); position: relative; }
.pdp-main img { width: 100%; aspect-ratio: 1/1.14; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: .3rem; }
.pdp-price { display: flex; align-items: baseline; gap: .7rem; margin: .5rem 0 1.2rem; }
.pdp-price strong { font-size: 1.55rem; font-weight: 600; font-family: var(--font-display); }
.pdp-price s { color: var(--muted); }
.pdp-price .save { background: var(--gold); color: var(--ink); font: 700 .66rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: .28rem .6rem; }
.opt-label { font: 600 .68rem var(--font-display); letter-spacing: .18em; text-transform: uppercase; margin: 1.2rem 0 .55rem; }
.size-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-row button {
  min-width: 48px; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper); font: 600 .84rem var(--font-body); cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, transform .16s var(--ease-out);
}
.size-row button:hover { border-color: var(--ink); }
.size-row button:active { transform: scale(.96); }
.size-row button.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.qty-box button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.15rem; cursor: pointer; }
.qty-box span { min-width: 30px; text-align: center; font-weight: 600; }
.stock-note { font-size: .85rem; font-weight: 600; }
.stock-note.ok { color: var(--ok); }
.stock-note.low { color: var(--danger); }
.pdp-details { margin-top: 1.7rem; border-top: 1px solid var(--line); }
.pdp-details details { border-bottom: 1px solid var(--line); }
.pdp-details summary {
  padding: 1rem 0; font: 600 .72rem var(--font-display); letter-spacing: .16em;
  text-transform: uppercase; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.pdp-details summary::after { content: "+"; color: var(--gold-deep); font-size: 1.1rem; }
.pdp-details details[open] summary::after { content: "\2212"; }
.pdp-details ul { margin: 0 0 1rem 1.1rem; padding: 0; color: var(--muted); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h3 { margin-bottom: 1rem; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 76px; height: 88px; object-fit: cover; background: var(--surface); }
.sum-row { display: flex; justify-content: space-between; margin-bottom: .55rem; font-size: .95rem; }
.sum-row.total { font-size: 1.12rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.coupon-row { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-row input { flex: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; font-weight: 600; }
input, textarea, select {
  font: 400 .95rem var(--font-body); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem; background: #fff;
  transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
.radio-card { display: flex; gap: .7rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1rem; cursor: pointer; margin-bottom: .7rem; background: #fff; transition: border-color .15s, background-color .15s; }
.radio-card input { width: auto; margin-top: .25rem; accent-color: var(--ink); }
.radio-card input:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.radio-card.selected { border-color: var(--ink); background: var(--surface); }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .3rem; }
.panel h3 + .co-lead { margin-top: -.55rem; }
/* The optional order note stays folded away until it is wanted. */
.co-notes summary {
  width: fit-content; cursor: pointer; list-style: none;
  font-size: .84rem; font-weight: 600; color: var(--gold-deep);
}
.co-notes summary::-webkit-details-marker { display: none; }
.co-notes summary::before { content: "+ "; }
.co-notes[open] summary::before { content: "\2212  "; }
.co-notes summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.co-notes textarea { display: block; width: 100%; margin-top: .55rem; }

/* ---------- Pay by card (Square payment link) ----------
   Shown once the order is placed. Square's page asks the shopper to type the
   amount in, so the amount is the largest thing on the screen. */
.pay-box { text-align: center; margin: 1.4rem 0; }
.pay-amount { display: flex; align-items: baseline; justify-content: center; gap: .7rem; margin: .1rem 0 1.1rem; }
.pay-amount strong { font: 600 2.3rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.pay-copy {
  border: 0; background: none; padding: .35rem .2rem; cursor: pointer;
  font: 600 .8rem var(--font-body); color: var(--gold-deep); text-decoration: underline;
}
.pay-copy:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.pay-steps { margin: 1.3rem 0 0; padding: 1.1rem 0 0 1.2rem; border-top: 1px solid var(--line); text-align: left; color: var(--muted); font-size: .92rem; }
.pay-steps li { margin-bottom: .45rem; padding-left: .2rem; }
.pay-steps li:last-child { margin-bottom: 0; }
.pay-steps strong { color: var(--ink); }

/* Product page: Buy Now, under Add to Cart, goes straight to checkout. */
.pdp-buy { margin-top: .7rem; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.auth-tabs { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.4rem; }
.auth-tabs button {
  flex: 1; padding: .7rem; border: 0; background: #fff;
  font: 600 .7rem var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; color: var(--muted);
}
.auth-tabs button.active { background: var(--ink); color: var(--paper); }
.method-tabs { display: flex; gap: .5rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.auth-form { display: flex; flex-direction: column; gap: .85rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; margin: 1.1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-google:hover { border-color: var(--ink); }
.btn-google img { width: 18px; height: 18px; }

/* ---------- Password toggle ---------- */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 2.7rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--muted); padding: .35rem; display: flex; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { width: 20px; height: 20px; }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1.6rem; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: .3rem; }
.account-nav button {
  text-align: left; padding: .75rem .9rem; border: 0; background: none; border-radius: var(--radius);
  font: 600 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; color: var(--muted);
}
.account-nav button.active { background: var(--ink); color: var(--paper); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; background: #fff; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
/* Status pills are system chips, not layout surfaces: the one rounded shape. */
.status-pill { border-radius: var(--radius-pill); padding: .25rem .75rem; font-size: .75rem; font-weight: 700; text-transform: capitalize; }
.status-pending { background: #f4e8c8; color: #7c5c10; }
.status-confirmed { background: #dbe9f6; color: #1e4f7c; }
.status-shipped { background: #e4defa; color: #4b3a8f; }
.status-delivered { background: #d9efe1; color: #1f6b40; }
.status-cancelled { background: #f6dbd8; color: #8f2f27; }
.order-items { color: var(--muted); font-size: .9rem; }

/* ---------- Cart drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(19,17,16,.5); opacity: 0; transition: opacity .25s; z-index: 90; }
.drawer-overlay.open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 94vw); background: var(--paper);
  z-index: 95; display: flex; flex-direction: column; transform: translateX(100%);
  transition: transform .3s var(--ease-out); box-shadow: -12px 0 40px rgba(0,0,0,.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { margin: 0; font: 600 1rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.cart-close { border: 0; background: none; font-size: 1.7rem; cursor: pointer; line-height: 1; color: var(--muted); }
.cart-items { flex: 1; overflow-y: auto; padding: .5rem 1.3rem; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row img { width: 64px; height: 74px; object-fit: cover; background: var(--surface); }
.cart-row-info { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.qty-ctl { display: flex; align-items: center; gap: .55rem; margin-top: .3rem; }
.qty-ctl button { border: 1px solid var(--line); background: #fff; width: 24px; height: 24px; border-radius: var(--radius); cursor: pointer; line-height: 1; }
.qty-ctl .rm { width: auto; border: 0; background: none; color: var(--danger); font-size: .78rem; text-decoration: underline; }
.cart-foot { padding: 1.1rem 1.3rem 1.4rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; }
/* The footer's two parts re-render on their own; each stacks like the footer. */
.cart-foot-part { display: flex; flex-direction: column; gap: .6rem; }
.cart-foot-part:empty { display: none; }
.cart-sub { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* ---------- Offer popup + corner card ---------- */
.offer-overlay {
  position: fixed; inset: 0; background: rgba(19,17,16,.55); z-index: 110;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s;
}
.offer-overlay.open { opacity: 1; }
.offer-modal {
  position: relative; background: var(--paper); border-radius: var(--radius); max-width: 400px; width: 100%;
  padding: 2.1rem 1.8rem 1.7rem; text-align: center; box-shadow: var(--shadow-lift);
  border-top: 3px solid var(--gold);
  transform: translateY(14px) scale(.97); transition: transform .3s var(--ease-out);
}
.offer-overlay.open .offer-modal { transform: translateY(0) scale(1); }
.offer-close { position: absolute; top: .5rem; right: .8rem; border: 0; background: none; font-size: 1.7rem; color: var(--muted); cursor: pointer; line-height: 1; }
.offer-value {
  display: inline-block; background: var(--ink); color: var(--gold);
  font: 700 .78rem var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  padding: .45rem 1.1rem; margin-bottom: .9rem;
}
.offer-modal h3 { font: 600 1.15rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .45rem; }
.offer-modal p { color: var(--muted); font-size: .95rem; }
.offer-code-row { display: flex; gap: .6rem; justify-content: center; align-items: center; margin: 1rem 0; }
.offer-code-row code {
  background: #fff; border: 1px dashed var(--gold-deep); color: var(--ink);
  font-weight: 700; letter-spacing: .12em; padding: .6rem 1rem; font-size: 1rem;
}
.offer-chip {
  position: fixed; right: 18px; bottom: 18px; z-index: 85;
  background: var(--ink); border: 1px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  transition: transform .2s var(--ease-out);
  /* Plays every time the chip appears: [hidden] sets display:none, and leaving
     display:none restarts the animation. Slight overshoot reads as a spring. */
  animation: chip-in .6s var(--ease-soft) backwards;
}
@keyframes chip-in {
  0%   { opacity: 0; transform: translateY(28px) scale(.9); }
  65%  { opacity: 1; transform: translateY(-5px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.offer-chip:hover { transform: translateY(-3px); }
/* Attention loop: a gold glow that breathes every few seconds. The shadow is
   painted once on the pseudo-element; only its opacity animates. */
.offer-chip::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px rgba(201,162,75,.55), 0 0 44px rgba(201,162,75,.25);
  opacity: 0; animation: chip-glow 4.6s ease-in-out .9s infinite;
}
@keyframes chip-glow {
  0%, 100% { opacity: 0; }
  12%      { opacity: 1; }
  30%      { opacity: 0; }
}
.offer-chip-main {
  background: none; border: 0; cursor: pointer; color: var(--ivory);
  padding: .65rem 1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  font-family: var(--font-body);
  position: relative; overflow: hidden; /* clips the shine sweep */
}
/* A thin light band sweeps the face right after the glow, like foil catching
   light. Lives on the inner button so the close bubble is never clipped. */
.offer-chip-main::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%;
  background: linear-gradient(105deg, transparent, rgba(247,244,238,.22) 48%, rgba(201,162,75,.28) 52%, transparent);
  transform: translateX(-130%) skewX(-14deg);
  animation: chip-shine 4.6s var(--ease-out) 1.1s infinite;
  pointer-events: none;
}
@keyframes chip-shine {
  0%       { transform: translateX(-130%) skewX(-14deg); }
  14%, 100% { transform: translateX(320%) skewX(-14deg); }
}
.offer-chip-main:active { transform: scale(.97); }
.offer-chip-value { color: var(--gold); font: 700 .8rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.offer-chip-code { font-size: .7rem; color: rgba(247,244,238,.75); letter-spacing: .1em; }
.offer-chip-close {
  position: absolute; top: -9px; right: -9px; width: 22px; height: 22px;
  border-radius: 50%; border: 1px solid var(--gold); background: var(--ink);
  color: var(--ivory); font-size: .95rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: .85rem 1.5rem; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; opacity: 0; pointer-events: none; z-index: 120;
  transition: opacity .25s, transform .3s var(--ease-out); max-width: 90vw; text-align: center;
  border-left: 3px solid var(--gold);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-type="err"] { background: var(--danger); border-left-color: #7c1f18; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,244,238,.78); margin-top: clamp(3rem, 7vw, 5rem); }
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 3.4rem clamp(20px, 4vw, 48px) 2.2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem;
}
.footer-brand img { width: 72px; border-radius: 50%; margin-bottom: .9rem; }
.footer-brand p { font-size: .9rem; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 {
  color: var(--gold); margin: 0 0 .5rem;
  font: 600 .68rem var(--font-display); letter-spacing: .22em; text-transform: uppercase;
}
.footer-note {
  color: rgba(247,244,238,.45); font-size: .78rem; margin-top: .5rem; display: block;
}
.footer-col a { font-size: .9rem; color: rgba(247,244,238,.72); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-base {
  border-top: 1px solid var(--ink-line); padding: 1.1rem clamp(20px, 4vw, 48px);
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a { color: rgba(247,244,238,.58); }
.footer-legal a:hover { color: var(--gold); }

/* Policy pages */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.15rem; margin: 2.1rem 0 .6rem; letter-spacing: .06em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose .updated { color: var(--muted); font-size: .85rem; margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: stretch; }
.contact-info {
  display: flex; flex-direction: column; gap: 1.2rem;
  background: var(--ink); color: rgba(247,244,238,.8); padding: 2.2rem 2rem;
}
.contact-info h2 { color: var(--ivory); }
.contact-info .muted { color: rgba(247,244,238,.6); }
.contact-info strong {
  display: block; font: 600 .66rem var(--font-display); letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .3rem;
}
.contact-info a { color: var(--ivory); font-weight: 500; }
.contact-info a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { gap: 1.1rem; }
  .value-strip { grid-template-columns: 1fr; gap: 1.6rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .brand span { font-size: 1.05rem; }
  .main-nav { display: none; }
  .nav-drop-panel { display: none; }
  .story-band, .pdp, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .cat-split { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .pdp-gallery { flex-direction: column-reverse; }
  .pdp-thumbs { flex-direction: row; width: auto; }
  .pdp-thumbs button { width: 62px; }
  .section-head { gap: .3rem; }
  .icon-label { display: none; }
}
@media (max-width: 860px) {
  /* Product photos show in full on mobile (no cropping) */
  .card-media { aspect-ratio: 1/1; background: #fff; }
  .card-media img { object-fit: contain; }

  /* Account + cart icons pinned to the right corner */
  .header-actions { margin-left: auto; }

  /* Full story images, natural shape, no crop */
  .story-band img { aspect-ratio: auto; }
  .story-band img.img-contain { aspect-ratio: auto; }

  /* Product page: photo sits in a compact card, not full-bleed */
  .pdp-gallery { gap: .6rem; }
  .pdp-main {
    background: #fff; border: 1px solid var(--line);
    padding: 10px; max-width: 300px; margin: 0 auto;
  }
  .pdp-main img { aspect-ratio: 1/1; height: auto; width: 100%; object-fit: contain; max-height: 38vh; }
  .pdp-thumbs { justify-content: center; }
  .pdp-thumbs button { width: 52px; }
  .pdp-info { margin-top: 1.2rem; }

  /* PAGE INSET (mobile): --gutter is the empty space kept at BOTH screen
     edges on every page. Blocks with their own ground become rounded cards
     inset by --card-gap and pad the difference inside, so all content lines
     up at --gutter. overflow-x uses `clip`, not `hidden`: `hidden` on
     html/body turns the root into a scroll container and silently kills
     `position: sticky` on the header. */
  :root { --gutter: 26px; --card-gap: 12px; }
  body > main,
  body > section,
  body > header,
  body > footer { max-width: 100%; }

  .hero,
  .page-hero,
  .section.dark,
  .lookbook,
  .marquee,
  .site-footer {
    margin-left: var(--card-gap); margin-right: var(--card-gap);
    border-radius: 16px; overflow: hidden;
  }
  .hero, .page-hero { margin-top: 10px; }
  .hero { height: clamp(26rem, 76vh, 34rem); }
  .hero-ctas {
    padding: 0 calc(var(--gutter) - var(--card-gap)) clamp(1.8rem, 5vh, 2.6rem);
  }
  /* Tighter tracking and a width cap so the longest collection name cannot
     run off the side of a narrow phone. */
  .hero-ctas .btn {
    padding: .8rem 1.3rem; font-size: .66rem; letter-spacing: .1em;
    max-width: 100%; white-space: normal;
  }
  /* Smaller and tucked closer to the edge so they clear the product. */
  .hero-arrow { width: 36px; height: 36px; }
  .hero-arrow svg { width: 14px; height: 14px; }
  .page-hero .wrap, .lookbook .wrap {
    padding-left: calc(var(--gutter) - var(--card-gap));
    padding-right: calc(var(--gutter) - var(--card-gap));
  }
  .lookbook { padding-block: 2rem; }
  .lookbook-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .lookbook-media img { max-height: 52vh; }
  .manifesto blockquote { font-size: clamp(1.35rem, 6.4vw, 1.7rem); }
  /* The marquee is a thin band, so it takes a smaller radius than the cards. */
  .marquee { border-radius: 10px; margin-block: 1.4rem; }
  .site-footer { margin-bottom: 12px; }

  /* Blocks with their own dark ground pad the remainder of the gutter. */
  .section.dark .wrap {
    padding-left: calc(var(--gutter) - var(--card-gap));
    padding-right: calc(var(--gutter) - var(--card-gap));
  }

  /* Compact mobile sizing: clear breathing room left and right */
  body { font-size: 14.5px; }
  .wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
  .section { padding-block: 2.2rem; }
  .panel { padding: 1.1rem 1rem; }
  h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  h2 { font-size: clamp(1.3rem, 5.4vw, 1.6rem); }
  .btn { padding: .8rem 1.5rem; font-size: .68rem; }
  .cat-split { gap: 1.3rem; }
  .cat-card img { aspect-ratio: 4/3; }
  .product-grid { gap: .8rem; }
  .card-body { padding: .7rem .05rem 0; }
  .card-body h3 { font-size: .84rem; }
  .card-price strong { font-size: .95rem; }
  .card-badge { font-size: .56rem; padding: .3rem .6rem; top: 8px; left: 8px; }
  .section-head { margin-bottom: 1.2rem; }
  .value p { font-size: .9rem; }
  .story-band { gap: 1.4rem; }
  .story-band .lead { font-size: .96rem; }
  .story-band > div > .btn { margin-top: .4rem; }

  .marquee-track { gap: 2.2rem; animation-duration: 24s; }
  .marquee span { font-size: .7rem; gap: 2.2rem; }


  .value-strip { gap: 1.4rem; }
  .value-strip .value { padding: 1.1rem 0; }

  /* Shop toolbar: chips scroll in their own row; Sort button stays outside
     the scroll container so its dropdown card can open properly */
  .shop-toolbar { flex-wrap: wrap; gap: .5rem; }
  .chip-scroll { flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chip-scroll::-webkit-scrollbar { display: none; }
  .chip { padding: .45rem .95rem; font-size: .64rem; flex-shrink: 0; }
  .subchip-row {
    flex-wrap: nowrap; overflow-x: auto; margin: -.2rem 0 1.4rem;
    padding-bottom: .3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .subchip-row::-webkit-scrollbar { display: none; }
  .chip-sub { padding: .4rem .85rem; font-size: .6rem; }
  .dd { margin-left: 0; flex-shrink: 0; }
  .dd-btn { padding: .45rem .7rem .45rem .9rem; font-size: .64rem; }
  .dd-menu { right: auto; left: 0; }
  .result-count { width: auto; margin-left: auto; padding-top: .2rem; }

  /* Footer: centered, with extra bottom room so the offer card never covers links */
  .footer-inner { text-align: center; gap: 1.6rem; padding: 2.4rem calc(var(--gutter) - var(--card-gap)) 1.4rem; }
  .footer-brand img { margin: 0 auto .8rem; }
  .footer-brand p { margin: 0 auto; }
  .footer-col { align-items: center; }
  .footer-base {
    flex-direction: column; align-items: center; text-align: center; gap: .7rem;
    padding-left: calc(var(--gutter) - var(--card-gap));
    padding-right: calc(var(--gutter) - var(--card-gap));
    padding-bottom: 6rem;
  }
  .footer-legal { justify-content: center; }

  /* Compact offer popup + smaller corner card */
  .offer-modal { max-width: 330px; padding: 1.6rem 1.2rem 1.3rem; }
  .offer-modal h3 { font-size: 1rem; }
  .offer-modal p { font-size: .88rem; }
  .offer-value { font-size: .7rem; padding: .35rem .9rem; }
  .offer-code-row code { font-size: .9rem; padding: .5rem .8rem; }
  .offer-chip { right: 12px; bottom: 12px; }
  .offer-chip-main { padding: .5rem .75rem; }
  .offer-chip-value { font-size: .72rem; }
  .offer-chip-code { font-size: .6rem; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { gap: .9rem; }
  .brand span { font-size: .98rem; }
}

/* Reduced motion: the marquee and every hover transform go still. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .cat-card img, .card-media img { transition: none; }
  .offer-chip { animation: none; }
  .offer-chip::after, .offer-chip-main::before { animation: none; }
}
