/* =====================================================================
   Groove Organics — design system
   Palette: deep moss/pine green, warm sand, muted gold, burnt clay accent,
   cream text. Fonts: Fraunces (display), Inter (body), JetBrains Mono (labels/prices).
   ===================================================================== */

:root {
  --moss-900: #1b2416;
  --moss-800: #263420;
  --moss-700: #33422b;
  --moss-600: #44573a;
  --sand-100: #fbf6ec;
  --sand-200: #f1e9da;
  --sand-300: #e7dcc4;
  --gold-500: #c9a227;
  --gold-600: #a9841c;
  --clay-500: #b5551d;
  --clay-600: #934415;
  --cream: #fbf6ec;
  --ink: #201c14;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 40px rgba(27, 36, 22, 0.12);
  --shadow-card: 0 4px 20px rgba(27, 36, 22, 0.08);

  --container-w: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-100);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--moss-900);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold-600);
  margin-bottom: 0.75em;
  display: inline-block;
}
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--moss-900); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--gold-500); color: var(--moss-900); }
.btn--primary:hover { background: var(--gold-600); }
.btn--outline { background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover { background: rgba(255,255,255,0.08); }
.btn--dark { background: var(--moss-900); color: var(--cream); }
.btn--dark:hover { background: var(--moss-800); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Product-detail size/color variant pills */
.variant-pill { border-color: var(--sand-300); color: var(--moss-800); }
.variant-pill[data-selected="true"] { background: var(--moss-900); border-color: var(--moss-900); color: var(--cream); }

/* =====================================================================
   Nav
   ===================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: transparent;
  color: var(--cream);
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 2px 20px rgba(27,36,22,0.08);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.01em; }
.nav__brand svg, .nav__brand .brand-logo { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.nav__tagline { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; display: block; margin-top: 2px; }
.nav__links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 0.92rem; font-weight: 500; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: currentColor; transition: right 0.2s ease;
}
.nav__links a:hover::after { right: 0; }
.nav__icons { display: flex; align-items: center; gap: 18px; }
.nav__icon-btn { position: relative; display: inline-flex; background: none; border: none; color: inherit; cursor: pointer; padding: 4px; }
.nav__cart-count {
  position: absolute; top: -4px; right: -6px;
  background: var(--clay-500); color: var(--cream);
  font-family: var(--font-mono); font-size: 0.62rem;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.nav__toggle { display: none; background: none; border: none; color: inherit; cursor: pointer; }
.nav__mobile {
  display: none; flex-direction: column; gap: 4px;
  background: var(--moss-900); color: var(--cream);
  padding: 16px 24px 24px; list-style: none; margin: 12px 0 0;
}
.nav__mobile a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: var(--cream); }
.nav__mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 100% at 50% 0%, var(--moss-700) 0%, var(--moss-900) 65%);
  color: var(--cream);
  overflow: hidden;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.9;
}
/* Rotating hero background — admin-managed highlighted-product photos,
   set from the dashboard's Banners tab (placement: Homepage Hero). Sits
   above the Three.js canvas fallback, below the scrim + text. */
.hero__slider { position: absolute; inset: 0; z-index: 1; }
/* Each slide carries both a desktop and (optional) mobile crop as CSS custom
   properties (set from home-content.js) — the media query below is what
   actually switches between them, so resizing/rotating the device just
   works with no JS resize listener needed. --bg-mobile falls back to
   --bg-desktop when a banner has no separate mobile image set, so this is
   safe for banners that only ever had one image. This replaced a single
   background-size:cover image, which on a tall narrow phone screen cropped
   hard into the sides of a landscape photo — cutting off or shifting any
   text baked into the image instead of just resizing it. */
.hero__slide {
  position: absolute; inset: 0;
  background-image: var(--bg-desktop);
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slider-dots {
  position: absolute; bottom: 28px; right: 32px; z-index: 3;
  display: flex; gap: 10px;
}
.hero__slider-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 1px solid rgba(251,246,236,0.7);
  background: transparent; cursor: pointer; padding: 0;
}
.hero__slider-dot.is-active { background: var(--gold-500); border-color: var(--gold-500); }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(27,36,22,0.25) 0%, rgba(27,36,22,0.6) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 160px 24px 120px;
}
.hero__tagline { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem; color: var(--gold-500); margin-bottom: 18px; display: inline-block; }
.hero h1 { color: var(--cream); }
.hero__lede { font-size: 1.15rem; max-width: 520px; opacity: 0.88; }
.hero__ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.7; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero__scroll-cue span:last-child {
  width: 1px; height: 28px; background: currentColor; animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0%,100% { opacity: 0.2; } 50% { opacity: 0.9; } }

/* .hero__content's 160px/120px top/bottom padding is sized for a big desktop
   hero and had no mobile override — combined with the headline/lede/CTA
   stack, that pushed the whole .hero section (which only has a min-height,
   so it grows to fit content) to 2-3x a phone's screen height. The single
   background image then had to stretch cover that oversized box, so
   scrolling through it looked like several near-identical banners stacked
   instead of one hero. Cutting the padding way down here is what actually
   fixes that — the image only needs to cover one screen's worth of height. */
@media (max-width: 760px) {
  .hero__content { padding: 112px 20px 64px; }
  .hero__ctas { margin-top: 24px; }
}

/* =====================================================================
   Scroll-reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   Feature strip
   ===================================================================== */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}
.feature-strip__item { text-align: center; }
.feature-strip__icon {
  width: 48px; height: 48px; margin: 0 auto 14px;
  color: var(--gold-600);
}
.feature-strip__item h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--moss-900); }
.feature-strip__item p { font-size: 0.85rem; color: var(--moss-700); margin: 0; }
@media (max-width: 760px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   Promo / festive-offer cards (admin-managed banners, placement: homepage_promo)
   ===================================================================== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.promo-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  color: var(--cream);
  box-shadow: var(--shadow-card);
  background: var(--moss-900); /* shows through as letterboxing when a mobile view uses background-size:contain */
}
.promo-card__image {
  position: absolute; inset: 0;
  background-image: var(--bg-desktop);
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
/* Same desktop/mobile-crop switch as .hero__slide above. --bg-mobile-fit is
   "cover" when a banner has its own mobile image (fill edge-to-edge, safe to
   crop since it was chosen for this), or "contain" when it's just the
   desktop photo reused (shrink to fit whole, never crop — the empty strip
   this can leave top/bottom is filled by each element's own background
   color set below, not left blank). */
@media (max-width: 760px) {
  .hero__slide, .promo-card__image {
    background-image: var(--bg-mobile, var(--bg-desktop));
    background-size: var(--bg-mobile-fit, cover);
  }
}
.promo-card:hover .promo-card__image { transform: scale(1.06); }
.promo-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,36,22,0) 40%, rgba(27,36,22,0.75) 100%);
}
.promo-card__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 20px;
}
.promo-card__text h4 { margin: 0 0 4px; color: var(--cream); font-size: 1.1rem; }
.promo-card__text p { margin: 0; opacity: 0.9; font-size: 0.88rem; }

/* =====================================================================
   Story section
   ===================================================================== */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story__ring-wrap { display: flex; align-items: center; justify-content: center; }
.story__ring { width: 100%; max-width: 360px; }
.story__ring .story__ring-orbit { transform-origin: 100px 100px; animation: spin 50s linear infinite; }
.story__ring .story__ring-orbit--slow { animation-duration: 80s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .story__ring .story__ring-orbit { animation: none; }
}

/* Milestones as a connected vertical timeline rather than a plain list.
   Note: the year/text content itself is still the original placeholder
   copy — see conversation for the flag on replacing it with real dates
   or a non-dated framing. */
.story__milestones { position: relative; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; padding-left: 20px; }
.story__milestones::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(to bottom, var(--gold-500) 0%, rgba(201,162,39,0.25) 100%); }
.story__milestone { position: relative; display: flex; gap: 16px; align-items: baseline; font-size: 0.92rem; }
.story__milestone::before { content: ''; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--sand-100); border: 1.5px solid var(--gold-500); }
.story__milestone .mono { color: var(--gold-600); min-width: 52px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__ring-wrap { order: -1; }
}

/* =====================================================================
   Homepage brand philosophy — replaces the old timeline+orbit section.
   Editorial and restrained: a serif headline, a short italic lede, three
   quiet principles (no cards, no borders-everywhere), and a single
   considered illustration with subtle ambient motion. The detailed
   year-by-year history stays on the dedicated Our Story page — see the
   .story / .story__milestones rules above, which are untouched and still
   used there.
   ===================================================================== */
.philosophy__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center;
}
.philosophy__lede {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.2rem; color: var(--sand-200); opacity: 0.92; max-width: 420px;
  margin: 4px 0 40px;
}
.philosophy__principles { display: flex; flex-direction: column; }
.philosophy__principle {
  display: grid; grid-template-columns: 40px 1fr; gap: 20px;
  padding: 24px 0; border-top: 1px solid rgba(251,246,236,0.14);
}
.philosophy__principle:last-child { border-bottom: 1px solid rgba(251,246,236,0.14); }
.philosophy__num { color: var(--gold-500); font-size: 0.85rem; padding-top: 4px; }
.philosophy__principle h4 {
  font-family: var(--font-display); color: var(--cream); font-size: 1.15rem;
  letter-spacing: 0.01em; margin: 0 0 6px;
}
.philosophy__principle p { margin: 0; color: var(--sand-200); opacity: 0.78; font-size: 0.96rem; max-width: 360px; }

.philosophy__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.philosophy__glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.22) 0%, rgba(201,162,39,0.06) 55%, rgba(201,162,39,0) 76%);
  filter: blur(6px);
  animation: philosophy-glow-float 9s ease-in-out infinite;
}
.philosophy__art { position: relative; width: 100%; max-width: 340px; will-change: transform; }
@keyframes philosophy-glow-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}

@media (max-width: 860px) {
  .philosophy__grid { grid-template-columns: 1fr; gap: 44px; }
  .philosophy__visual { order: -1; min-height: 300px; }
  .philosophy__glow { width: 240px; height: 240px; }
}

/* =====================================================================
   Process index (label-style rows)
   ===================================================================== */
.process {
  border-top: 1px solid var(--moss-600);
}
.process__row {
  display: grid;
  grid-template-columns: 40px 50px 1fr 2fr;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(251,246,236,0.14);
}
.process__icon { width: 24px; height: 24px; color: var(--gold-500); flex-shrink: 0; }
.process__row .mono { color: var(--gold-500); font-size: 0.85rem; }
.process__row h4 { color: var(--cream); font-size: 1rem; margin: 0; }
.process__row p { margin: 0; opacity: 0.75; font-size: 0.9rem; }
@media (max-width: 720px) {
  .process__row { grid-template-columns: 32px 40px 1fr; }
  .process__row p { grid-column: 1 / -1; }
}

/* =====================================================================
   Process 3D — "The Journey of the Oil" scroll-driven WebGL scene.
   Progressive enhancement: the plain .process rows above are the default
   fallback markup (always in the DOM), used as-is for no-JS, no-WebGL,
   prefers-reduced-motion, and narrow/mobile viewports. process3d.js
   decides which one to show — see that file for the full gating logic.
   ===================================================================== */
.process3d { position: relative; background: var(--moss-900); overflow: clip; }
/* Breaks out of .section's own top/bottom padding so the pinned canvas can
   go full-bleed; the fallback content below keeps the section's normal
   padding since it's a sibling, not a child, of the scroller. */
.process3d__scroller { display: none; position: relative; height: 260vh; margin: -96px 0; }
.process3d__viewport {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.process3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.process3d__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(27,36,22,0.55) 0%, rgba(27,36,22,0.15) 45%, rgba(27,36,22,0.05) 100%);
}
.process3d__stage-copy { position: relative; z-index: 2; width: 100%; max-width: 460px; margin-left: 8%; padding: 0 24px; }
.process3d__stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; pointer-events: none;
}
.process3d__stage.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.process3d__stage-num { color: var(--gold-500); font-size: 0.85rem; letter-spacing: 0.1em; }
.process3d__stage h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--cream); margin: 10px 0 12px; }
.process3d__stage p { color: var(--sand-200); font-size: 1.02rem; opacity: 0.85; max-width: 400px; margin: 0; }
.process3d__lockup {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.7s ease;
  /* Soft vignette behind the text so it stays legible over the busy wide
     shot of the whole diorama, regardless of what's directly behind it. */
  background: radial-gradient(ellipse 46% 60% at 50% 50%, rgba(27,36,22,0.75) 0%, rgba(27,36,22,0.35) 55%, rgba(27,36,22,0) 80%);
}
.process3d__lockup.is-active { opacity: 1; pointer-events: auto; }
.process3d__lockup-line { font-size: clamp(1.6rem, 4vw, 2.9rem); color: var(--cream); line-height: 1.15; }
.process3d__lockup .eyebrow { color: var(--gold-500); }
.process3d__progress {
  position: absolute; right: 28px; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
}
.process3d__progress-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(251,246,236,0.3); transition: background 0.3s ease, transform 0.3s ease; }
.process3d__progress-dot.is-active { background: var(--gold-500); transform: scale(1.4); }
.process3d__tooltip {
  position: absolute; z-index: 3; transform: translate(-50%, -130%);
  background: rgba(27,36,22,0.92); border: 1px solid rgba(201,162,39,0.35); color: var(--cream);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em;
  padding: 6px 12px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease;
}
.process3d__tooltip.is-visible { opacity: 1; }
@media (max-width: 900px) {
  .process3d__tooltip { display: none; }
}
@media (max-width: 720px) {
  .process3d__progress { display: none; }
}

/* =====================================================================
   Process video — "The Journey of the Oil" as a real cinematic loop.
   Simpler than the .process3d experience above: the <video poster> frame
   is itself a finished, fully-composed shot (baked-in title, stage labels,
   logo), so it doubles as the static/no-JS/reduced-motion fallback with
   zero extra markup — process-video.js only ever decides whether to call
   .play(), never swaps in a different section.
   ===================================================================== */
.process-video { position: relative; background: var(--moss-900); overflow: clip; }
.process-video__frame {
  position: relative; width: 100%; overflow: hidden;
  aspect-ratio: 16 / 9; max-height: 88vh; background: var(--moss-900);
}
.process-video__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: var(--moss-900);
}
.process-video__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(27,36,22,0) 55%, rgba(27,36,22,0.65) 100%);
}
.process-video__cta-bar {
  position: relative; display: flex; justify-content: center; margin-top: -44px; z-index: 2;
}
@media (max-width: 720px) {
  .process-video__frame { aspect-ratio: 4 / 5; max-height: 70vh; }
  .process-video__cta-bar { margin-top: -32px; }
}

/* =====================================================================
   Product cards
   ===================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--sand-100);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  perspective: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-soft); }
.product-card__badges {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.product-card__badge {
  font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--clay-500); color: var(--cream);
  padding: 5px 10px; border-radius: 999px;
}
.product-card__badge--new { background: var(--gold-500); color: var(--moss-900); }
.product-card__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--moss-700), var(--moss-900));
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-card__image svg { width: 46%; opacity: 0.85; }
.product-card__image img { transition: transform 0.5s ease; }
.product-card:hover .product-card__image img { transform: scale(1.08); }
.product-card__image--coming-soon { background: linear-gradient(160deg, var(--sand-300), var(--sand-200)); opacity: 0.8; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.product-card__desc { font-size: 0.85rem; color: var(--moss-700); margin-bottom: 12px; }
.product-card__rating { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold-600); margin-bottom: 10px; }
.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; }
.product-card__price del { opacity: 0.5; font-weight: 400; margin-right: 6px; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer {
  background: var(--moss-900);
  color: var(--cream);
  padding: 72px 0 32px;
}
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; }
.footer__brand svg, .footer__brand .brand-logo { width: 30px; height: 30px; object-fit: contain; }
.footer p.muted, .footer__col p { opacity: 0.7; font-size: 0.9rem; }
.footer__col h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--gold-500); margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer__col a:hover { color: var(--gold-500); }
.footer__newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.footer__newsletter-form input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid rgba(251,246,236,0.25);
  background: rgba(251,246,236,0.06); color: var(--cream); font-family: var(--font-body);
}
.footer__newsletter-form input::placeholder { color: rgba(251,246,236,0.5); }
.footer__bottom { border-top: 1px solid rgba(251,246,236,0.14); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.6; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Forms (shared: contact, checkout, admin, staff)
   ===================================================================== */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--moss-900); }
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--sand-300);
  font-family: var(--font-body); font-size: 0.95rem; background: white;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: var(--clay-600); font-size: 0.85rem; margin-top: 6px; }
.form-success { color: var(--moss-700); background: var(--sand-200); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.banner-note {
  background: var(--sand-200); border: 1px solid var(--sand-300); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 0.85rem; color: var(--moss-700); margin-bottom: 24px;
}

/* =====================================================================
   Two-column split layouts — checkout (form + summary), cart (items +
   summary), contact (form + details) and the product page (image +
   details) all used a fixed-ratio inline grid with no mobile handling,
   which is why checkout felt cramped/disproportionate on phones instead
   of stacking: both columns stayed side-by-side at any width. One shared
   class + breakpoint so all four collapse to a single column below
   ~860px (content column first, aside/summary below it, which already
   matches DOM order on every page that uses this).
   ===================================================================== */
.split-grid { display: grid; gap: 40px; align-items: start; }
.split-grid--checkout { grid-template-columns: 1.4fr 1fr; }
.split-grid--cart { grid-template-columns: 2fr 1fr; }
.split-grid--contact { grid-template-columns: 1.2fr 1fr; gap: 48px; }
.split-grid--pdp { grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr !important; gap: 32px; }
}

/* Card / table shells used across shop, cart, admin, staff */
.card { background: white; border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 24px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data-table th, table.data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--sand-300); }
table.data-table th { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--moss-700); }
.variants-panel { background: var(--sand-100); border-radius: var(--radius-md); padding: 18px; margin: 8px 0; }
.status-pill { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; display: inline-block; }
.status-placed { background: #eee3c8; color: #7a5c17; }
.status-packed { background: #dbe6d2; color: #3a5a2c; }
.status-shipped { background: #cfe3ec; color: #1f5a72; }
.status-delivered { background: #d4ecd8; color: #266138; }
.status-cancelled { background: #f0d6d1; color: #8c3423; }

.page-header { padding: 140px 0 48px; background: var(--moss-900); color: var(--cream); }
.page-header p { opacity: 0.75; max-width: 560px; }

.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; margin-bottom: 12px; }

.empty-state { text-align: center; padding: 64px 24px; color: var(--moss-700); }

/* Utility */
.stack { display: flex; flex-direction: column; gap: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; }
.dashboard-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.dashboard-nav button {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--sand-300); background: white;
  font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; font-weight: 600; color: var(--moss-700);
}
.dashboard-nav button.active { background: var(--moss-900); color: var(--cream); border-color: var(--moss-900); }
