/* ==========================================================================
   Reggae Jerk Hut — demo site
   Design engine: seventies-funk.md (Control Room/ui-ux-library/engine/styles)
   UX systems: commerce-checkout.md, marketing-conversion.md, accessibility-system.md
   Standards: motion-media-stack.md, no-css-graphics-motion.md,
              accessibility-performance-gate.md
   ========================================================================== */

:root {
  /* Typography (seventies-funk tokens) */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-badge: 'Bevan', ui-serif, Georgia, serif;
  --font-body: 'Domine', ui-serif, Georgia, serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* Color — light (default) */
  --ground: #F4E9D8;
  --surface: #FFF8EC;
  --surface-recessed: #EFE0C4;
  --ink: #2B1B12;
  --ink-soft: #4A362A;
  --accent-orange: #9C420B; /* darkened from dossier's #D9631E swatch — the
    lighter value fails WCAG AA (4.5:1) as text/fill against every cream
    surface in this palette; this shade holds >=4.5:1 on ground, surface,
    and surface-recessed alike while staying clearly "burnt orange" */
  --accent-orange-fill: #9C420B; /* constant across themes: button fills
    that carry light/cream text need this darker value regardless of page
    background, since a brighter orange fails contrast against light text */
  --accent-mustard: #E3A72F;
  --accent-olive: #586430; /* darkened from dossier's #6B7B3A — the lighter
    value falls just under 4.5:1 as text on this palette's cream surfaces */
  --accent-chocolate: #5A3A25;
  --success: #4C7A3D;
  --error: #B23A2E;
  --warning: #C4841A;
  --on-chocolate: #FFF8EC;

  --radius-card: 20px;
  --radius-card-soft: 28px;
  --radius-pill: 999px;
  --shadow-warm: 0 8px 24px rgba(43, 27, 18, 0.14);
  --shadow-warm-lg: 0 16px 40px rgba(43, 27, 18, 0.20);
  --grain-opacity: 0.07;

  --ease-out-funk: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --measure: 66ch;

  color-scheme: light;
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --ground: #1F140D;
    --surface: #2B1D13;
    --surface-recessed: #241809;
    --ink: #F4E9D8;
    --ink-soft: #E3D3B8;
    --on-chocolate: #F4E9D8;
    --shadow-warm: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-warm-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    /* Accent text colors are re-tuned (brighter) for dark ground — the
       light-mode shades are deliberately darkened for AA on cream and
       would fail contrast here if left unchanged. */
    --accent-orange: #DE6E2E;
    --accent-olive: #84964A;
    --error: #E06F5F;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #1F140D;
  --surface: #2B1D13;
  --surface-recessed: #241809;
  --ink: #F4E9D8;
  --ink-soft: #E3D3B8;
  --on-chocolate: #F4E9D8;
  --shadow-warm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-warm-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --accent-orange: #DE6E2E;
  --accent-olive: #84964A;
  --error: #E06F5F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-variation-settings: 'opsz' 40, 'SOFT' 60, 'WONK' 0;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

p { max-width: var(--measure); margin: 0 0 1em; }

a { color: var(--accent-orange); }
a:hover { color: var(--accent-chocolate); }

/* ---------- Focus & a11y base ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent-chocolate);
  color: var(--on-chocolate);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  z-index: 1000;
  font-family: var(--font-badge);
  text-decoration: none;
  transition: top 200ms var(--ease-out-funk);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Layout shell ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

section { padding-block: 64px; }
@media (min-width: 900px) { section { padding-block: 96px; } }

.section-eyebrow {
  font-family: var(--font-badge);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-orange);
  display: inline-block;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(32px, 6vw, 52px);
  max-width: 16ch;
}

.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* ---------- Reveal-on-scroll (state-driven transition, not a keyframe
   animation system — see standards/no-css-graphics-motion.md) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms var(--ease-out-funk), transform 480ms var(--ease-out-funk);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1.5px solid rgba(43,27,18,0.12);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.wordmark {
  font-family: var(--font-badge);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wordmark small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--accent-olive);
  text-transform: uppercase;
}
.nav-links {
  display: none;
  gap: 24px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
}
@media (min-width: 800px) { .nav-links { display: flex; } }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--accent-orange); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-badge);
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 26px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 200ms var(--ease-out-funk), box-shadow 200ms var(--ease-out-funk), background 200ms var(--ease-out-funk);
  text-decoration: none;
}
.btn-primary { background: var(--accent-orange-fill); color: #FFF8EC; }
.btn-primary:hover { background: #7F3609; box-shadow: var(--shadow-warm); transform: scale(1.02); color: #FFF8EC; }
.btn-secondary { background: var(--accent-chocolate); color: var(--on-chocolate); }
.btn-secondary:hover { background: #462C1B; box-shadow: var(--shadow-warm); transform: scale(1.02); color: var(--on-chocolate); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--surface-recessed); }
.btn-sm { padding: 8px 18px; min-height: 40px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background 200ms linear; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
}

.btn-cart {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: var(--accent-chocolate);
  color: var(--on-chocolate);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  min-height: 56px;
  font-family: var(--font-badge);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-warm-lg);
  cursor: pointer;
}
.btn-cart .count {
  background: var(--accent-orange-fill);
  color: #fff;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  padding-inline: 4px;
}
.btn-cart[hidden] { display: none; }

/* ---------- Hero (Sleeve Cover archetype) ---------- */
.hero {
  position: relative;
  background: var(--accent-chocolate);
  color: var(--on-chocolate);
  overflow: hidden;
  padding-block: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/grain.jpg');
  background-size: 300px 300px;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 640px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; min-height: 720px; }
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px 40px;
  gap: 18px;
}
@media (min-width: 900px) { .hero-copy { padding: 64px 24px 64px 48px; } }
.hero-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(244,233,216,0.14);
  border: 1px solid rgba(244,233,216,0.4);
  color: #F4E9D8;
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.hero-title {
  color: #FFF8EC;
  font-size: clamp(40px, 8.4vw, 76px);
  max-width: 12ch;
  font-variation-settings: 'opsz' 90, 'SOFT' 80, 'WONK' 0;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-mustard);
}
.hero-sub {
  color: #EBD9BE;
  font-size: 19px;
  max-width: 46ch;
  margin-bottom: 4px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #EBD9BE;
}
.hero-facts strong { color: var(--accent-mustard); font-weight: 700; }
.hero-media {
  position: relative;
  min-height: 320px;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 320px;
}
@media (min-width: 900px) {
  .hero-media { min-height: 100%; }
  .hero-media img { position: absolute; inset: 0; height: 100%; }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,27,18,0) 40%, rgba(43,27,18,0.55) 100%);
}
@media (min-width: 900px) {
  .hero-media::after {
    background: linear-gradient(90deg, rgba(43,27,18,0.55) 0%, rgba(43,27,18,0) 26%);
  }
}

/* ---------- Proof strip ---------- */
.proof {
  background: var(--surface);
  border-bottom: 1.5px solid rgba(43,27,18,0.1);
  padding-block: 40px;
}
.proof-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
.proof-card {
  background: var(--surface-recessed);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  font-size: 16px;
}
.proof-card cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-olive);
  letter-spacing: 0.03em;
}
.proof-source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}

/* ---------- Menu (Sunburst archetype) ---------- */
.menu-section { position: relative; background: var(--ground); }
.menu-sunburst {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 700px) {
  .menu-sunburst { width: 200px; height: 200px; top: -50px; right: -60px; }
}
.menu-head { position: relative; z-index: 1; max-width: 640px; margin-bottom: 12px; }
.menu-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--surface-recessed);
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  margin-top: 18px;
}

.menu-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 28px;
}
.menu-tab {
  font-family: var(--font-badge);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent-chocolate);
  background: transparent;
  color: var(--accent-chocolate);
  cursor: pointer;
}
.menu-tab[aria-pressed="true"] {
  background: var(--accent-chocolate);
  color: var(--on-chocolate);
}

.menu-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-warm);
}
.menu-card.is-dominant {
  grid-column: span 1;
}
@media (min-width: 640px) {
  .menu-card.is-dominant { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .menu-card.is-dominant { grid-column: span 2; }
  .menu-card.is-dominant .menu-card-body { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; }
}
.menu-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.menu-card.is-dominant .menu-card-media { aspect-ratio: 16/9; }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-chocolate);
  color: var(--on-chocolate);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.menu-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.menu-card h3 { font-size: 21px; margin: 0; }
.menu-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-orange);
  white-space: nowrap;
}
.menu-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty-stepper button {
  width: 36px; height: 36px;
  border: none;
  background: var(--surface-recessed);
  font-size: 18px;
  font-family: var(--font-mono);
  cursor: pointer;
  color: var(--ink);
}
.qty-stepper output {
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
}

.add-btn {
  font-family: var(--font-badge);
  font-size: 13px;
  background: var(--accent-orange-fill);
  color: #FFF8EC;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}
.add-btn:hover { background: #7F3609; }
.add-btn[data-added="true"] { background: var(--success); }

/* ---------- Full-width narrative block (catering / about) ---------- */
.narrative {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) { .narrative { grid-template-columns: 1fr 1fr; gap: 56px; } }
.narrative.reverse .narrative-media { order: -1; }
@media (min-width: 900px) { .narrative.reverse .narrative-media { order: 2; } }
.narrative-media { border-radius: var(--radius-card-soft); overflow: hidden; box-shadow: var(--shadow-warm); }
.narrative-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.narrative-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.narrative-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
}
.narrative-list .step-num {
  font-family: var(--font-badge);
  color: var(--accent-orange);
  font-size: 15px;
  min-width: 1.6em;
}

.catering { background: var(--surface); }
.about { background: var(--ground); }

.pull-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-recessed);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-bottom: 14px;
}

/* ---------- Catalog strip (hours/location) ---------- */
.catalog-strip {
  background: var(--accent-chocolate);
  color: var(--on-chocolate);
  position: relative;
  overflow: hidden;
}
.catalog-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 860px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
.catalog-strip h2 { color: #FFF8EC; }
.hours-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-mono); font-size: 14px; }
.hours-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(244,233,216,0.25); padding-bottom: 8px; }
.hours-list .today { color: var(--accent-mustard); font-weight: 700; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(244,233,216,0.12);
  border: 1px solid rgba(244,233,216,0.35);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  color: #F4E9D8;
  text-decoration: none;
}
.pill-badge:hover { background: rgba(244,233,216,0.22); color: #FFF8EC; }
.map-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1.5px solid rgba(244,233,216,0.3);
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ground);
  padding-block: 48px 32px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-badge);
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-orange); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1.5px solid rgba(43,27,18,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
}
.nb-credit {
  font-family: var(--font-mono);
  color: var(--accent-orange);
  font-weight: 700;
  text-decoration: none;
}
.demo-disclosure {
  color: var(--ink-soft);
}

/* ==========================================================================
   Cart drawer + checkout dialog (commerce-checkout.md canonical flow)
   ========================================================================== */
.overlay-scrim {
  position: fixed;
  inset: 0;
  background: rgba(31,20,13,0.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out-funk);
}
.overlay-scrim.is-open { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .overlay-scrim { transition: none; } }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(440px, 100vw);
  background: var(--surface);
  z-index: 90;
  box-shadow: var(--shadow-warm-lg);
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out-funk);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .cart-drawer { transition: none; } }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1.5px solid rgba(43,27,18,0.12);
}
.drawer-head h2 { font-size: 22px; margin: 0; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: var(--surface-recessed); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; padding: 48px 12px; color: var(--ink-soft); }
.cart-empty a { font-family: var(--font-badge); }

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(43,27,18,0.1);
  align-items: center;
}
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cart-line-name { font-weight: 700; font-size: 15px; }
.cart-line-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.cart-line-remove {
  background: none; border: none; color: var(--error);
  font-family: var(--font-mono); font-size: 12px; text-decoration: underline;
  cursor: pointer; padding: 6px 0; min-height: 32px;
}
.cart-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.drawer-foot {
  border-top: 1.5px solid rgba(43,27,18,0.12);
  padding: 18px 20px 22px;
  display: grid;
  gap: 10px;
}
.subtotal-row { display: flex; justify-content: space-between; font-size: 15px; }
.subtotal-row strong { font-family: var(--font-mono); }
.tax-note { font-size: 12.5px; color: var(--ink-soft); }

/* Checkout modal */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.checkout-modal.is-open { display: flex; }
@media (min-width: 720px) { .checkout-modal { align-items: center; } }

.checkout-panel {
  background: var(--surface);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-warm-lg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) { .checkout-panel { border-radius: 24px; max-height: 88vh; } }

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1.5px solid rgba(43,27,18,0.12);
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 2;
}
.checkout-step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-olive);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.checkout-body { padding: 22px; display: grid; gap: 18px; }
.checkout-foot {
  padding: 16px 22px 22px;
  border-top: 1.5px solid rgba(43,27,18,0.1);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  position: sticky; bottom: 0;
  background: var(--surface);
}

.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-badge); font-size: 13px; }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  min-height: 48px;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--accent-orange); }
.field-error {
  color: var(--error);
  font-size: 13px;
  display: none;
}
.field.has-error input { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.field-hint { font-size: 12.5px; color: var(--ink-soft); }

.radio-card-group { display: grid; gap: 10px; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
}
.radio-card:has(input:checked) { border-color: var(--accent-orange); background: var(--surface-recessed); }
.radio-card input { width: 20px; height: 20px; accent-color: var(--accent-orange); }
.radio-card .rc-title { font-weight: 700; }
.radio-card .rc-sub { font-size: 13px; color: var(--ink-soft); }

.demo-banner {
  background: var(--surface-recessed);
  border: 1.5px dashed var(--accent-orange);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.demo-banner strong { color: var(--accent-orange); }
.demo-badge {
  font-family: var(--font-badge);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-orange-fill);
  color: #FFF8EC;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.express-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.express-btn {
  border: 1.5px solid var(--ink);
  background: var(--surface-recessed);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--font-badge);
  font-size: 13px;
  min-height: 48px;
  cursor: not-allowed;
  opacity: 0.65;
  position: relative;
}
.divider-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: rgba(43,27,18,0.15); }

.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.review-block { border: 1.5px solid rgba(43,27,18,0.12); border-radius: 14px; padding: 14px 16px; display: grid; gap: 6px; }
.review-block-head { display: flex; justify-content: space-between; align-items: center; }
.review-block-head h4 { font-family: var(--font-badge); font-size: 13px; margin: 0; text-transform: uppercase; letter-spacing: 0.03em; }
.review-edit { background: none; border: none; color: var(--accent-orange); font-family: var(--font-mono); font-size: 12px; text-decoration: underline; cursor: pointer; }
.review-total { display: flex; justify-content: space-between; font-size: 20px; font-family: var(--font-badge); padding-top: 10px; border-top: 1.5px dashed rgba(43,27,18,0.2); }

.confirm-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 8px;
}
.confirm-order-no {
  font-family: var(--font-mono);
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

[data-step] { display: none; }
[data-step].is-active { display: grid; gap: 18px; }

.live-region { position: absolute; left: -9999px; }

@media (max-width: 480px) {
  .card-row, .express-row { grid-template-columns: 1fr 1fr; }
}
