/* Restaurant storefront — mobile first (see resto.css for the restaurant layer) */
:root {
  --brand: #9A2F1A;
  --brand-ink: #7A2312;
  --brand-soft: #F8E9E4;
  --ink: #211A17;
  --muted: #6B5F58;
  --line: #E9E0D6;
  --surface: #F6F0E8;
  --paper: #FFFDF9;
  --sun: #C9A24B;
  --sun-soft: #F7EFD9;
  --danger: #C8102E;
  --danger-soft: #FCE8EB;
  --ok: #157F3B;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 6px 20px rgba(20, 33, 61, .06);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num, .price { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrapit { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.hide-m { display: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ── Top bar ─────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; }
.brand { flex: 1 1 0; min-width: 0; }
.cur-form { order: 2; flex: none; }
.brand img { height: 46px; width: auto; max-width: 150px; object-fit: contain; flex: none; }
.brand.brand-wide img { height: 48px; max-width: min(250px, 56vw); }
.brand .bname { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; white-space: normal; }
.brand .bname b { font-size: 1.08rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand .bname small { font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: 0; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.brand .mark { width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--brand); display: grid; place-items: center; color: #fff; }
.search { flex: 1 1 100%; order: 5; position: relative; }
.search input, .search input[type=search] {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 16px 0 40px; font: inherit; font-size: .95rem; color: var(--ink);
}
.search input:focus { background: var(--paper); border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topnav { display: none; gap: 4px; }
.topnav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.topnav a:hover { background: var(--surface); }
.topnav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.cur-select {
  appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  height: 38px; padding: 0 28px 0 12px; font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235B6676' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; cursor: pointer;
}
.cats-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.cats-strip .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats-strip .wrap::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.chip:hover { border-color: var(--line); }
.chip.on { background: var(--ink); color: #fff; }

/* ── Bottom tab bar (app feel on phones) ── */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 700; position: relative; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar svg { width: 24px; height: 24px; }
.badge-count {
  position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.badge-count[data-n="0"] { display: none; }
.cart-btn { position: relative; }
.cart-btn .badge-count { top: -2px; left: auto; right: -4px; }

/* ── Buttons & forms ─────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--surface); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #22325a; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }
.btn-lg { height: 54px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-ink); text-decoration: underline; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 700; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #CDD3DB; border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--paper);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

/* Choice tiles (zones, slots, payment) */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .tile { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; background: var(--paper); transition: border-color .15s, background .15s; }
.choice .tile .grow b { display: block; }
.choice input:checked + .tile { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + .tile { outline: 3px solid var(--sun); outline-offset: 2px; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slots .choice .tile { padding: 9px 14px; font-weight: 700; font-size: .9rem; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B8C0CB; flex: none; }
.choice input:checked + .tile .dot { border: 6px solid var(--brand); }

/* ── Flash / notices ─────────────────── */
.flashes { position: fixed; z-index: 80; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: grid; gap: 8px; }
.notice { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); background: var(--paper); border: 1px solid var(--line); }
.notice.success { background: #E6F4EA; border-color: #BFE3CB; color: #0F5C2B; }
.notice.error { background: var(--danger-soft); border-color: #F4BEC7; color: #8A0B20; }
.notice.info { background: var(--sun-soft); border-color: #F6DE9C; color: #6B4A00; }
.notice button { margin-left: auto; background: none; border: 0; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.inline-notice { box-shadow: none; }

/* ── Hero with delivery pass ─────────── */
.hero { padding: 22px 0 8px; }
.hero-grid { display: grid; gap: 18px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: .35em; max-width: 14ch; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.hero-img { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16/10; background: var(--brand-soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.pass {
  position: relative; border-radius: var(--radius-l); background: var(--ink); color: #fff; padding: 20px 20px 18px;
  overflow: hidden; isolation: isolate;
}
.pass::before, .pass::after {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); top: 96px; z-index: 1;
}
.pass::before { left: -13px; }
.pass::after { right: -13px; }
.pass .perf { border-top: 2px dashed rgba(255, 255, 255, .22); margin: 16px -20px 14px; }
.pass .pass-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; min-height: 62px; }
.pass .pass-label { font-size: .8rem; color: rgba(255, 255, 255, .62); font-weight: 600; }
.pass .countdown { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.pass .countdown small { font-size: .95rem; font-weight: 700; color: var(--sun); letter-spacing: 0; display: block; margin-top: 4px; }
.pass .truck { color: var(--sun); flex: none; }
.pass select { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; font-weight: 700; }
.pass select option { color: var(--ink); }
.pass .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pass .fact { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 12px; }
.pass .fact b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pass .fact span { font-size: .78rem; color: rgba(255, 255, 255, .62); }
.pass .free { margin-top: 10px; font-size: .85rem; color: var(--sun); font-weight: 600; min-height: 1.3em; }

/* ── Sections & product grid ─────────── */
.section { padding: 26px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap; }

.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-tile { text-decoration: none; color: var(--ink); background: var(--surface); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: .88rem; line-height: 1.2; }
.cat-tile .img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover { background: var(--brand-soft); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pcard .media { position: relative; aspect-ratio: 1; background: var(--surface); display: block; }
.pcard .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pcard .media { overflow: hidden; }
.pcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard .name { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .93rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .unit { font-size: .8rem; color: var(--muted); }
.pcard .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.pcard .price { font-weight: 800; font-size: 1.02rem; }
.pcard .was { font-size: .8rem; color: var(--muted); text-decoration: line-through; display: block; font-weight: 600; }
.add-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none;
  transition: transform .12s, background .15s;
}
.add-btn:hover { background: var(--brand-ink); }
.add-btn.added { background: var(--ink); transform: scale(1.08); }
.add-btn[disabled] { background: #C4CAD3; cursor: not-allowed; }
.tag { position: absolute; top: 8px; left: 8px; background: var(--sun); color: var(--ink); font-size: .74rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.tag.out { background: var(--ink); color: #fff; }
.heart { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.heart.on { color: var(--danger); }
.heart.on svg { fill: currentColor; }

/* ── Listing ─────────────────────────── */
.list-head { padding: 20px 0 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.list-head h1 { margin: 0; font-size: 1.6rem; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select { width: auto; min-height: 38px; padding: 6px 30px 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 24px 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; padding: 0 10px; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty svg { margin: 0 auto 12px; color: #B8C0CB; }
.empty h2 { color: var(--ink); }

/* ── Product page ────────────────────── */
.pdp { display: grid; gap: 20px; padding: 16px 0 24px; }
.gallery .main { border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
.gallery .main { position: relative; background: #fff; }
.gallery .main { display: grid; place-items: center; min-height: 220px; }
.gallery .main::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover; filter: blur(28px) saturate(1.2) brightness(.92); transform: scale(1.1); }
.gallery .main img { position: relative; display: block; width: 100%; height: auto; max-height: min(78vh, 720px); object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; background: var(--surface); }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pdp .price-big { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.pdp .price-big .was { font-size: 1rem; color: var(--muted); text-decoration: line-through; font-weight: 600; margin-left: 8px; }
.stock { font-weight: 700; font-size: .9rem; }
.stock.in { color: var(--ok); }
.stock.low { color: #A35F00; }
.stock.out { color: var(--danger); }
.buybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.buybox .grow { flex: 1 1 160px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #CDD3DB; border-radius: 12px; height: 46px; overflow: hidden; background: var(--paper); }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--surface); }
.qty input { width: 44px; min-height: 0; height: 100%; border: 0; text-align: center; padding: 0; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { box-shadow: none; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; }
.qty.sm input { width: 34px; }
.promise { display: grid; gap: 8px; background: var(--surface); border-radius: var(--radius); padding: 14px; font-size: .92rem; }
.promise div { display: flex; gap: 10px; align-items: center; }
.promise svg { color: var(--brand); flex: none; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: .9em; }
.stars { color: var(--sun); letter-spacing: 1px; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }

/* ── Cart & checkout ─────────────────── */
.page { padding-top: 18px; padding-bottom: 32px; }
.two-col { display: grid; gap: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel.soft { background: var(--surface); border-color: transparent; }
.panel h2 { font-size: 1.1rem; margin-bottom: 12px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; margin: 0 0 14px; }
.step-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.line-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item .thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface); flex: none; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-item .nm { font-weight: 700; text-decoration: none; color: var(--ink); line-height: 1.3; display: block; }
.line-item .lt { font-weight: 800; text-align: right; min-width: 72px; }
.totals { display: grid; gap: 8px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { text-transform: uppercase; }
.sticky-pay { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 20; }
.sticky-pay .btn { box-shadow: 0 8px 24px rgba(14, 124, 102, .32); }
.geo-btn { display: inline-flex; gap: 6px; align-items: center; }
.geo-ok { color: var(--ok); font-weight: 700; font-size: .88rem; }

/* ── Tracking ────────────────────────── */
.track-head { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 20px; }
.track-head .big { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 6px; }
.track-head .muted { color: rgba(255, 255, 255, .7); }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0 6px; }
.progress span { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.progress span.on { background: var(--sun); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--surface); color: var(--ink); white-space: nowrap; }
.pill.pending { background: var(--sun-soft); color: #6B4A00; }
.pill.confirmed, .pill.processing { background: #E5EEFF; color: #1D3F8F; }
.pill.out_for_delivery, .pill.ready_for_pickup { background: var(--brand-soft); color: var(--brand-ink); }
.pill.delivered, .pill.paid { background: #E6F4EA; color: #0F5C2B; }
.pill.cancelled, .pill.failed, .pill.refunded { background: var(--danger-soft); color: #8A0B20; }

/* ── Account ─────────────────────────── */
.acct-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 18px; scrollbar-width: none; }
.order-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.auth-card { max-width: 440px; margin: 28px auto; }

/* ── Footer ──────────────────────────── */
.footer { background: var(--surface); margin-top: 40px; padding: 28px 0 24px; font-size: .9rem; color: var(--muted); }
.footer .cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.footer h3 { color: var(--ink); font-size: .95rem; }
.footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: var(--ink); }

/* Install banner */
.install { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px; display: none; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(20, 33, 61, .3); max-width: 520px; margin: 0 auto; }
.install.show { display: flex; }
.install img { width: 40px; height: 40px; border-radius: 10px; }
.install .btn { height: 38px; }
.install .x { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.4rem; cursor: pointer; }
.offline-bar { display: none; background: var(--sun); color: var(--ink); text-align: center; font-weight: 700; font-size: .85rem; padding: 6px; }
body.is-offline .offline-bar { display: block; }

@media (min-width: 640px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .scroller { grid-auto-columns: 30%; }
  .cat-tiles { grid-template-columns: repeat(6, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .choices.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .hide-m { display: initial; }
  .hide-d { display: none !important; }
  .topnav { display: flex; }
  .topbar .wrap { flex-wrap: nowrap; }
  .brand { flex: 0 0 auto; }
  .brand.brand-wide img { max-width: 260px; }
  .brand .bname small { max-width: 220px; }
  .search { flex: 1; order: 0; max-width: 460px; }
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .products.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .scroller { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; }
  .hero { padding: 40px 0 10px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; }
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-top: 28px; }
  .two-col { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 28px; }
  .two-col > aside { position: sticky; top: 84px; }
  .sticky-pay { position: static; }
  .install { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .tabbar, .footer, .cats-strip, .install, .no-print { display: none !important; }
  body { padding: 0; }
}

/* ── Announcement bar & promo banners ─────────────── */
.announce { position: relative; text-align: center; padding: 9px 40px 9px 16px; font-size: .88rem; font-weight: 700; line-height: 1.35; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: inherit; font-size: 1.3rem; cursor: pointer; opacity: .7; }
.promos { padding: 14px 0 0; }
.promo-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--radius-l); }
.promo-track::-webkit-scrollbar { display: none; }
.promo { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 150px; display: flex; align-items: center; border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(120deg, var(--bg), color-mix(in srgb, var(--bg) 70%, #000)); color: var(--fg); text-decoration: none; isolation: isolate; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 100%); }
.promo-body { display: grid; gap: 6px; padding: 20px 22px; max-width: min(560px, 82%); justify-items: start; }
.promo-title { font-size: clamp(1.3rem, 4.8vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.promo-sub { font-size: .98rem; opacity: .92; line-height: 1.35; }
.promo-btn { margin-top: 6px; background: var(--fg); color: var(--bg); padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.promo-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: var(--line); padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.promo-dots button.on { width: 22px; background: var(--brand); }
@media (min-width: 960px) { .promo { min-height: 210px; } .promo-body { padding: 30px 44px; } }

/* ── Install guide (shop, admin, driver) ──────────── */
.install-page { max-width: 820px; margin: 0 auto; padding: 18px 0 40px; }
.app-cards { display: grid; gap: 10px; margin: 14px 0; }
.app-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.app-card.focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.app-card img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.app-card h2 { margin: 0 0 2px; font-size: 1.05rem; }
.app-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.app-url code, .steps code { background: var(--surface); padding: 3px 8px; border-radius: 6px; font-size: .82rem; overflow-wrap: anywhere; }
.app-actions { grid-column: 1 / -1; display: flex; }
.app-actions .btn { flex: 1; justify-content: center; }
@media (min-width: 640px) { .app-card { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; } .app-actions { grid-column: auto; } .app-actions .btn { flex: none; } }
.plat-tabs { display: flex; gap: 6px; margin: 18px 0 10px; flex-wrap: wrap; }
.guide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.guide h2 { display: flex; gap: 8px; align-items: center; font-size: 1.15rem; }
.steps { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .88rem; }
.ios-share { vertical-align: -5px; color: #0A84FF; }
.tip { background: var(--sun-soft); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.ios-sheet { position: fixed; inset: 0; z-index: 120; background: rgba(8,14,28,.55); display: flex; align-items: flex-end; justify-content: center; }
.ios-sheet[hidden] { display: none; }
.ios-card { position: relative; background: var(--paper); width: min(100%, 520px); border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: sheet-up .28s ease; }
.ios-card h3 { margin: 0 28px 10px 0; }
.ios-card ol { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 8px; }
.ios-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); font-size: 1.4rem; line-height: 1; cursor: pointer; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* ── Pop-up ad ───────────────────────────────────── */
.popup-ad { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(10,16,30,.55); backdrop-filter: blur(3px); animation: popfade .25s ease; }
.popup-ad[hidden] { display: none; }
.popup-card { position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card, #fff); border-radius: calc(var(--radius-l, 18px) + 4px); box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: poprise .3s cubic-bezier(.2,.9,.3,1.2); }
.popup-img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.popup-body { padding: 22px 22px 18px; display: grid; gap: 10px; text-align: center; justify-items: center; }
.popup-body h2 { margin: 0; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.popup-body p { margin: 0; color: var(--muted, #5b6676); }
.popup-skip { color: var(--muted, #5b6676); font-size: .9rem; }
.popup-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #14213D; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
body.popup-open { overflow: hidden; }
@keyframes popfade { from { opacity: 0; } }
@keyframes poprise { from { transform: translateY(18px) scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .popup-ad, .popup-card { animation: none; } }

/* ── Developer credit ────────────────────────────── */
.powered { text-align: center; font-size: .82rem; color: var(--muted); padding: 14px 0 4px; letter-spacing: .01em; }
.powered a { display: inline !important; padding: 0 !important; color: var(--ink) !important; font-weight: 700; text-decoration: none; border-bottom: 1px dashed currentColor; }
.powered a:hover { color: var(--brand) !important; }
.powered-shop { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
@media (max-width: 899px) { .footer { padding-bottom: 84px; } }

/* product options */
.from { font-weight: 600; font-size: .78em; color: var(--muted); }
.vchip { position: relative; cursor: pointer; }
.vchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vchip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; background: var(--paper); }
.vchip input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); }
.vchip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.vchip.out span { opacity: .5; text-decoration: line-through; }
.vchip em { font-style: normal; font-size: .75rem; color: var(--muted); }
a.add-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.footer .flogo { display: inline-block; background: transparent; border-radius: 0; padding: 0; margin-bottom: 12px; border: 0; }
.footer .flogo img { display: block; height: 48px; width: auto; max-width: 200px; object-fit: contain; }

.or-sep { text-align: center; margin: 14px 0 10px; position: relative; color: var(--muted, #777); font-size: .85rem; }
.or-sep::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 1px solid var(--line, #ddd); }
.or-sep span { position: relative; background: var(--bg, #fff); padding: 0 10px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; }

/* Visitor counter: compact panel */
.vstat { margin-top: 22px; border-radius: 16px; padding: 14px 18px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; align-items: center;
  background: linear-gradient(135deg, #14213D, #1b2c52 60%, #123b40); box-shadow: 0 10px 26px rgba(10,20,40,.22), inset 0 0 0 1px rgba(255,255,255,.07); }
.vs-main, .vs-top { position: relative; z-index: 1; min-width: 0; }
.vs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .88rem; }
.vs-live { display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(61,220,132,.16); color: #7DF0B0; }
.vs-live i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; display: inline-block; animation: vsping 1.8s infinite; }
@keyframes vsping { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.7); } 70% { box-shadow: 0 0 0 7px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.vs-stats { display: flex; gap: 0; }
.vs-st { flex: 1 1 0; min-width: 0; padding: 0 14px; border-left: 1px solid rgba(255,255,255,.12); }
.vs-st:first-child { padding-left: 0; border-left: 0; }
.vs-st small { display: block; margin-top: 5px; color: rgba(255,255,255,.66); font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel { display: inline-flex; align-items: center; font-size: 1.45rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; height: 1em; }
.reel .d { display: inline-block; width: .64em; height: 1em; overflow: hidden; position: relative; margin: 0 1px; border-radius: 4px; background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.reel .d i { display: block; font-style: normal; transform: translateY(0); }
.reel .d u { display: block; height: 1em; line-height: 1em; text-align: center; text-decoration: none; }
.vstat.go .reel .d i { transform: translateY(calc(var(--n) * -1em)); transition: transform 1.4s cubic-bezier(.16,.84,.3,1) calc(var(--i) * 120ms); }
.reel .sep { margin: 0 1px; opacity: .5; font-weight: 700; align-self: flex-end; }
.vs-st.on .reel { color: #7DF0B0; }
.vs-sub { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.vs-sub .rk { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.vs-slides { position: relative; height: 64px; }
.vs-slide { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateX(14px); pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
.vs-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.fl { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 22px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.12); color: #fff; font-size: .62rem; font-weight: 800; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.fl.lg { width: 44px; height: 32px; border-radius: 6px; font-size: .8rem; }
.fl img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-slide .info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.vs-slide .nm { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-slide .meta { font-size: .74rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.vs-slide .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.vs-slide .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #3DDC84, #7DF0B0); }
.vs-slide.on .bar i { width: var(--w); transition: width .9s cubic-bezier(.16,.84,.3,1) .15s; }
.vs-slide .rank { font-size: 1.3rem; font-weight: 800; color: rgba(255,255,255,.28); }
.vs-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; min-width: 0; }
.vs-fixed { display: flex; gap: 6px; flex: none; }
.vs-marq { background: transparent; border: 0; padding: 0; box-shadow: none; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.vs-marq::-webkit-scrollbar { display: none; }
.vs-track { display: flex; gap: 6px; width: max-content; flex-wrap: nowrap; }
.vs-row .chip { flex: none; white-space: nowrap; }
.vs-marq.mqon { overflow: hidden; }
.vs-marq.mqon .vs-track { animation: vsmq var(--dur, 30s) linear infinite; }
.vs-marq.mqon:hover .vs-track, .vs-marq.mqon:focus-within .vs-track { animation-play-state: paused; }
@keyframes vsmq { to { transform: translateX(calc(-50% - 3px)); } }
@media (prefers-reduced-motion: reduce) { .vs-marq.mqon { overflow-x: auto; } .vs-marq.mqon .vs-track { animation: none; } .vs-row .cpy { display: none; } }
.vs-row .chip { appearance: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); font: inherit; font-size: .74rem; cursor: pointer; transition: background .2s, border-color .2s; }
.vs-row .chip .fl { width: 22px; height: 16px; border-radius: 3px; font-size: .5rem; }
.vs-row .chip.on { background: rgba(61,220,132,.16); border-color: rgba(61,220,132,.5); color: #fff; }
.vs-row .chip:focus-visible { outline: 2px solid #7DF0B0; outline-offset: 2px; }
@media (max-width: 720px) { .vstat { grid-template-columns: 1fr; padding: 14px; } }
@media (max-width: 380px) { .reel { font-size: 1.2rem; } .vs-st { padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .vstat .reel .d i { transform: translateY(calc(var(--n) * -1em)) !important; transition: none !important; } .vs-slide, .vs-slide .bar i { transition: none !important; } .vs-slide .bar i { width: var(--w) !important; } .vs-live i { animation: none; } }
.btn.btn-danger.btn-lg { background: var(--danger); color: #fff; border-color: transparent; }
.preorder-tag { color: #B45309; background: #FEF3C7; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
:root[data-theme="dark"] .preorder-tag { color: #FCD34D; background: rgba(252,211,77,.14); }

/* Dish photos: tap to open the full-screen viewer */
.gallery .main { cursor: zoom-in; }
.gallery .main::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,23,42,.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat; pointer-events: none; }
.gallery .main.no-photo { cursor: default; } .gallery .main.no-photo::after { display: none; }
.thumbs { padding: 2px; scroll-snap-type: x proximity; }
.thumbs button { width: 72px; height: 72px; flex: none; scroll-snap-align: start; background: #fff; }
.thumbs button.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(0,0,0,.04); }
.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(8,10,16,.94); display: flex; flex-direction: column; animation: lbIn .18s ease-out; }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb.zoomed .lb-stage { cursor: grab; }
.lb-stage img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 56px 12px 8px; box-sizing: border-box; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .12s ease-out; will-change: transform; }
.lb-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-n { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding-bottom: 4px; }
.lb-n.prev { left: calc(10px + env(safe-area-inset-left)); } .lb-n.next { right: calc(10px + env(safe-area-inset-right)); }
.lb-x:hover, .lb-n:hover { background: rgba(255,255,255,.26); }
.lb-c { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; opacity: .85; pointer-events: none; }
.lb-th { display: flex; gap: 8px; justify-content: center; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); overflow-x: auto; }
.lb-th button { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; opacity: .6; }
.lb-th button.on { border-color: #fff; opacity: 1; }
.lb-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .lb-n { display: none; } }
@media (prefers-reduced-motion: reduce) { .lb { animation: none; } }
