/* Restaurant website (customer side) — modern food-ordering UI (Uber Eats / Deliverect style).
   Light, warm theme; the restaurant's brand color drives --accent. Mobile first: list rows + bottom cart bar;
   >= 1024 px: photo grid + sticky cart column. No external fonts (strict CSP): system UI stack with heavy weights. */
:root {
  --accent: #a3261b; --accent-ink: #fff; --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff); --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
  --bg: #f6f2ec; --surface: #fff; --ink: #1d1a17; --ink2: #3a342e; --muted: #736a61; --line: #e9e2d9; --line2: #f1ece5;
  --ok: #157f3b; --ok-soft: #e7f5ec; --bad: #b42318; --bad-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fff4d6;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 2px rgba(29,26,23,.06), 0 6px 20px rgba(29,26,23,.06); --shadow-lg: 0 18px 50px rgba(29,26,23,.18);
  --top: 64px; color-scheme: light;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.sf { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; }

/* demo / notice ribbon */
.ribbon { background: var(--warn-soft); color: var(--warn); font-size: .82rem; font-weight: 600; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f1dfae; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.tb-in { max-width: 1280px; margin: 0 auto; height: var(--top); padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--accent-soft) center/cover no-repeat; border: 2px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent); font-weight: 900; font-size: 18px; overflow: hidden; }
.brand-name { font-weight: 850; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-mid { display: none; align-items: center; gap: 8px; margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: .95rem; color: var(--ink2); }
.tb-chip:hover { background: var(--line2); }
.seg { display: inline-flex; background: var(--line2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tb-cart { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.tb-cart .label { display: none; }
.tb-cart b { background: rgba(255,255,255,.22); min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: .85rem; }
.tb-fulfil { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.tb-fulfil b { display: flex; align-items: center; gap: 4px; font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
.tb-fulfil span { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.only-mobile { display: flex; }
.only-desk { display: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px 16px 120px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.col-side { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 210px; background: linear-gradient(135deg, var(--accent), #1d1a17); box-shadow: var(--shadow); isolation: isolate; }
.hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,8,6,.78) 0%, rgba(10,8,6,.45) 45%, rgba(10,8,6,.05) 100%), linear-gradient(0deg, rgba(10,8,6,.55), transparent 55%); }
.hero-in { position: relative; padding: 26px 22px 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .sub { margin-top: 6px; font-size: 1.05rem; font-weight: 600; opacity: .92; }
.hero .chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }
.pill.open { background: #e7f5ec; color: var(--ok); }
.pill.closed { background: #fdecea; color: var(--bad); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* info strip under the hero */
.info { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; box-shadow: var(--shadow); overflow: hidden; }
.info-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-align: left; width: 100%; }
.info-item + .info-item { border-top: 1px solid var(--line2); }
.info-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.info-item .t { min-width: 0; flex: 1; }
.info-item .t > b { display: block; font-weight: 750; font-size: .98rem; }
.info-item .t > span { display: block; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-item .go { color: var(--muted); }
.mini-actions { display: flex; gap: 8px; }
.btn-soft { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--line2); font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--ink2); }
.btn-soft:hover { background: var(--line); }
.btn-soft.wa { background: #dcfce7; color: #166534; }

.alert { margin-top: 14px; border-radius: var(--r); padding: 14px 16px; font-weight: 650; display: flex; gap: 10px; align-items: center; background: var(--bad-soft); color: var(--bad); }

/* ---------- search + categories (sticky) ---------- */
.tools { position: sticky; top: var(--top); z-index: 20; background: var(--bg); padding: 14px 0 10px; margin-top: 6px; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); min-width: 0; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; scrollbar-width: none; scroll-behavior: smooth; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .93rem; white-space: nowrap; color: var(--ink2); }
.cats button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- menu ---------- */
.section { scroll-margin-top: calc(var(--top) + 130px); margin-top: 26px; }
.section h2 { font-size: 1.55rem; font-weight: 900; margin-bottom: 14px; }
.list { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* row card (mobile, Uber Eats style) */
.card { position: relative; display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .18s ease; }
.card:hover { box-shadow: 0 2px 4px rgba(29,26,23,.06), 0 12px 28px rgba(29,26,23,.10); }
.card:active { transform: scale(.985); }
.card[disabled] { opacity: .55; cursor: default; }
.card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card .nm { font-weight: 800; font-size: 1.05rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .ds { color: var(--muted); font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { margin-top: auto; padding-top: 4px; font-weight: 750; color: var(--ink2); font-variant-numeric: tabular-nums; }
.card .pr small { font-weight: 600; color: var(--muted); }
.ph { position: relative; flex: none; width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--line2); }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.ph img.ok { opacity: 1; }
.plus { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--accent); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); border: 1px solid var(--line); }
.card.noimg .plus { position: static; align-self: flex-end; flex: none; background: var(--accent); color: var(--accent-ink); border: 0; }
.qtybadge { position: absolute; top: 10px; left: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; display: grid; place-items: center; z-index: 2; }
/* popular carousel (mobile) */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .tile { scroll-snap-align: start; }
/* tile card (image on top) */
.tile { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .18s ease; }
.tile:hover { box-shadow: 0 2px 4px rgba(29,26,23,.06), 0 14px 32px rgba(29,26,23,.12); transform: translateY(-1px); }
.tile[disabled] { opacity: .55; cursor: default; }
.tile .ph { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.tile .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), #fff); font-size: 2.6rem; font-weight: 900; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .nm { font-weight: 850; font-size: 1.12rem; line-height: 1.2; padding-right: 46px; }
.tile .ds { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .pr { font-weight: 700; color: var(--ink2); margin-top: auto; padding-top: 2px; }
.tile .plus { right: 14px; bottom: 14px; background: var(--accent); color: var(--accent-ink); border: 0; width: 42px; height: 42px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.skel { height: 140px; border-radius: var(--r); margin: 12px 0; background: linear-gradient(90deg, #efe9e1 25%, #f7f3ee 50%, #efe9e1 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 40px 0 0; }

/* ---------- cart (side column + sheet) ---------- */
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.cart-card h2 { font-size: 1.6rem; font-weight: 900; }
.cart-sub { color: var(--muted); font-weight: 600; margin: 4px 0 10px; }
.cl { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.cl .thumb { width: 64px; height: 64px; border-radius: 12px; flex: none; background: var(--line2) center/cover; }
.cl .t { flex: 1; min-width: 0; }
.cl .t b { display: block; font-weight: 800; line-height: 1.2; }
.cl .t .o { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.cl .r { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cl .r .pp { font-weight: 800; font-variant-numeric: tabular-nums; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.step button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink2); }
.step button:hover { background: var(--line2); }
.step span { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.step.big button { width: 48px; height: 48px; }
.step.big span { min-width: 40px; font-size: 1.15rem; }
.tot { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 14px; font-size: 1.35rem; font-weight: 900; }
.tot small { font-size: .95rem; color: var(--muted); font-weight: 700; }
.cart-empty { text-align: center; padding: 26px 8px 8px; color: var(--muted); }
.cart-empty .ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 20px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.08rem; transition: filter .15s ease, transform .08s ease; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn .sp { margin-left: auto; font-variant-numeric: tabular-nums; }
.btn.ghost { background: var(--line2); color: var(--ink); }
.btn.split { justify-content: space-between; }
.note { color: var(--muted); font-size: .86rem; text-align: center; margin-top: 10px; }

/* mobile cart bar */
.cartbar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; height: 60px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; gap: 12px; padding: 0 20px; box-shadow: var(--shadow-lg); font-weight: 800; font-size: 1.05rem; animation: up .25s ease; }
.cartbar .n { background: rgba(255,255,255,.22); min-width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; }
.cartbar .sp { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

/* ---------- sheets (dish, cart, info, fulfillment) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(15,12,10,.5); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; inset: 0; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; animation: rise .26s cubic-bezier(.2,.9,.25,1); display: flex; flex-direction: column; }
@keyframes rise { from { transform: translateY(36px); opacity: .5; } }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line2); }
.sheet-head h3 { font-size: 1.15rem; font-weight: 850; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.16); flex: none; }
.sheet-head .icon-btn { box-shadow: none; background: var(--line2); }
.sheet-body { padding: 18px 18px 120px; flex: 1; }
.sheet-foot { position: sticky; bottom: 0; z-index: 3; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line2); display: flex; gap: 12px; align-items: center; }
.sheet-foot .btn { flex: 1; }
/* dish sheet */
.dish-media { position: relative; background: var(--line2); }
.dish-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.dish-media .icon-btn { position: absolute; top: 12px; left: 12px; }
.dish-title { font-size: 1.9rem; font-weight: 900; margin-top: 4px; }
.dish-desc { color: var(--muted); margin-top: 6px; font-size: 1rem; }
.dish-price { font-weight: 800; font-size: 1.15rem; margin-top: 8px; }
.group { margin-top: 22px; }
.gh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gh b { font-size: 1.2rem; font-weight: 850; }
.tag { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--line2); color: var(--muted); white-space: nowrap; }
.tag.req { background: var(--bad-soft); color: var(--bad); }
.tag.done { background: var(--ok-soft); color: var(--ok); }
.group.missing .gh b { color: var(--bad); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .12s ease, background .12s ease; }
.opt:hover { border-color: var(--accent-line); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #cfc6bb; display: grid; place-items: center; background: #fff; }
.opt.multi .mark { border-radius: 6px; }
.opt.on .mark { border-color: var(--accent); background: var(--accent); color: #fff; }
.opt .mark svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.opt.on .mark svg { opacity: 1; }
.opt:not(.multi).on .mark { background: #fff; }
.opt:not(.multi).on .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.opt:not(.multi) .mark svg { display: none; }
.opt .on-name { flex: 1; font-weight: 650; font-size: 1.02rem; }
.opt .on-price { font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.qty-row { display: flex; justify-content: center; margin: 26px 0 6px; }
.err { color: var(--bad); font-weight: 700; min-height: 1.3em; margin: 8px 0 0; }
/* info sheet */
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 800; }
.choice-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: var(--surface); }
.choice-card.on { border-color: var(--accent); background: var(--accent-soft); }
.choice-card > span > b { display: block; font-size: 1.05rem; font-weight: 800; }
.choice-card > span > span { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- checkout page ---------- */
.co { max-width: 1180px; margin: 0 auto; padding: 18px 16px 140px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 750; text-decoration: none; padding: 6px 0; }
.co h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; margin: 10px 0 18px; }
.co-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.35rem; font-weight: 900; margin-bottom: 14px; }
.where { display: flex; gap: 14px; align-items: flex-start; }
.where .info-ico { width: 52px; height: 52px; border-radius: 14px; }
.where .t { flex: 1; min-width: 0; }
.where .t > b { display: block; font-size: 1.15rem; font-weight: 850; }
.where .t > span { display: flex; align-items: center; gap: 6px; color: var(--ink2); margin-top: 4px; }
.link { color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); outline: 0; transition: border-color .12s, box-shadow .12s; }
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.bad input { border-color: var(--bad); }
.field .hint { color: var(--bad); font-size: .85rem; font-weight: 650; margin-top: 4px; min-height: 0; }
.pay { display: grid; gap: 10px; }
.pay .choice-card { margin: 0; }
.pay .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--line2); display: grid; place-items: center; flex: none; }
.pay .choice-card.on .ic { background: #fff; color: var(--accent); }
.pay .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc6bb; flex: none; display: grid; place-items: center; margin-left: auto; }
.pay .choice-card.on .radio { border-color: var(--accent); }
.pay .choice-card.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.summary .sl { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.summary .sl .thumb { width: 84px; height: 64px; border-radius: 12px; background: var(--line2) center/cover; flex: none; }
.summary .sl .t { flex: 1; min-width: 0; }
.summary .sl b { font-weight: 800; }
.summary .sl .o { color: var(--muted); font-size: .88rem; }
.summary .sl .pp { font-weight: 800; font-variant-numeric: tabular-nums; }
.summary .hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mobile-pay { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.06); }

.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--top) + 10px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 650;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: drop .22s ease; max-width: calc(100vw - 32px); }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }

/* ---------- tablet / desktop ---------- */
@media (min-width: 720px) {
  .wrap { padding: 22px 24px 120px; }
  .hero, .hero-in { min-height: 280px; }
  .hero-in { padding: 36px; }
  .info { grid-template-columns: repeat(3, 1fr); }
  .info-item + .info-item { border-top: 0; border-left: 1px solid var(--line2); }
  .list { grid-template-columns: 1fr 1fr; }
  .carousel { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow: visible; }
  .sheet { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 90vh; border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
  .dish-media img { border-radius: 24px 24px 0 0; }
  .sheet-body { padding: 22px 26px 30px; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .tb-cart .label { display: inline; }
}
@media (min-width: 1024px) {
  :root { --top: 76px; }
  .only-mobile { display: none; }
  .only-desk { display: flex; }
  .tb-in { padding: 0 24px; }
  .tb-mid { display: flex; }
  .logo { width: 52px; height: 52px; font-size: 20px; }
  .brand-name { font-size: 1.35rem; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .col-side { display: block; position: sticky; top: calc(var(--top) + 20px); }
  .cartbar { display: none !important; }
  .hero, .hero-in { min-height: 320px; }
  .hero-in { padding: 44px 48px; }
  .list.rows { grid-template-columns: 1fr 1fr; }
  .co-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; }
  .co-side { position: sticky; top: calc(var(--top) + 20px); }
  .mobile-pay { display: none; }
}

/* ---------- order tracking + driver page ---------- */
.track { max-width: 640px; margin: 0 auto; padding: 18px 16px 60px; }
.track .card2, .track .card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin: 14px 0; }
.track .card:active { transform: none; }
.track h1 { font-size: 1.7rem; font-weight: 900; margin: 6px 0 2px; }
.status-hero { text-align: center; padding: 26px 18px 20px !important; }
.status-ico { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); position: relative; }
.status-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent-line); animation: ring 1.8s ease-out infinite; }
.status-ico.done { background: var(--ok-soft); color: var(--ok); }
.status-ico.done::after, .status-ico.bad::after { display: none; }
.status-ico.bad { background: var(--bad-soft); color: var(--bad); }
.status-ico svg { width: 34px; height: 34px; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.bigstatus { font-size: 1.3rem; font-weight: 850; line-height: 1.25; }
.eta { color: var(--muted); font-weight: 650; margin-top: 6px; }
.steps { display: flex; margin: 22px 0 4px; }
.steps .st { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 22px; font-weight: 650; }
.steps .st::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.steps .st::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.steps .st:first-child::after { display: none; }
.steps .st.done::before, .steps .st.done::after { background: var(--accent); }
.steps .st.cur { color: var(--ink); font-weight: 850; }
.steps .st.cur::before { box-shadow: 0 0 0 5px var(--accent-soft); }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.line .thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--line2) center/cover; flex: none; }
.line .t { flex: 1; min-width: 0; }
.line .o { color: var(--muted); font-size: .88rem; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pillbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--line2); font-weight: 700; text-decoration: none; color: var(--ink2); }
.pillbtn.wa { background: #dcfce7; color: #166534; }
.primary { display: block; width: 100%; height: 58px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 850; font-size: 1.1rem; }
.drvbtns { position: sticky; bottom: 12px; margin-top: 14px; }
.drvbtns .primary { height: 64px; font-size: 1.2rem; }
.state-bad .bigstatus { color: var(--bad); }
.track-head { display: flex; align-items: center; gap: 12px; }
.track-head .logo { width: 48px; height: 48px; }

.tb-in > .push { margin-left: auto; }

@media (max-width: 1023px) { .logo.only-mobile { display: grid; } }
.track .card .tot { padding-bottom: 6px; }

@media (min-width: 720px) { .info .btn-soft .lbl { display: none; } .info .btn-soft { width: 36px; padding: 0; justify-content: center; } .info-item { min-width: 0; } }

.fields + .fields { margin-top: 14px; }

.foot .powered { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:8px; opacity:.75; font-size:.78rem; }
.foot .powered img { display:block; }
