/* ============================================================
   wen DRIP — Digital Menu
   Layout: green brush-edged masthead → sticky search + category rail
           → product grid (2 cols phone, 3–4 desktop) → floating cart bar.
   ============================================================ */
/* ============================================================
   Red Burger — Digital Menu
   Layout: cream "poster paper" masthead with red brush strokes (as on the
   restaurant's posters) → sticky search + section rail → product grid
   → red floating order bar.
   ============================================================ */
:root {
  /* brand */
  --palm: #c4161c;          /* Red Burger red (name kept for shared rules) */
  --palm-2: #9b0f14;
  --cream: #fff6ea;
  --char: #1b1312;          /* poster black */
  /* surfaces + text */
  --bg: #f3ebdf;
  --surface: #fffaf3;
  --surface-2: #efe4d4;
  --ink: #1b1312;
  --ink-2: #6e5d55;
  --line: rgba(120, 30, 20, .14);
  --accent: var(--palm);
  --on-accent: #fff6ea;
  --hero-bg: #fbf3e7;
  --hero-ink: var(--char);
  --brush: var(--palm);
  --chip-bg: #fffaf3;
  --shadow: 0 1px 2px rgba(40, 10, 5, .06), 0 8px 22px rgba(40, 10, 5, .08);
  --new: #c4161c;
  --cold: #2f6f86;
  --hot: #b5401e;
  /* type */
  --f-display: "Lalezar", "Alexandria", system-ui, sans-serif;
  --f-body: "Alexandria", "Segoe UI", Tahoma, system-ui, sans-serif;
  --radius: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #130e0d; --surface: #1d1615; --surface-2: #2a201e; --ink: #f6ebde; --ink-2: #b9a79d;
    --line: rgba(255, 230, 210, .12); --accent: #e3343b; --on-accent: #fff6ea; --hero-bg: #1a1312; --hero-ink: #f6ebde;
    --brush: #b8141a; --chip-bg: #1d1615; --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3);
    --new: #e3343b; --cold: #7fbfd2; --hot: #f08a5d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #130e0d; --surface: #1d1615; --surface-2: #2a201e; --ink: #f6ebde; --ink-2: #b9a79d;
  --line: rgba(255, 230, 210, .12); --accent: #e3343b; --on-accent: #fff6ea; --hero-bg: #1a1312; --hero-ink: #f6ebde;
  --brush: #b8141a; --chip-bg: #1d1615; --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3);
  --new: #e3343b; --cold: #7fbfd2; --hot: #f08a5d; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.6;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Masthead ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); position: relative; isolation: isolate; }
.hero .wrap { padding-block: 14px 54px; display: grid; gap: 10px; }
.hero-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(240, 228, 203, .35); background: rgba(240, 228, 203, .06);
  color: var(--hero-ink); cursor: pointer; font-weight: 600; font-size: 14px; letter-spacing: .02em;
}
.tool:hover { background: rgba(240, 228, 203, .14); }
.tool.round { width: 38px; padding: 0; justify-content: center; }
.brand { display: grid; justify-items: center; gap: 6px; text-align: center; padding-top: 8px; }
.brand img { width: min(260px, 64vw); height: auto; }
.tagline { margin: 0; font-family: var(--f-display); font-size: 18px; opacity: .9; display: inline-flex; align-items: center; gap: 8px; }
.tagline svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.palm-deco { position: absolute; inset-inline-end: -40px; bottom: 20px; width: 180px; opacity: .08; z-index: -1; pointer-events: none; }
/* torn brush edge, echoes the posters */
.brush { position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; width: 100%; color: var(--bg); display: block; }

/* ---------- Sticky bar ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar.stuck { border-bottom-color: var(--line); }
.bar .wrap { padding-block: 10px; display: grid; gap: 10px; }
.search { position: relative; }
.search input {
  width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; padding-inline: 44px 40px; outline: none; box-shadow: var(--shadow);
}
.search input::placeholder { color: var(--ink-2); }
.search input:focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.search > .icon { position: absolute; inset-inline-start: 14px; top: 13px; color: var(--ink-2); pointer-events: none; }
.search .clear { position: absolute; inset-inline-end: 6px; top: 6px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; scroll-padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--chip-bg); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip .n { font-weight: 500; opacity: .55; margin-inline-start: 4px; font-size: 12px; }
.chip[aria-current="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Featured ---------- */
.featured { margin-top: 18px; }
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; overflow: hidden;
  border-radius: 24px; background: var(--palm); color: var(--cream); box-shadow: var(--shadow); cursor: pointer;
  border: 0; padding: 0; width: 100%; text-align: start;
}
.feature-card .ph { position: relative; min-height: 260px; }
.feature-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #f4efe6; }
.feature-card .tx { padding: 20px 18px; display: grid; align-content: center; gap: 6px; min-width: 0; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.feature-card .eyebrow { color: #f2b48f; }
.feature-card h3 { margin: 0; font-family: var(--f-display); font-size: clamp(24px, 6vw, 34px); line-height: 1.15; }
.feature-card p { margin: 0; opacity: .82; font-size: 14px; }
.feature-card .price { font-size: 22px; color: var(--cream); }
.feature-card .cta { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; background: var(--cream); color: var(--palm); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; }

/* ---------- Sections ---------- */
.section { scroll-margin-top: 130px; padding-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-family: var(--f-display); font-size: 26px; line-height: 1.2; text-wrap: balance; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 22px; height: 22px; flex: none; background: currentColor; opacity: .85;
  -webkit-mask: var(--leaf) center / contain no-repeat; mask: var(--leaf) center / contain no-repeat; }
.section-head .count { color: var(--ink-2); font-size: 13px; }
:root { --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c0-6 0-12 0-16M12 8c-3-4-7-4-9-3 1 3 5 5 9 5M12 8c3-4 7-4 9-3-1 3-5 5-9 5M12 13c-3-3-6-3-8-2 1 2 4 4 8 4M12 13c3-3 6-3 8-2-1 2-4 4-8 4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; text-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); } }
.card .open { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; }
.card .open:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: -3px; border-radius: var(--radius); }
.card .ph { aspect-ratio: 4 / 5; max-width: 100%; background: var(--surface-2); position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
@media (hover: hover) { .card:hover .ph img { transform: scale(1.04); } }
.badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(255,252,246,.92); color: #1b2620; }
.badge .icon { width: 14px; height: 14px; }
.badge.new { background: var(--new); color: #fff; }
.badge.cold { color: #2d6475; }
.badge.hot { color: #9a4a22; }
.card .body { padding: 10px 12px 12px; display: grid; gap: 2px; flex: 1; align-content: start; }
.card h3 { margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 700; }
.card .desc { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 12px; margin-top: auto; }
.price { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-weight: 600; font-size: .72em; opacity: .7; margin-inline-start: 3px; }
.price.ask { font-weight: 600; font-size: 12.5px; color: var(--ink-2); }

.add {
  width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s;
}
.add:active { transform: scale(.92); }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 2px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button .icon { width: 16px; height: 16px; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-2); }
.empty strong { display: block; font-family: var(--f-display); font-size: 22px; color: var(--ink); }

/* ---------- Footer ---------- */
.foot-site { margin-top: 48px; background: var(--hero-bg); color: var(--hero-ink); position: relative; }
.foot-site .brush { top: -1px; bottom: auto; transform: scaleY(-1); }
.foot-site .wrap { padding-block: 56px 120px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.foot-site img { width: 150px; }
.foot-site p { margin: 0; opacity: .8; font-size: 13px; }
.foot-site a { color: inherit; }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  pointer-events: none; display: flex; justify-content: center;
}
.cartbar button {
  pointer-events: auto; width: min(560px, 100%); min-height: 58px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--palm); color: var(--cream); display: flex; align-items: center; gap: 12px; padding: 0 16px;
  box-shadow: 0 10px 30px rgba(15, 30, 22, .35); font-weight: 700; animation: rise .35s ease;
}
:root[data-theme="dark"] .cartbar button { background: var(--accent); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cartbar button { background: var(--accent); color: var(--on-accent); } }
.cartbar .count { min-width: 28px; height: 28px; border-radius: 9px; background: rgba(240,228,203,.18); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cartbar .label { flex: 1; text-align: start; }
.cartbar .total { font-variant-numeric: tabular-nums; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Dialogs (bottom sheet on phones) ---------- */
dialog {
  border: 0; padding: 0; color: var(--ink); background: var(--surface); width: min(560px, 100%); max-width: 100%;
  max-height: 92dvh; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden;
}
dialog::backdrop { background: rgba(10, 20, 15, .55); backdrop-filter: blur(2px); }
dialog[open] { animation: pop .25s ease; display: flex; flex-direction: column; }
@keyframes pop { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  dialog { margin: auto 0 0; width: 100%; border-radius: 24px 24px 0 0; max-height: 94dvh; }
}
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; min-height: 0; }
.x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,252,246,.92); color: #1b2620; box-shadow: var(--shadow); }
.poster { background: var(--surface-2); }
.poster img { width: 100%; height: auto; }
.sheet-body { padding: 18px 20px 8px; display: grid; gap: 10px; }
.sheet-body h2 { margin: 0; font-family: var(--f-display); font-size: 28px; line-height: 1.2; }
.sheet-body .alt { color: var(--ink-2); font-size: 13px; margin-top: -6px; }
.sheet-body p { margin: 0; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta .badge { background: var(--surface-2); color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 6px 0 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; background: var(--surface); }
.opt input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.btn {
  flex: 1; min-height: 50px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 800; font-size: 15px;
  background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; text-decoration: none;
}
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.wa { background: #1f8a4c; color: #fff; }
.btn .p { opacity: .85; font-variant-numeric: tabular-nums; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.qty.big button { width: 42px; height: 42px; }
.qty.big output { min-width: 30px; font-size: 17px; }

/* cart */
.cart-head { padding: 18px 20px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-head h2 { margin: 0; font-family: var(--f-display); font-size: 26px; }
.linkbtn { border: 0; background: none; color: var(--ink-2); cursor: pointer; text-decoration: underline; font-size: 13px; padding: 6px; }
.lines { list-style: none; margin: 0; padding: 4px 20px; display: grid; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.line .nm { font-weight: 700; line-height: 1.35; }
.line .sub { color: var(--ink-2); font-size: 12.5px; }
.line .r { display: grid; justify-items: end; gap: 6px; }
.form { padding: 12px 20px 4px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; padding: 10px 12px; outline: none;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 20px 2px; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.note { padding: 0 20px 8px; color: var(--ink-2); font-size: 12.5px; margin: 0; }
.cart-actions { flex-wrap: wrap; }
.cart-actions .btn { flex: 1 1 200px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- v2: sold out, cart steps, checkout ---------- */
.card.is-out .ph img { filter: grayscale(1); opacity: .55; }
.card.is-out .price { opacity: .5; }
.badge.out { background: #3a3f3c; color: #fff; }
.cart-head { position: relative; }
.cart-head .back { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
:root[dir="ltr"] .cart-head .back .icon, html[dir="ltr"] .cart-head .back .icon { transform: scaleX(-1); }
.cart-head { justify-content: flex-start; padding-inline-end: 64px; }
.steps { list-style: none; margin: 0; padding: 0 20px 8px; display: flex; gap: 6px; counter-reset: s; font-size: 12.5px; color: var(--ink-2); }
.steps li { flex: 1; counter-increment: s; border-top: 3px solid var(--line); padding-top: 6px; }
.steps li::before { content: counter(s) ". "; }
.steps li.on { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.steps li.done { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.line { grid-template-columns: 56px minmax(0, 1fr) auto; }
.line .r { display: flex; align-items: center; gap: 6px; }
.line .rm { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.line .rm:hover { color: #b3402a; background: var(--surface-2); }
.row-links { display: flex; justify-content: space-between; gap: 8px; padding: 4px 20px 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14.5px; }
.seg input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.field-head .lbl { font-weight: 700; font-size: 14px; }
.branches { display: grid; gap: 8px; }
.branch { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.branch input { accent-color: var(--palm); width: 18px; height: 18px; flex: none; margin: 0; }
.branch span { display: grid; gap: 1px; flex: 1; min-width: 0; }
.branch small { color: var(--ink-2); font-size: 12.5px; }
.branch em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.branch a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: var(--surface-2); flex: none; }
.branch:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.locate { width: 100%; }
.status { border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.status.ok { background: color-mix(in srgb, #2f8a55 14%, transparent); color: var(--ink); }
.status.warn { background: color-mix(in srgb, #c98a1b 16%, transparent); color: var(--ink); }
.status.bad { background: color-mix(in srgb, #b3402a 15%, transparent); color: var(--ink); }
#deliveryBox, #pickupBox { display: grid; gap: 10px; }
#deliveryBox[hidden], #pickupBox[hidden] { display: none; }
.field select { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; padding: 10px 12px; }
.totals { margin: 4px 20px 8px; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--ink-2); } .totals dd { margin: 0; font-weight: 700; }
.totals .grand { font-size: 18px; } .totals .grand dt { color: var(--ink); font-weight: 800; } .totals .grand dd { font-weight: 800; }
.note.warn { color: #b3402a; font-weight: 600; }
.btn.is-disabled { opacity: .55; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.foot-branches { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 8px; justify-items: center; font-size: 13px; }
.foot-branches li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: center; }
.foot-branches span { opacity: .75; }
.foot-branches a { display: inline-flex; align-items: center; gap: 4px; }
.foot-branches .icon { width: 16px; height: 16px; }

#cartDlg .cart-head { position: sticky; top: 0; z-index: 3; background: var(--surface); padding-block: 14px 8px; padding-inline-end: 64px; min-height: 64px; }
#cartDlg .cart-head .x { top: 12px; }
#cartDlg .cart-head .x { right: auto; left: auto; inset-inline-end: 12px; }

/* fallback for browsers without <dialog> (older iPhones) */
dialog.dlg-fallback { position: fixed; inset: auto 0 0 0; z-index: 50; margin: 0; width: 100%; max-height: 92vh;
  display: flex; flex-direction: column; border-radius: 24px 24px 0 0; box-shadow: 0 0 0 100vmax rgba(10, 20, 15, .55); }
@media (min-width: 641px) { dialog.dlg-fallback { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(560px, 100%); border-radius: 24px; } }
body.dlg-lock { overflow: hidden; }

/* several "new" items: swipeable row */
.featured.multi .feat-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.featured.multi .feature-card { flex: 0 0 min(88%, 520px); scroll-snap-align: start; }

/* Safari: a flex:1 (0% basis) child collapses to 0 inside an auto-height dialog.
   Size the scroll area from its content instead, and let max-height cap the sheet. */
dialog .sheet-scroll { flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
dialog .sheet-foot { flex: none; }
#cartDlg[open], #itemDlg[open] { height: auto; }

/* ================= Red Burger look ================= */
body { font-size: 14.5px; }
.hero { overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; background: var(--brush);
  -webkit-mask: var(--stroke) center / 100% 100% no-repeat; mask: var(--stroke) center / 100% 100% no-repeat; }
.hero::before { width: 72%; height: 120px; top: -26px; inset-inline-start: -14%; transform: rotate(-8deg); }
.hero::after { width: 64%; height: 110px; bottom: 18px; inset-inline-end: -16%; transform: rotate(-6deg); opacity: .95; }
:root { --stroke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80' preserveAspectRatio='none'%3E%3Cpath d='M6 40c10-20 40-30 90-31 60-2 120 4 190-2 40-3 80-2 108 6 6 4 2 10-6 12-30 6-46 4-60 10 22 2 40 6 40 12s-24 8-60 10c-70 4-150 6-210 2-40-3-82-4-92-12-6-5 2-9 18-11-14-3-22-7-18-12z'/%3E%3C/svg%3E"); }
.tool { border-color: color-mix(in srgb, var(--hero-ink) 22%, transparent); background: color-mix(in srgb, var(--hero-bg) 70%, transparent); color: var(--hero-ink); backdrop-filter: blur(4px); }
.tool:hover { background: color-mix(in srgb, var(--hero-ink) 8%, var(--hero-bg)); }
.brand img { width: min(190px, 46vw); filter: drop-shadow(0 6px 14px rgba(120, 10, 10, .22)); }
.tagline { font-size: 22px; opacity: 1; letter-spacing: 0; }
.tagline span { background: var(--char); color: #fff6ea; padding: 2px 14px 4px; border-radius: 4px; transform: rotate(-2deg); display: inline-block; }
:root[data-theme="dark"] .tagline span { background: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tagline span { background: var(--accent); } }
.fresh { position: absolute; top: 64px; inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--palm); color: var(--palm); display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-size: 15px; line-height: 1; transform: rotate(-10deg); }
:root[data-theme="dark"] .fresh { border-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fresh { border-color: var(--accent); color: var(--accent); } }
@media (max-width: 380px) { .fresh { display: none; } }

.section-head h2 { font-size: 30px; font-weight: 400; }
.section-head h2::before { width: 26px; height: 26px; color: var(--accent); opacity: 1; -webkit-mask-image: var(--bun); mask-image: var(--bun); }
:root { --bun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11c0-4.4 4-7 9-7s9 2.6 9 7H3zM2.5 13.2h19v2H2.5zM3.5 17h17c0 1.7-1.3 3-3 3h-11c-1.7 0-3-1.3-3-3z'/%3E%3C/svg%3E"); }
.sheet-body h2, .cart-head h2 { font-weight: 400; }
.feature-card { background: var(--palm); }
.feature-card .eyebrow { color: #ffd9a8; }
.feature-card h3 { font-weight: 400; }
.feature-card .cta { color: var(--palm); }
.card .ph { background: #fff; }
.card h3 { font-weight: 700; }
.price { color: var(--accent); }
.price small { color: var(--ink-2); }
.chip[aria-current="true"] { background: var(--char); border-color: var(--char); color: #fff6ea; }
:root[data-theme="dark"] .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); } }
.cartbar button { background: var(--palm); color: #fff6ea; }
:root[data-theme="dark"] .cartbar button { background: var(--accent); color: #fff6ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cartbar button { background: var(--accent); color: #fff6ea; } }
.foot-site { background: var(--char); color: #fff6ea; }
.foot-site .brush { color: var(--bg); }
.foot-site img { width: 120px; }

/* add-ons */
#addonBox { display: grid; gap: 12px; }
.addons legend { display: flex; gap: 8px; align-items: baseline; }
.addons legend small { color: var(--ink-2); font-weight: 500; font-size: 12px; }
.addon-list { display: grid; gap: 6px; }
.addon { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.addon input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }
.addon .an { flex: 1; font-weight: 600; }
.addon .ap { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.addon:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.line .adds { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.hero::before { width: 58%; height: 90px; top: -40px; inset-inline-start: -18%; }
.tagline { font-size: clamp(17px, 5vw, 22px); max-width: 92%; text-align: center; }
.hero::before { width: min(58%, 520px); }
.hero::after { width: min(64%, 560px); height: 90px; }
.feature-card .price, .feature-card .price small { color: #fff6ea; }
.feature-card .ph img { background: #1b1312; }
@media (min-width: 900px) { .fresh { inset-inline-end: calc(50% - 540px); } }
