/* Homitini Organics — produce-first storefront (single vanilla stylesheet).
   New-page components ported from the APPROVED visual spec
   docs/product/redesign/storefront_produce_first_v10.html (values verbatim).
   Palette tokens unchanged; typeface tokens now Poppins (display) + Figtree
   (body) per the approved design. Cart-drawer CSS preserved from iteration 1.
   Mobile-first; all interactive targets >= 44px (build_principles.md §5.2). */

:root {
  --bg-cream: #FAF8F5;
  --surface-white: #FFFFFF;
  --border-subtle: #E8E3DA;
  --border-strong: #D5CEBF;

  --brand-forest: #1E372A;
  --brand-forest-light: #2A4C3A;
  --brand-earth: #7D5C3E;
  --brand-amber: #B9772B;
  --brand-amber-soft: #FDF7EC;

  --text-main: #242422;
  --text-muted: #6E6C66;
  --text-light: #9B9890;
  --danger: #9E2B25;
  --success: #2A4C3A;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 4px 20px rgba(30, 55, 42, 0.05);
  --shadow-lift: 0 10px 30px rgba(30, 55, 42, 0.08);
  --radius-sm: 4px;
  --radius-md: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body.drawer-open { overflow: hidden; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-mark { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brand-amber); font-weight: 600; }
.brand-logo { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--brand-forest); }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: var(--text-main); font-size: 13.5px; letter-spacing: 0.03em; font-weight: 500; }
.nav-links a:hover { color: var(--brand-amber); }
.nav-links .story-link { color: var(--brand-earth); }

.cart-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--brand-forest);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}
.cart-btn:hover { background: var(--brand-forest-light); }
.cart-badge {
  background: var(--brand-amber);
  color: #fff;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .cart-btn-label { display: none; }
  .cart-btn { padding: 10px 14px; }
}

/* ---------- Photo hero (background image + light gradient) ---------- */
.hero {
  position: relative;
  background: url('../img/bluberry_hero.jpg') center 30% / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 40, 31, .7) 0%, rgba(20, 40, 31, .4) 55%, rgba(20, 40, 31, .08) 100%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 44px 20px 40px; }
.hero .eyebrow {
  display: inline-flex;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-amber);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: #f0dfc0; }
.hero-meta { color: rgba(255, 255, 255, .8); font-size: 13px; margin-bottom: 20px; max-width: 62ch; }
.hero-meta-live { display: flex; align-items: center; gap: 8px; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-amber);
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(185, 119, 43, .35);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 119, 43, .35); }
  70% { box-shadow: 0 0 0 9px rgba(185, 119, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 119, 43, 0); }
}
.hero .story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid var(--brand-amber);
  padding-bottom: 3px;
}
.hero .story-link:hover { border-color: #fff; }

/* ---------- Produce section ---------- */
.produce { max-width: 1200px; margin: 0 auto; padding: 40px 20px 64px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--brand-forest); }
.section-head p { color: var(--text-muted); margin-top: 2px; max-width: 60ch; font-size: 14px; }
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) {
  .family-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .family-grid { grid-template-columns: 1fr; }
}

/* ---------- Family card ---------- */
.family {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.media { position: relative; }
.media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; }
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30, 55, 42, 0.85);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
}
.stock-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}
.stock-pill.low { color: var(--danger); }
.stock-pill.fresh { color: var(--success); }
.stock-pill.season { color: var(--brand-amber); }
.stock-pill.sold-out { color: var(--text-light); text-decoration: line-through; }

.family-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.family-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--brand-forest); }
.family-price { display: flex; align-items: baseline; gap: 6px; }
.family-price .price { font-size: 16px; font-weight: 700; color: var(--brand-forest); }
.family-price .unit { font-size: 11px; color: var(--text-light); letter-spacing: 0.04em; }
.harvest-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 30px;
  background: var(--brand-amber-soft);
  color: var(--brand-amber);
  border: 1px solid rgba(185, 119, 43, .3);
}
.family-desc { font-size: 12.5px; color: var(--text-muted); }
.family-note { font-size: 12px; color: var(--text-light); font-style: italic; }
.btn-choose {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--brand-amber);
  background: transparent;
  color: var(--brand-amber);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}
.btn-choose:hover { background: var(--brand-amber); color: #fff; }
.family.open .btn-choose { background: var(--brand-forest); border-color: var(--brand-forest); color: #fff; }

/* Pre-season cards preview their sizes but nothing is purchasable. */
.family.season .btn-choose { border-color: var(--border-strong); color: var(--text-light); }
.family.season .btn-choose:hover { background: transparent; color: var(--text-light); }
.family.season.open .btn-choose { background: var(--border-subtle); color: var(--text-muted); border-color: transparent; }
.family.season .size-row { opacity: .55; }
.family.season .qty button { pointer-events: none; color: #B7B2A8; }

/* ---------- Pack sizes revealed in place ---------- */
.sizes { display: none; border-top: 1px solid var(--border-subtle); background: #FCFAF6; padding: 12px 14px 16px; margin-top: 8px; }
.family.open .sizes { display: block; }
.sizes-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-light); font-weight: 600; margin-bottom: 2px; }
.size-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--border-subtle); }
.size-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.size-id { flex: 1 1 auto; min-width: 0; }
.size-row .size-name { font-weight: 600; color: var(--brand-forest); font-size: 13px; }
.size-row .size-note { font-size: 11px; color: var(--text-muted); }
/* Price + stock tag + qty form one right-aligned group that wraps internally
   (never shrinks the qty control — it must stay fully tappable even when a
   "Only N left" tag crowds a narrow card column). */
.size-buy {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  flex: 0 1 auto;
}
.size-row .size-price { font-weight: 700; color: var(--brand-forest); font-size: 14px; white-space: nowrap; }
.size-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 30px;
  margin-left: 6px;
  vertical-align: 1px;
  background: var(--brand-amber-soft);
  color: var(--brand-amber);
}
.size-tag.sold { background: #F3F0EB; color: var(--text-light); text-decoration: line-through; }
.size-row.sold-out { opacity: 0.55; }
.size-row.sold-out .qty button { color: #B7B2A8; pointer-events: none; }

/* Quantity counter per size */
.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: var(--surface-white);
  overflow: hidden;
  flex: 0 0 auto;  /* never shrink — buttons must stay visible & tappable */
}
.qty button {
  border: none;
  background: transparent;
  color: var(--brand-amber);
  font-size: 17px;
  line-height: 1;
  width: 28px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty button:hover:not(:disabled) { background: var(--brand-amber-soft); }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty .qty-num { min-width: 20px; text-align: center; font-weight: 700; font-size: 13px; color: var(--brand-forest); }

/* Deep "Check out" CTA under the pack sizes (appears once the basket has items) */
.checkout-bar { display: block; }
.checkout-bar.is-empty { display: none; }
.btn-checkout-bar {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border: none;
  border-radius: 30px;
  background: var(--brand-forest);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}
.btn-checkout-bar:hover { background: var(--brand-forest-light); }

/* Ordering & delivery facts — sits under the family grid, off the hero */
.order-info {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.order-info h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--brand-forest);
  margin-bottom: 12px;
}
.order-info-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
}
.order-info-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-main);
}
.order-info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-amber);
}
@media (max-width: 560px) {
  .order-info-list { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-subtle); background: var(--surface-white); margin-top: 10px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.footer-inner .brand-mark { align-items: center; }
.footer-tagline { color: var(--text-muted); max-width: 52ch; margin: 12px auto; font-size: 14px; }
.footer-meta { font-size: 12.5px; color: var(--text-light); }
.footer-meta a { color: var(--brand-amber); }

/* ---------- Cart drawer (unchanged from iteration 1) ---------- */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.cart-drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  background: var(--bg-cream);
  z-index: 60;
  transform: translateX(102%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(30, 55, 42, 0.16);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-white);
}
.drawer-header h3 { font-family: var(--font-display); font-size: 24px; color: var(--brand-forest); }
.btn-close-drawer {
  min-height: 44px;
  min-width: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 30px;
  line-height: 1;
}
.btn-close-drawer:hover { color: var(--danger); }

#cart-drawer-content { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }

.drawer-zone-select { padding: 16px 20px 6px; }
.zone-label { display: block; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.zone-select-dropdown {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  font-family: inherit;
  font-size: 14px;
  padding: 0 12px;
  color: var(--text-main);
}

.zone-collection-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }

.drawer-items { list-style: none; padding: 4px 20px; flex: 1; }
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 600; color: var(--brand-forest); }
.cart-item-price { font-size: 12.5px; color: var(--text-muted); }

.cart-qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface-white);
  border-radius: 8px;
  font-size: 18px;
  color: var(--brand-forest);
}
.qty-btn:hover { border-color: var(--brand-amber); color: var(--brand-amber); }
.qty-number { min-width: 20px; text-align: center; font-weight: 600; }

.cart-empty { text-align: center; padding: 48px 24px; color: var(--text-light); }
.cart-empty p { font-family: var(--font-display); font-size: 22px; color: var(--text-muted); margin-bottom: 4px; }
.cart-empty span { font-size: 12.5px; }

.drawer-footer { border-top: 1px solid var(--border-subtle); padding: 16px 20px 20px; background: var(--surface-white); }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; color: var(--text-muted); }
.summary-row.total { font-size: 17px; font-weight: 700; color: var(--brand-forest); border-top: 1px dashed var(--border-subtle); margin-top: 6px; padding-top: 10px; }
.payment-notice { font-size: 12px; color: var(--text-light); margin: 10px 0 14px; line-height: 1.45; }

.btn-checkout {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 30px;
  background: var(--brand-amber);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.btn-checkout:hover:not(:disabled) { background: #A4641F; }
.btn-checkout:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Checkout step (drawer, slide-out) ---------- */
.checkout-step { padding: 6px 20px 22px; }
.co-head { padding-top: 14px; }
.co-head h4 { font-family: var(--font-display); font-size: 20px; color: var(--brand-forest); }
.co-head p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

.co-error {
  margin: 14px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(158, 43, 37, 0.25);
  border-radius: var(--radius-sm);
  background: #FBEAE8;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.co-field { margin-top: 14px; }
.co-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-weight: 600;
}
.co-optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.co-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-white);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  padding: 0 12px;
}
.co-input:focus {
  outline: none;
  border-color: var(--brand-amber);
  box-shadow: 0 0 0 3px rgba(185, 119, 43, 0.12);
}

.co-pay { border: none; padding: 0; margin: 16px 0 0; }
.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-white);
  cursor: pointer;
}
.pay-option input[type="radio"] {
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin-top: 2px;
  accent-color: var(--brand-amber);
}
.pay-option:has(input:checked) {
  border-color: var(--brand-amber);
  background: var(--brand-amber-soft);
}
.pay-option b { display: block; font-size: 14px; color: var(--brand-forest); line-height: 1.3; }
.pay-option small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pay-option-disabled { opacity: 0.6; }
.pay-option-disabled input[type="radio"] { cursor: not-allowed; }

.co-totals {
  border-top: 1px dashed var(--border-strong);
  margin-top: 18px;
  padding-top: 8px;
}
.co-actions { display: flex; gap: 10px; margin-top: 18px; }
.co-actions .btn-checkout { width: auto; flex: 1; }
.btn-back {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: var(--surface-white);
  color: var(--brand-forest);
  font-size: 14px;
  font-weight: 600;
}
.btn-back:hover { border-color: var(--brand-amber); color: var(--brand-amber); }

/* ---------- Order success page ---------- */
.success-wrap { max-width: 640px; margin: 0 auto; padding: 44px 20px 80px; }
.success-card {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
.success-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--brand-forest); margin-top: 6px; }
.success-note { color: var(--text-muted); font-size: 14px; margin-top: 6px; max-width: 50ch; }
.order-ref-label { margin-top: 20px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }
.order-ref {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-amber);
  background: var(--brand-amber-soft);
  border: 1px solid rgba(185, 119, 43, 0.3);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin-top: 6px;
  word-break: break-all;
}
.conf-meta { margin-top: 20px; border-top: 1px dashed var(--border-strong); padding-top: 6px; }
.conf-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding: 4px 0; }
.conf-row dt { color: var(--text-muted); }
.conf-row dd { font-weight: 600; color: var(--brand-forest); text-align: right; }
.conf-items-title { font-family: var(--font-display); font-size: 17px; color: var(--brand-forest); margin-top: 18px; }
.conf-items { list-style: none; border-top: 1px solid var(--border-subtle); }
.conf-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-subtle); }
.conf-item-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
.conf-item-name small { display: block; font-weight: 400; font-size: 12px; color: var(--text-muted); }
.conf-item-total { font-weight: 700; color: var(--brand-forest); font-size: 14px; white-space: nowrap; }
.conf-totals { border-top: 1px dashed var(--border-strong); margin-top: 8px; padding-top: 6px; }
/* ---------- Order success page actions ---------- */
/* The two actions must never choose their row/column from text width: while
   Figtree swaps in, the wider fallback font pushed them onto two rows and they
   jumped back to one when the webfont landed. One row on wide screens, stacked
   below the width where the row comfortably fits — both viewport-driven. */
.success-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.success-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media (max-width: 640px) {
  .success-actions { flex-direction: column; }
}
.success-actions .btn-whatsapp { background: #3B5334; color: #fff; }
.success-actions .btn-whatsapp:hover { background: #2F4229; }
.success-actions .btn-continue { background: transparent; color: var(--brand-amber); border-color: var(--brand-amber); }
.success-actions .btn-continue:hover { background: var(--brand-amber); color: #fff; }

/* ---------- Dispatch page (driver) ---------- */
.dispatch-body { background: var(--bg-cream); }
.dispatch-wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 72px; }
.dispatch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dispatch-head h1 { font-family: var(--font-display); font-size: 30px; color: var(--brand-forest); }
.dispatch-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }
.dispatch-admin { font-size: 13px; font-weight: 600; color: var(--brand-amber); }
.dispatch-empty { margin-top: 28px; color: var(--text-light); font-size: 14px; }
.dispatch-list { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.dispatch-order {
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}
.do-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.do-ref { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); font-weight: 600; }
.do-customer { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--brand-forest); margin-top: 2px; }
.do-total { font-weight: 700; color: var(--brand-forest); font-size: 18px; white-space: nowrap; }
.do-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.badge-cod {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-amber);
  background: var(--brand-amber-soft);
  border: 1px solid rgba(185, 119, 43, 0.3);
  border-radius: 30px;
  padding: 4px 11px;
}
.badge-paid {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--success);
  background: #EAF1EC;
  border: 1px solid rgba(42, 76, 58, 0.25);
  border-radius: 30px;
  padding: 4px 11px;
}
.do-items { list-style: none; margin-top: 10px; border-top: 1px dashed var(--border-strong); padding-top: 8px; }
.do-items li { font-size: 13px; color: var(--text-main); padding: 2px 0; }
.do-items li span { color: var(--text-muted); font-size: 12px; }

/* ---------- Legal / privacy notice ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--brand-forest);
  margin-top: 26px;
}
.legal p { font-size: 14.5px; line-height: 1.7; color: var(--text-main); margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; }
.legal li { font-size: 14.5px; line-height: 1.6; color: var(--text-main); }
.legal a { color: var(--brand-forest); text-decoration: underline; }
.legal-updated { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.co-consent {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 14px;
}
.co-consent a { color: var(--brand-forest); text-decoration: underline; }
