/*
 * Storefront design system — shared by all themes.
 *
 * Themes never ship their own component CSS: ThemeStyle writes the tokens below (colours,
 * radius, shadow, font) on :root and adds body classes:
 *   theme-*  tone-light|tone-dark  pd-list|pd-grid2|pd-grid3  ratio-square|portrait|landscape
 *   card-elevated|outline|flat  header-surface|brand|dark
 * Mobile-first and RTL-native. Phones use a 14px base so everything scales down together.
 */

/* ============================================================ 1. tokens */
:root {
  --brand: #0d7a68; --brand-ink: #fff; --accent: #f2a516; --accent-ink: #141414;
  --bg: #f5f7f8; --surface: #fff; --soft: #f1f4f5;
  --ink: #16191c; --ink-2: #4a545a; --muted: #7b868c; --line: #e6eaec;
  --r-lg: 18px; --r-md: 12px; --r-sm: 8px; --r-btn: 999px;
  --shadow: 0 1px 3px rgba(20, 25, 28, .06), 0 1px 2px rgba(20, 25, 28, .04);
  --font: system-ui, sans-serif;
  /* derived */
  --brand-soft: color-mix(in srgb, var(--brand) 12%, var(--surface));
  --brand-tint: color-mix(in srgb, var(--brand) 6%, var(--surface));
  --ok-bg: #e6f5ec; --ok-ink: #17703a; --warn-bg: #fff3df; --warn-ink: #8a5300; --err-bg: #fdecec; --err-ink: #b42318; --info-bg: #e9f1fd; --info-ink: #174a95;
  --fs-2xs: .6875rem; --fs-xs: .75rem; --fs-sm: .8125rem; --fs-base: .9375rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.3rem; --fs-2xl: 1.6rem;
  --h-sm: 2.25rem; --h-md: 2.75rem; --h-lg: 3.1rem;
  --gap: 1rem; --header-h: 64px;
}
.tone-dark {
  --ok-bg: #12301f; --ok-ink: #7fd9a2; --warn-bg: #3a2a0f; --warn-ink: #f5c26b; --err-bg: #3a1615; --err-ink: #ff8f86; --info-bg: #142a45; --info-ink: #8db8f5;
  color-scheme: dark;
}
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (max-width: 719px) { html { font-size: 14px; } :root { --gap: .75rem; } }

/* ============================================================ 2. base */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-base); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }
[dir="ltr"] .icon-flip-ltr { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1rem; }
@media (max-width: 719px) { .wrap { padding-inline: .85rem; } }
.muted { color: var(--muted); } .small { font-size: var(--fs-sm); } .xsmall { font-size: var(--fs-xs); } .center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.stack > * + * { margin-top: var(--gap); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .icon { width: 2.6rem; height: 2.6rem; margin: 0 auto .6rem; }

/* ============================================================ 3. controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: var(--h-md); padding: .5rem 1.1rem; border-radius: var(--r-btn); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-base); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(.96); }
.btn-block { width: 100%; }
.btn-sm { min-height: var(--h-sm); padding: .3rem .85rem; font-size: var(--fs-sm); }
.btn-lg { min-height: var(--h-lg); font-size: var(--fs-md); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.field label, .label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.field label.required::after { content: " *"; color: var(--err-ink); }
.input, .select, .textarea { width: 100%; min-height: var(--h-md); padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-md); font: inherit; font-size: var(--fs-base); background: var(--surface); color: var(--ink); }
.textarea { min-height: 72px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.error { color: var(--err-ink); font-size: var(--fs-sm); }
.hint { color: var(--muted); font-size: var(--fs-xs); }
.check { display: flex; gap: .55rem; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.alert { padding: .7rem .9rem; border-radius: var(--r-md); margin: .9rem 0; font-size: var(--fs-sm); display: flex; gap: .55rem; align-items: flex-start; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); } .alert-error { background: var(--err-bg); color: var(--err-ink); }
.alert-info { background: var(--info-bg); color: var(--info-ink); } .alert-warning { background: var(--warn-bg); color: var(--warn-ink); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 700; background: var(--soft); color: var(--ink-2); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-danger { background: var(--err-bg); color: var(--err-ink); }
.card { background: var(--surface); border-radius: var(--r-lg); }
.card-body { padding: 1rem; }
.card-elevated .card { box-shadow: var(--shadow); }
.card-outline .card, .card-flat .card { border: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-btn); overflow: hidden; background: var(--surface); direction: ltr; }
.qty button { width: 2.5rem; height: var(--h-md); border: 0; background: transparent; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.qty input { width: 2.4rem; text-align: center; border: 0; font: inherit; font-weight: 800; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.grid-2c { display: grid; gap: 0 .8rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2c { grid-template-columns: 1fr 1fr; } }
.choice-list label { display: flex; gap: .6rem; align-items: center; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r-md); margin-bottom: .5rem; cursor: pointer; background: var(--surface); }
.choice-list input { accent-color: var(--brand); width: 18px; height: 18px; }
.choice-list label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

/* ============================================================ 4. header */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: var(--fs-sm); padding: .4rem 1rem; }
.s-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); color: var(--ink); }
.header-brand .s-header { background: var(--brand); color: var(--brand-ink); border-bottom-color: transparent; }
.header-dark .s-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.s-header .wrap { display: flex; align-items: center; gap: .8rem; min-height: 62px; }
.s-brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: var(--fs-md); color: inherit; min-width: 0; }
.s-brand img, .s-brand .mark { width: 36px; height: 36px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.s-brand .mark { background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.s-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-actions { margin-inline-start: auto; display: flex; gap: .2rem; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.icon-btn .count, .tabbar .count { position: absolute; top: 1px; inset-inline-end: -2px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: var(--fs-2xs); font-weight: 800; display: grid; place-items: center; padding-inline: 4px; border: 2px solid var(--surface); }
.header-brand .icon-btn .count { background: var(--brand-ink); color: var(--brand); border-color: var(--brand); }

/* order-type button */
.ot-btn { display: flex; align-items: center; gap: .55rem; flex: 1 1 auto; max-width: 420px; min-height: 44px; margin-inline: auto; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); text-align: start; }
.ot-btn:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.ot-btn-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.ot-btn-icon .icon { width: 1rem; height: 1rem; }
.ot-btn-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ot-btn-top { font-size: var(--fs-2xs); color: var(--muted); }
.ot-btn-main { font-size: var(--fs-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-btn > .icon:last-child { color: var(--muted); width: 1rem; height: 1rem; }

/* ============================================================ 5. store hero card */
.store-hero { padding: 1rem 0 .25rem; }
.store-hero-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.card-elevated .store-hero-card { box-shadow: var(--shadow); }
.card-outline .store-hero-card, .card-flat .store-hero-card { border: 1px solid var(--line); }
.store-hero-cover img { width: 100%; height: 180px; object-fit: cover; }
.store-hero-body { display: flex; gap: .85rem; align-items: flex-start; padding: 0 1rem .95rem; }
.store-hero-body.no-cover { padding-top: .95rem; }
.store-hero-logo { width: 68px; height: 68px; border-radius: var(--r-lg); object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); margin-top: -26px; background: var(--surface); flex-shrink: 0; }
.store-hero-body.no-cover .store-hero-logo { margin-top: 0; }
.store-hero-logo.is-letter { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: var(--fs-xl); }
.store-hero-text { flex: 1; min-width: 0; padding-top: .5rem; }
.store-hero-text h1 { font-size: var(--fs-lg); margin: 0 0 .1rem; }
.store-hero-text p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.store-meta .chip { background: var(--soft); color: var(--ink-2); padding: .15rem .6rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.store-meta .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.store-meta .chip.is-open { background: var(--ok-bg); color: var(--ok-ink); }
.store-meta .chip.is-shut { background: var(--err-bg); color: var(--err-ink); }
.banner { border-radius: var(--r-lg); overflow: hidden; position: relative; display: block; }
.banner img { width: 100%; aspect-ratio: 3/1; object-fit: cover; }
.banner .caption { position: absolute; inset-inline-start: 1rem; bottom: 1rem; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* ============================================================ 6. menu: categories & sections */
.section { padding-block: 1.4rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.section-head h2 { font-size: var(--fs-md); margin: 0; }
.sticky-cats { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); padding: .55rem 0; }
.cat-scroller { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-scroller a { flex-shrink: 0; padding: .4rem .9rem; border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: var(--fs-sm); }
.cat-scroller a.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.menu-section { scroll-margin-top: calc(var(--header-h) + 56px); }

/* ============================================================ 7. products: list (rows) and grid (cards) */
.menu-items { display: grid; gap: .6rem; }
.pd-list .menu-items { grid-template-columns: 1fr; }
@media (min-width: 900px) { .pd-list .menu-items { grid-template-columns: 1fr 1fr; gap: .75rem; } }
.pd-grid2 .menu-items, .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pd-grid3 .menu-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 720px) { .pd-grid2 .menu-items, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; } .pd-grid3 .menu-items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; } }
@media (min-width: 1024px) { .pd-grid2 .menu-items, .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pd-grid3 .menu-items { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid-products { display: grid; gap: .6rem; }

/* row */
.p-row { position: relative; display: flex; gap: .75rem; align-items: stretch; padding: .65rem; background: var(--surface); border-radius: var(--r-lg); color: var(--ink); }
.card-elevated .p-row, .card-elevated .p-card { box-shadow: var(--shadow); }
.card-outline .p-row, .card-outline .p-card { border: 1px solid var(--line); }
.card-flat .p-row { border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; background: transparent; }
.p-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-row .name { font-weight: 700; font-size: var(--fs-base); line-height: 1.35; }
.p-row .desc { color: var(--muted); font-size: var(--fs-xs); margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-row .price { margin-top: auto; padding-top: .35rem; }
.p-row .img { position: relative; width: 88px; height: 88px; border-radius: var(--r-md); overflow: hidden; background: var(--soft); flex-shrink: 0; display: grid; place-items: center; color: var(--muted); }
.p-row .img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) { .p-row .img { width: 104px; height: 104px; } }

/* card */
.p-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); color: var(--ink); }
.p-card .img { position: relative; aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.ratio-portrait .p-card .img { aspect-ratio: 4 / 5; }
.ratio-landscape .p-card .img { aspect-ratio: 4 / 3; }
.p-card .img img { width: 100%; height: 100%; object-fit: cover; }
.p-card .body { padding: .55rem .65rem .65rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.p-card .name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .desc { color: var(--muted); font-size: var(--fs-xs); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.p-card .price { margin-top: auto; padding-top: .2rem; font-size: var(--fs-sm); }
.pd-grid3 .p-card .body { padding: .45rem .5rem .55rem; }
.pd-grid3 .p-card .name { font-size: var(--fs-xs); }
.pd-grid3 .p-card .desc { display: none; }
.pd-grid3 .p-card .price { font-size: var(--fs-xs); }

/* shared bits */
.price { font-weight: 800; color: var(--ink); font-size: var(--fs-sm); }
.price .from { font-weight: 500; color: var(--muted); font-size: .9em; }
.price s { color: var(--muted); font-weight: 500; font-size: .85em; margin-inline-start: .3rem; }
.add-pill { position: absolute; inset-inline-end: .4rem; bottom: .4rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); color: var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.add-pill .icon { width: 1rem; height: 1rem; stroke-width: 2.6; }
.pd-grid3 .add-pill { width: 26px; height: 26px; inset-inline-end: .3rem; bottom: .3rem; }
.sold-badge { position: absolute; inset-inline-start: .4rem; top: .4rem; padding: .1rem .5rem; border-radius: 99px; font-size: var(--fs-2xs); font-weight: 800; background: var(--err-bg); color: var(--err-ink); }
.p-row.unavailable, .p-card.unavailable { opacity: .55; }

/* ============================================================ 8. order-type picker (dialog / page) */
.ot-dialog, .p-dialog { padding: 0; border: 0; overflow: hidden; color: var(--ink); background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.ot-dialog { width: min(560px, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); border-radius: var(--r-lg); }
.ot-dialog[open], .p-dialog[open] { display: flex; flex-direction: column; }
.ot-dialog::backdrop, .p-dialog::backdrop { background: rgba(10, 12, 14, .55); }
.ot-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem .1rem 1rem; }
.ot-dialog-head h2 { font-size: var(--fs-md); margin: 0; }
.ot-dialog .ot { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ot-dialog .ot-panels { overflow-y: auto; padding-inline: .8rem; flex: 1; }
.ot-radio { position: absolute; opacity: 0; pointer-events: none; }
.ot-tabs { display: flex; gap: .35rem; padding: .55rem .8rem; overflow-x: auto; scrollbar-width: none; }
.ot-tabs::-webkit-scrollbar { display: none; }
.ot-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 36px; padding: .3rem .8rem; border-radius: var(--r-md); background: var(--soft); color: var(--ink-2); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.ot-tab .icon { width: 1rem; height: 1rem; }
.ot-panel, .ot-submit { display: none; }
.ot-branches { display: grid; gap: .5rem; padding-bottom: .5rem; }
.ot-branch { display: flex; align-items: center; gap: .3rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding-inline-end: .35rem; }
.ot-branch-main { flex: 1; display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; cursor: pointer; min-width: 0; }
.ot-branch-main input { position: absolute; opacity: 0; pointer-events: none; }
.ot-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); color: transparent; flex-shrink: 0; }
.ot-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.ot-branch-main input:checked + .ot-check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.ot-branch-main input:focus-visible + .ot-check { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.ot-branch:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.ot-branch-text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.ot-branch-text strong { font-size: var(--fs-sm); }
.ot-branch-text .small { font-size: var(--fs-xs); }
.ot-status { align-self: flex-start; margin-top: .15rem; font-size: var(--fs-2xs); font-weight: 700; padding: .02rem .45rem; border-radius: 6px; }
.ot-status.is-open { background: var(--ok-bg); color: var(--ok-ink); }
.ot-status.is-later { background: var(--warn-bg); color: var(--warn-ink); }
.ot-status.is-shut { background: var(--err-bg); color: var(--err-ink); }
.ot-branch.is-closed { opacity: .6; }
.ot-branch.is-closed .ot-branch-main { cursor: not-allowed; }
.ot-branch-actions { display: flex; align-items: center; }
.ot-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); cursor: pointer; list-style: none; }
.ot-icon .icon { width: 1.05rem; height: 1.05rem; }
.ot-icon::-webkit-details-marker { display: none; }
.ot-icon:hover { background: var(--soft); color: var(--ink); }
.ot-hours { position: relative; }
.ot-hours[open] > .ot-icon { background: var(--soft); color: var(--brand); }
.ot-hours-pop { position: absolute; z-index: 5; inset-inline-end: 0; top: calc(100% + 4px); width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: .55rem .7rem; display: grid; gap: .1rem; }
.ot-hours-row { display: flex; justify-content: space-between; gap: .5rem; font-size: var(--fs-xs); padding: .15rem .3rem; border-radius: 6px; }
.ot-hours-row.is-today { background: var(--brand-soft); font-weight: 700; }
.ot-hours-dialog { width: min(360px, calc(100% - 2rem)); margin: auto; border-radius: var(--r-lg); }
.ot-hours-body { padding: .3rem .9rem 1rem; }
.ot-hours-body > strong { display: none; }
.ot-hours-body .ot-hours-row { font-size: var(--fs-sm); padding: .4rem .55rem; }
.ot-location { padding-bottom: .5rem; }
.ot-location .ot-branches { margin-bottom: .7rem; }
.ot-location:has(input[name$="[address_id]"]:checked:not([value=new])) [data-ot-newloc] { display: none; }
.ot-locate-status { min-height: 1.3em; margin: .35rem 0 .5rem; color: var(--brand); font-size: var(--fs-xs); }
.ot-error { margin: .35rem .8rem 0; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--err-bg); color: var(--err-ink); font-size: var(--fs-sm); }
.ot-footer { padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.ot-submit { min-height: var(--h-md); font-size: var(--fs-base); border-radius: var(--r-md); }
.wrap > .ot .ot-footer { position: sticky; bottom: 0; margin-inline: -1rem; }
#ot-m-pickup:checked ~ .ot-tabs .ot-tab-pickup, #ot-m-curbside:checked ~ .ot-tabs .ot-tab-curbside, #ot-m-drive_thru:checked ~ .ot-tabs .ot-tab-drive_thru,
#ot-m-delivery:checked ~ .ot-tabs .ot-tab-delivery, #ot-m-dine_in:checked ~ .ot-tabs .ot-tab-dine_in,
#ot-m-booking:checked ~ .ot-tabs .ot-tab-booking, #ot-m-on_site:checked ~ .ot-tabs .ot-tab-on_site { background: var(--brand); color: var(--brand-ink); }
#ot-m-pickup:checked ~ .ot-panels .ot-panel-pickup, #ot-m-curbside:checked ~ .ot-panels .ot-panel-curbside, #ot-m-drive_thru:checked ~ .ot-panels .ot-panel-drive_thru,
#ot-m-delivery:checked ~ .ot-panels .ot-panel-delivery, #ot-m-dine_in:checked ~ .ot-panels .ot-panel-dine_in,
#ot-m-booking:checked ~ .ot-panels .ot-panel-booking, #ot-m-on_site:checked ~ .ot-panels .ot-panel-on_site { display: block; }
#ot-m-pickup:checked ~ .ot-footer .ot-submit-pickup, #ot-m-curbside:checked ~ .ot-footer .ot-submit-curbside, #ot-m-drive_thru:checked ~ .ot-footer .ot-submit-drive_thru,
#ot-m-delivery:checked ~ .ot-footer .ot-submit-delivery, #ot-m-dine_in:checked ~ .ot-footer .ot-submit-dine_in,
#ot-m-booking:checked ~ .ot-footer .ot-submit-booking, #ot-m-on_site:checked ~ .ot-footer .ot-submit-on_site { display: inline-flex; }
.ot-radio:focus-visible ~ .ot-tabs { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: -3px; border-radius: 12px; }

/* ============================================================ 9. product sheet (dialog + page) */
.p-dialog { width: min(520px, calc(100% - 1.5rem)); max-height: calc(100dvh - 2rem); border-radius: var(--r-lg); }
.p-dialog-close { position: absolute; top: .6rem; inset-inline-start: .6rem; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.p-dialog-loading { display: grid; place-items: center; min-height: 240px; color: var(--muted); }
.psheet { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.psheet.in-dialog .psheet-scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.psheet-media { background: var(--soft); }
.psheet-media img[data-main-image] { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.psheet-noimg { aspect-ratio: 16 / 6; display: grid; place-items: center; color: var(--muted); }
.psheet-noimg .icon { width: 2rem; height: 2rem; }
.psheet-thumbs { display: flex; gap: .4rem; padding: .45rem .9rem; overflow-x: auto; background: var(--surface); }
.psheet-thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; width: 52px; height: 52px; flex-shrink: 0; cursor: pointer; background: none; }
.psheet-thumbs button.active { border-color: var(--brand); }
.psheet-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.psheet-body { padding: .9rem 1rem .4rem; }
.psheet-title { display: flex; justify-content: space-between; align-items: flex-start; gap: .9rem; }
.psheet-title h1, .psheet-title h2 { font-size: var(--fs-lg); margin: 0; }
.psheet-price { white-space: nowrap; font-size: var(--fs-md); }
.psheet-price s { color: var(--muted); font-size: .85em; margin-inline-start: .3rem; }
.psheet-desc { color: var(--ink-2); white-space: pre-line; margin: .4rem 0 0; font-size: var(--fs-sm); }
.og { border: 0; margin: 1rem -1rem 0; padding: .9rem 1rem 0; border-top: 6px solid var(--soft); }
.og-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.og-head legend, .og-head .legend { font-weight: 800; font-size: var(--fs-base); padding: 0; float: inline-start; }
.og-badge { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-2xs); font-weight: 800; padding: .12rem .5rem; border-radius: 999px; white-space: nowrap; }
.og-badge.is-req { background: var(--warn-bg); color: var(--warn-ink); }
.og-badge.is-opt { background: var(--soft); color: var(--muted); }
.og-done { display: none; }
.og-done .icon { width: .9em; height: .9em; stroke-width: 3; }
.og.is-satisfied .og-badge.is-req { background: var(--ok-bg); color: var(--ok-ink); }
.og.is-satisfied .og-badge.is-req .og-done { display: inline-flex; }
.og-rule { margin: .15rem 0 .6rem; font-size: var(--fs-xs); color: var(--muted); clear: both; }
.og-count { color: var(--brand); font-weight: 700; margin-inline-start: .3rem; }
.og.is-invalid .og-rule, .og-error { color: var(--err-ink); }
.og-error { margin: .45rem 0 0; font-size: var(--fs-sm); font-weight: 700; }
.og.is-invalid { animation: og-shake .3s; }
@keyframes og-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.og-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: .5rem; }
.og-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 62px; padding: .5rem .4rem; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; text-align: center; background: var(--surface); }
.og-tile input { position: absolute; opacity: 0; pointer-events: none; }
.og-tile-name { font-weight: 800; font-size: var(--fs-sm); }
.og-tile-price { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; }
.og-tile:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.og-tile:has(input:checked) .og-tile-price { color: var(--brand); }
.og-tile:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.og-tile.is-disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.og-list { display: grid; }
.og-row { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .4rem 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.og-row:last-child { border-bottom: 0; }
.og-row > input { position: absolute; opacity: 0; pointer-events: none; }
.og-row-name { flex: 1; font-weight: 600; font-size: var(--fs-sm); }
.og-row-price { color: var(--ink-2); font-size: var(--fs-xs); white-space: nowrap; }
.og-mark { width: 21px; height: 21px; border: 2px solid color-mix(in srgb, var(--ink) 25%, var(--surface)); display: grid; place-items: center; flex-shrink: 0; color: transparent; background: var(--surface); }
.og-mark.is-radio { border-radius: 50%; }
.og-mark.is-check { border-radius: 6px; }
.og-mark .icon { width: 13px; height: 13px; stroke-width: 3.2; }
.og-row > input:checked + .og-mark { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.og-row > input:checked + .og-mark.is-radio { background: var(--surface); box-shadow: inset 0 0 0 5px var(--brand); }
.og-row > input:focus-visible + .og-mark { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
.og-row:has(input:checked) .og-row-name, .og-qty.is-picked .og-row-name { font-weight: 800; }
.og-row.is-disabled, .og-row.is-maxed { opacity: .45; cursor: not-allowed; }
.og-qty { cursor: default; }
.og-stepper { display: inline-flex; align-items: center; gap: .1rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px; direction: ltr; }
.og-stepper button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.og-stepper button .icon { width: .9rem; height: .9rem; }
.og-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.og-stepper input { width: 24px; text-align: center; border: 0; font: inherit; font-size: var(--fs-sm); font-weight: 800; background: transparent; color: var(--ink); -moz-appearance: textfield; }
.og-stepper input::-webkit-outer-spin-button, .og-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.og-notes .textarea { margin-top: .5rem; min-height: 56px; }
.psheet-footer { position: sticky; bottom: 0; z-index: 2; background: var(--surface); border-top: 1px solid var(--line); padding: .55rem .9rem calc(.65rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0, 0, 0, .05); }
.psheet-summary { margin: 0 0 .4rem; font-size: var(--fs-xs); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psheet-summary:empty { display: none; }
.psheet-alert { margin: 0 0 .45rem; padding: .4rem .65rem; border-radius: var(--r-sm); background: var(--err-bg); color: var(--err-ink); font-size: var(--fs-sm); font-weight: 700; }
.psheet-actions { display: flex; gap: .55rem; align-items: center; }
.psheet-add { flex: 1; justify-content: space-between; border-radius: var(--r-md); min-height: var(--h-md); padding-inline: 1rem; font-size: var(--fs-base); }
.psheet-total { font-weight: 800; }
.psheet-page { max-width: 720px; padding-bottom: 2rem; }
.psheet-page .psheet { border-radius: var(--r-lg); overflow: hidden; margin-top: .8rem; background: var(--surface); }
.card-outline .psheet-page .psheet { border: 1px solid var(--line); }

/* ============================================================ 10. cart, checkout, tracking */
.layout-2 { display: grid; gap: 1rem; padding: 1.2rem 0 2.5rem; }
@media (min-width: 900px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .layout-2 aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.line { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.line:last-of-type { border-bottom: 0; }
.line .img { width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; background: var(--soft); flex-shrink: 0; }
.line .img img { width: 100%; height: 100%; object-fit: cover; }
.line .info { flex: 1; min-width: 0; font-size: var(--fs-sm); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: .4rem; font-size: var(--fs-sm); }
.totals .grand { font-weight: 800; font-size: var(--fs-md); border-top: 1px solid var(--line); padding-top: .5rem; }
.saved-addr { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--r-md); font-size: var(--fs-sm); }
.signin-hint { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; margin-bottom: .9rem; border-radius: var(--r-md); background: var(--brand-tint); color: var(--ink); font-size: var(--fs-sm); }
.signin-hint > span { flex: 1; display: flex; flex-direction: column; }
.signin-hint > .icon:first-child { color: var(--brand); width: 1.3em; height: 1.3em; }
.track { list-style: none; padding: 0; margin: 1rem 0; }
.track li { position: relative; padding: 0 0 1rem; padding-inline-start: 2rem; color: var(--muted); font-size: var(--fs-sm); }
.track li::before { content: ""; position: absolute; inset-inline-start: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::before { display: none; }
.track li .dot { position: absolute; inset-inline-start: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.track li.done { color: var(--ink); }
.track li.done .dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.track li.current { color: var(--ink); font-weight: 800; }
.track li.current .dot { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }

/* ============================================================ 11. account, sign-in, wallet */
.auth-narrow { max-width: 420px; }
.auth-card h1 { font-size: var(--fs-lg); margin: .55rem 0 .25rem; }
.auth-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); }
.auth-icon .icon { width: 22px; height: 22px; }
.phone-input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; direction: ltr; background: var(--surface); }
.phone-input:focus-within { border-color: var(--brand); }
.phone-cc { display: flex; align-items: center; padding: 0 .7rem; background: var(--soft); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; border-inline-end: 1px solid var(--line); }
.phone-input .input { border: 0; border-radius: 0; }
.otp-input { font-size: 1.4rem; letter-spacing: .55em; text-align: center; font-weight: 800; }
.acct-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.acct-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: var(--fs-lg); flex-shrink: 0; }
.acct-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acct-who strong { font-size: var(--fs-md); }
.acct-wallet-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: var(--fs-sm); white-space: nowrap; }
.acct-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .8rem; color: var(--ink-2); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.acct-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.acct-h2 { font-size: var(--fs-md); margin: 1.2rem 0 .55rem; }
.acct-orders { display: grid; gap: .6rem; }
.acct-order { overflow: hidden; }
.acct-order-main { display: block; padding: .8rem .9rem .5rem; color: var(--ink); font-size: var(--fs-sm); }
.acct-order-items { margin: .3rem 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-total { color: var(--ink); }
.acct-order-actions { display: flex; gap: .45rem; padding: .55rem .9rem .75rem; border-top: 1px dashed var(--line); }
.acct-status { font-size: var(--fs-2xs); font-weight: 800; padding: .1rem .5rem; border-radius: 999px; }
.acct-status.is-live { background: var(--warn-bg); color: var(--warn-ink); }
.acct-status.is-done { background: var(--ok-bg); color: var(--ok-ink); }
.acct-status.is-off { background: var(--soft); color: var(--muted); }
.acct-addresses { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.acct-edit[open] { flex-basis: 100%; }
.wallet-card { display: flex; flex-direction: column; gap: .15rem; padding: 1.15rem 1.25rem; border-radius: var(--r-lg); color: var(--brand-ink); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 62%, #000)); box-shadow: var(--shadow); }
.wallet-card strong { font-size: 1.75rem; line-height: 1.2; }
.wallet-card .xsmall { opacity: .85; }
.wallet-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.wallet-row:last-child { border-bottom: 0; }
.wallet-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.wallet-ic.is-in { background: var(--ok-bg); color: var(--ok-ink); }
.wallet-ic.is-out { background: var(--err-bg); color: var(--err-ink); }
.wallet-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wallet-in { color: var(--ok-ink); } .wallet-out { color: var(--err-ink); }
.mark-sm { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: var(--fs-xs); }

/* ============================================================ 12. footer, cart bar, toast, tab bar */
.s-footer { margin-top: 1.5rem; padding: 1.6rem 0 2rem; color: var(--ink-2); font-size: var(--fs-sm); background: var(--surface); border-top: 1px solid var(--line); }
.s-footer a { color: var(--ink-2); }
.s-footer .links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.powered { font-size: var(--fs-xs); color: var(--muted); margin-top: .9rem; }
.cart-fab { position: fixed; bottom: 1rem; inset-inline: 1rem; z-index: 35; display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: var(--brand-ink); border-radius: var(--r-md); padding: .7rem 1.1rem; font-weight: 800; font-size: var(--fs-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
@media (min-width: 900px) { .cart-fab { inset-inline: auto 1.5rem; width: 340px; } }
.s-toast { position: fixed; z-index: 60; inset-inline: 1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); max-width: 420px; margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem .95rem; border-radius: var(--r-md); background: var(--ink); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-weight: 700; font-size: var(--fs-sm); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .2s, transform .2s, visibility .2s; }
.s-toast.show { opacity: 1; visibility: visible; transform: none; }
.s-toast a { color: inherit; text-decoration: underline; white-space: nowrap; }
.tabbar { display: none; }

/* ============================================================ 13. motion (respecting user preference) */
@media (prefers-reduced-motion: no-preference) {
  main#main { animation: page-in .2s ease-out; }
  @keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .p-row, .p-card, .acct-order, .og-tile, .ot-branch, .btn, .tabbar a, .cat-scroller a { transition: transform .12s ease, background-color .15s, border-color .15s, color .15s; }
  .p-row:active, .p-card:active, .acct-order:active, .og-tile:active, .ot-branch:active, .btn:active { transform: scale(.98); }
  .p-dialog[open], .ot-dialog[open] { animation: sheet-in .24s cubic-bezier(.2, .8, .2, 1); }
  @keyframes sheet-in { from { transform: translateY(22px); opacity: .4; } to { transform: none; opacity: 1; } }
  .og-tile:hover, .ot-branch:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
}

/* ============================================================ 14. phones: app layout */
@media (max-width: 719px) {
  .s-header .wrap { flex-wrap: wrap; min-height: 52px; padding-block: .45rem; row-gap: .4rem; }
  .s-brand { font-size: var(--fs-base); }
  .s-brand img, .s-brand .mark { width: 32px; height: 32px; }
  .s-actions .m-hide { display: none; }
  .ot-btn { order: 3; flex-basis: 100%; max-width: none; min-height: 40px; padding: .25rem .6rem; }
  .ot-btn-icon { width: 26px; height: 26px; }
  .section { padding-block: .9rem; }
  .store-hero { padding-top: .7rem; }
  .store-hero-cover img { height: 128px; }
  .store-hero-logo { width: 58px; height: 58px; margin-top: -22px; }
  .store-hero-body { padding: 0 .85rem .85rem; gap: .7rem; }
  .ot-dialog, .p-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .ot-dialog { max-height: 88dvh; }
  .p-dialog { max-height: 94dvh; }
  .ot-dialog::before, .p-dialog::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: .45rem auto 0; flex-shrink: 0; }
  body.has-tabbar { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: .25rem .2rem calc(.25rem + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem 0; color: var(--muted); font-size: var(--fs-2xs); font-weight: 700; }
  .tabbar a .icon { width: 1.3rem; height: 1.3rem; }
  .tabbar a.active { color: var(--brand); }
  .tabbar a.active .icon { stroke-width: 2.4; }
  .tabbar .tab-ic { position: relative; display: inline-flex; }
  .tabbar .count { top: -5px; inset-inline-end: -9px; }
  body.has-tabbar .cart-fab { bottom: calc(68px + env(safe-area-inset-bottom)); inset-inline: .85rem; padding: .65rem 1rem; }
  body.has-tabbar .s-toast { bottom: calc(128px + env(safe-area-inset-bottom)); }
  .s-footer { margin-top: .8rem; padding: 1.1rem 0 1rem; font-size: var(--fs-xs); }
  .layout-2 { padding-top: .5rem; }
}

/* featured: horizontal carousel in every display mode */
.menu-items.featured-items { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .2rem; }
.menu-items.featured-items::-webkit-scrollbar { display: none; }
.featured-items .p-card { flex: 0 0 42%; scroll-snap-align: start; }
@media (min-width: 720px) { .featured-items .p-card { flex-basis: 210px; } }
.featured-items .p-card .name { font-size: var(--fs-sm); }
.featured-items .p-card .desc { display: none; }
.ot-dialog-head h2:focus { outline: none; }
.ot-dialog-head .icon-btn { width: 34px; height: 34px; background: var(--soft); }

/* driver on the order tracking page */
.delivery-box { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; padding: .7rem .8rem; border-radius: var(--r-md); background: var(--soft); border: 1px solid var(--line); }
.delivery-box .grow { flex: 1; display: grid; gap: .1rem; min-width: 0; }
.delivery-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); flex: none; }
.delivery-code { text-align: center; padding: .25rem .6rem; border-radius: var(--r-sm); background: var(--surface); border: 1px dashed var(--brand); }
.delivery-code small { display: block; font-size: var(--fs-2xs, .7rem); color: var(--muted); }
.delivery-code b { font-size: 1.25rem; letter-spacing: .2em; }

.btn-danger { background: #c42b2b; border-color: #c42b2b; color: #fff; }
.btn-danger:hover { background: #a92222; }

/* booking: who + duration on checkout, appointment on tracking */
.booking-pick .chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.booking-pick .chip { cursor: pointer; font-family: inherit; padding: .35rem .8rem; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm, .85rem); font-weight: 600; text-decoration: none; }
.booking-pick .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.booking-box { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; padding: .7rem .8rem; border-radius: var(--r-md); background: var(--soft); border: 1px solid var(--line); }
.booking-box .grow { flex: 1; display: grid; gap: .1rem; }
