/* Mobile Markets — shared styles. Storefront (navy bands + white grid), van page and admin (same palette, bigger tap targets). */
:root {
  --bg: #ffffff; --fg: #10303F; --muted: #4C6673; --line: #DCE4E8; --surface: #EEF2F3;
  --band: #10303F; --band-fg: #ffffff; --band-muted: #B9CAD2; --band-tile: #1A4256;
  --accent: #C7462E; --accent-fg: #ffffff; --accent-soft: #FBE9E5; --accent-ink: #8A2A18;
  --ok: #1F7A4D; --ok-soft: #E6F0EC; --warn: #8A6116; --warn-soft: #FBF1DC;
  --tile-lamb: #DCCBBE; --tile-pork: #F1CFC4; --tile-seafood: #C9DCE3; --tile-steak: #D9C3C0; --tile-beef: #D9C3C0; --tile-chicken: #E8DFC8; --tile-other: #DDE3E6;
  --tile-fg: #10303F;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0C1F29; --fg: #EAF0F3; --muted: #9FB3BC; --line: #22394A; --surface: #15293A;
  --band: #07151D; --band-fg: #ffffff; --band-muted: #9FB3BC; --band-tile: #122C3B;
  --accent: #E0583F; --accent-fg: #ffffff; --accent-soft: #3A1C16; --accent-ink: #F6B3A6;
  --ok: #4CC38A; --ok-soft: #10332A; --warn: #E9C06A; --warn-soft: #3A2E12;
  --tile-lamb: #5A4A3F; --tile-pork: #5E3F38; --tile-seafood: #2C4A57; --tile-steak: #553E3B; --tile-beef: #553E3B; --tile-chicken: #574D38; --tile-other: #2E3F48; --tile-fg: #F3F6F7;
  color-scheme: dark;
} }
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--fg); }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hint { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; transition: filter .15s, transform .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-ink { background: var(--band); color: var(--band-fg); }
.btn-soft { background: var(--surface); color: var(--fg); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ghost { background: transparent; color: var(--band-fg); border: 1.5px solid #5C7A88; }
.btn-line { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn-round { border-radius: 999px; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.count { background: var(--band-fg); color: var(--band); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 6px; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: var(--band); color: var(--band-fg); }
header.top .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--band-fg); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; }
nav.main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav.main a { color: var(--band-fg); text-decoration: none; font-weight: 500; font-size: 15px; }
nav.main a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* hero */
.hero { background: var(--band); color: var(--band-fg); }
.hero .wrap { padding-block: 48px 64px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); line-height: 1.02; max-width: 14ch; }
.hero p { font-size: 18px; color: var(--band-muted); max-width: 52ch; }
.live { display: inline-flex; align-items: center; gap: 8px; color: #F3B8AD; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.facts { flex: 0 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fact { background: var(--band-tile); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.fact b { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.fact span { font-size: 13px; color: var(--band-muted); }

/* shop */
.shop .wrap { padding-block: 48px 32px; display: flex; flex-direction: column; gap: 24px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.shop-head h2 { font-size: clamp(28px, 4vw, 36px); }
.shop-head p { font-size: 15px; color: var(--muted); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--surface); color: var(--fg); }
.pill[aria-pressed="true"] { background: var(--band); color: var(--band-fg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg); transition: box-shadow .15s; position: relative; }
.card:hover { box-shadow: 0 8px 24px rgba(16,48,63,.14); }
.card.out { opacity: .6; }
.tile { padding: 20px 18px; min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: var(--tile-fg); }
.tile .eyebrow { opacity: .7; }
.tile b { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.gray { background: var(--surface); color: var(--muted); }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { font-size: 14px; line-height: 1.45; color: var(--muted); flex: 1; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 2px; background: var(--band); border-radius: 999px; padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 999px; background: transparent; color: var(--band-fg); font-size: 20px; }
.stepper button.plus { background: var(--accent); }
.stepper span { color: var(--band-fg); font-weight: 600; min-width: 44px; text-align: center; font-size: 14px; }
.stepper.light { background: var(--surface); } .stepper.light button, .stepper.light span { color: var(--fg); } .stepper.light button.plus { background: transparent; }

/* delivery */
.delivery { background: var(--surface); }
.delivery .wrap { padding-block: 56px; display: flex; flex-direction: column; gap: 28px; }
.delivery h2 { font-size: clamp(28px, 4vw, 36px); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--bg); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step b.n { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--accent); line-height: 1; }
.step strong { font-size: 18px; }
.step p { font-size: 15px; color: var(--muted); }

/* generic page + forms */
.page .wrap { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 36px); }
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
form.form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
form.form.grow { flex: 999 1 460px; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
legend { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid #B8C4C9; border-radius: 8px; padding: 12px 14px; width: 100%; min-height: 46px; }
input:focus, select:focus, textarea:focus { border-color: var(--fg); outline: none; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; cursor: pointer; }
.radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #B8C4C9; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 400; }
.radio input { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
.alert { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
aside.summary { flex: 1 1 300px; min-width: 0; background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
aside.summary h2 { font-size: 22px; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.totals { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 600; font-size: 18px; padding-top: 6px; }
.done-copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.done-copy h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.05; }
.done-copy p { font-size: 17px; color: var(--muted); }
.bubble { background: var(--band); color: #E6EEF2; border-radius: 18px 18px 18px 4px; padding: 20px 22px; font-family: var(--mono); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* footer */
footer.site { background: var(--band); color: var(--band-muted); margin-top: auto; }
footer.site .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; }
footer.site .col { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; }
footer.site strong { color: var(--band-fg); }
footer.site a { color: var(--band-muted); }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(16,48,63,.45); z-index: 30; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 31; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(16,48,63,.2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; display: flex; flex-direction: column; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--surface); }
.cart-line .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-line .meta b { font-weight: 600; font-size: 15px; }
.cart-line .meta span { font-size: 13px; color: var(--muted); }
.cart-line .lt { font-weight: 600; min-width: 64px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.x { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); color: var(--fg); font-size: 22px; }

/* ---------- van + admin ---------- */
body.van { display: flex; flex-direction: column; min-height: 100vh; }
.van .wrap.narrow { padding-block: 20px 48px; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-current] { background: var(--accent); color: var(--accent-fg); }
.tab .count { background: var(--band); color: var(--band-fg); } .tab[aria-current] .count { background: #fff; color: var(--accent); }
.van h1 { font-size: 28px; }
.van h2 { font-size: 20px; }
.ocard { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.ocard.new { border-color: var(--accent); }
.ocard .who { font-size: 18px; font-weight: 600; }
.ocard .when { font-weight: 600; color: var(--accent-ink); }
.ocard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.ocard li { display: flex; justify-content: space-between; gap: 12px; }
.ocard .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ocard .acts .btn { flex: 1 1 140px; min-height: 52px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status.new { background: var(--accent-soft); color: var(--accent-ink); }
.status.confirmed { background: var(--warn-soft); color: var(--warn); }
.status.delivered { background: var(--ok-soft); color: var(--ok); }
.status.cancelled { background: var(--surface); color: var(--muted); }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.srow .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srow .meta b { font-weight: 600; font-size: 16px; }
.srow .meta span { font-size: 13px; color: var(--muted); }
.srow .btn { min-height: 48px; }
.toggle { min-width: 110px; }
.toggle.on { background: var(--ok-soft); color: var(--ok); }
.toggle.off { background: var(--surface); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-family: var(--display); font-size: 24px; }
.kpi span { font-size: 13px; color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tel { text-decoration: none; font-weight: 600; }
.code { font-family: var(--mono); font-size: 32px; letter-spacing: .2em; background: var(--surface); padding: 12px 18px; border-radius: 10px; display: inline-block; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
details summary { cursor: pointer; font-weight: 600; }
pre.log { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; background: var(--surface); padding: 12px; border-radius: 10px; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
