/* Oupa Jam: shared design tokens + nav + hero (element 1 of the overhaul, 2026-10-06).
   Follows the LSA front-end design SOP (G:\Projects\DesignSOP\SOP). Recorded project overrides:
   - Radius scale 4 / 8 / 16 (buttons 8, large media 16): the brand is warm and hand-made, not pill-shaped.
   - One accent (amber #D4A017) used only for the action and the current-page marker. Text on it is charcoal
     (4.62:1); white on this amber is 2.38:1 and fails.
   - Small amber text uses a darker amber (#7A5400, 6.44:1 on cream).
   - Button label is --fs-base (16px) not 17px, to keep the type scale at five steps.
   Type: five steps (14 / 16 / 20 / 25 / fluid display); the display step is one token that scales with the viewport.
   Weights: 400 and 600 only in this file. Loaded AFTER the page's inline <style> so these rules win. */

:root {
  /* spacing, 4px grid */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  /* type scale */
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-display: clamp(2.5rem, 1.5rem + 3.4vw, 3.75rem);
  --fw-regular: 400;
  --fw-semibold: 600;
  /* colour: three text tiers + one accent */
  --ink: #2C3E50;
  --ink-2: #4A5568;
  --ink-3: #5F6B7A;
  --accent: #D4A017;
  --accent-hover: #E2B02C;
  --accent-ink: #2C3E50;
  --accent-text: #7A5400;
  --border-strong: rgba(44, 62, 80, 0.28);
  /* radius scale */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 16px;
  /* motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --nav-height: 72px;
}

/* ---------- Focus (visible, 3:1+) ---------- */
.site-nav a:focus-visible,
.site-nav button:focus-visible,
.fullscreen-menu a:focus-visible,
.fullscreen-menu button:focus-visible,
#hero a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Top navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--space-4);
  background: rgba(250, 249, 246, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
  border: 0;
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--ink);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.nav-links a[aria-current="page"] {
  font-weight: var(--fw-semibold);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.nav-links a.nav-shop {
  margin-left: var(--space-2);
  padding: 0 var(--space-5);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-m);
  box-shadow: none;
  transition: background-color 150ms var(--ease);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  cursor: pointer;
}
.nav-menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-m);
  cursor: pointer;
}
.nav-cart-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--space-1);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  border-radius: 10px;
}
@media (hover: hover) {
  .nav-links a:hover { color: var(--accent-text); }
  .nav-links a.nav-shop:hover { background: var(--accent-hover); color: var(--accent-ink); }
  .nav-menu-btn:hover, .nav-cart-btn:hover { background: rgba(44, 62, 80, 0.06); }
}
@media (min-width: 960px) {
  .site-nav { padding: 0 var(--space-5); }
  .nav-links { display: flex; }
  .nav-menu-btn { display: none; }
  .nav-actions { margin-left: 0; }
}

/* ---------- Full-screen menu (phones and tablets) ---------- */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  background: rgba(250, 249, 246, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition-delay: 0s;
}
.fullscreen-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--space-5);
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.fullscreen-menu a.menu-shop {
  margin-top: var(--space-4);
  padding: 0 var(--space-7);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-m);
}
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  font-size: var(--fs-lg);
  background: transparent;
  border: 0;
  border-radius: var(--radius-m);
  cursor: pointer;
}
.fullscreen-menu .menu-close { position: absolute; top: var(--space-4); right: var(--space-4); }

/* ---------- Hero ---------- */
.hero-wrapper { background-color: var(--cream); }
#hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  max-width: 1200px;
  min-height: 0;
  height: auto;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-7);
}
.hero-content { display: block; text-align: left; }
.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  color: var(--accent-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#hero h1 {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-display);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-lede {
  max-width: 52ch;
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-6);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-radius: var(--radius-m);
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn-cta:active { transform: translateY(1px); }
.link-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
@media (hover: hover) {
  .btn-cta:hover { background: var(--accent-hover); }
  .link-quiet:hover { color: var(--accent-text); }
}
.hero-facts {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.hero-facts li { position: relative; padding-left: var(--space-5); }
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg);
}
.hero-image { margin: 0; }
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-l);
}
.hero-image figcaption {
  margin-top: var(--space-2);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
@media (min-width: 860px) {
  #hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-7);
    min-height: min(640px, calc(100vh - var(--nav-height)));
    padding: var(--space-8) var(--space-5);
  }
  .hero-actions { flex-direction: row; align-items: center; gap: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav *, .fullscreen-menu, .btn-cta { transition: none !important; }
}

/* ---------- Product cards (element 2, 2026-10-06) ----------
   Design SOP: one primary action per card (48px), price 20px/600 tabular, three text tiers,
   radius 16 outer, no hover lift (raise only what floats), out-of-stock = grayscale photo + label
   + disabled button with a visible reason (never a faded card), real buttons not divs. */
.product-grid { gap: var(--space-5); }
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.pcard-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #F1EDE4;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.pcard-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.pcard.is-oos .pcard-media img { filter: grayscale(0.6); }
.pcard-ph {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  text-align: center;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.pcard-flag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
}
.pcard-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--space-2);
  padding: var(--space-5);
}
.pcard-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  color: var(--ink);
}
.pcard-en { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }
.pcard-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3em;
  margin: var(--space-2) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
.pcard-note { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--accent-text); }
.pcard-foot { display: flex; flex-direction: column; gap: var(--space-4); margin-top: auto; padding-top: var(--space-4); }
.pcard-price { display: flex; align-items: baseline; justify-content: space-between; margin: 0; }
.pcard-rand {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pcard-weight { font-size: var(--fs-sm); color: var(--ink-3); }
.pcard-add {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-5);
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: var(--radius-m);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background-color 150ms var(--ease), transform 150ms var(--ease);
}
.pcard-add:active:not(:disabled) { transform: translateY(1px); }
.pcard-add.is-added { background: var(--ink); color: #fff; }
.pcard-add:disabled {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--border-strong);
  cursor: not-allowed;
}
.pcard-add:focus-visible,
.pcard-media:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (hover: hover) {
  .pcard:hover { border-color: var(--border-strong); }
  .pcard-add:hover:not(:disabled):not(.is-added) { background: var(--accent-hover); }
}
@media (prefers-reduced-motion: reduce) {
  .pcard-add { transition: none; }
}


/* Shop page: keep the footer below the fold until the cards are in (prevents a layout shift). */
.product-grid--reserve:empty { min-height: 120vh; }

/* ---------- Cart panel + mobile cart bar (element 3, 2026-10-06) ----------
   Design SOP: 44px+ targets, three text tiers, one accent for the action, tabular money,
   cart bar at the bottom on phones (thumb reach), panel is a dialog with a focus return,
   empty state = icon + one line + one action. Overrides the older inline cart rules. */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease), visibility 0s linear 200ms;
}
.cart-overlay.active { opacity: 1; visibility: visible; pointer-events: all; transition-delay: 0s; }
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  width: min(440px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -8px 0 24px rgba(44, 62, 80, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 250ms var(--ease), visibility 0s linear 250ms;
}
.cart-panel.active { transform: none; visibility: visible; transition-delay: 0s; }
.cart-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.cart-header h2 { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--ink); }
.cart-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-5); }

/* items */
.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  column-gap: var(--space-4);
  row-gap: var(--space-2);
  align-items: start;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { margin-bottom: 0; }
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-m);
  background: #F1EDE4;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.cart-item-details { min-width: 0; }
.cart-item-title { font-size: var(--fs-base); font-weight: var(--fw-semibold); line-height: 1.3; color: var(--ink); }
.cart-item-price { margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cart-item-total { font-size: var(--fs-base); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; color: var(--ink); }
.cart-item-actions {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.cart-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.cart-stepper .qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.cart-qty { min-width: 36px; text-align: center; font-size: var(--fs-base); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.cart-item-remove {
  min-height: 44px;
  padding: 0 var(--space-2);
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* empty state */
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-top: var(--space-7); text-align: center; color: var(--ink-2); }
.cart-empty svg { width: 40px; height: 40px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty p { margin: 0; font-size: var(--fs-base); }
.cart-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-radius: var(--radius-m);
}

/* delivery choice */
.cart-delivery-options { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); display: grid; gap: var(--space-3); }
.delivery-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  min-height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  font-size: var(--fs-base);
  line-height: 1.4;
  color: var(--ink);
  cursor: pointer;
}
.delivery-radio input { margin: 3px 0 0; accent-color: var(--ink); width: 20px; height: 20px; flex: 0 0 auto; }
.delivery-radio small { display: block; margin: var(--space-1) 0 0 !important; font-size: var(--fs-sm); color: var(--ink-3) !important; }
.delivery-radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* footer: totals + checkout */
.cart-footer {
  flex: 0 0 auto;
  max-height: 82vh;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5) var(--space-5);
  background: var(--cream);
  border-top: 1px solid var(--border);
}
.cart-summary-row { display: flex; justify-content: space-between; margin: 0 0 var(--space-2); font-size: var(--fs-base); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cart-summary-row.total { margin: var(--space-3) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--border-strong); font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--ink); }
.checkout-btn {
  width: 100%;
  min-height: 52px;
  margin-top: var(--space-4);
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-m);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  opacity: 1;
}
.checkout-btn:hover:not(:disabled) { background: var(--accent-hover); }
.checkout-btn:disabled { cursor: progress; }
.checkout-btn.is-busy { opacity: 0.85; }
.secure-payment { margin-top: var(--space-2); text-align: center; font-size: var(--fs-sm); color: var(--ink-3); }

/* low stock (a counted product with 10 or fewer jars left) and cart limits */
.pcard-flag.is-low { background: #FBF1D3; color: var(--accent-text); border-color: rgba(122, 84, 0, 0.45); }
.cart-notice { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); background: #FBF1D3; color: var(--ink); border-radius: var(--radius-m); font-size: var(--fs-sm); line-height: 1.4; }
.cart-stepper .qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* the hidden attribute must always win over component display rules */
.cart-panel [hidden] { display: none !important; }

/* guest checkout (element 4): an email for the receipt, one pay button, errors inline and the cart kept */
.cart-pay { margin-top: var(--space-4); }
.cart-pay-label { display: block; margin: 0 0 var(--space-1); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--ink); }
.cart-pay-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-3);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  font: inherit;
  font-size: var(--fs-base);
}
.cart-pay-input[aria-invalid="true"] { border-color: #9B1C1C; box-shadow: inset 0 0 0 1px #9B1C1C; }
.cart-pay-error { margin: var(--space-2) 0 0; font-size: var(--fs-sm); line-height: 1.4; color: #9B1C1C; }
.cart-pay .checkout-btn { margin-top: var(--space-3); }

/* promo code: collapsed by default so it never competes with the pay button */
.cart-promo { margin-top: var(--space-3); }
.cart-promo-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-sm);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-promo-row { display: flex; gap: var(--space-2); }
.cart-promo-row .cart-pay-input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.cart-promo-apply {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 var(--space-4);
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-m);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
}
.cart-promo-msg { min-height: 1.4em; margin: var(--space-2) 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); }
.cart-promo-msg.is-bad { color: #9B1C1C; }
.cart-discount-row { color: #1F6B3A; }
.cart-promo-toggle:focus-visible, .cart-promo-apply:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* free delivery progress: one fee per order; a full box of 24 ships free */
.cart-ship { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-m); }
.cart-ship[hidden] { display: none; }
.cart-ship-text { margin: 0 0 var(--space-2); font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); }
.cart-ship-bar { height: 8px; background: rgba(44, 62, 80, 0.12); border-radius: 4px; overflow: hidden; }
.cart-ship-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 220ms var(--ease); }
.cart-ship.is-done { border-color: #1F6B3A; }
.cart-ship.is-done .cart-ship-bar span { background: #1F6B3A; }
@media (prefers-reduced-motion: reduce) { .cart-ship-bar span { transition: none; } }
.cart-panel button:focus-visible,
.cart-panel a:focus-visible,
.cart-panel input:focus-visible,
.cart-bar:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* mobile cart bar: thumb reach, only when the cart has something and the panel is closed */
.cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--space-5) env(safe-area-inset-bottom, 0);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: 0;
  cursor: pointer;
}
.cart-bar-label { display: inline-flex; align-items: center; gap: var(--space-2); }
.cart-bar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--space-1);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.cart-bar-total { font-variant-numeric: tabular-nums; }
@media (max-width: 959px) {
  .cart-bar.is-visible { display: flex; }
  body.has-cart-bar { padding-bottom: 72px; }
}
.cart-badge.bump { animation: cart-bump 300ms var(--ease); }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cart-panel, .cart-overlay { transition: none; }
  .cart-badge.bump { animation: none; }
}


/* Delivery choice sits in the footer beside the totals it changes. */
.cart-footer .cart-delivery-options { margin: 0 0 var(--space-4); padding: 0; border-top: 0; gap: var(--space-2); }
.cart-footer .delivery-radio { min-height: 48px; padding: var(--space-2) var(--space-3); }

/* Empty cart: just the message and one action (no delivery choice, totals or checkout). */
.cart-panel.is-empty .cart-footer { display: none; }
/* Delivery option labels: radio on the left, text and address flowing underneath each other. */
.delivery-radio { display: block; position: relative; padding-left: 44px; }
.delivery-radio input { position: absolute; left: var(--space-4); top: 14px; margin: 0; }
.cart-footer .delivery-radio { padding-left: 44px; }
.cart-footer .delivery-radio input { left: var(--space-3); top: 12px; }
.delivery-radio small { margin: var(--space-1) 0 0 !important; }

/* FAQ page: keep the footer below the fold until the questions are drawn (prevents a layout shift). */
.faq-list--reserve:empty { min-height: 100vh; }
