/* ==========================================================================
   BIKA — Encomendas para levar · design system
   Palette charte : navy #040935 · ivory #F3EFE7 · orange #FF7232 · periwinkle #AFC0F7
   ========================================================================== */

:root {
  --navy: #040935;
  --ivory: #F3EFE7;
  --orange: #FF7232;
  --peri: #AFC0F7;
  --white: #FFFFFF;

  --ink: var(--navy);
  --ink-2: rgba(4, 9, 53, 0.70);
  --ink-3: rgba(4, 9, 53, 0.50);
  --ink-4: rgba(4, 9, 53, 0.30);

  --oat: #EDE6DA;
  --oat-deep: #E3DACB;
  --ground: var(--oat);
  --surface: #FBF9F5;
  --surface-2: #F4EFE5;
  --line: rgba(4, 9, 53, 0.10);
  --line-strong: rgba(4, 9, 53, 0.20);

  --accent: var(--orange);
  --accent-deep: #E4571A;
  --accent-soft: #FFE4D5;
  --peri-soft: #E4EAFD;
  --peri-deep: #5B6FC9;

  --ok: #1E7F55;
  --ok-soft: #DDF3E8;
  --warn: #9A4B00;
  --warn-soft: #FFE9CC;
  --danger: #B3261E;
  --danger-soft: #FADAD7;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  --font-display: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shadow-1: 0 1px 2px rgba(4, 9, 53, 0.05), 0 6px 20px rgba(4, 9, 53, 0.07);
  --shadow-2: 0 -6px 30px rgba(4, 9, 53, 0.20);
  --shadow-3: 0 12px 40px rgba(4, 9, 53, 0.28);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --max-w: 560px;
  --tap: 44px;
  --cartbar-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.has-cart { padding-bottom: calc(var(--cartbar-h) + var(--safe-b) + 12px); }
body.sheet-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
button, a, label, select, input, summary { touch-action: manipulation; }
button, .btn, .pill, .chip, .choice, summary { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--peri-deep); outline-offset: 2px; border-radius: var(--r-sm); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- App shell ---------- */
.app { max-width: var(--max-w); margin: 0 auto; min-height: 100dvh; position: relative; }
@media (min-width: 720px) {
  body { background: var(--oat); }
  .app { box-shadow: 0 0 0 1px var(--line); background: var(--ground); }
}

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 30;
  background: var(--ground); color: var(--navy);
  padding: calc(10px + var(--safe-t)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.topbar .logo { height: 30px; width: auto; }
.topbar .logo-link { display: inline-flex; align-items: center; border-radius: var(--r-sm); flex: none; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.status-chip {
  position: relative; display: inline-block; z-index: 2;
  margin-bottom: 10px;
  padding: 7px 13px 7px 25px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.01em;
  background: rgba(4, 9, 53, 0.06); color: var(--ink-2);
  white-space: nowrap;
}
.status-chip::before {
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
}
.status-chip.is-closed::before { background: var(--orange); }

.lang-switch { display: inline-flex; background: rgba(4, 9, 53, 0.06); border-radius: var(--r-pill); padding: 3px; }
.lang-switch button {
  min-width: 40px; height: 36px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ground); color: var(--navy);
  padding: 0 16px; position: relative;
}
.hero-inner {
  background: transparent; color: var(--navy);
  padding: 18px 0 16px; position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(30px, 8.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; max-width: 66%; position: relative; z-index: 2; }
.hero p { margin-top: 10px; font-size: 14.5px; font-weight: 600; max-width: 64%; color: var(--ink-2); position: relative; z-index: 2; }
.hero .mascot {
  position: absolute; right: 0; top: 18px; width: 94px; height: auto;
  transform: rotate(-5deg); z-index: 1; pointer-events: none;
}
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 8px 14px; border-radius: var(--r-pill);
  background: transparent; color: var(--navy); border: 1.5px solid var(--line-strong);
  font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.pill svg { width: 14px; height: 14px; }

/* ---------- Notices / banners ---------- */
.notice {
  margin: 14px 16px 0; padding: 12px 14px; border-radius: var(--r-md);
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; font-weight: 700; line-height: 1.35;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice.info { background: var(--peri-soft); color: var(--navy); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice p { font-weight: 600; }
.notice strong { font-weight: 800; }
.notice.reorder { align-items: center; background: var(--surface); }
.notice.reorder .reorder-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notice.reorder .reorder-text span { color: var(--ink-2); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice.reorder .btn { min-height: 42px; padding: 0 14px; font-size: 14px; flex: none; }

/* ---------- Category nav ---------- */
.catnav {
  position: sticky; top: var(--safe-t); z-index: 25;
  background: var(--ground); padding: 8px 0;
  box-shadow: 0 1px 0 var(--line);
}
.catnav ul {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px;
  scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity;
}
.catnav ul::-webkit-scrollbar { display: none; }
.catnav button {
  height: 42px; padding: 0 15px; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); border: 1.5px solid var(--line-strong);
  font-size: 14px; font-weight: 800; white-space: nowrap; scroll-snap-align: start;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.catnav button[aria-current="true"] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

/* ---------- Menu sections ---------- */
.menu { padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 26px; }
.section { scroll-margin-top: calc(66px + var(--safe-t)); }
.section-head { padding: 0 2px 10px; }
.section-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.005em; }
.section-head h2 .tag { margin-left: 8px; vertical-align: middle; position: relative; top: -2px; }
.choice-label .allergens { margin-left: 2px; }
.section-head p { color: var(--ink-2); font-size: 14px; font-weight: 600; margin-top: 2px; }

.items { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 14px 14px 14px 16px; position: relative; }
.item + .item { border-top: 1px solid var(--line); }
.item.is-unavailable .item-main { opacity: 0.45; }
.item-main { min-width: 0; display: block; width: 100%; text-align: left; padding: 0; background: none; border: 0; border-radius: var(--r-sm); color: inherit; }
.item-main:disabled { cursor: default; }
.item-main:focus-visible { outline-offset: 4px; }
.item-name { font-weight: 800; font-size: 16px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.35; margin-top: 3px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.item-price { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item-price .from { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-right: 3px; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
.tag.new { background: var(--orange); color: var(--navy); }
.tag.veggie { background: var(--ok-soft); color: var(--ok); }
.tag.vegan { background: var(--ok-soft); color: var(--ok); }
.tag.popular { background: var(--peri-soft); color: var(--peri-deep); }
.tag.dog { background: var(--peri-soft); color: var(--navy); }
.tag.alcohol { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.tag.hot { background: rgba(255, 114, 50, 0.16); color: var(--navy); }
.tag.cold { background: var(--peri-soft); color: var(--navy); }
.tag.soldout { background: var(--danger-soft); color: var(--danger); }
.allergens { font-size: 11.5px; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.allergens abbr { text-decoration: none; }

/* add / stepper */
.btn-add {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  background: var(--orange); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 0 var(--accent-deep);
  transition: transform 0.1s;
}
.btn-add:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-add svg { width: 22px; height: 22px; }
.btn-add:disabled { background: var(--line); color: var(--ink-4); box-shadow: none; }

.stepper {
  display: inline-flex; align-items: center; height: var(--tap);
  background: var(--navy); color: var(--ivory); border-radius: var(--r-pill); padding: 0 2px;
}
.stepper button { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.stepper.small { height: 40px; }
.stepper.small button { width: 36px; height: 36px; }

.menu-footnote {
  font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3;
  color: var(--navy); background: var(--peri-soft);
  border-radius: var(--r-lg); padding: 16px 18px; text-wrap: balance;
}

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 12px calc(12px + var(--safe-b));
  transform: translateY(120%); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cartbar.is-visible { transform: translateY(0); }
.cartbar-inner {
  pointer-events: auto; width: 100%; max-width: calc(var(--max-w) - 24px);
  background: var(--navy); color: var(--ivory);
  border-radius: var(--r-lg); padding: 10px 10px 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: var(--shadow-3);
}
.cartbar-summary { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cartbar-summary .count { font-size: 12.5px; font-weight: 700; color: rgba(243, 239, 231, 0.75); }
.cartbar-summary .total { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 18px; border-radius: var(--r-md);
  font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.1s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); color: var(--navy); box-shadow: 0 3px 0 var(--accent-deep); }
.btn.primary:active { box-shadow: 0 1px 0 var(--accent-deep); }
.btn.primary:disabled { background: var(--line); color: var(--ink-4); box-shadow: none; }
.btn.navy { background: var(--navy); color: var(--ivory); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--line-strong); }
.btn.ghost.on-dark { color: var(--ivory); border-color: rgba(243, 239, 231, 0.35); }
.btn.block { width: 100%; }
.btn.big { min-height: 58px; font-size: 17px; border-radius: var(--r-lg); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.subtle { min-height: 40px; font-size: 14px; color: var(--ink-2); }

/* ---------- Sheets (bottom) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(4, 9, 53, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  margin: 0 auto; max-width: var(--max-w);
  background: var(--ground); color: var(--ink);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  max-height: calc(100dvh - 24px); display: flex; flex-direction: column;
  transform: translateY(105%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-2);
}
.sheet.is-open { transform: translateY(0); }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 6px 20px; flex: none; }
.sheet-head h2 { font-size: 24px; font-weight: 700; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.sheet-foot { padding: 10px 16px calc(14px + var(--safe-b)); flex: none; background: var(--ground); box-shadow: 0 -1px 0 var(--line); }
.btn-close { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }
.btn-close svg { width: 18px; height: 18px; }

/* ---------- Cards & forms ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; }
.card + .card, .field + .card, .card + .field { margin-top: 12px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card .hint { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line-name { font-weight: 800; font-size: 15px; }
.line-opts { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.line-right { display: flex; align-items: center; gap: 10px; }
.line-price { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 60px; text-align: right; }
.totals { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; margin-top: 4px; border-top: 2px solid var(--navy); }
.totals .row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.totals .row.grand { color: var(--ink); font-size: 20px; font-weight: 800; }
.totals .row .amt { font-variant-numeric: tabular-nums; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 12px; }
.field label, .field .label { font-weight: 800; font-size: 14px; }
.field label .opt, .field .label .opt { color: var(--ink-3); font-weight: 700; font-size: 12.5px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 72px; resize: vertical; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 13px; font-weight: 700; display: none; }
.field.has-error .error { display: block; }
.field .help { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); padding: 5px; border-radius: var(--r-md); border: 2px solid var(--line-strong); }
.segmented button { min-height: 44px; border-radius: 10px; font-weight: 800; font-size: 14.5px; padding: 6px 8px; line-height: 1.2; color: var(--ink-2); }
.segmented button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.segmented button small { display: block; font-size: 12px; font-weight: 700; opacity: 0.8; }

.choices { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 2px solid var(--line-strong); cursor: pointer;
  font-weight: 800; font-size: 15px; position: relative;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice.is-checked { border-color: var(--navy); background: var(--peri-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--peri-deep); outline-offset: 2px; }
.choice .price { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.choice .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.choice.is-checked .check { background: var(--navy); border-color: var(--navy); }
.choice .check svg { width: 14px; height: 14px; color: var(--ivory); opacity: 0; }
.choice.is-checked .check svg { opacity: 1; }
.choice-label { display: flex; align-items: center; gap: 10px; }
#f-pay .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#f-pay .choice { flex-direction: column; justify-content: center; text-align: center; min-height: 54px; padding: 8px 6px; font-size: 14px; line-height: 1.2; }
#f-pay .choice .check { display: none; }
#f-pay .choice-label { justify-content: center; }
#f-pay .choice.is-checked { background: var(--navy); border-color: var(--navy); color: var(--ivory); }

/* Retour visuel au toucher, puisqu'il n'y a pas de survol sur téléphone */
.stepper button, .catnav button, .choice, .segmented button, .pill, .item-main, .btn-close { transition: transform 0.08s ease, opacity 0.08s ease; }
.stepper button:active, .catnav button:active, .choice:active, .segmented button:active, .pill:active, .btn-close:active { transform: scale(0.96); }
.item-main:active { opacity: 0.6; }

/* ---------- Code de réduction & NIF : repliés par défaut ---------- */
.extras { padding: 2px 16px; }
.extras details + details { border-top: 1px solid var(--line); }
.extras summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 48px; font-weight: 800; font-size: 14.5px; cursor: pointer;
}
.extras summary::-webkit-details-marker { display: none; }
.extras summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.15s ease;
}
.extras details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.extras .extra-body { padding: 0 0 14px; }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-row input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  font-weight: 800; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase;
}
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--ink-3); }
.promo-row input:focus { outline: none; border-color: var(--navy); }
.promo-row .btn { min-height: 50px; }
.promo-error { margin-top: 8px; color: var(--danger); font-size: 13px; font-weight: 700; }
.promo-applied {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-md);
  background: var(--ok-soft); color: var(--ok);
}
.promo-applied.is-off { background: var(--warn-soft); color: var(--warn); }
.promo-applied .promo-code { font-weight: 800; letter-spacing: 0.06em; }
.promo-applied .promo-value { flex: 1 1 auto; font-weight: 700; font-size: 14px; }
.promo-applied .btn { min-height: 40px; padding: 0 10px; color: inherit; }
.totals .row.discount { color: var(--ok); }

/* ---------- Confirmation ---------- */
.confirm { padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.confirm-hero {
  background: var(--navy); color: var(--ivory); border-radius: var(--r-xl);
  padding: 22px 20px 18px; position: relative; overflow: hidden;
}
.confirm-hero .code { font-family: var(--font-display); font-size: 46px; font-weight: 700; letter-spacing: 0.02em; line-height: 1; margin-top: 6px; color: var(--orange); }
.confirm-hero .eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 239, 231, 0.65); }
.confirm-hero .when { font-size: 18px; font-weight: 800; margin-top: 10px; }
.confirm-hero .mascot { position: absolute; right: 10px; bottom: -10px; width: 96px; transform: rotate(4deg); }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.step b { color: var(--ink); font-weight: 800; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--ivory); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
pre.order-text {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font: 600 13.5px/1.45 var(--font-body); background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--r-md); padding: 12px 14px; color: var(--ink-2); max-height: 260px; overflow: auto;
}

/* ---------- Footer ---------- */
.footer { padding: 8px 16px 40px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.footer a { color: var(--ink-2); font-weight: 800; text-decoration: none; }
.footer .legend { line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--cartbar-h) + var(--safe-b) + 20px); z-index: 70;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: var(--ivory); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 800; font-size: 14px; box-shadow: var(--shadow-3); max-width: calc(100% - 32px); text-align: center;
  transition: transform 0.2s, opacity 0.2s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Skeleton / loading & errors ---------- */
.loading { padding: 40px 16px; text-align: center; color: var(--ink-3); font-weight: 700; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); margin: 0 auto 12px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 30px 16px; text-align: center; color: var(--ink-2); font-weight: 700; }
.empty img { width: 90px; margin: 0 auto 10px; opacity: 0.9; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.muted { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.small { font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--peri-soft); color: var(--navy); font-size: 13px; font-weight: 800; }
