/* Customer layouts use the shared palette in theme.css. */
* { box-sizing: border-box; }
:root:not([data-theme='light']) { --paper: #111111; --surface: #1b1b1b; --soft: #272727; --surface-raised: #2b2b2b; --line: #303030; --glass: #1b1b1bf5; --muted: #b7b7b7; --accent: #ff5757; --accent-fill: #f21d2b; --accent-soft: #341d20; --card-depth: 0 3px 7px #0006, 0 15px 30px #0008; --control-depth: inset 0 1px 0 #ffffff12, 0 5px 14px #0004; --edge-light: #ffffff38; }
:root[data-theme='light'] { --card-depth: 0 3px 7px #23191412, 0 15px 30px #2319141f; --control-depth: inset 0 1px 0 #fff, 0 5px 14px #23191412; --edge-light: #ffffffa6; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .35; }
button, input, textarea { touch-action: manipulation; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { width: 20px; height: 20px; display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
h1,h2,h3,p { margin-top: 0; }
.menu-shell { max-width: 1000px; min-height: 100dvh; margin: auto; padding: 0 28px 100px; }
.menu-topbar { display: flex; justify-content: space-between; align-items: flex-start; padding: 36px 0 30px; gap: 12px; }
.restaurant-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.restaurant-logo { width: 58px; height: 58px; flex: 0 0 58px; padding: 4px; object-fit: contain; border-radius: 11px; background: #fff; }
.restaurant-heading { min-width: 0; }
.restaurant-heading h1 { margin: 0; font-size: 18px; font-weight: 350; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.table-label { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 550; color: var(--accent); }
.table-label svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .restaurant-logo { width: 50px; height: 50px; flex-basis: 50px; } }
.menu-actions { display: flex; gap: 8px; padding-top: 4px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: var(--control-depth); flex-shrink: 0; }
.icon-button svg { width: 19px; height: 19px; }
.basket-button { position: relative; }
.basket-count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; border-radius: 20px; display: grid; place-items: center; padding: 0 3px; background: var(--accent-fill); color: white; font-size: 10px; }
.search-box { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--line); border-radius: 30px; color: var(--accent); background: var(--surface); box-shadow: var(--control-depth); }
.search-box svg { width: 18px; height: 18px; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: var(--muted); font-weight: 350; }
.search-box:focus-within { border-color: var(--accent); }
.top-sellers { max-width: 620px; margin: 27px 0 8px; }
.top-sellers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.top-sellers-head h2 { margin: 0; font-size: clamp(14px, 4.1vw, 18px); font-weight: 600; white-space: nowrap; }
.top-sellers-head h2 small { color: var(--muted); font-size: .72em; font-weight: 450; }
.top-sellers-head > span { margin: 0; color: var(--muted); font-size: 11px; }
.top-sellers-head > span { white-space: nowrap; }
.top-sellers-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 4); gap: 8px; overflow-x: auto; padding: 2px 3px 28px; margin: -1px -3px -23px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.top-sellers-track::-webkit-scrollbar { display: none; }
.top-seller-card { position: relative; aspect-ratio: .91; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #ffffff2a; border-radius: 13px; background: #292929; color: #fff; text-align: left; scroll-snap-align: start; box-shadow: 0 5px 15px #0005, 0 12px 23px #0003; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
:root[data-theme='light'] .top-seller-card { box-shadow: 0 5px 15px #23191418, 0 12px 23px #23191412; }
.top-seller-card:hover { border-color: var(--accent-fill); }
.top-seller-image { position: absolute; inset: 0; background-repeat: no-repeat; background-color: #292929; }
.top-seller-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #ffffff10 0%, transparent 34%, #00000008 56%, #000000b8 100%); box-shadow: inset 0 1px 0 var(--edge-light); pointer-events: none; }
.top-seller-name { position: absolute; z-index: 1; right: 7px; bottom: 8px; left: 7px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 5px #000; }
.top-sellers-empty { margin: 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; }
.category-heading { display: flex; align-items: center; justify-content: space-between; margin: 29px 0 14px; }
.category-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.category-heading svg { width: 18px; height: 18px; }
.layout-toggle { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--accent); box-shadow: var(--control-depth); }
.layout-toggle:hover { background: var(--accent-soft); border-color: var(--accent-fill); }
.layout-toggle svg { width: 18px; height: 18px; }
.category-strip { display: flex; overflow-x: auto; gap: 10px; padding: 4px 1px 14px; margin: 0 -2px 8px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-pill { display: flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; white-space: nowrap; height: 38px; padding: 3px 13px 3px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 450; box-shadow: var(--control-depth); }
.category-pill.active { color: var(--accent); border-color: var(--accent-fill); }
.category-thumb { display: block; width: 27px; height: 27px; border-radius: 50%; background-repeat: no-repeat; background-color: var(--soft); object-fit: cover; flex-shrink: 0; }
.category-symbol { width: 27px; height: 27px; display: grid; place-items: center; }
.category-symbol svg { width: 16px; height: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.product-card { position: relative; min-width: 0; aspect-ratio: .72; overflow: hidden; border: 1px solid #ffffff2a; border-radius: 17px; background: #292929; box-shadow: var(--card-depth); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card::after { content: ''; position: absolute; z-index: 3; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 var(--edge-light), inset 0 0 0 1px #ffffff08; }
.product-card:focus-within { border-color: var(--accent-fill); }
.product-card:hover { border-color: var(--accent-fill); }
.product-card-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: #fff; text-align: left; }
.product-image { position: absolute; inset: 0; display: block; background-repeat: no-repeat; background-color: #292929; }
.product-card-open::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #000000ba 0%, #00000035 28%, transparent 47%, transparent 50%, #111111d1 75%, var(--paper) 100%); pointer-events: none; }
:root[data-theme='light'] .product-grid:not([data-layout='list']) .product-card-open::after { background: linear-gradient(180deg, #000000ba 0%, #00000035 28%, transparent 47%, transparent 50%, #ffffffc9 75%, var(--paper) 100%); }
:root[data-theme='light'] .product-grid:not([data-layout='list']) .price-line strong,
:root[data-theme='light'] .product-grid:not([data-layout='list']) .card-calories { color: var(--ink); text-shadow: none; }
.card-content { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 17px; text-shadow: 0 1px 8px #000b; }
.product-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.product-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 20px; font-weight: 600; line-height: 1.2; }
.price-line { display: flex; align-items: center; gap: 3ch; min-height: 43px; margin-top: auto; padding-right: 50px; white-space: nowrap; }
.price-line strong { color: #fff; font-size: 21.6px; font-weight: 550; }
.price-line .card-calories { flex: 0 0 auto; font-size: 18px; }
.product-description { display: none; }
.card-meta-item { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.product-title-row .card-time { flex: 0 0 auto; padding-top: 2px; }
.card-meta-item svg { width: 21px; height: 21px; }
.card-calories svg { width: 16px; height: 16px; color: #6fd1ab; }
.card-time svg { color: #f3a0ab; }
.card-cart { position: absolute; z-index: 2; right: 15px; bottom: 17px; display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 0; border-radius: 50%; background: var(--accent-fill); color: #fff; box-shadow: inset 0 1px 0 #ffffff4d, 0 5px 18px #0008; }
.card-cart:hover { filter: brightness(1.1); }
.card-cart svg { width: 19.55px; height: 19.55px; }
@media (hover: hover) {
  .top-seller-card:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #0006, 0 14px 26px #0004; }
  .product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 12px #0005, 0 20px 36px #0009; }
  :root[data-theme='light'] .top-seller-card:hover { box-shadow: 0 7px 18px #23191420, 0 14px 26px #23191418; }
  :root[data-theme='light'] .product-card:hover { box-shadow: 0 6px 12px #23191418, 0 20px 36px #23191426; }
}
/* The list is deliberately compact; the photo cards remain the default visual language. */
.product-grid[data-layout='list'] { grid-template-columns: minmax(0,1fr); gap: 12px; }
.product-grid[data-layout='list'] .product-card { aspect-ratio: auto; min-height: 176px; padding: 7px; border-color: var(--line); border-radius: 14px; background: var(--surface); }
.product-grid[data-layout='list'] .product-card-open { position: relative; display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 18px; min-height: 160px; height: auto; }
.product-grid[data-layout='list'] .product-card-open::after { display: none; }
.product-grid[data-layout='list'] .product-image { position: relative; inset: auto; width: 160px; height: 160px; border-radius: 9px; }
.product-grid[data-layout='list'] .card-content { position: relative; inset: auto; padding: 6px 58px 25px 0; color: var(--ink); text-shadow: none; }
.product-grid[data-layout='list'] .product-name { font-size: 17px; }
.product-grid[data-layout='list'] .card-time { color: var(--muted); }
.product-grid[data-layout='list'] .price-line strong { color: var(--accent); font-size: 19.2px; }
.product-grid[data-layout='list'] .price-line { gap: 12px; min-height: 28px; padding-right: 0; }
.product-grid[data-layout='list'] .product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 560px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-grid[data-layout='list'] .card-meta-item { color: var(--muted); font-size: 12px; }
.product-grid[data-layout='list'] .price-line .card-calories { font-size: 16px; }
.product-grid[data-layout='list'] .card-meta-item svg { width: 15px; height: 15px; }
.product-grid[data-layout='list'] .card-cart { right: 18px; bottom: 18px; }
.menu-footnote { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.5; margin: 28px 0 10px; }
.tracking-link { display: block; margin: 15px auto 0; padding: 10px; background: none; border: 0; color: var(--accent); font-size: 12px; }
.floating-cart { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; width: min(calc(100% - 36px), 460px); min-height: 54px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border: 0; border-radius: 30px; background: var(--accent-fill); color: #fff; box-shadow: 0 6px 22px #00000020; }
.cart-left { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cart-left small { font-size: 11px; }
.floating-cart > strong { font-size: 14px; font-weight: 600; }
.floating-cart > strong > span { margin-left: 10px; }
.empty-state { grid-column: 1/-1; padding: 60px 15px; text-align: center; }
.empty-state h3 { font-size: 17px; font-weight: 550; }
.empty-state p { color: var(--muted); font-size: 13px; }
.table-warning { background: var(--accent-soft); color: var(--accent); padding: 13px; margin-bottom: 20px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
/* Product and checkout are full-height pages on a phone, focused dialogs on desktop. */
.backdrop { position: fixed; inset: 0; z-index: 40; background: #000a; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet { position: fixed; inset: 24px max(24px, calc((100vw - 500px)/2)); z-index: 41; display: grid; grid-template-rows: minmax(0,1fr) auto; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 80px #0004; }
.sheet-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.detail-image { height: 325px; background-repeat: no-repeat; background-color: var(--soft); position: relative; }
.detail-back { position: absolute; top: 20px; left: 20px; width: 42px; height: 42px; background: #fff; color: #d85343; box-shadow: 0 4px 18px #0002; }
.detail-body { position: relative; margin-top: -20px; padding: 18px 22px 28px; border-radius: 14px 14px 0 0; background: var(--paper); }
.detail-title { margin: -18px -22px 0; padding: 18px 22px 14px; border-bottom: 1px solid #ffffff12; border-radius: 14px 14px 0 0; background: #191919; text-align: center; }
:root[data-theme='light'] .detail-title { border-bottom-color: #0000000c; background: #f8f8f8; }
.detail-title h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.detail-title p { font-size: 12px; color: var(--muted); margin: 0; }
.detail-meta { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 20px; }
.detail-meta > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.detail-meta svg { width: 16px; height: 16px; }
.detail-description { font-size: 13px; font-weight: 350; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.detail-ingredients { margin: -10px 0 24px; font-size: 12px; line-height: 1.6; }
.detail-body .detail-ingredients > h3 { margin: 0 0 7px; color: var(--ink); font-size: 16px; }
.detail-ingredients > p { margin: 0 0 16px; color: var(--muted); }
.detail-ingredients > p strong { color: var(--ink); font-weight: 550; }
.detail-ingredients .option-group { margin: 0 0 16px; }
.detail-ingredients .option-group:last-child { margin-bottom: 0; }
.detail-title + .detail-description { margin-top: 20px; }
.option-group { padding: 0; margin: 0 0 24px; border: 0; min-width: 0; }
.option-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.detail-body h3, .cart-body h3 { font-size: 16px; font-weight: 550; margin: 0 0 13px; }
.option-heading h3 { margin: 0; }
.option-heading > small { color: var(--muted); font-size: 10px; }
.choice-list { border: 1px solid var(--line); border-radius: 12px; padding: 3px 13px; background: var(--surface); box-shadow: var(--control-depth); }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 13px; }
.choice + .choice { border-top: 1px solid var(--line); }
.choice-name small { color: var(--accent); font-size: 10px; margin-left: 4px; white-space: nowrap; }
.choice input { appearance: none; position: relative; width: 21px; height: 21px; flex-shrink: 0; margin: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.choice input[type='checkbox'] { border-radius: 5px; }
.choice input[type='checkbox']:checked { background: var(--accent-fill); border-color: var(--accent-fill); }
.choice input[type='checkbox']:checked::after { content: ''; position: absolute; width: 10px; height: 5px; top: 5px; left: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.choice input[type='radio'] { border-radius: 50%; }
.choice input[type='radio']:checked { background: var(--accent-fill); border-color: var(--accent-fill); box-shadow: inset 0 0 0 4px var(--surface); }
.choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.field-label { display: grid; gap: 12px; font-size: 16px; font-weight: 550; }
.field-label textarea { width: 100%; min-height: 72px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 13px; font-size: 13px; line-height: 1.5; font-weight: 400; resize: vertical; }
.field-label textarea::placeholder { color: var(--muted); font-weight: 350; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 23px 0 28px; }
.quantity-row h3 { margin: 0; }
.stepper { display: flex; align-items: center; gap: 9px; }
.stepper button { position: relative; width: 30px; height: 30px; border-radius: 50%; padding: 0; border: 0; color: #fff; background: transparent; }
.stepper button::before { content: ''; position: absolute; top: 50%; left: 50%; width: 85%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent-fill); }
.stepper button svg { position: absolute; top: 50%; left: 50%; width: 17px; height: 17px; transform: translate(-50%, -50%); }
.stepper > span { min-width: 17px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.nutrition-section { margin-top: 28px; }
.nutrition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.nutrition-item { text-align: center; padding: 17px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--control-depth); }
.nutrition-item > span { display: block; font-size: 10px; margin-bottom: 13px; }
.nutrition-item > strong { display: block; font-size: 19px; font-weight: 650; }
.nutrition-item small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.nutrition-item.calories { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; padding: 16px; }
.nutrition-item.calories > span { margin: 0; font-size: 12px; }
.nutrition-item.calories small { display: inline; }
.nutrition-note { font-size: 10px; color: var(--muted); margin: 10px 0 0; }
.allergen-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); line-height: 1.6; }
.allergen-note strong { color: var(--ink); font-weight: 550; }
.allergen-note p { margin: 4px 0 0; }
.sheet-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -3px 15px #00000004; }
.footer-total { display: grid; gap: 4px; color: var(--accent); }
.footer-total > span { font-size: 12px; }
.footer-total strong { font-size: 17px; font-weight: 600; }
.outline-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--accent-fill); border-radius: 8px; min-height: 42px; padding: 0 24px; background: transparent; color: var(--accent); font-size: 13px; font-weight: 500; }
.primary-button { background: var(--accent-fill); color: #fff; }
.outline-button svg { width: 16px; height: 16px; }
.cart-sheet { grid-template-rows: auto minmax(0,1fr) auto; }
.sheet-title { padding: 25px 22px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-title > div { text-align: right; padding-top: 8px; }
.sheet-title h2 { font-size: 20px; font-weight: 550; margin: 0; }
.sheet-title .table-label { justify-content: flex-end; margin-top: 8px; font-size: 13px; }
.cart-body { padding: 0 22px 30px; }
.cart-items { margin-bottom: 30px; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 21px 0; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-thumb { width: 56px; height: 56px; border-radius: 8px; background-repeat: no-repeat; background-color: var(--soft); }
.cart-item h3 { font-size: 13px; font-weight: 550; line-height: 1.4; margin: 0 0 5px; }
.cart-item p { font-size: 11px; color: var(--muted); line-height: 1.5; margin: 0 0 4px; }
.cart-item-info > strong { display: block; color: var(--accent); margin-top: 7px; font-size: 13px; font-weight: 550; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 18px; }
.cart-item .stepper { gap: 5px; }
.cart-item .stepper button { width: 25px; height: 25px; }
.cart-item .stepper svg { width: 15px; height: 15px; }
.cart-item .stepper > span { font-size: 12px; min-width: 14px; }
.remove-item { display: grid; place-items: center; width: 25px; height: 25px; border: 0; padding: 0; background: none; color: var(--muted); }
.remove-item svg { width: 16px; height: 16px; }
.dietary-flags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.flag-input { position: relative; }
.flag-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.flag-input span { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; cursor: pointer; }
.flag-input input:checked + span { color: var(--accent); border-color: var(--accent-fill); }
.flag-input input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.preference-hint { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 9px 0 0; }
.summary-section { margin-top: 30px; }
.summary-box { padding: 3px 14px; border: 1px solid var(--line); border-radius: 12px; }
.summary-box > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; color: var(--muted); font-size: 12px; }
.summary-box .summary-total { border-top: 1px solid var(--line); }
.summary-total strong { font-size: 15px; font-weight: 550; color: var(--accent); }
.waiter-cart-note { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.5; }
.waiter-cart-note.called { border-left-color: var(--green); color: var(--green); }
.cart-footer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; }
.cart-footer button { padding: 0 12px; }
.empty-cart { text-align: center; padding: 65px 10px; }
.empty-cart > svg { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 22px; }
.empty-cart h3 { font-size: 20px; }
.empty-cart p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-cart button { margin-top: 18px; }
.tracking-sheet { display: block; overflow-y: auto; padding: 35px 28px; text-align: center; }
.success-orb { display: grid; place-items: center; width: 64px; height: 64px; margin: 8px auto 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 28px; }
.tracking-sheet h2 { font-size: 25px; font-weight: 600; }
.tracking-sheet > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.order-number { display: inline-block; margin: 8px 0 25px; font-size: 13px; color: var(--accent); }
.timeline { text-align: left; margin: 8px 0 30px; }
.timeline-step { position: relative; display: flex; gap: 14px; min-height: 66px; color: var(--muted); }
.timeline-step:not(:last-child)::after { content: ''; position: absolute; width: 1px; left: 13px; top: 28px; bottom: 0; background: var(--line); }
.timeline-dot { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.timeline-step.active .timeline-dot { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.timeline-step strong { display: block; font-weight: 550; font-size: 14px; margin-top: 4px; }
.timeline-step.active strong { color: var(--ink); }
.timeline-step small { display: block; font-size: 11px; margin-top: 3px; }
.full-button { width: 100%; }
.toast-region { position: fixed; z-index: 100; top: max(16px,env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(90vw,380px); display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 4px 25px #0002; border-radius: 12px; padding: 13px 16px; font-size: 13px; text-align: center; }
.toast.error { border-color: var(--accent); }
.boot-screen { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 20px; }
.boot-screen p { font-size: 13px; color: var(--muted); }
.brand-mark { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-fill); color: white; font-weight: 650; }
.boot-pulse { width: 25px; height: 3px; background: var(--accent-fill); }
@media (max-width: 600px) {
  .menu-shell { padding: 0 20px 95px; }
  .menu-topbar { padding: 27px 0 31px; }
  .restaurant-heading h1 { font-size: 17px; }
  .menu-actions { gap: 6px; }
  .icon-button { width: 36px; height: 36px; }
  .top-seller-card { border-radius: 10px; }
  .top-seller-name { right: 5px; bottom: 6px; left: 5px; font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .product-card { aspect-ratio: .69; border-radius: 15px; }
  .card-content { padding: 12px 12px 11px; }
  .product-title-row { gap: 5px; }
  .product-name { -webkit-line-clamp: 3; font-size: 15px; line-height: 1.22; }
  .price-line { gap: 10px; min-height: 34px; padding-right: 38px; }
  .price-line strong { font-size: 16.8px; }
  .price-line .card-calories { gap: 3px; font-size: 14px; }
  .price-line .card-calories svg { width: 13px; height: 13px; }
  .card-meta-item { gap: 5px; font-size: 11px; }
  .card-meta-item svg { width: 16px; height: 16px; }
  .product-title-row .card-time { gap: 3px; font-size: 10px; }
  .product-title-row .card-time svg { width: 13px; height: 13px; }
  .card-cart { right: 10px; bottom: 11px; width: 34px; height: 34px; }
  .card-cart svg { width: 17px; height: 17px; }
  .product-grid[data-layout='list'] { gap: 10px; }
  .product-grid[data-layout='list'] .product-card { min-height: 154px; padding: 6px; border-radius: 12px; }
  .product-grid[data-layout='list'] .product-card-open { grid-template-columns: clamp(116px,34vw,140px) minmax(0,1fr); gap: 12px; min-height: 140px; }
  .product-grid[data-layout='list'] .product-image { width: 100%; height: 100%; }
  .product-grid[data-layout='list'] .card-content { padding: 1px 45px 17px 0; }
  .product-grid[data-layout='list'] .product-name { font-size: 14px; }
  .product-grid[data-layout='list'] .product-title-row .card-time { font-size: 10px; }
  .product-grid[data-layout='list'] .price-line strong { font-size: 16.8px; }
  .product-grid[data-layout='list'] .price-line { gap: 6px; min-height: 28px; padding-right: 0; }
  .product-grid[data-layout='list'] .product-description { margin-top: 5px; font-size: 10px; line-height: 1.4; }
  .product-grid[data-layout='list'] .card-meta-item { font-size: 10px; }
  .product-grid[data-layout='list'] .price-line .card-calories { font-size: 14px; }
  .product-grid[data-layout='list'] .card-meta-item svg { width: 13px; height: 13px; }
  .product-grid[data-layout='list'] .card-cart { right: 13px; bottom: 13px; width: 36px; height: 36px; }
  .product-grid[data-layout='list'] .card-cart svg { width: 16.15px; height: 16.15px; }
  .sheet { inset: 0; width: auto; height: auto; border-radius: 0; }
  .product-sheet .sheet-scroll { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .product-sheet > .sheet-footer { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; }
  .detail-image { height: clamp(270px, 81vw, 390px); }
  .detail-back { top: max(20px,env(safe-area-inset-top)); width: 40px; height: 40px; }
  .detail-body { padding: 18px 20px 28px; }
  .detail-title { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
  .detail-title h2 { font-size: 20px; }
  .sheet-footer { padding: 14px 20px max(14px,env(safe-area-inset-bottom)); }
  .sheet-title { padding: 25px 20px 16px; }
  .cart-body { padding: 0 20px 28px; }
  .cart-item { grid-template-columns: 48px minmax(0,1fr) auto; gap: 8px; }
  .cart-thumb { width: 48px; height: 48px; }
  .sheet-title h2 { font-size: 19px; }
}
@media (max-width: 420px) {
  .product-grid:not([data-layout='list']) .product-card.has-calories .price-line { padding-right: 0; }
  .product-grid:not([data-layout='list']) .product-card.has-calories .card-cart { bottom: 51px; }
}
@media (max-width: 350px) {
  .menu-shell { padding-inline: 14px; }
  .product-grid { gap: 10px; }
  .card-content { padding: 10px 10px 5px; }
  .product-name { font-size: 14px; }
  .product-grid:not([data-layout='list']) .price-line { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 43px; padding-right: 34px; }
  .product-grid:not([data-layout='list']) .price-line .card-calories { order: -1; gap: 2px; font-size: 13px; }
  .product-grid:not([data-layout='list']) .price-line .card-calories svg { width: 11px; height: 11px; }
  .price-line strong { font-size: 15.6px; }
  .card-meta-item { font-size: 10px; }
  .card-cart { right: 8px; bottom: 8px; width: 31px; height: 31px; }
  .card-cart svg { width: 15.3px; height: 15.3px; }
  .product-grid[data-layout='list'] .product-name { -webkit-line-clamp: 3; }
  .restaurant-heading h1 { font-size: 16px; }
  .menu-actions { gap: 3px; }
  .cart-item { grid-template-columns: 42px minmax(0,1fr); }
  .cart-thumb { width: 42px; height: 42px; }
  .cart-item-actions { grid-column: 2; flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
