/* =============================================================
   Tarpon Mini Mart — Design Tokens
   Phase 1 web storefront. Mobile-first.
   This file holds every color, type, spacing, and radius token
   used by the prototype screens. No raw values in screen files.
   ============================================================= */

:root {
  /* ---------- BRAND (sourced from logo) ---------- */
  --brand-green: #1B4127;
  --brand-cream: #F9ECC9;
  --brand-red:   #E81E27;

  /* ---------- SURFACES (cream-derived, never pure white) ---------- */
  --surface-page:    #F9ECC9;   /* the page itself, cream */
  --surface-card:    #FFF6E0;   /* slightly lifted cream */
  --surface-rail:    #F3E4BC;   /* darker cream, the aisle rail */
  --surface-tag:     #FFFFFF;   /* only the price "shelf tag" panel — small intentional exception */
  --surface-overlay: rgba(20, 38, 26, 0.70);   /* modal scrim, green-tinted */
  --surface-shade:   #ECDFB2;   /* pressed/hover state for cream surfaces */
  --surface-dark:    #1B4127;   /* deep green, used as a structural band — landing header, cart mode-shift ribbon */
  --surface-band:    #14261A;   /* darker green, for the deepest structural moments */
  --surface-info:    #EAF1E5;   /* green-tinted off-cream, the neutral mode-shift surface (NOT red) */

  /* ---------- INK (green-tinted neutrals, never generic grey) ---------- */
  --ink-strong:    #14261A;     /* body emphasis, prices */
  --ink:           #2A3A2E;     /* default text */
  --ink-soft:      #4A5A4D;     /* secondary */
  --ink-mute:      #7A8580;     /* tertiary, placeholders */
  --ink-on-green:  #F9ECC9;     /* text on green surfaces */
  --ink-on-red:    #FFFFFF;     /* text on brand red */
  --ink-disabled:  #9A907A;

  /* ---------- HAIRLINES (warm, cream-derived) ---------- */
  --hairline:        #D8C68B;
  --hairline-strong: #B89B5C;
  --age-keyline:     #E81E27;   /* brand red, 2px — the state indicator */

  /* ---------- FUNCTIONAL ---------- */
  --success: #1B4127;   /* use the brand green — no second green */
  --warning: #B8761C;   /* warm amber, sits with cream */
  --error:   #B8231C;   /* hue-shifted red, deliberately distinct from brand red */
  --info:    #2A5A8A;   /* navy, only for system messages */

  /* ---------- AGE-RESTRICTED TREATMENT ---------- */
  --age-mark:        #E81E27;   /* brand red, used for keyline + 1px outline */
  --age-mark-ink:    #C81820;   /* darkened red for AA contrast on cream (4.6:1) */
  --age-mark-keyline:#F9ECC9;   /* cream fill behind the 21+ mark — screen-print detail */
  --age-tint:        #FBE4E5;   /* 5% red wash, used on alcohol card ribbon */

  /* ---------- TYPE FACES (free, on Google Fonts) ---------- */
  --font-display: 'Zilla Slab', 'Rockwell', 'Roboto Slab', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- TYPE SCALE (mobile baseline) ---------- */
  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   22px;
  --fs-xl:   28px;
  --fs-2xl:  36px;
  --fs-3xl:  44px;

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-base:  1.5;
  --lh-loose: 1.7;

  --tracking-tight: -0.01em;
  --tracking-wide:   0.05em;
  --tracking-caps:   0.08em;

  /* ---------- SPACING (4px base) ---------- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ---------- RADIUS (badge has none, the system inherits) ---------- */
  --radius-0:    0;
  --radius-1:    4px;   /* inputs, age-mark, small chips */
  --radius-2:    8px;   /* cart panel, modals */
  --radius-3:   12px;
  --radius-pill: 999px; /* not used as default; reserved for chips if needed */

  /* ---------- BORDERS / FOCUS ---------- */
  --border-1: 1px solid var(--hairline);
  --border-2: 2px solid var(--hairline-strong);
  --border-age: 2px solid var(--age-keyline);
  --focus-ring: 0 0 0 2px var(--brand-cream), 0 0 0 4px var(--ink-strong);

  /* ---------- SHADOWS (intentionally minimal — hairlines do the work) ---------- */
  --shadow-0: none;
  --shadow-1: 0 1px 0 rgba(20, 38, 26, 0.04);
  --shadow-modal: 0 8px 32px rgba(20, 38, 26, 0.18);

  /* ---------- MOTION ---------- */
  --motion-fast:   120ms;
  --motion-medium: 220ms;
  --motion-slow:   360ms;
  --ease-out:  cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in:   cubic-bezier(0.5, 0, 0.8, 0.3);

  /* ---------- LAYOUT TOKENS ---------- */
  --maxw-page: 1280px;
  --maxw-content: 960px;
  --rail-w: 200px;
  --header-h: 64px;
  --bottom-bar-h: 64px;
}

/* =============================================================
   RESET / BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--surface-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* =============================================================
   TYPOGRAPHY UTILITIES
   ============================================================= */
.t-display { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-tight); }
.t-mono    { font-family: var(--font-mono); font-feature-settings: 'tnum' 1, 'zero' 1; }
.t-uppercase { text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.t-mute    { color: var(--ink-mute); }
.t-soft    { color: var(--ink-soft); }
.t-strong  { color: var(--ink-strong); font-weight: 600; }
.t-tabular { font-variant-numeric: tabular-nums; }

h1, .t-h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--ink-strong); letter-spacing: var(--tracking-tight); }
h2, .t-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); line-height: var(--lh-tight); color: var(--ink-strong); }
h3, .t-h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-md); line-height: var(--lh-snug); color: var(--ink-strong); }
.t-small  { font-size: var(--fs-sm); }
.t-xs     { font-size: var(--fs-xs); }

/* =============================================================
   LAYOUT PRIMITIVES
   ============================================================= */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-page); }
.container { width: 100%; max-width: var(--maxw-page); margin: 0 auto; padding: 0 var(--space-4); }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }
.row { display: flex; gap: var(--space-3); align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.divider { height: 1px; background: var(--hairline); border: 0; margin: var(--space-4) 0; }

/* =============================================================
   APP HEADER (the persistent chrome)
   ============================================================= */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-3);
  background: var(--surface-page);
  border-bottom: var(--border-1);
  position: sticky; top: 0; z-index: 10;
  min-height: var(--header-h);
  gap: var(--space-2);
}
.app-header__brand { display: flex; align-items: center; gap: var(--space-2); }
.app-header__logo { height: 40px; width: auto; }
.app-header__store {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--hairline);
  background: var(--surface-card);
  font-size: var(--fs-xs);
  color: var(--ink);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.app-header__store-badge { width: 24px; height: auto; }
@media (min-width: 720px) {
  .app-header { padding: var(--space-3) var(--space-4); }
}
.app-header__search { flex: 1; max-width: 480px; }
.app-header__cart {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--brand-green);
  color: var(--ink-on-green);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-1);
}

@media (min-width: 1024px) {
  .app-header { padding: var(--space-3) var(--space-6); }
  .app-header__logo { height: 48px; }
}

/* =============================================================
   STORE PICKER BADGE (the 7-sided road-sign)
   ============================================================= */
.picker {
  display: grid; gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .picker { grid-template-columns: repeat(3, 1fr); } }

.picker-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  padding: var(--space-5);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  position: relative;
}
.picker-card__badge { width: 130px; height: auto; }
.picker-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--ink-strong); line-height: var(--lh-snug); }
.picker-card__addr { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-soft); }
.picker-card__meta { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink); }
.picker-card__meta strong { font-weight: 600; white-space: nowrap; }
.picker-card__chevron {
  width: 60%; height: 12px; margin-top: var(--space-2);
  background: var(--brand-green);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 50% 50%, 15% 100%);
}
.picker-card__cta {
  background: var(--brand-green);
  color: var(--ink-on-green);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  border-radius: var(--radius-1);
  width: 100%;
  font-size: var(--fs-base);
}
.picker-card__cta:hover { background: var(--ink-strong); }

/* Picker card — disabled / placeholder for a store that is not yet open */
.picker-card--placeholder {
  background: var(--surface-rail);
  border-style: dashed;
  border-color: var(--ink-mute);
  opacity: 0.85;
}
.picker-card--placeholder .picker-card__badge { filter: grayscale(1); opacity: 0.55; }
.picker-card--placeholder .picker-card__chevron { background: var(--ink-mute); }
.picker-card--placeholder .picker-card__cta {
  background: var(--ink-mute);
  color: var(--ink-on-green);
  cursor: not-allowed;
}
.picker-card--placeholder::after {
  content: 'Not yet open';
  position: absolute; top: var(--space-3); right: var(--space-3);
  background: var(--ink); color: var(--ink-on-green);
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: var(--radius-1);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* =============================================================
   LANDING (the address field) — with the deep green band
   ============================================================= */
.landing-band {
  background: var(--surface-dark);
  color: var(--ink-on-green);
  padding: var(--space-8) var(--space-4) var(--space-10);
  text-align: center;
}
.landing-band__logo { width: 180px; height: auto; margin: 0 auto var(--space-4); }
.landing-band__title { color: var(--ink-on-green); font-size: var(--fs-2xl); margin-bottom: var(--space-2); }
.landing-band__lede { color: var(--ink-on-green); opacity: 0.85; max-width: 50ch; margin: 0 auto; font-size: var(--fs-md); }
.landing-band__clocks { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); flex-wrap: wrap; }
.landing-band__clock { font-family: var(--font-mono); font-size: var(--fs-xs); background: var(--brand-cream); color: var(--ink-strong); padding: var(--space-1) var(--space-3); border-radius: var(--radius-1); letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 600; }

.landing {
  padding: var(--space-8) var(--space-4);
  max-width: var(--maxw-content);
  margin: 0 auto;
}
.landing__title { margin-bottom: var(--space-2); }
.landing__lede { color: var(--ink-soft); margin-bottom: var(--space-6); max-width: 56ch; }
.address-form { display: flex; gap: var(--space-2); margin-bottom: var(--space-8); }
.address-form__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--ink-strong);
  border-radius: var(--radius-1);
}
.address-form__submit {
  padding: var(--space-3) var(--space-5);
  background: var(--brand-green);
  color: var(--ink-on-green);
  font-weight: 600;
  border-radius: var(--radius-1);
  white-space: nowrap;
}
.landing__divider {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  margin-bottom: var(--space-5);
}
.landing__divider::before, .landing__divider::after { content: ''; flex: 1; height: 1px; background: var(--hairline); }

/* =============================================================
   AISLE RAIL (left column, the directory)
   ============================================================= */
.layout-browse {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .layout-browse { grid-template-columns: var(--rail-w) 1fr; }
}

.aisle-rail {
  background: var(--surface-rail);
  border-bottom: var(--border-1);
  padding: var(--space-3);
  overflow-x: auto;
}
@media (min-width: 1024px) {
  .aisle-rail { border-right: var(--border-1); border-bottom: 0; padding: var(--space-4) 0; min-height: calc(100vh - var(--header-h)); }
}

.aisle-rail__list {
  display: flex; flex-direction: row; gap: var(--space-1);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .aisle-rail__list { flex-direction: column; gap: 0; }
}

.aisle-rail__item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--ink);
  border-radius: var(--radius-1);
  font-weight: 500;
  cursor: pointer;
}
.aisle-rail__item:hover:not(.aisle-rail__item--active) { background: var(--surface-shade); color: var(--ink-strong); }
.aisle-rail__item--active {
  background: var(--brand-green);
  color: var(--ink-on-green);
}
.aisle-rail__item--active:hover {
  background: var(--surface-band);
  color: var(--ink-on-green);
}
.aisle-rail__glyph {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}
.aisle-rail__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.aisle-rail__item--active .aisle-rail__count { color: var(--ink-on-green); opacity: 0.75; }

.aisle-rail__divider { height: 1px; background: var(--hairline); margin: var(--space-2) 0; }

/* =============================================================
   PRODUCT GRID
   ============================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: var(--space-4);
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); padding: var(--space-5); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--surface-card);
  border: var(--border-1);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-2);
  position: relative;
  min-height: 240px;
}
.product-card--alcohol { border-top: 3px solid var(--brand-red); }
.product-card__image {
  width: 100%; aspect-ratio: 1;
  background: var(--surface-rail);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-size: 10px;
  text-align: center;
  padding: var(--space-2);
  border: 1px solid var(--hairline);
}
.product-card__image-label { font-size: 9px; text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-top: 4px; opacity: 0.6; }
.product-card__name { font-weight: 500; font-size: var(--fs-sm); color: var(--ink-strong); line-height: var(--lh-snug); }
.product-card__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-soft); }
.product-card__price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card__price {
  display: inline-block; padding: 2px 8px;
  background: var(--surface-tag);
  font-family: var(--font-mono); font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink-strong);
  border: 1px solid var(--hairline);
}
.product-card__add {
  background: var(--brand-green);
  color: var(--ink-on-green);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-1);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1;
}
.product-card__add:hover { background: var(--ink-strong); }
.product-card__add--added { background: var(--ink-soft); }

.product-card__age-mark { position: absolute; top: 8px; left: 8px; }

/* =============================================================
   AGE-RESTRICTED TREATMENT
   ============================================================= */
.age-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--age-mark-keyline);
  color: var(--age-mark-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--age-keyline);
  border-radius: var(--radius-1);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
/* Cart panel: state-indicator keyline down the LEFT edge only.
   Red is reserved for the keyline + the 21+ mark + the Fulfilled-by ribbon.
   The panel itself stays cream. */
.age-keyline { border-left: var(--border-age); padding-left: var(--space-3); }
.age-tint { background: var(--age-tint); padding: var(--space-1) var(--space-2); border-left: 2px solid var(--brand-red); }

/* The mode-shift banner. When a beer enters the cart, the cart changes mode.
   This banner is informational, NOT an alert. It uses green (the brand's
   normal surface), not red. The 21+ mark and the left keyline do the red work. */
.state-change-banner {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--surface-dark);
  color: var(--ink-on-green);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}
.state-change-banner__icon { flex-shrink: 0; }
.state-change-banner__icon .age-mark { border-color: var(--brand-cream); }
.state-change-banner__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); margin-bottom: 4px; }
.state-change-banner__body { color: var(--ink-on-green); opacity: 0.92; font-size: var(--fs-sm); }

/* =============================================================
   CART
   ============================================================= */
.cart {
  background: var(--surface-card);
  border: var(--border-1);
  display: flex; flex-direction: column;
}
/* Alcohol cart: cream panel with a 2px brand-red keyline down the LEFT edge.
   The whole border does NOT turn red — only the left edge signals the state change. */
.cart--alcohol { border-left: var(--border-age); }

.cart__header {
  padding: var(--space-4);
  border-bottom: var(--border-1);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
}
.cart__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--space-2); }
.cart__close { font-size: var(--fs-md); color: var(--ink-soft); }

.cart__store {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-rail);
  border-bottom: var(--border-1);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
}
.cart__store strong { color: var(--ink-strong); font-weight: 600; }
.cart__store__entity { color: var(--ink-soft); }
.cart__store__lic { margin-left: auto; }

.cart__items { padding: var(--space-3) var(--space-4); }
.cart-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--hairline);
}
.cart-item:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .cart-item {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: var(--space-3);
  }
}
.cart-item__name { font-weight: 500; font-size: var(--fs-sm); }
.cart-item__name-row { display: flex; align-items: center; gap: var(--space-2); }
.cart-item__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-soft); }
.cart-item__qty {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--fs-sm);
}
.cart-item__qty button {
  width: 24px; height: 24px;
  border: 1px solid var(--hairline-strong);
  background: var(--surface-card);
  border-radius: var(--radius-1);
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-item__qty button:hover { background: var(--surface-shade); }
.cart-item__price { font-family: var(--font-mono); font-weight: 600; }

.cart__totals { padding: var(--space-3) var(--space-4); border-top: var(--border-1); }
.totals-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-sm); padding: var(--space-1) 0; }
.totals-row--total { font-size: var(--fs-md); font-weight: 700; color: var(--ink-strong); border-top: 1px solid var(--hairline); margin-top: var(--space-2); padding-top: var(--space-3); }

.cart__footer { padding: var(--space-4); border-top: var(--border-1); }

/* =============================================================
   DISCLOSURE (the alcohol consent block)
   The disclosure is informational, not an alert. A 2px brand-red
   keyline on the left marks it as a rules statement. The 21+ mark
   in the title does the rest. No pink tint, no red text fill.
   ============================================================= */
.disclosure {
  background: var(--surface-rail);
  border: var(--border-1);
  border-left: 2px solid var(--brand-red);
  padding: var(--space-4);
  margin: 0;
}
.disclosure__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--ink-strong);
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: var(--space-2);
}
.disclosure__list { font-size: var(--fs-sm); color: var(--ink); }
.disclosure__list li { padding: 4px 0 4px var(--space-4); position: relative; }
.disclosure__list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 1px; background: var(--ink-soft);
}
.disclosure__check {
  display: flex; gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.disclosure__check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--brand-green); }
.disclosure__check span { color: var(--ink); }

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--radius-1);
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: background var(--motion-fast) var(--ease-out);
}
.btn--primary { background: var(--brand-green); color: var(--ink-on-green); width: 100%; }
.btn--primary:hover { background: var(--ink-strong); }
.btn--primary:disabled { background: var(--ink-disabled); color: var(--ink-on-green); cursor: not-allowed; }
.btn--secondary { background: transparent; color: var(--ink-strong); border: 1px solid var(--hairline-strong); }
.btn--secondary:hover { background: var(--surface-shade); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { color: var(--ink-strong); }
.btn--small { padding: var(--space-2) var(--space-3); font-size: var(--fs-sm); }
.btn--full { width: 100%; }

/* =============================================================
   FULFILLED-BY RIBBON (the bottom strip)
   ============================================================= */
.fulfilled {
  background: var(--brand-red);
  color: var(--ink-on-red);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: var(--space-2) var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap;
  letter-spacing: 0.02em;
}
.fulfilled__label { text-transform: uppercase; letter-spacing: var(--tracking-caps); opacity: 0.85; }
.fulfilled__entity { font-weight: 600; }
.fulfilled__addr { opacity: 0.85; }
.fulfilled__licence { margin-left: auto; opacity: 0.85; }

/* =============================================================
   BOTTOM BAR (mobile cart + checkout)
   ============================================================= */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--surface-page);
  border-top: var(--border-1);
  padding: var(--space-3) var(--space-4);
  display: flex; gap: var(--space-3); align-items: center;
  z-index: 20;
  min-height: var(--bottom-bar-h);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
}
@media (min-width: 769px) {
  .bottom-bar { display: none !important; }
}
.bottom-bar__summary { flex: 1; }
.bottom-bar__count { font-size: var(--fs-xs); color: var(--ink-soft); font-family: var(--font-mono); }
.bottom-bar__total { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-md); color: var(--ink-strong); }
.bottom-bar__cta {
  background: var(--brand-green); color: var(--ink-on-green);
  padding: var(--space-3) var(--space-5);
  font-weight: 600; border-radius: var(--radius-1);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* =============================================================
   BANNER / ALERT
   ============================================================= */
.alert {
  border: 1px solid var(--hairline);
  background: var(--surface-card);
  padding: var(--space-3) var(--space-4);
  display: flex; gap: var(--space-3);
  align-items: flex-start;
}
.alert--info { border-left: 3px solid var(--info); }
.alert--warning { border-left: 3px solid var(--warning); background: #FBF1DC; }
.alert--error {
  border-left: 3px solid var(--error);
  background: #FBE6E4;
  color: var(--ink-strong);
}
.alert__icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.alert__title { font-weight: 600; font-size: var(--fs-sm); }
.alert__body { font-size: var(--fs-sm); color: var(--ink); margin-top: 2px; }

/* Inline form error — sits at the field, with the word "Problem" prefix */
.field-error {
  display: flex; gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--error);
  margin-top: var(--space-1);
  font-weight: 500;
}
.field-error::before { content: '⚠'; flex-shrink: 0; }
.field-error::after  { content: ' Problem'; font-weight: 600; }

/* =============================================================
   FORMS
   ============================================================= */
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-strong); }
.field__hint  { font-size: var(--fs-xs); color: var(--ink-soft); }
.input, .select, .textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-1);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--ink-strong);
  width: 100%;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.input--error { border-color: var(--error); }
.textarea { font-family: var(--font-body); min-height: 80px; resize: vertical; }

/* =============================================================
   CHECKOUT
   ============================================================= */
.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-4);
  max-width: var(--maxw-page);
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .checkout { grid-template-columns: 1fr 360px; gap: var(--space-8); padding: var(--space-8) var(--space-6); }
}
.checkout__section {
  background: var(--surface-card);
  border: var(--border-1);
  padding: var(--space-5);
}
.checkout__section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  margin-bottom: var(--space-4);
  color: var(--ink-strong);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 720px) { .field-row--2 { grid-template-columns: 1fr 1fr; } }

/* =============================================================
   PROGRESS (free delivery, min order, verification)
   ============================================================= */
.progress { background: var(--surface-rail); padding: var(--space-3) var(--space-4); }
.progress__label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-soft); margin-bottom: var(--space-1); }
.progress__bar { height: 6px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--brand-green); transition: width var(--motion-medium) var(--ease-out); }
.progress__copy { font-size: var(--fs-sm); margin-top: var(--space-2); color: var(--ink); }
.progress__copy strong { font-weight: 600; }

/* =============================================================
   CART PROGRESS — the two bases, named
   The $25 minimum counts ALL goods. The $100 free delivery counts
   NON-ALCOHOL goods only. Each line names what's counted so the
   difference is visible without explanation.
   ============================================================= */
.cart-progress {
  background: var(--surface-rail);
  border: var(--border-1);
  padding: var(--space-3) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.cart-progress__line { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink); line-height: var(--lh-base); }
.cart-progress__line strong { color: var(--ink-strong); font-weight: 600; }
.cart-progress__divider { height: 1px; background: var(--hairline); margin: 2px 0; }
.cart-progress__line--cleared { color: var(--ink-soft); }
.cart-progress__line--cleared strong { color: var(--brand-green); }

/* =============================================================
   TIP SELECTOR (at checkout, not in the cart)
   ============================================================= */
.tip-options { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.tip-option { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--hairline-strong); background: var(--surface-card); cursor: pointer; flex: 1; min-width: 80px; justify-content: center; }
.tip-option--active { border-color: var(--brand-green); background: rgba(27, 65, 39, 0.05); }
.tip-option input { accent-color: var(--brand-green); }
.tip-option__label { font-weight: 600; font-size: var(--fs-sm); }
.tip-option__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-soft); }

/* =============================================================
   MODAL / DIALOG (used sparingly)
   ============================================================= */
.modal-scrim {
  position: fixed; inset: 0;
  background: var(--surface-overlay);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100;
  padding: 0;
}
@media (min-width: 720px) { .modal-scrim { align-items: center; padding: var(--space-6); } }
.modal {
  background: var(--surface-card);
  width: 100%;
  max-width: 480px;
  border: var(--border-1);
  border-radius: var(--radius-3) var(--radius-3) 0 0;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}
@media (min-width: 720px) { .modal { border-radius: var(--radius-2); } }
.modal__header { padding: var(--space-5); border-bottom: var(--border-1); }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.modal__body { padding: var(--space-5); }
.modal__footer { padding: var(--space-4) var(--space-5); border-top: var(--border-1); display: flex; gap: var(--space-3); }

/* =============================================================
   TRACKING
   ============================================================= */
.tracker {
  display: flex; justify-content: space-between;
  position: relative;
  padding: var(--space-4) 0;
}
.tracker::before {
  content: ''; position: absolute; left: 12px; right: 12px; top: 26px;
  height: 2px; background: var(--hairline);
  z-index: 0;
}
.tracker__step { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); flex: 1; position: relative; z-index: 1; }
.tracker__dot { width: 24px; height: 24px; background: var(--surface-card); border: 2px solid var(--hairline-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tracker__step--done .tracker__dot { background: var(--brand-green); border-color: var(--brand-green); color: var(--ink-on-green); }
.tracker__step--current .tracker__dot { background: var(--brand-cream); border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(27, 65, 39, 0.15); }
.tracker__label { font-family: var(--font-mono); font-size: 11px; text-align: center; color: var(--ink-soft); }
.tracker__step--current .tracker__label { color: var(--ink-strong); font-weight: 600; }

/* =============================================================
   ORDER HISTORY
   ============================================================= */
.order-list { display: flex; flex-direction: column; gap: var(--space-3); }
.order-card {
  background: var(--surface-card);
  border: var(--border-1);
  padding: var(--space-4);
  display: grid; gap: var(--space-3);
  grid-template-columns: 1fr auto;
  align-items: center;
}
.order-card__meta { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-soft); }
.order-card__items { font-size: var(--fs-sm); color: var(--ink); }
.order-card__total { font-family: var(--font-mono); font-weight: 700; color: var(--ink-strong); font-size: var(--fs-md); }
.order-card__reorder { margin-top: var(--space-2); }

/* =============================================================
   LOYALTY
   ============================================================= */
.loyalty {
  background: var(--brand-green);
  color: var(--ink-on-green);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.loyalty__label { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); opacity: 0.8; }
.loyalty__balance { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-3xl); margin: var(--space-1) 0; font-variant-numeric: tabular-nums; }
.loyalty__meta { font-size: var(--fs-sm); opacity: 0.85; }

/* =============================================================
   RESPONSIVE TWEAKS
   ============================================================= */
@media (min-width: 1024px) {
  :root { --fs-2xl: 40px; --fs-3xl: 52px; }
  .hide-desktop { display: none !important; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}
@media (max-width: 1023px) {
  .hide-mobile { display: none !important; }
}

/* =============================================================
   ACCESSIBILITY UTILITIES
   ============================================================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--ink-strong); color: var(--ink-on-green);
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
}
.skip-link:focus { top: 0; }

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
