:root {
  --navy: #071a2f;
  --navy-2: #102b47;
  --ink: #122033;
  --muted: #637083;
  --line: #dfe5eb;
  --line-strong: #c9d2dc;
  --soft: #f4f7fa;
  --white: #fff;
  --orange: #ff6b3d;
  --orange-dark: #dc4d23;
  --orange-soft: #fff0eb;
  --lime: #d9f75c;
  --teal: #2ec4a7;
  --danger: #c64040;
  --shadow-sm: 0 8px 24px rgba(7, 26, 47, .08);
  --shadow-lg: 0 24px 70px rgba(7, 26, 47, .18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { color: var(--ink); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.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; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 500; top: 8px; left: 8px; padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.is-hidden { display: none !important; }
.view { display: none; min-height: calc(100vh - 76px); }
.view.is-active { display: block; }

.site-header { position: sticky; z-index: 100; top: 0; height: 76px; border-bottom: 1px solid rgba(223,229,235,.85); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--navy); background: var(--lime); border-radius: 12px 12px 12px 5px; font-size: 1.3rem; font-weight: 900; box-shadow: inset 0 -3px 0 rgba(7,26,47,.12); }
.brand-mark.large { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 17px 17px 17px 7px; font-size: 1.8rem; }
.brand-name { color: var(--navy); font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; }
.brand-name span { color: var(--orange); }
.address-pill { display: flex; max-width: 210px; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: transparent; border-radius: 12px; text-align: left; }
.address-pill:hover { background: var(--soft); }
.address-pill > svg:first-child { flex: 0 0 auto; color: var(--orange); }
.address-pill > span { display: grid; min-width: 0; }
.address-pill small { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.address-pill strong { overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.address-pill .chevron { width: 14px; height: 14px; transform: rotate(90deg); }
.global-search { position: relative; flex: 1; max-width: 390px; }
.global-search > svg { position: absolute; top: 50%; left: 15px; color: var(--muted); transform: translateY(-50%); }
.global-search input { width: 100%; height: 44px; padding: 0 58px 0 44px; border: 1px solid var(--line); outline: none; background: var(--soft); border-radius: 13px; font-size: .91rem; transition: .2s; }
.global-search input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-soft); }
.global-search kbd { position: absolute; top: 50%; right: 10px; padding: 3px 7px; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 6px; font: 600 .7rem inherit; transform: translateY(-50%); }
.desktop-nav { display: flex; gap: 2px; }
.desktop-nav button { padding: 10px 12px; color: var(--muted); border: 0; background: transparent; border-radius: 10px; font-size: .88rem; font-weight: 700; }
.desktop-nav button:hover, .desktop-nav button.is-active { color: var(--navy); background: var(--soft); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .cart-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: .87rem; font-weight: 750; }
.icon-button { padding: 0 10px; border: 0; background: transparent; }
.icon-button:hover { background: var(--soft); }
.cart-button { padding: 0 13px; color: #fff; border: 0; background: var(--navy); }
.cart-button strong { display: grid; width: 22px; height: 22px; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50%; font-size: .75rem; }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-dark); font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 20px; height: 2px; background: currentColor; }
.discovery-hero { min-height: 420px; margin-top: 26px; overflow: hidden; display: grid; grid-template-columns: 1.02fr .98fr; color: #fff; background: var(--navy); border-radius: 30px; }
.hero-copy { z-index: 1; align-self: center; padding: 48px 20px 48px 54px; }
.hero-copy .eyebrow { color: var(--lime); }
.hero-copy h1 { max-width: 540px; margin: 14px 0 15px; color: #fff; font-size: clamp(2.8rem, 5vw, 4.65rem); font-weight: 850; line-height: .97; }
.hero-copy h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 550px; margin-bottom: 26px; color: #cbd7e2; font-size: 1.04rem; }
.hero-search { display: flex; width: min(100%, 570px); align-items: center; gap: 10px; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.22); }
.hero-search > svg { flex: 0 0 auto; margin-left: 9px; color: var(--muted); }
.hero-search input { min-width: 0; flex: 1; height: 42px; border: 0; outline: 0; color: var(--ink); font-size: .93rem; }
.hero-search button { height: 42px; padding: 0 24px; color: #fff; border: 0; background: var(--orange); border-radius: 11px; font-weight: 800; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: #dbe4ec; font-size: .81rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 17px; height: 17px; padding: 2px; color: var(--navy); background: var(--lime); border-radius: 50%; stroke-width: 3; }
.hero-visual { position: relative; min-height: 420px; overflow: hidden; }
.hero-visual::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, var(--navy) 0%, rgba(7,26,47,.2) 30%, rgba(7,26,47,0) 80%), linear-gradient(0deg, rgba(7,26,47,.4), transparent 45%); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 51%; }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.65); border-radius: 14px; box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.floating-card svg { color: var(--orange); }
.floating-card span { display: grid; }
.floating-card small { color: var(--muted); font-size: .7rem; }
.floating-card strong { font-size: .86rem; }
.floating-card--time { top: 38px; right: 26px; }
.floating-card--status { right: 38px; bottom: 31px; }
.status-dot { width: 11px; height: 11px; background: var(--teal); border: 3px solid #c9f4eb; border-radius: 50%; box-sizing: content-box; }
.section { padding-top: 50px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .how-intro h2 { margin: 7px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.text-button { padding: 7px 0; color: var(--orange-dark); border: 0; background: transparent; font-size: .86rem; font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.category-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.category-chip { min-height: 102px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 12px; border: 1px solid var(--line); background: #fff; border-radius: 18px; transition: .2s; }
.category-chip span { font-size: 1.65rem; }
.category-chip strong { font-size: .82rem; }
.category-chip:hover, .category-chip.is-active { border-color: var(--orange); background: var(--orange-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sort-control { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.sort-control select { padding: 9px 30px 9px 11px; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 10px; font-weight: 700; }
.restaurant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.restaurant-card { overflow: hidden; position: relative; border: 1px solid var(--line); background: #fff; border-radius: 20px; transition: .22s; }
.restaurant-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.restaurant-card__top { position: relative; min-height: 145px; display: flex; align-items: center; justify-content: center; padding: 20px; color: #fff; }
.restaurant-card__top::after { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 35%), linear-gradient(140deg, rgba(255,255,255,.05), rgba(7,26,47,.25)); }
.restaurant-card__initials { z-index: 1; display: grid; width: 74px; height: 74px; place-items: center; border: 2px solid rgba(255,255,255,.45); background: rgba(255,255,255,.18); border-radius: 23px; font-size: 1.35rem; font-weight: 900; backdrop-filter: blur(10px); }
.restaurant-card__badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; color: var(--navy); background: var(--lime); border-radius: 8px; font-size: .7rem; font-weight: 850; }
.card-heart { position: absolute; z-index: 3; top: 11px; right: 11px; display: grid; width: 34px; height: 34px; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.45); background: rgba(7,26,47,.25); border-radius: 50%; backdrop-filter: blur(7px); }
.card-heart svg { width: 17px; height: 17px; }
.card-heart.is-favorite { color: var(--orange); background: #fff; }
.restaurant-card__body { padding: 17px; }
.restaurant-card__body h3 { margin-bottom: 5px; font-size: 1.06rem; }
.restaurant-card__body > p { min-height: 40px; margin-bottom: 14px; color: var(--muted); font-size: .8rem; }
.card-metrics { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 15px; color: var(--muted); font-size: .76rem; }
.card-metrics span { display: inline-flex; align-items: center; gap: 4px; }
.card-metrics svg { width: 14px; height: 14px; }
.card-metrics .rating { color: #875e00; font-weight: 800; }
.card-metrics .rating svg { fill: #ffc83d; stroke: #ffc83d; }
.restaurant-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); }
.restaurant-card__footer span { color: var(--muted); font-size: .74rem; }
.restaurant-card__footer button { display: inline-flex; align-items: center; gap: 3px; padding: 0; color: var(--orange-dark); border: 0; background: transparent; font-size: .77rem; font-weight: 850; }
.restaurant-card__footer svg { width: 14px; height: 14px; }
.empty-state { padding: 60px 20px; border: 1px dashed var(--line-strong); background: var(--soft); border-radius: 20px; text-align: center; }
.empty-state > span { font-size: 2.5rem; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { color: var(--muted); }
.how-it-works { margin: 70px 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; padding: 42px 46px; color: #fff; background: var(--navy); border-radius: 28px; }
.how-intro .eyebrow { color: var(--lime); }
.how-intro h2 { color: #fff; }
.how-intro p { margin-bottom: 0; color: #bdcbd9; }
.steps-list { margin: 0; padding: 0; display: grid; gap: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 50px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.steps-list li:last-child { border: 0; }
.steps-list > li > span { color: var(--lime); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.steps-list strong { color: #fff; }
.steps-list p { margin: 3px 0 0; color: #aebdcc; font-size: .82rem; }
.active-order-card { margin-top: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 18px 22px; border: 1px solid #b6eadf; background: #edfbf7; border-radius: 18px; }
.active-order-icon { display: grid; width: 48px; height: 48px; place-items: center; color: #fff; background: var(--teal); border-radius: 14px; }
.active-order-card h2 { margin: 2px 0; font-size: 1.05rem; }
.active-order-card p { margin: 0; color: var(--muted); font-size: .83rem; }
.active-order-card .eyebrow { color: #14856f; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 0; border-radius: 12px; font-size: .9rem; font-weight: 850; text-decoration: none; }
.button--primary { color: #fff; background: var(--orange); box-shadow: 0 8px 20px rgba(255,107,61,.2); }
.button--primary:hover { background: var(--orange-dark); }
.button--dark { color: #fff; background: var(--navy); }
.button--light { color: var(--navy); background: #fff; }
.button.wide { width: 100%; }
.button.grow { flex: 1; justify-content: space-between; }
.button:disabled { cursor: not-allowed; opacity: .55; }

.restaurant-cover { background: var(--navy); }
.restaurant-cover__image { height: 190px; overflow: hidden; opacity: .8; }
.restaurant-cover__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; filter: saturate(.85); }
.restaurant-cover__content { position: relative; padding-bottom: 28px; }
.back-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--muted); border: 0; background: transparent; font-size: .83rem; font-weight: 750; }
.restaurant-cover .back-button { position: absolute; top: -174px; left: 0; padding: 8px 12px; color: #fff; background: rgba(7,26,47,.72); border-radius: 10px; backdrop-filter: blur(8px); }
.back-button svg { width: 17px; height: 17px; }
.restaurant-identity { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: end; margin-top: -45px; }
.restaurant-avatar { z-index: 1; display: grid; width: 92px; height: 92px; place-items: center; color: #fff; border: 5px solid var(--navy); background: var(--orange); border-radius: 25px; font-size: 1.6rem; font-weight: 900; }
.restaurant-title-row { display: flex; align-items: center; gap: 12px; }
.restaurant-title-row h1 { margin: 0 0 5px; color: #fff; font-size: 2rem; }
.open-badge { padding: 4px 8px; color: #0e705d; background: #d9f8f0; border-radius: 7px; font-size: .71rem; font-weight: 850; }
.restaurant-identity p { margin: 0; color: #b9c8d7; font-size: .86rem; }
.restaurant-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; color: #e4ecf3; font-size: .76rem; }
.restaurant-meta span { display: inline-flex; align-items: center; gap: 5px; }
.restaurant-meta svg { width: 14px; height: 14px; }
.favorite-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); border-radius: 12px; font-size: .8rem; font-weight: 800; }
.favorite-button[aria-pressed="true"] { color: var(--orange); background: #fff; }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; }
.menu-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr) 300px; gap: 30px; padding-block: 34px 70px; align-items: start; }
.menu-sidebar, .desktop-cart { position: sticky; top: 106px; }
.menu-sidebar > strong { display: block; margin-bottom: 12px; }
.menu-sidebar nav { display: grid; gap: 3px; }
.menu-sidebar nav button { padding: 9px 11px; color: var(--muted); border: 0; background: transparent; border-radius: 9px; text-align: left; font-size: .82rem; }
.menu-sidebar nav button:hover, .menu-sidebar nav button.is-active { color: var(--navy); background: var(--orange-soft); font-weight: 800; }
.restaurant-info-card { margin-top: 24px; display: flex; gap: 9px; padding: 13px; color: var(--muted); background: var(--soft); border-radius: 12px; }
.restaurant-info-card svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--orange); }
.restaurant-info-card strong { font-size: .73rem; }
.restaurant-info-card p { margin: 3px 0 0; font-size: .67rem; line-height: 1.45; }
.menu-search-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.menu-search-row h2 { margin: 5px 0 0; font-size: 1.8rem; }
.menu-search { position: relative; width: 220px; }
.menu-search svg { position: absolute; top: 50%; left: 12px; width: 16px; color: var(--muted); transform: translateY(-50%); }
.menu-search input { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1px solid var(--line); outline: none; background: var(--soft); border-radius: 11px; font-size: .82rem; }
.menu-section { margin-bottom: 34px; scroll-margin-top: 104px; }
.menu-section > h3 { margin: 0 0 14px; font-size: 1.3rem; }
.menu-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { min-height: 174px; display: grid; grid-template-columns: 1fr 90px; gap: 12px; padding: 16px; border: 1px solid var(--line); background: #fff; border-radius: 16px; text-align: left; transition: .2s; }
.product-card:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.product-card h4 { margin: 0 0 6px; font-size: .94rem; }
.product-card p { display: -webkit-box; min-height: 56px; overflow: hidden; margin: 0 0 12px; color: var(--muted); font-size: .75rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card strong { color: var(--navy); font-size: .9rem; }
.product-art { position: relative; display: grid; min-height: 112px; place-items: center; background: var(--soft); border-radius: 13px; font-size: 2.5rem; }
.product-art .add-circle { position: absolute; right: -5px; bottom: -5px; display: grid; width: 32px; height: 32px; place-items: center; color: #fff; background: var(--orange); border: 3px solid #fff; border-radius: 50%; }
.product-art .add-circle svg { width: 14px; height: 14px; stroke-width: 2.6; }
.no-menu-results { padding: 45px 20px; color: var(--muted); background: var(--soft); border-radius: 16px; text-align: center; }
.cart-summary-card { overflow: hidden; border: 1px solid var(--line); background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); }
.cart-summary-head { padding: 17px 18px; border-bottom: 1px solid var(--line); }
.cart-summary-head h3 { margin: 0; font-size: 1.05rem; }
.cart-summary-head p { margin: 3px 0 0; color: var(--muted); font-size: .73rem; }
.empty-cart { padding: 34px 18px; text-align: center; }
.empty-cart svg { width: 35px; height: 35px; color: var(--line-strong); }
.empty-cart strong { display: block; margin-top: 8px; }
.empty-cart p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.cart-items { display: grid; gap: 0; max-height: 300px; overflow: auto; padding: 4px 18px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border: 0; }
.mini-stepper { display: grid; grid-template-columns: 24px 24px 24px; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.mini-stepper button { display: grid; width: 24px; height: 26px; place-items: center; padding: 0; border: 0; background: transparent; }
.mini-stepper svg { width: 12px; height: 12px; }
.mini-stepper strong { text-align: center; font-size: .72rem; }
.cart-item__text strong { display: block; font-size: .78rem; }
.cart-item__text small { display: block; margin-top: 2px; color: var(--muted); font-size: .66rem; }
.cart-item__price { font-size: .75rem; white-space: nowrap; }
.cart-totals { display: grid; gap: 7px; padding: 15px 18px; border-top: 1px solid var(--line); background: var(--soft); }
.cart-totals > div { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.cart-totals .total { padding-top: 8px; color: var(--ink); border-top: 1px solid var(--line); font-size: .9rem; font-weight: 850; }
.cart-summary-action { padding: 14px 18px 18px; }

.checkout-shell, .account-shell { padding-block: 46px 80px; }
.page-heading { max-width: 690px; margin-bottom: 30px; }
.page-heading .back-button { margin-bottom: 27px; }
.page-heading h1 { margin: 8px 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-heading p { color: var(--muted); }
.page-heading.compact { margin-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.checkout-main { display: grid; gap: 16px; }
.checkout-card { margin: 0; padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: 18px; }
fieldset.checkout-card { display: grid; gap: 10px; }
.checkout-card legend { float: left; width: 100%; display: flex; align-items: center; gap: 9px; margin-bottom: 15px; font-size: 1.05rem; font-weight: 850; }
.checkout-card legend + * { clear: both; }
.checkout-card legend > span { display: grid; width: 27px; height: 27px; place-items: center; color: #fff; background: var(--navy); border-radius: 8px; font-size: .72rem; }
.choice-card { position: relative; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span:nth-of-type(2), .choice-card > span:first-of-type:not(.choice-icon) { flex: 1; display: grid; }
.choice-card strong { font-size: .86rem; }
.choice-card small { margin-top: 2px; color: var(--muted); font-size: .73rem; }
.choice-icon { flex: 0 0 auto; display: grid; width: 38px; height: 38px; place-items: center; color: var(--navy); background: var(--soft); border-radius: 10px; font-size: .74rem; font-weight: 900; }
.choice-icon svg { width: 18px; height: 18px; }
.radio-mark { width: 19px; height: 19px; border: 2px solid var(--line-strong); border-radius: 50%; }
.choice-card input:checked ~ .radio-mark { border: 5px solid var(--orange); background: #fff; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; color: var(--muted); font-size: .7rem; }
.privacy-note svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--teal); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.note-field { display: grid; gap: 12px; }
.note-field > span:first-child { display: flex; justify-content: space-between; }
.note-field small { color: var(--muted); font-size: .7rem; }
.note-field textarea, .product-note textarea { width: 100%; padding: 12px; resize: vertical; border: 1px solid var(--line); outline: 0; border-radius: 11px; }
.character-count { color: var(--muted); font-size: .7rem; text-align: right; }
.checkout-summary { position: sticky; top: 104px; }
.checkout-summary-card { padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); }
.checkout-summary-card h2 { margin-bottom: 5px; font-size: 1.25rem; }
.checkout-summary-card > p { margin-bottom: 20px; color: var(--muted); font-size: .78rem; }
.checkout-summary-items { display: grid; gap: 10px; padding-block: 15px; border-block: 1px solid var(--line); }
.checkout-summary-item { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; font-size: .78rem; }
.checkout-summary-item span:first-child { display: grid; width: 23px; height: 23px; place-items: center; color: var(--navy); background: var(--soft); border-radius: 6px; font-size: .66rem; font-weight: 850; }
.checkout-summary-card .cart-totals { padding: 15px 0; background: transparent; }
.checkout-confirm-note { display: flex; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: .67rem; }
.checkout-confirm-note svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--teal); }

.tracking-top { padding: 44px 0; color: #fff; background: var(--navy); }
.tracking-top__inner { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.tracking-top .eyebrow { color: var(--lime); }
.tracking-top h1 { margin: 10px 0 6px; color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.tracking-top p { margin: 0; color: #b8c7d7; }
.eta-card { min-width: 170px; display: grid; padding: 15px 18px; color: var(--ink); background: var(--lime); border-radius: 15px; }
.eta-card span, .eta-card small { font-size: .7rem; }
.eta-card strong { margin: 2px 0; font-size: 1.5rem; }
.tracking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-block: 28px 70px; }
.tracking-main { display: grid; gap: 18px; }
.tracking-map { position: relative; min-height: 310px; overflow: hidden; background-color: #e9f0f4; background-image: radial-gradient(#c4d1da 1.2px, transparent 1.2px); background-size: 20px 20px; border-radius: 22px; }
.map-road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #d7e0e6; }
.road-one { width: 130%; height: 33px; top: 45%; left: -15%; transform: rotate(-12deg); }
.road-two { width: 33px; height: 130%; top: -15%; left: 30%; transform: rotate(18deg); }
.road-three { width: 38px; height: 130%; top: -10%; right: 22%; transform: rotate(-8deg); }
.route-line { position: absolute; width: 48%; height: 4px; top: 54%; left: 24%; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 17px); transform: rotate(-12deg); }
.map-place { position: absolute; z-index: 3; display: grid; place-items: center; gap: 4px; color: var(--navy); font-size: .68rem; font-weight: 800; }
.map-place > span, .map-place > svg { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--navy); border: 4px solid #fff; border-radius: 13px; box-shadow: var(--shadow-sm); }
.map-place > svg { padding: 9px; background: var(--orange); }
.map-place--restaurant { top: 31%; left: 17%; }
.map-place--home { right: 16%; bottom: 25%; }
.courier-pin { position: absolute; z-index: 4; top: 47%; left: 46%; display: grid; width: 44px; height: 44px; place-items: center; color: var(--navy); background: var(--lime); border: 4px solid #fff; border-radius: 50%; box-shadow: var(--shadow-lg); transition: left .45s ease, top .45s ease; }
.courier-pin svg { width: 20px; height: 20px; }
.tracking-card { padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: 19px; }
.tracking-card__header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.tracking-card h2 { margin: 4px 0 0; font-size: 1.2rem; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { position: absolute; top: 20px; bottom: 25px; left: 17px; width: 2px; content: ""; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; }
.timeline-marker { z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; color: var(--muted); border: 2px solid var(--line); background: #fff; border-radius: 50%; }
.timeline-marker svg { width: 15px; height: 15px; }
.timeline li.is-complete .timeline-marker { color: #fff; border-color: var(--teal); background: var(--teal); }
.timeline li.is-active .timeline-marker { color: var(--navy); border-color: var(--lime); background: var(--lime); box-shadow: 0 0 0 6px rgba(217,247,92,.25); }
.timeline-copy strong { font-size: .86rem; }
.timeline-copy p { margin: 3px 0 0; color: var(--muted); font-size: .73rem; }
.timeline time { color: var(--muted); font-size: .69rem; }
.tracking-side { display: grid; align-content: start; gap: 14px; }
.status-summary dl { display: grid; gap: 13px; margin: 18px 0 0; }
.status-summary dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-summary dt { color: var(--muted); font-size: .78rem; }
.status-badge { padding: 5px 8px; color: var(--navy); background: var(--soft); border-radius: 7px; font-size: .7rem; font-weight: 800; }
.status-badge--orange { color: var(--orange-dark); background: var(--orange-soft); }
.order-detail-card h2 { margin-bottom: 14px; }
.order-detail-list { display: grid; gap: 9px; }
.order-detail-list div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .76rem; }
.order-detail-list div strong { text-align: right; }
.support-button { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); background: #fff; border-radius: 14px; text-align: left; }
.support-button > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--navy); border-radius: 10px; font-weight: 900; }
.support-button > span:nth-child(2) { display: grid; }
.support-button strong { font-size: .78rem; }
.support-button small { color: var(--muted); font-size: .68rem; }
.support-button > svg { width: 15px; height: 15px; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 11px 15px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: .85rem; font-weight: 800; }
.tabs button[aria-selected="true"] { color: var(--orange-dark); border-color: var(--orange); }
.order-list { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 17px; border: 1px solid var(--line); background: #fff; border-radius: 16px; }
.order-card__brand { display: grid; width: 54px; height: 54px; place-items: center; color: #fff; background: var(--orange); border-radius: 15px; font-weight: 900; }
.order-card h3 { margin: 0 0 4px; font-size: .95rem; }
.order-card p { margin: 0; color: var(--muted); font-size: .75rem; }
.order-card__meta { display: grid; justify-items: end; gap: 7px; }
.order-card__meta strong { font-size: .88rem; }
.account-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 24px; padding: 28px; color: #fff; background: var(--navy); border-radius: 22px; }
.account-avatar { display: grid; width: 70px; height: 70px; place-items: center; color: var(--navy); background: var(--lime); border-radius: 20px; font-size: 1.5rem; font-weight: 900; }
.account-hero .eyebrow { color: var(--lime); }
.account-hero h1 { margin: 4px 0; color: #fff; font-size: 1.7rem; }
.account-hero p { margin: 0; color: #b9c8d6; font-size: .8rem; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-card { padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: 18px; }
.account-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 16px; }
.account-stats > div { display: grid; justify-items: center; gap: 2px; border-right: 1px solid var(--line); }
.account-stats > div:last-child { border: 0; }
.account-stats strong { font-size: 1.45rem; }
.account-stats span { color: var(--muted); font-size: .75rem; }
.card-title-row { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.card-title-row h2, .preference-card h2 { margin: 4px 0 0; font-size: 1.12rem; }
.saved-address { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.saved-address:first-of-type { border-top: 0; }
.saved-address > div { flex: 1; }
.saved-address strong { font-size: .8rem; }
.saved-address p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.default-badge { padding: 4px 7px; color: #157865; background: #e8f9f5; border-radius: 6px; font-size: .65rem; font-weight: 800; }
.preference-card { display: grid; align-content: start; gap: 3px; }
.preference-card > div { margin-bottom: 8px; }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle-row > span:first-child { display: grid; }
.toggle-row strong { font-size: .8rem; }
.toggle-row small { color: var(--muted); font-size: .69rem; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle { width: 41px; height: 23px; padding: 3px; background: var(--line-strong); border-radius: 999px; transition: .2s; }
.toggle::before { display: block; width: 17px; height: 17px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .2s; }
.toggle-row input:checked + .toggle { background: var(--teal); }
.toggle-row input:checked + .toggle::before { transform: translateX(18px); }

.mobile-nav { display: none; }
.drawer-backdrop { position: fixed; z-index: 190; inset: 0; visibility: hidden; opacity: 0; background: rgba(7,26,47,.5); backdrop-filter: blur(3px); transition: .25s; }
.drawer-backdrop.is-open { visibility: visible; opacity: 1; }
.cart-drawer { position: fixed; z-index: 200; top: 0; right: 0; width: min(410px, 100%); height: 100dvh; display: grid; grid-template-rows: auto 1fr; color: var(--ink); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: .28s ease; }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { margin: 3px 0 0; font-size: 1.45rem; }
.drawer-body { overflow: auto; padding: 18px; }
.drawer-body .cart-summary-card { box-shadow: none; }
body.drawer-open { overflow: hidden; }

.modal { width: min(570px, calc(100% - 30px)); max-height: calc(100dvh - 30px); padding: 0; overflow: visible; border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(7,26,47,.6); backdrop-filter: blur(5px); }
.modal-panel { position: relative; max-height: calc(100dvh - 30px); overflow: auto; padding: 28px; border-radius: 22px; }
.modal-close { position: absolute; z-index: 1; top: 17px; right: 17px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; background: var(--soft); border-radius: 50%; }
.modal-close svg { width: 17px; height: 17px; }
.product-modal-head { display: grid; grid-template-columns: 72px 1fr; gap: 15px; padding-right: 30px; }
.product-icon { display: grid; width: 72px; height: 72px; place-items: center; background: var(--soft); border-radius: 18px; font-size: 2.2rem; }
.product-modal-head h2 { margin: 5px 0; font-size: 1.4rem; }
.product-modal-head p { margin: 0; color: var(--muted); font-size: .78rem; }
.option-group { display: grid; gap: 8px; margin: 20px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); }
.option-group legend { width: 100%; display: flex; justify-content: space-between; padding-top: 15px; font-size: .9rem; font-weight: 850; }
.option-group legend span { color: var(--muted); font-size: .67rem; font-weight: 700; }
.option-group label { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; cursor: pointer; }
.option-group label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.option-group label span { flex: 1; }
.option-group label strong { font-size: .76rem; }
.product-note { display: grid; gap: 7px; margin-top: 18px; font-size: .8rem; font-weight: 800; }
.product-note textarea { font-size: .8rem; font-weight: 400; }
.modal-footer { position: sticky; bottom: -28px; display: flex; gap: 12px; margin: 22px -28px -28px; padding: 15px 28px; border-top: 1px solid var(--line); background: #fff; }
.quantity-stepper { display: grid; grid-template-columns: 38px 30px 38px; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.quantity-stepper button { display: grid; width: 38px; height: 44px; place-items: center; padding: 0; border: 0; background: transparent; }
.quantity-stepper svg { width: 15px; height: 15px; }
.quantity-stepper strong { text-align: center; }
.auth-modal { width: min(470px, calc(100% - 30px)); }
.auth-modal .modal-panel > h2 { margin: 7px 0; font-size: 1.55rem; }
.auth-modal .modal-panel > p { color: var(--muted); font-size: .82rem; }
.demo-notice { display: flex; gap: 9px; margin: 16px 0; padding: 11px; color: #4e5d6c; background: #edf8f5; border-radius: 10px; font-size: .7rem; }
.demo-notice svg { flex: 0 0 auto; color: var(--teal); }
.auth-modal label { display: grid; gap: 5px; margin: 12px 0; color: var(--ink); font-size: .78rem; font-weight: 800; }
.auth-modal label input { height: 45px; padding: 0 12px; border: 1px solid var(--line); outline: none; border-radius: 10px; font-size: .82rem; font-weight: 400; }
.auth-modal label input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.auth-modal label small { color: var(--muted); font-size: .67rem; font-weight: 400; }
.centered { display: block; margin: 8px auto 0; }
.address-list { display: grid; gap: 9px; margin: 18px 0; }
.address-list button { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); background: #fff; border-radius: 12px; text-align: left; }
.address-list button:hover { border-color: var(--orange); background: var(--orange-soft); }
.address-list button > span:nth-child(2) { display: grid; }
.address-list strong { font-size: .82rem; }
.address-list small { color: var(--muted); font-size: .7rem; }
.address-list button > svg { width: 15px; height: 15px; }
.toast-region { position: fixed; z-index: 400; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { min-width: 280px; display: flex; align-items: center; gap: 9px; padding: 12px 14px; color: #fff; background: var(--navy); border-radius: 12px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease both; font-size: .8rem; }
.toast svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--lime); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .account-button span { display: none; }
  .restaurant-grid { grid-template-columns: repeat(3, 1fr); }
  .category-rail { grid-template-columns: repeat(4, 1fr); }
  .menu-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .desktop-cart { display: none; }
}

@media (max-width: 860px) {
  body { padding-bottom: 72px; }
  .shell { width: min(100% - 30px, var(--shell)); }
  .site-header { height: auto; }
  .header-inner { min-height: 68px; flex-wrap: wrap; gap: 9px; padding-block: 10px; }
  .address-pill { order: 3; width: calc(100% - 48px); max-width: none; padding: 6px 0; }
  .global-search, .header-actions .account-button, .header-actions .cart-button { display: none; }
  .header-actions { margin-left: auto; }
  .discovery-hero { min-height: auto; grid-template-columns: 1fr; margin-top: 15px; }
  .hero-copy { padding: 38px 26px 32px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-visual { min-height: 280px; }
  .hero-visual::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(7,26,47,0) 45%); }
  .floating-card--time { top: 18px; right: 17px; }
  .restaurant-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works { grid-template-columns: 1fr; gap: 25px; padding: 32px 26px; }
  .restaurant-cover__content { padding-bottom: 24px; }
  .restaurant-identity { grid-template-columns: auto 1fr; }
  .favorite-button { grid-column: 1 / -1; width: max-content; margin-left: 110px; }
  .menu-layout { grid-template-columns: 1fr; }
  .menu-sidebar { position: static; }
  .menu-sidebar > strong, .restaurant-info-card { display: none; }
  .menu-sidebar nav { display: flex; overflow-x: auto; padding-bottom: 5px; }
  .menu-sidebar nav button { white-space: nowrap; }
  .checkout-grid, .tracking-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .tracking-side { grid-template-columns: repeat(2, 1fr); }
  .support-button { grid-column: 1 / -1; }
  .mobile-nav { position: fixed; z-index: 120; bottom: 0; left: 0; right: 0; height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(15px); }
  .mobile-nav button { display: grid; place-items: center; align-content: center; gap: 2px; padding: 5px; color: var(--muted); border: 0; background: transparent; font-size: .64rem; font-weight: 750; }
  .mobile-nav button.is-active { color: var(--orange-dark); }
  .mobile-nav svg { width: 20px; height: 20px; }
  .mobile-cart-icon { position: relative; }
  .mobile-cart-icon b { position: absolute; top: -7px; right: -10px; display: grid; width: 17px; height: 17px; place-items: center; color: var(--navy); background: var(--lime); border-radius: 50%; font-size: .6rem; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 24px, var(--shell)); }
  .brand-name { font-size: 1.12rem; }
  .address-pill { width: 100%; }
  .hero-copy { padding: 32px 20px 26px; }
  .hero-copy > p { font-size: .92rem; }
  .hero-search { padding: 5px; }
  .hero-search button { padding-inline: 17px; }
  .trust-row { gap: 9px 14px; font-size: .72rem; }
  .hero-visual { min-height: 235px; }
  .floating-card--status { display: none; }
  .floating-card--time { top: auto; right: 14px; bottom: 14px; }
  .section { padding-top: 38px; }
  .section-heading { align-items: start; }
  .category-rail { display: flex; margin-right: -12px; overflow-x: auto; padding: 2px 12px 12px 0; scroll-snap-type: x mandatory; }
  .category-chip { min-width: 105px; scroll-snap-align: start; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .restaurant-card { display: grid; grid-template-columns: 118px 1fr; }
  .restaurant-card__top { min-height: 100%; padding: 10px; }
  .restaurant-card__initials { width: 54px; height: 54px; border-radius: 16px; font-size: 1rem; }
  .restaurant-card__badge { top: 8px; left: 8px; font-size: .6rem; }
  .card-heart { top: 8px; right: 8px; width: 30px; height: 30px; }
  .restaurant-card__body { min-width: 0; padding: 14px; }
  .restaurant-card__body > p { min-height: 0; }
  .card-metrics { margin-bottom: 9px; }
  .restaurant-card__footer { padding-top: 9px; }
  .how-it-works { margin-block: 48px 20px; }
  .active-order-card { grid-template-columns: auto 1fr; }
  .active-order-card .button { grid-column: 1 / -1; }
  .restaurant-cover__image { height: 150px; }
  .restaurant-cover .back-button { top: -136px; }
  .restaurant-identity { gap: 12px; margin-top: -34px; }
  .restaurant-avatar { width: 72px; height: 72px; border-radius: 20px; font-size: 1.25rem; }
  .restaurant-title-row { flex-wrap: wrap; gap: 7px; }
  .restaurant-title-row h1 { font-size: 1.5rem; }
  .favorite-button { margin-left: 84px; }
  .menu-layout { padding-top: 25px; }
  .menu-search-row { display: grid; }
  .menu-search { width: 100%; }
  .menu-products { grid-template-columns: 1fr; }
  .checkout-shell, .account-shell { padding-block: 30px 80px; }
  .page-heading .back-button { margin-bottom: 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .checkout-card { padding: 17px; }
  .tracking-top { padding: 32px 0; }
  .tracking-top__inner { align-items: stretch; flex-direction: column; }
  .eta-card { width: 100%; }
  .tracking-map { min-height: 240px; }
  .tracking-card__header { display: grid; }
  .tracking-side { grid-template-columns: 1fr; }
  .support-button { grid-column: auto; }
  .timeline li { grid-template-columns: 36px 1fr; }
  .timeline time { grid-column: 2; }
  .account-hero { grid-template-columns: auto 1fr; padding: 21px; }
  .account-hero .button { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: 1fr; }
  .order-card { grid-template-columns: auto 1fr; }
  .order-card__meta { grid-column: 2; justify-items: start; }
  .product-modal-head { grid-template-columns: 55px 1fr; }
  .product-icon { width: 55px; height: 55px; font-size: 1.7rem; }
  .modal-panel { padding: 22px; }
  .modal-footer { bottom: -22px; margin: 20px -22px -22px; padding: 13px 22px; }
  .toast-region { right: 12px; bottom: 82px; left: 12px; }
  .toast { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
