/* =================================================================================================
   Zurie Commerce — "fresh market, editorial" design system (P8-53).

   One hand-written stylesheet, no framework (ADR-013: a public commerce site's design and performance
   needs are its own). Organised top-down: fonts → tokens → base → chrome → components → pages →
   responsive → motion → print. Every colour is a token, so dark mode is a token swap and nothing else.
   ================================================================================================= */

/* ---- Fonts (self-hosted, OFL — see fonts/OFL.txt) ------------------------------------------------
   Manrope carries all UI and every price; Fraunces is display only (h1–h3, numerals in "how it works").
   Shared with the customer app so the brand reads the same on both channels. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ------------------------------------------------------------------------------------- */
:root {
  /* Brand */
  --zc-brand: #0f6b4c;          /* links, prices, focus — AA on paper and card */
  --zc-brand-bright: #1a9c6b;
  --zc-brand-deep: #0b3d2e;     /* solid brand surfaces: promo, footer, hero panel */
  --zc-brand-deeper: #072a1f;
  --zc-brand-soft: #e3f5ec;
  --zc-on-deep: #fbf8f1;
  --zc-on-deep-soft: rgba(251, 248, 241, 0.74);
  --zc-amber: #f2a93b;
  --zc-amber-strong: #e0911a;
  --zc-amber-soft: #fdf0d9;
  --zc-on-amber: #0b3d2e;       /* always dark, both themes */
  --zc-sale: #b8482a;           /* terracotta — offers and savings */
  --zc-sale-soft: #fbe7df;

  /* Neutrals */
  --zc-ink: #17201b;
  --zc-ink-soft: #4f5b54;
  --zc-ink-faint: #7b867f;      /* decorative / large text only */
  --zc-paper: #fbf8f1;
  --zc-paper-2: #f4efe3;
  --zc-card: #ffffff;
  --zc-line: #e9e3d4;
  --zc-line-strong: #d6cdb8;
  --zc-danger: #b3362a;
  --zc-danger-soft: #fdecea;
  --zc-header-bg: rgba(251, 248, 241, 0.86);

  /* Product tile tints — mirror the app's --zp-tile-* so a product looks the same on both channels */
  --zc-tile-0: #e2f3e9;
  --zc-tile-1: #e7eff9;
  --zc-tile-2: #fcefd8;
  --zc-tile-3: #f2e8f8;
  --zc-tile-4: #fbe5e0;

  /* Type */
  --zc-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --zc-font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Shape, depth, motion */
  --zc-r-xl: 28px;
  --zc-r-lg: 20px;
  --zc-r-md: 14px;
  --zc-r-sm: 10px;
  --zc-shadow-sm: 0 1px 2px rgba(23, 32, 27, 0.06), 0 2px 8px -2px rgba(23, 32, 27, 0.06);
  --zc-shadow: 0 2px 4px rgba(11, 61, 46, 0.04), 0 14px 30px -14px rgba(11, 61, 46, 0.24);
  --zc-shadow-lg: 0 4px 10px rgba(11, 61, 46, 0.05), 0 30px 60px -26px rgba(11, 61, 46, 0.38);
  --zc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --zc-fast: 0.18s;
  --zc-med: 0.4s;

  /* Layout */
  --zc-max: 1240px;
  --zc-gutter: clamp(16px, 4.5vw, 32px);
  --zc-header-h: 72px;
  --zc-section: clamp(48px, 8vw, 96px);

  --zc-focus-ring: 0 0 0 3px var(--zc-paper), 0 0 0 5px var(--zc-brand-bright);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --zc-brand: #4fe0a5;
    --zc-brand-bright: #2fcf8e;
    --zc-brand-deep: #0f2c22;
    --zc-brand-deeper: #0a1f18;
    --zc-brand-soft: rgba(79, 224, 165, 0.12);
    --zc-on-deep: #eef4ef;
    --zc-on-deep-soft: rgba(238, 244, 239, 0.7);
    --zc-amber: #ffb84d;
    --zc-amber-strong: #ffc670;
    --zc-amber-soft: rgba(255, 184, 77, 0.14);
    --zc-sale: #ff9a7a;
    --zc-sale-soft: rgba(255, 154, 122, 0.14);

    --zc-ink: #edf3ee;
    --zc-ink-soft: #a6b5ac;
    --zc-ink-faint: #75857c;
    --zc-paper: #0b120f;
    --zc-paper-2: #101915;
    --zc-card: #141e19;
    --zc-line: rgba(255, 255, 255, 0.08);
    --zc-line-strong: rgba(255, 255, 255, 0.16);
    --zc-danger: #ff8a7d;
    --zc-danger-soft: rgba(255, 138, 125, 0.12);
    --zc-header-bg: rgba(11, 18, 15, 0.84);

    --zc-tile-0: rgba(79, 224, 165, 0.13);
    --zc-tile-1: rgba(110, 170, 255, 0.13);
    --zc-tile-2: rgba(255, 184, 77, 0.13);
    --zc-tile-3: rgba(200, 140, 255, 0.13);
    --zc-tile-4: rgba(255, 130, 115, 0.13);

    --zc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --zc-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7);
    --zc-shadow-lg: 0 30px 60px -26px rgba(0, 0, 0, 0.85);

    color-scheme: dark;
  }
}

/* ---- Base --------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win — components set display:flex/grid, which would otherwise override it. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--zc-header-h) + 16px); }

body {
  margin: 0;
  background: var(--zc-paper);
  color: var(--zc-ink);
  font-family: var(--zc-font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Belt-and-braces against mobile-Safari horizontal scroll while a sheet or rail is mid-transition. */
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--zc-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 50;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* iOS zooms on focus below 16px — this is the floor for every form control. */
input, select, textarea { font-size: max(1rem, 16px); }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }

:focus-visible { outline: none; box-shadow: var(--zc-focus-ring); border-radius: 8px; }

::selection { background: var(--zc-amber); color: var(--zc-on-amber); }

.shell { width: 100%; max-width: var(--zc-max); margin: 0 auto; padding: 0 var(--zc-gutter); }
.section { padding-block: var(--zc-section); }
.section-tight { padding-block: clamp(28px, 5vw, 48px); }
.section-alt { background: var(--zc-paper-2); }

.narrow-panel { max-width: 560px; width: 100%; margin-inline: auto; }
.narrow-panel-lg { max-width: 720px; width: 100%; margin-inline: auto; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 10px; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.d-block { display: block; }
.muted { color: var(--zc-ink-soft); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible only before the scripts have run / when they never do. html.js is set by an inline head script. */
.js .no-js-only { display: none !important; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--zc-brand-deep); color: var(--zc-on-deep);
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
  transition: top var(--zc-fast) var(--zc-ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--zc-brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.field-hint { font-size: 0.86rem; color: var(--zc-ink-soft); }
.field-optional { font-weight: 500; color: var(--zc-ink-soft); }

/* ---- Buttons ------------------------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--zc-card);
  --btn-fg: var(--zc-ink);
  --btn-border: var(--zc-line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  border-radius: 999px; border: 1.5px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 750; font-size: 0.98rem; line-height: 1.2; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--zc-fast) var(--zc-ease), box-shadow var(--zc-fast) var(--zc-ease),
              background-color var(--zc-fast) var(--zc-ease), border-color var(--zc-fast) var(--zc-ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); border-color: var(--zc-brand-bright); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { flex-shrink: 0; }
.btn .arrow { transition: transform var(--zc-fast) var(--zc-ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { --btn-bg: var(--zc-amber); --btn-fg: var(--zc-on-amber); --btn-border: var(--zc-amber); }
.btn-primary:hover { border-color: var(--zc-amber-strong); --btn-bg: var(--zc-amber-strong); box-shadow: 0 14px 28px -14px rgba(224, 145, 26, 0.75); }

.btn-brand { --btn-bg: var(--zc-brand-deep); --btn-fg: var(--zc-on-deep); --btn-border: var(--zc-brand-deep); }
.btn-brand:hover { --btn-bg: var(--zc-brand-deeper); border-color: var(--zc-brand-deeper); box-shadow: var(--zc-shadow); }

.btn-secondary { --btn-fg: var(--zc-brand); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--zc-brand); padding-inline: 14px; }
.btn-ghost:hover { --btn-bg: var(--zc-brand-soft); border-color: transparent; }
.btn-on-deep { --btn-bg: transparent; --btn-fg: var(--zc-on-deep); --btn-border: rgba(255, 255, 255, 0.32); }
.btn-on-deep:hover { --btn-bg: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { min-height: 58px; padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 999px; border: 1.5px solid var(--zc-line-strong);
  background: var(--zc-card); color: var(--zc-ink);
  cursor: pointer;
  transition: transform var(--zc-fast) var(--zc-ease), border-color var(--zc-fast), background-color var(--zc-fast);
}
.icon-btn:hover { border-color: var(--zc-brand-bright); color: var(--zc-brand); }
.icon-btn:active { transform: scale(0.92); }

.link {
  color: var(--zc-brand); font-weight: 700;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--zc-med) var(--zc-ease);
}
.link:hover { background-size: 100% 2px; }

/* ---- Announcement bar ---------------------------------------------------------------------------- */
.announce {
  background: var(--zc-brand-deep);
  color: var(--zc-on-deep);
  font-size: 0.82rem;
  font-weight: 600;
}
.announce-row {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 40px);
  min-height: 38px; overflow: hidden; white-space: nowrap;
}
.announce-item { display: inline-flex; align-items: center; gap: 8px; }
.announce-item svg { color: var(--zc-amber); }

/* ---- Header ------------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--zc-header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--zc-line);
  transition: box-shadow var(--zc-med) var(--zc-ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(11, 61, 46, 0.45); }

.header-row {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 24px);
  min-height: var(--zc-header-h);
  position: relative;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; box-shadow: var(--zc-shadow-sm); }
.brand-word { font-family: var(--zc-font-display); font-size: 1.4rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.brand-mark { color: var(--zc-brand); }
.brand-tail { color: var(--zc-amber-strong); }

.header-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); flex: 0 1 auto; min-width: 0; }

.header-search {
  flex: 1; max-width: 540px; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  background: var(--zc-card);
  border: 1.5px solid var(--zc-line);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  transition: border-color var(--zc-fast), box-shadow var(--zc-fast);
}
.header-search:focus-within { border-color: var(--zc-brand-bright); box-shadow: 0 0 0 4px var(--zc-brand-soft); }
.header-search > svg { color: var(--zc-ink-soft); flex-shrink: 0; }
.header-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 0.98rem; padding: 8px 0;
}
.header-search input::placeholder { color: var(--zc-ink-faint); }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search button {
  border: 0; cursor: pointer; flex-shrink: 0;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--zc-brand-deep); color: var(--zc-on-deep);
  font-weight: 700; font-size: 0.9rem;
}
.header-search button:hover { background: var(--zc-brand-deeper); }

.header-nav { display: flex; align-items: center; gap: 4px; font-weight: 650; font-size: 0.94rem; }
.header-nav a { padding: 10px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.header-nav a:hover { background: var(--zc-brand-soft); color: var(--zc-brand); }
.header-nav a[aria-current="page"] { color: var(--zc-brand); }

.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px 0 14px; margin-left: auto;
  border-radius: 999px; background: var(--zc-brand-deep); color: var(--zc-on-deep);
  font-weight: 700; font-size: 0.94rem; flex-shrink: 0;
  transition: transform var(--zc-fast) var(--zc-ease), background-color var(--zc-fast);
}
.cart-button:hover { background: var(--zc-brand-deeper); transform: translateY(-1px); }
.cart-badge {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--zc-amber); color: var(--zc-on-amber);
  font-size: 0.74rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cart-badge[data-count="0"] { display: none; }
.cart-badge.bump { animation: bump 0.5s var(--zc-spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Branch picker — a <details> popover, so it opens/closes with no script and is keyboard-native. */
.branch-picker { position: relative; flex-shrink: 0; }
.branch-picker > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1.5px solid var(--zc-line); background: var(--zc-card);
  font-size: 0.84rem; line-height: 1.2; max-width: 230px;
}
.branch-picker > summary::-webkit-details-marker { display: none; }
.branch-picker > summary:hover { border-color: var(--zc-brand-bright); }
.branch-picker .pin { color: var(--zc-brand); flex-shrink: 0; }
.branch-picker .branch-label { display: grid; min-width: 0; }
.branch-picker .branch-label small { color: var(--zc-ink-soft); font-size: 0.72rem; font-weight: 600; }
.branch-picker .branch-label strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 750; }
.branch-picker .chev { transition: transform var(--zc-fast) var(--zc-ease); color: var(--zc-ink-soft); flex-shrink: 0; }
.branch-picker[open] .chev { transform: rotate(180deg); }
.branch-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
  width: min(320px, calc(100vw - 32px));
  background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: var(--zc-r-lg);
  box-shadow: var(--zc-shadow-lg); padding: 18px;
  animation: pop-in var(--zc-med) var(--zc-ease);
}
.branch-panel h3 { font-size: 1.1rem; margin-bottom: 4px; }
.branch-panel .field-hint { margin-bottom: 12px; }
.branch-options { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; max-height: 260px; overflow: auto; }
.branch-option {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--zc-r-sm); border: 1.5px solid var(--zc-line); cursor: pointer; font-weight: 650;
}
.branch-option:hover { border-color: var(--zc-brand-bright); }
.branch-option:has(input:checked) { border-color: var(--zc-brand); background: var(--zc-brand-soft); }
.branch-option input { accent-color: var(--zc-brand); width: 18px; height: 18px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Department strip under the header (desktop: inline; phone: a swipeable row). */
.dept-nav { border-top: 1px solid var(--zc-line); }
.dept-row {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding-block: 8px; scroll-snap-type: x proximity;
}
.dept-row::-webkit-scrollbar { display: none; }
.dept-link {
  flex-shrink: 0; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 650; color: var(--zc-ink-soft);
  transition: background-color var(--zc-fast), color var(--zc-fast);
}
.dept-link .dept-glyph {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--zc-paper-2); font-size: 0.95rem;
}
.dept-link:hover, .dept-link[aria-current="page"] { background: var(--zc-brand-soft); color: var(--zc-brand); }

/* Hamburger — CSS-only (checkbox hack); the checkbox must stay a sibling BEFORE .header-row. */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer; flex-shrink: 0;
  border: 1.5px solid var(--zc-line); background: var(--zc-card);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-input:focus-visible ~ .header-row .nav-toggle-label { box-shadow: var(--zc-focus-ring); }
.nav-toggle-label .icon-close { display: none; }
.nav-toggle-input:checked ~ .header-row .nav-toggle-label .icon-open { display: none; }
.nav-toggle-input:checked ~ .header-row .nav-toggle-label .icon-close { display: block; }

/* ---- Hero --------------------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px);
  background:
    radial-gradient(60% 70% at 92% 10%, var(--zc-tile-2) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, var(--zc-tile-0) 0%, transparent 65%),
    var(--zc-paper);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 22px; }
.hero h1 em {
  font-style: normal; color: var(--zc-brand); white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 60 4, 140 3, 297 9' stroke='%23f2a93b' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% 0.32em no-repeat;
  padding-bottom: 0.08em;
}
.hero-lede { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--zc-ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 0.9rem; font-weight: 650; color: var(--zc-ink-soft); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--zc-brand); }

/* The "market stall": a deep-green panel holding real products from the catalogue, with two floating
   status chips that tell the delivery story without a paragraph. */
.hero-stall { position: relative; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; justify-self: end; }
.hero-stall-panel {
  position: absolute; inset: 6% 0 0 8%;
  border-radius: 36px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(26, 156, 107, 0.55), transparent 60%),
    linear-gradient(160deg, #0f4a37, #082a20);
  box-shadow: var(--zc-shadow-lg);
  overflow: hidden;
}
.hero-stall-panel::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hero-tiles {
  position: absolute; inset: 14% 6% 10% 16%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; z-index: 1;
}
.hero-tile {
  border-radius: 22px; padding: 14px;
  background: linear-gradient(var(--tile-angle, 150deg), var(--tile, var(--zc-tile-0)), #ffffff 140%);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.5);
  color: #17201b;
  animation: float 7s ease-in-out infinite;
  transition: transform var(--zc-med) var(--zc-ease);
}
.hero-tile:nth-child(2) { animation-delay: -1.6s; transform: translateY(18px); }
.hero-tile:nth-child(3) { animation-delay: -3.2s; }
.hero-tile:nth-child(4) { animation-delay: -4.8s; transform: translateY(18px); }
.hero-tile:hover { transform: translateY(-4px) rotate(-1deg); }
.hero-tile .glyph { font-size: clamp(2rem, 5vw, 3rem); line-height: 1; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18)); }
.hero-tile .name { font-weight: 750; font-size: 0.82rem; line-height: 1.25; }
.hero-tile .price { font-weight: 800; font-size: 0.86rem; color: #0f6b4c; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.hero-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 18px;
  background: var(--zc-card); color: var(--zc-ink);
  box-shadow: var(--zc-shadow-lg); font-size: 0.82rem; line-height: 1.25;
  animation: float 8s ease-in-out infinite;
}
.hero-chip strong { display: block; font-size: 0.9rem; }
.hero-chip span { color: var(--zc-ink-soft); }
.hero-chip .chip-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.hero-chip-rider { left: -4%; bottom: 2%; animation-delay: -2s; }
.hero-chip-rider .chip-icon { background: var(--zc-amber-soft); }
.hero-chip-paid { right: -2%; top: 2%; }
.hero-chip-paid .chip-icon { background: var(--zc-brand-soft); color: var(--zc-brand); }

/* ---- Trust strip --------------------------------------------------------------------------------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: var(--zc-r-lg);
  background: var(--zc-card); border: 1px solid var(--zc-line);
}
.trust-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--zc-brand-soft); color: var(--zc-brand);
}
.trust-item strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.trust-item span { font-size: 0.86rem; color: var(--zc-ink-soft); line-height: 1.45; display: block; }

/* ---- Section heads ------------------------------------------------------------------------------ */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head h2 { margin: 8px 0 0; }
.section-head p { margin: 8px 0 0; color: var(--zc-ink-soft); max-width: 520px; }
.section-head-actions { display: flex; align-items: center; gap: 8px; }

/* ---- Category cards ----------------------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.category-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 150px; padding: 18px;
  border-radius: var(--zc-r-lg);
  background: linear-gradient(var(--tile-angle, 150deg), var(--tile, var(--zc-tile-0)), color-mix(in srgb, var(--tile, var(--zc-tile-0)) 40%, var(--zc-card)));
  border: 1px solid color-mix(in srgb, var(--tile, var(--zc-tile-0)) 60%, var(--zc-line));
  transition: transform var(--zc-med) var(--zc-ease), box-shadow var(--zc-med) var(--zc-ease);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--zc-shadow); }
.category-card .glyph {
  font-size: 2.6rem; line-height: 1; align-self: flex-end;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.14));
  transition: transform var(--zc-med) var(--zc-spring);
}
.category-card:hover .glyph { transform: scale(1.12) rotate(-6deg); }
.category-card strong { font-size: 1.02rem; line-height: 1.2; display: block; }
.category-card small { color: var(--zc-ink-soft); font-weight: 600; font-size: 0.8rem; }

/* ---- Product cards ------------------------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: clamp(12px, 2vw, 22px); }

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--zc-card); border: 1px solid var(--zc-line);
  border-radius: var(--zc-r-lg); padding: 8px;
  transition: transform var(--zc-med) var(--zc-ease), box-shadow var(--zc-med) var(--zc-ease), border-color var(--zc-med);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--zc-shadow); border-color: transparent; }

.product-tile {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 1 / 1; border-radius: calc(var(--zc-r-lg) - 6px); overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 38%, rgba(255, 255, 255, 0.65), transparent 70%),
    linear-gradient(var(--tile-angle, 150deg), var(--tile, var(--zc-tile-0)), color-mix(in srgb, var(--tile, var(--zc-tile-0)) 45%, var(--zc-card)));
}
@media (prefers-color-scheme: dark) {
  .product-tile { background: linear-gradient(var(--tile-angle, 150deg), var(--tile, var(--zc-tile-0)), transparent); }
}
.product-tile .glyph {
  font-size: clamp(3rem, 7vw, 4rem); line-height: 1;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.16));
  transition: transform var(--zc-med) var(--zc-spring);
}
.product-card:hover .product-tile .glyph { transform: scale(1.1) rotate(-4deg); }

.product-badge {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--zc-card); color: var(--zc-ink-soft); box-shadow: var(--zc-shadow-sm);
}

.product-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px 8px; flex: 1; }
.product-category { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zc-ink-faint); }
.product-name {
  font-weight: 700; font-size: 0.97rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* The whole card is one big click target for the product link, without nesting the add form inside it. */
.product-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product-name:focus-visible { box-shadow: none; }
.product-name:focus-visible::after { box-shadow: var(--zc-focus-ring); }
.product-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; color: var(--zc-brand); font-size: 1.08rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price small { font-weight: 650; font-size: 0.74rem; color: var(--zc-ink-soft); }
.was-price { color: var(--zc-ink-faint); text-decoration: line-through; font-weight: 600; font-size: 0.86rem; }

.quick-add { position: relative; z-index: 1; margin: 0; }
.quick-add .icon-btn {
  width: 42px; height: 42px; border: 0;
  background: var(--zc-brand-deep); color: var(--zc-on-deep);
  box-shadow: 0 8px 16px -8px rgba(11, 61, 46, 0.6);
}
.quick-add .icon-btn:hover { background: var(--zc-amber); color: var(--zc-on-amber); transform: rotate(90deg); }
.quick-add .icon-btn.is-added { background: var(--zc-amber); color: var(--zc-on-amber); }

/* Horizontal product rail (home "Popular", PDP "Often bought with"). */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: clamp(12px, 2vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--zc-gutter);
  padding: 6px var(--zc-gutter) 24px; margin: 0 calc(-1 * var(--zc-gutter));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: calc((100% - 4 * 20px - 2 * var(--zc-gutter)) / 5); } }

/* ---- How it works -------------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); counter-reset: step; }
.step {
  position: relative; padding: clamp(22px, 3vw, 32px);
  border-radius: var(--zc-r-xl); background: var(--zc-card); border: 1px solid var(--zc-line);
}
.step-num {
  font-family: var(--zc-font-display); font-weight: 600; font-size: 3.4rem; line-height: 1;
  color: var(--zc-amber); display: block; margin-bottom: 18px; letter-spacing: -0.04em;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--zc-ink-soft); font-size: 0.95rem; }

/* ---- App promo ---------------------------------------------------------------------------------- */
.app-promo-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(242, 169, 59, 0.28), transparent 60%),
    linear-gradient(140deg, #0f4a37, #082a20);
  color: #fbf8f1;
}
.app-promo-card .eyebrow { color: #f2a93b; }
.app-promo-card h2 { margin: 14px 0 14px; font-size: clamp(1.8rem, 4.4vw, 2.8rem); }
.app-promo-card p { color: rgba(251, 248, 241, 0.78); max-width: 460px; }
.app-promo-note { font-size: 0.82rem; color: rgba(251, 248, 241, 0.6) !important; margin-top: 14px; }
.app-promo-art { display: flex; justify-content: center; }
.phone-mock {
  width: clamp(170px, 26vw, 230px); aspect-ratio: 9 / 18.5;
  border-radius: 34px; padding: 12px;
  background: #050f0b; border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.7);
  rotate: 6deg;
}
.phone-screen {
  height: 100%; border-radius: 24px; overflow: hidden; padding: 14px 12px;
  background: #fbf8f1; color: #17201b;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-notch { width: 34%; height: 6px; border-radius: 999px; background: #d6cdb8; margin: 0 auto 4px; }
.phone-title { font-family: var(--zc-font-display); font-weight: 600; font-size: 0.95rem; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-grid span {
  aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
}
.phone-grid span:nth-child(1) { background: #e2f3e9; }
.phone-grid span:nth-child(2) { background: #fcefd8; }
.phone-grid span:nth-child(3) { background: #e7eff9; }
.phone-grid span:nth-child(4) { background: #fbe5e0; }
.phone-bar { margin-top: auto; border-radius: 12px; background: #0b3d2e; color: #fbf8f1; font-size: 0.66rem; font-weight: 700; padding: 9px 10px; display: flex; justify-content: space-between; }

/* ---- Shop --------------------------------------------------------------------------------------- */
.page-head { padding-block: clamp(28px, 5vw, 56px) clamp(18px, 3vw, 28px); }
.page-head h1 { margin: 10px 0 6px; }
.page-head p { color: var(--zc-ink-soft); margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--zc-ink-soft); margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--zc-line-strong); }
.breadcrumb a:hover { color: var(--zc-brand); }
.breadcrumb [aria-current="page"] { color: var(--zc-ink); font-weight: 650; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 16px; border-radius: 999px;
  border: 1.5px solid var(--zc-line); background: var(--zc-card);
  font-size: 0.9rem; font-weight: 650; white-space: nowrap;
  transition: border-color var(--zc-fast), background-color var(--zc-fast), color var(--zc-fast);
}
.chip:hover { border-color: var(--zc-brand-bright); }
.chip[aria-current="page"], .chip.is-active { background: var(--zc-brand-deep); border-color: var(--zc-brand-deep); color: var(--zc-on-deep); }
.chip small { font-weight: 700; opacity: 0.6; font-variant-numeric: tabular-nums; }

.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; margin: 14px 0 24px;
  border-top: 1px solid var(--zc-line); border-bottom: 1px solid var(--zc-line);
}
.shop-count { font-weight: 650; color: var(--zc-ink-soft); font-size: 0.92rem; }
.shop-count strong { color: var(--zc-ink); }
.shop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  min-height: 42px; padding: 8px 40px 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--zc-line); background: var(--zc-card);
  font-weight: 650; font-size: 0.92rem; cursor: pointer;
}
.select-wrap svg { position: absolute; right: 14px; pointer-events: none; color: var(--zc-ink-soft); }
.select-wrap select:hover { border-color: var(--zc-brand-bright); }

.price-filter { position: relative; }
.price-filter > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--zc-line); background: var(--zc-card); font-weight: 650; font-size: 0.92rem;
}
.price-filter > summary::-webkit-details-marker { display: none; }
.price-filter[open] > summary, .price-filter > summary:hover { border-color: var(--zc-brand-bright); }
.price-filter-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: min(300px, calc(100vw - 32px));
  padding: 16px; border-radius: var(--zc-r-lg);
  background: var(--zc-card); border: 1px solid var(--zc-line); box-shadow: var(--zc-shadow-lg);
  animation: pop-in var(--zc-med) var(--zc-ease);
}
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.price-inputs .field { margin: 0; }
.price-inputs .field input { min-height: 44px; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -10px 0 20px; }
.filter-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  background: var(--zc-brand-soft); color: var(--zc-brand); font-size: 0.86rem; font-weight: 700;
}
.filter-pill span[aria-hidden] { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--zc-card); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: clamp(32px, 5vw, 56px); }
.pager a, .pager span {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  display: inline-grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums;
  border: 1.5px solid transparent;
}
.pager a:hover { border-color: var(--zc-line-strong); }
.pager [aria-current="page"] { background: var(--zc-brand-deep); color: var(--zc-on-deep); }
.pager .pager-step { border-color: var(--zc-line); padding: 0 18px; }
.pager .pager-gap { min-width: 24px; color: var(--zc-ink-faint); }

.empty-state { text-align: center; padding: clamp(40px, 10vw, 88px) 0; max-width: 480px; margin: 0 auto; }
.empty-art {
  width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 36px;
  display: grid; place-items: center; font-size: 3.4rem;
  background: linear-gradient(150deg, var(--zc-tile-2), var(--zc-tile-0));
  box-shadow: var(--zc-shadow);
  rotate: -6deg;
}
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--zc-ink-soft); }
.error-search { margin-inline: auto; max-width: 440px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---- Product detail ----------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding: 18px 0 var(--zc-section); }
.pdp-gallery { position: sticky; top: calc(var(--zc-header-h) + 70px); }
.pdp-tile { border-radius: var(--zc-r-xl); aspect-ratio: 1 / 1; }
.pdp-tile .glyph { font-size: clamp(6rem, 18vw, 10rem); filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.2)); animation: float 7s ease-in-out infinite; }
.pdp-info h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 14px 0 10px; }
.pdp-sku { font-size: 0.84rem; color: var(--zc-ink-faint); }
.pdp-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 22px 0 6px; }
.pdp-price-row .price { font-size: clamp(1.8rem, 4vw, 2.3rem); }
.pdp-unit { color: var(--zc-ink-soft); font-weight: 600; }

.stock-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 750;
}
.stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.stock-in { background: var(--zc-brand-soft); color: var(--zc-brand); }
.stock-in::before { animation: pulse-dot 2s ease-in-out infinite; }
.stock-low { background: var(--zc-amber-soft); color: #8a5a0f; }
@media (prefers-color-scheme: dark) { .stock-low { color: var(--zc-amber); } }
.stock-out { background: var(--zc-danger-soft); color: var(--zc-danger); }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 currentColor; } 50% { box-shadow: 0 0 0 4px transparent; } }

.buy-box {
  margin: 26px 0; padding: clamp(18px, 3vw, 24px);
  border-radius: var(--zc-r-lg); background: var(--zc-card); border: 1px solid var(--zc-line);
}
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.buy-row .btn { flex: 1; }

.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 4px; border-radius: 999px; border: 1.5px solid var(--zc-line); background: var(--zc-paper);
}
.stepper button {
  width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; font-weight: 600; color: var(--zc-ink);
}
.stepper button:hover { background: var(--zc-card); color: var(--zc-brand); }
.stepper button:active { transform: scale(0.9); }
.qty-input {
  width: 56px; height: 42px; text-align: center; border: 0; background: transparent;
  font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus-visible { border-radius: 10px; }

.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.94rem; }
.perks strong { display: block; }
.perks span { color: var(--zc-ink-soft); font-size: 0.88rem; }
.perk-icon { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--zc-paper-2); color: var(--zc-brand); }

.suggestion-reason {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 750;
  background: var(--zc-amber-soft); color: #8a5a0f;
}
@media (prefers-color-scheme: dark) { .suggestion-reason { color: var(--zc-amber); } }

/* Sticky mobile purchase bar on the product page — appears only on phones (see responsive). */
.pdp-sticky { display: none; }

/* ---- Cart --------------------------------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: var(--zc-section); }

.savings-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 18px; border-radius: var(--zc-r-md);
  background: var(--zc-sale-soft); color: var(--zc-sale); font-weight: 700;
}
.savings-banner .savings-icon { font-size: 1.4rem; }

.cart-lines { display: grid; gap: 12px; }
.cart-line {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 12px; border-radius: var(--zc-r-lg);
  background: var(--zc-card); border: 1px solid var(--zc-line);
  animation: rise var(--zc-med) var(--zc-ease) both;
}
.cart-line .product-tile { border-radius: var(--zc-r-md); }
.cart-line .product-tile .glyph { font-size: 2.6rem; }
.cart-line-info { display: grid; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 750; font-size: 1.02rem; line-height: 1.3; }
.cart-line-name:hover { color: var(--zc-brand); }
.cart-line-price { color: var(--zc-ink-soft); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.offer-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--zc-sale-soft); color: var(--zc-sale); font-size: 0.76rem; font-weight: 800;
}
.cart-line-controls { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cart-line-controls form { margin: 0; display: contents; }
.cart-line-total { text-align: right; display: grid; gap: 2px; align-self: start; padding-top: 6px; }
.cart-line-total .price { font-size: 1.12rem; }
.remove-btn {
  border: 0; background: none; cursor: pointer; padding: 8px 10px; border-radius: 999px;
  color: var(--zc-ink-soft); font-weight: 650; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px;
}
.remove-btn:hover { color: var(--zc-danger); background: var(--zc-danger-soft); }

.summary-card {
  position: sticky; top: calc(var(--zc-header-h) + 70px);
  padding: clamp(20px, 3vw, 28px); border-radius: var(--zc-r-xl);
  background: var(--zc-card); border: 1px solid var(--zc-line); box-shadow: var(--zc-shadow);
}
.summary-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.summary-card.is-static { position: static; box-shadow: none; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.96rem; }
.summary-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.summary-row.saving { color: var(--zc-sale); }
.summary-row.total {
  font-size: 1.22rem; font-weight: 800; margin-top: 10px; padding-top: 16px;
  border-top: 1.5px dashed var(--zc-line-strong);
}
.summary-row.total span:last-child { font-family: var(--zc-font-ui); letter-spacing: -0.01em; }
.summary-note { font-size: 0.84rem; color: var(--zc-ink-soft); margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.summary-note svg { color: var(--zc-brand); margin-top: 2px; flex-shrink: 0; }
.summary-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--zc-line); }
.summary-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--zc-ink-soft); padding: 5px 10px; border-radius: 999px; background: var(--zc-paper-2); }

.summary-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 0.92rem; }
.summary-line .product-tile { border-radius: 12px; }
.summary-line .product-tile .glyph { font-size: 1.5rem; }
.summary-line small { display: block; color: var(--zc-ink-soft); }
.summary-line span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-lines { max-height: 320px; overflow: auto; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--zc-line); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Forms / panels ------------------------------------------------------------------------------ */
.panel { background: var(--zc-card); border: 1px solid var(--zc-line); border-radius: var(--zc-r-xl); padding: clamp(20px, 4vw, 32px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 750; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: var(--zc-r-md); border: 1.5px solid var(--zc-line-strong);
  background: var(--zc-card); color: var(--zc-ink);
  transition: border-color var(--zc-fast), box-shadow var(--zc-fast);
}
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b867f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--zc-ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--zc-brand-bright); box-shadow: 0 0 0 4px var(--zc-brand-soft); }
.field input:user-invalid { border-color: var(--zc-danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--zc-r-md); padding: 14px 18px; font-weight: 650; margin-bottom: 18px; }
.alert-error { background: var(--zc-danger-soft); color: var(--zc-danger); border: 1px solid color-mix(in srgb, var(--zc-danger) 25%, transparent); }
.alert-success { background: var(--zc-brand-soft); color: var(--zc-brand); border: 1px solid color-mix(in srgb, var(--zc-brand) 25%, transparent); }
.alert-info { background: var(--zc-amber-soft); color: var(--zc-ink); border: 1px solid color-mix(in srgb, var(--zc-amber) 35%, transparent); }

/* ---- Checkout ----------------------------------------------------------------------------------- */
.progress-steps { display: flex; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 6px; font-size: 0.86rem; font-weight: 700; color: var(--zc-ink-faint); flex-wrap: wrap; }
.progress-steps li { display: inline-flex; align-items: center; gap: 8px; }
.progress-steps li + li::before { content: ""; width: clamp(16px, 4vw, 36px); height: 2px; border-radius: 2px; background: var(--zc-line-strong); }
.progress-steps .dot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 0.78rem; border: 2px solid currentColor; }
.progress-steps .done { color: var(--zc-brand); }
.progress-steps .done .dot { background: var(--zc-brand); border-color: var(--zc-brand); color: var(--zc-card); }
.progress-steps .current { color: var(--zc-ink); }
.progress-steps .current .dot { background: var(--zc-amber); border-color: var(--zc-amber); color: var(--zc-on-amber); }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: var(--zc-section); }
.form-section { padding-bottom: 6px; }
.form-section + .form-section { border-top: 1px solid var(--zc-line); padding-top: 22px; margin-top: 6px; }
.form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.form-section-head .num {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--zc-brand-deep); color: var(--zc-on-deep); font-weight: 800; font-size: 0.9rem;
}
.form-section-head h2 { font-size: 1.3rem; margin: 0; }
.location-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--zc-r-md); background: var(--zc-paper-2); margin: 4px 0 20px; }
.location-note svg { color: var(--zc-brand); flex-shrink: 0; margin-top: 2px; }
.eta-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--zc-r-md); background: var(--zc-brand-soft); color: var(--zc-brand); font-weight: 650; }

/* ---- Status / confirmation ------------------------------------------------------------------------ */
.status-card { position: relative; overflow: hidden; text-align: center; padding: clamp(28px, 6vw, 56px) clamp(18px, 5vw, 48px); }
.status-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.status-card > p { color: var(--zc-ink-soft); max-width: 480px; margin-inline: auto; }

.success-mark { width: 96px; height: 96px; margin: 0 auto 24px; }
.success-mark circle { fill: var(--zc-brand-soft); stroke: var(--zc-brand); stroke-width: 3; stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw 0.8s var(--zc-ease) forwards; }
.success-mark path { fill: none; stroke: var(--zc-brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s 0.55s var(--zc-ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px;
  animation: confetti-fall 2.6s var(--zc-ease) forwards; opacity: 0;
}
@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(340px) rotate(540deg); }
}

.order-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 18px; border-radius: 999px; margin: 6px 0 24px;
  background: var(--zc-paper-2); border: 1.5px dashed var(--zc-line-strong);
  font-weight: 800; letter-spacing: 0.04em;
}
.order-chip code { font-size: 1.05rem; font-family: var(--zc-font-ui); }

.next-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; }
.next-steps li { padding: 16px; border-radius: var(--zc-r-md); background: var(--zc-paper-2); font-size: 0.88rem; }
.next-steps li > span:first-child { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.next-steps strong { display: block; font-size: 0.95rem; }
.next-steps li > span:last-child { color: var(--zc-ink-soft); }

.card-stack { display: grid; gap: 10px; margin-top: 28px; }

/* ---- Order tracking ------------------------------------------------------------------------------ */
.track-search { display: flex; gap: 10px; }
.track-search .field { flex: 1; margin: 0; }
.tracker { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tracker li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--zc-ink-faint); }
.tracker li::before {
  content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 3px;
  background: var(--zc-line); z-index: 0;
}
.tracker li:first-child::before { display: none; }
.tracker .node {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--zc-card); border: 2px solid var(--zc-line-strong);
}
.tracker .done { color: var(--zc-brand); }
.tracker .done::before, .tracker .current::before { background: var(--zc-brand-bright); }
.tracker .done .node { background: var(--zc-brand-soft); border-color: var(--zc-brand); }
.tracker .current { color: var(--zc-ink); }
.tracker .current .node { background: var(--zc-amber); border-color: var(--zc-amber); box-shadow: 0 0 0 6px var(--zc-amber-soft); animation: beacon 2s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { box-shadow: 0 0 0 4px var(--zc-amber-soft); } 50% { box-shadow: 0 0 0 10px transparent; } }

.status-headline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.status-headline h2 { margin: 4px 0 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 750; font-size: 0.86rem; background: var(--zc-brand-soft); color: var(--zc-brand); }
.status-pill.is-problem { background: var(--zc-danger-soft); color: var(--zc-danger); }

.elapsed { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.elapsed.is-late { color: var(--zc-danger); }

/* Star rating — radios in natural 1→5 order, so arrow keys move the way the stars light. "This star and
   every one before it" is done by lighting all, then dimming the ones after the hovered/checked star. */
.star-rating { border: 0; padding: 0; margin: 0 0 18px; }
.star-rating legend { font-weight: 750; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.stars { position: relative; display: inline-flex; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.2rem; line-height: 1; color: var(--zc-line-strong); cursor: pointer; transition: color var(--zc-fast), transform var(--zc-fast) var(--zc-spring); padding: 2px; border-radius: 8px; }
.stars:hover label, .stars:not(:hover):has(input:checked) label { color: var(--zc-amber); }
.stars label:hover ~ input + label, .stars:not(:hover) input:checked + label ~ input + label { color: var(--zc-line-strong); }
.stars label:hover { transform: scale(1.18); }
.stars input:focus-visible + label { box-shadow: var(--zc-focus-ring); }
.feedback-stars { font-size: 1.6rem; color: var(--zc-amber); letter-spacing: 2px; margin: 0 0 8px; }

/* ---- Mini-cart drawer & toast ------------------------------------------------------------------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100vw); max-width: 100vw;
  padding: 0; border: 0; border-radius: var(--zc-r-xl) 0 0 var(--zc-r-xl);
  background: var(--zc-card); color: var(--zc-ink); box-shadow: var(--zc-shadow-lg);
}
.drawer[open] { animation: drawer-in var(--zc-med) var(--zc-ease); }
.drawer::backdrop { background: rgba(7, 20, 15, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade-in var(--zc-med) var(--zc-ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer-shell { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 22px 14px; border-bottom: 1px solid var(--zc-line); }
.drawer-head h2 { font-size: 1.4rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.drawer-head h2 .tick { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--zc-brand); color: var(--zc-card); font-size: 0.9rem; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--zc-line); }
.drawer-line:last-child { border-bottom: 0; }
.drawer-line .product-tile { border-radius: 14px; }
.drawer-line .product-tile .glyph { font-size: 1.7rem; }
.drawer-line.is-new { animation: highlight 1.6s var(--zc-ease); border-radius: var(--zc-r-md); }
@keyframes highlight { 0% { background: var(--zc-amber-soft); } 100% { background: transparent; } }
.drawer-line strong { display: block; font-size: 0.94rem; line-height: 1.3; }
.drawer-line small { color: var(--zc-ink-soft); }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--zc-line); display: grid; gap: 10px; background: var(--zc-paper); }

.toast-region { position: fixed; z-index: 90; left: 50%; bottom: 24px; translate: -50% 0; display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--zc-brand-deep); color: var(--zc-on-deep); font-weight: 700; font-size: 0.92rem;
  box-shadow: var(--zc-shadow-lg); animation: toast-in var(--zc-med) var(--zc-spring);
}
.toast.is-leaving { animation: fade-out 0.3s var(--zc-ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes fade-out { to { opacity: 0; transform: translateY(8px); } }

/* Phone-only sticky cart summary (hidden on larger screens and on cart/checkout). */
.cart-bar { display: none; }

/* ---- Footer ------------------------------------------------------------------------------------- */
.site-footer { background: var(--zc-brand-deep); color: var(--zc-on-deep); margin-top: var(--zc-section); padding: clamp(40px, 7vw, 72px) 0 28px; }
.site-footer .brand-mark { color: var(--zc-on-deep); }
.site-footer .brand-tail { color: var(--zc-amber); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.footer-grid h3 { font-family: var(--zc-font-ui); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--zc-amber); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--zc-on-deep-soft); font-weight: 600; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--zc-on-deep); }
.footer-blurb { color: var(--zc-on-deep-soft); max-width: 340px; margin-top: 14px; font-size: 0.94rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.78rem; font-weight: 700; color: var(--zc-on-deep-soft); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.84rem; color: var(--zc-on-deep-soft); }

/* ---- Receipt (§37) -------------------------------------------------------------------------------
   A page people forward, so it reads as a document: a paper card with a torn bottom edge. */
.receipt-wrap { padding-block: clamp(24px, 5vw, 56px) var(--zc-section); }
.receipt {
  position: relative; background: var(--zc-card); border: 1px solid var(--zc-line);
  border-radius: var(--zc-r-xl) var(--zc-r-xl) 0 0; padding: clamp(22px, 5vw, 44px);
  box-shadow: var(--zc-shadow);
}
.receipt::after {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: -14px; height: 14px;
  background:
    linear-gradient(135deg, var(--zc-card) 50%, transparent 50%) 0 0 / 20px 14px repeat-x,
    linear-gradient(225deg, var(--zc-card) 50%, transparent 50%) 0 0 / 20px 14px repeat-x;
}
.receipt-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1.5px dashed var(--zc-line-strong); }
.receipt-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.receipt-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.receipt-total { text-align: right; }
.receipt-total strong { display: block; font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -0.02em; color: var(--zc-brand); font-variant-numeric: tabular-nums; }
.receipt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; padding: 18px; border-radius: var(--zc-r-md); background: var(--zc-paper-2); }
.receipt-meta dt { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zc-ink-soft); margin-bottom: 4px; }
.receipt-meta dd { margin: 0; font-weight: 650; line-height: 1.45; }
.receipt-lines { width: 100%; border-collapse: collapse; margin-top: 8px; }
.receipt-lines th, .receipt-lines td { padding: 12px 0; border-bottom: 1px solid var(--zc-line); text-align: left; vertical-align: top; }
.receipt-lines th { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--zc-ink-soft); }
.receipt-lines .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-lines td.num { padding-left: 12px; }
.receipt-totals { margin-top: 16px; }
.receipt-fiscal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 18px; border-radius: var(--zc-r-md); background: var(--zc-brand-soft); }
.receipt-fiscal code { font-weight: 800; }
.receipt-fiscal a { color: var(--zc-brand); font-weight: 750; margin-left: auto; }
.receipt-actions { display: grid; gap: 10px; margin-top: 26px; }
.receipt-share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.receipt-share-links a, .link-button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--zc-line);
  color: var(--zc-brand); font-weight: 700; font-size: 0.88rem; background: var(--zc-card); cursor: pointer;
}
.receipt-share-links a:hover, .link-button:hover { border-color: var(--zc-brand-bright); }

/* ---- Reveal-on-scroll (enabled by site.js only; content is visible without it) ------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--zc-ease), transform 0.7s var(--zc-ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =================================================================================================
   Responsive — tablet ≤1000px collapses two-column layouts; phone ≤720px swaps the header for the
   sheet, adds the sticky bars; small phone ≤400px tightens the grids.
   ================================================================================================= */
@media (max-width: 1100px) {
  .branch-picker .branch-label small { display: none; }
  .header-nav .nav-track-label { display: none; }
}

@media (max-width: 1000px) {
  .hero-inner, .pdp, .cart-layout, .checkout-layout, .app-promo-card { grid-template-columns: 1fr; }
  .hero-stall { justify-self: center; max-width: 440px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pdp-gallery, .summary-card { position: static; }
  .pdp-gallery { max-width: 520px; width: 100%; margin-inline: auto; }
  .app-promo-art { order: -1; }
}

/* Touch screens of any width (phones, tablets, touch laptops): every tappable thing reaches the 44px
   target guideline. Keyed to the input device, not the viewport — an iPad in landscape is 1024px wide. */
@media (pointer: coarse) {
  .chip, .btn-sm, .select-wrap select, .price-filter > summary, .header-nav a { min-height: 44px; }
  .branch-picker > summary { min-height: 46px; }
  .branch-option { min-height: 48px; }
  .section-head .link { display: inline-block; padding-block: 10px; background-position: 0 calc(100% - 8px); }
}

/* Phone + tablet header: search drops to its own always-visible row; branch and nav fold into the sheet. */
@media (max-width: 960px) {
  .header-row { flex-wrap: wrap; column-gap: 10px; }
  .header-search { order: 10; flex: 1 0 100%; max-width: none; margin: 0 0 12px; }
  .cart-button { margin-left: auto; }
  .nav-toggle-label { display: inline-flex; }

  .header-actions {
    display: none;
    position: absolute; left: calc(-1 * var(--zc-gutter)); right: calc(-1 * var(--zc-gutter)); top: 100%;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 16px var(--zc-gutter) 22px;
    background: var(--zc-paper); border-bottom: 1px solid var(--zc-line); box-shadow: var(--zc-shadow-lg);
    animation: pop-in var(--zc-med) var(--zc-ease);
  }
  .nav-toggle-input:checked ~ .header-row .header-actions { display: flex; }
  .branch-picker > summary { max-width: none; width: 100%; padding: 12px 14px; min-height: 52px; }
  .branch-picker .branch-label small { display: block; }
  .branch-panel { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
  .header-nav { flex-direction: column; align-items: stretch; gap: 2px; font-size: 1.02rem; }
  .header-nav a { padding: 14px 12px; border-radius: var(--zc-r-md); }
  .header-nav .nav-track-label { display: inline; }
}

@media (max-width: 720px) {
  :root { --zc-header-h: 64px; }

  .announce-item:not(:first-child) { display: none; }

  .cart-button { padding: 0 14px 0 12px; }
  .cart-button .cart-label { display: none; }

  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-chip-paid { right: 0; }
  .hero-chip-rider { left: 0; bottom: -9%; }
  .hero { padding-bottom: 72px; }

  .trust-strip { grid-template-columns: 1fr; gap: 10px; }
  .trust-item { padding: 16px; }
  .steps, .next-steps { grid-template-columns: 1fr; }
  .category-grid { grid-auto-flow: column; grid-auto-columns: 42%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--zc-gutter); scrollbar-width: none; padding: 4px var(--zc-gutter) 12px; margin: 0 calc(-1 * var(--zc-gutter)); }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { scroll-snap-align: start; min-height: 136px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 46%; }
  .product-body { padding: 10px 6px 6px; }
  .product-tile .glyph { font-size: 2.8rem; }
  .pdp-tile .glyph { font-size: 7.5rem; }

  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-controls { justify-content: space-between; }
  .price-filter-panel { right: auto; left: 0; }

  .cart-line { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .cart-line .product-tile .glyph { font-size: 2rem; }
  .cart-line-total { grid-column: 2; text-align: left; padding-top: 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .tracker li { font-size: 0.68rem; }
  .tracker .node { width: 36px; height: 36px; font-size: 1rem; }
  .tracker li::before { top: 17px; }
  .track-search { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Sticky bottom bars: page content needs room underneath them. */
  body.has-cart-bar, body.has-pdp-bar { padding-bottom: 92px; }
  .cart-bar, .pdp-sticky {
    position: fixed; z-index: 35; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 999px;
    background: var(--zc-brand-deep); color: var(--zc-on-deep); box-shadow: var(--zc-shadow-lg);
    animation: toast-in var(--zc-med) var(--zc-spring);
  }
  .cart-bar strong, .pdp-sticky strong { display: block; font-size: 1rem; font-variant-numeric: tabular-nums; }
  .cart-bar small, .pdp-sticky small { color: var(--zc-on-deep-soft); font-size: 0.78rem; font-weight: 600; }
  .cart-bar .btn, .pdp-sticky .btn { min-height: 46px; padding: 10px 20px; }
  body.has-pdp-bar .cart-bar { display: none; }
  .toast-region { bottom: 100px; }

  .drawer { width: 100vw; height: auto; max-height: 88dvh; margin: auto 0 0; border-radius: var(--zc-r-xl) var(--zc-r-xl) 0 0; }
  .drawer[open] { animation: sheet-in var(--zc-med) var(--zc-ease); }
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 400px) {
  .btn { padding-inline: 20px; }
  .hero-ctas .btn { flex: 1; }
  .cart-button { min-height: 44px; }
  .brand-word { font-size: 1.22rem; }
  .brand-logo { width: 34px; height: 34px; }
}

/* ---- Motion preferences --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-tile, .hero-chip, .pdp-tile .glyph { animation: none; }
}

/* ---- Print (the receipt is the page people print) ------------------------------------------------- */
@media print {
  .announce, .site-header, .site-footer, .cart-bar, .pdp-sticky, .receipt-actions, .receipt-share-links, .toast-region, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .receipt { box-shadow: none; border: 0; padding: 0; }
  .receipt::after { display: none; }
}
