:root {
  --paper: #f9f7f2; --paper-2: #f1ede6; --card: #fffdf9; --ink: #391e32; --ink-2: #5b4453;
  --muted: #786e72; --line: #e2dbd5; --peach: #ffb793; --peach-soft: #ffe7da; --accent: #d85d3c;
  --ok: #1f7a4d; --ok-soft: #e3f3ea; --warn: #9a5b06; --warn-soft: #fff1dc; --bad: #a3312a; --bad-soft: #fde6e3;
  --veg: #1f8a3b; --nonveg: #8b4513;
  --radius: 14px; --shadow: 0 14px 34px -22px rgba(57, 30, 50, .45);
  --serif: 'Instrument Serif', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: Manrope, Arial, sans-serif; letter-spacing: -.03em; line-height: 1.1; margin: 0; text-wrap: balance; }
em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---- header ---- */
.s-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1200px) / 2)); background: rgba(249, 247, 242, .88); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid var(--line); }
.s-wordmark { font-family: Manrope, Arial, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -1.5px; text-decoration: none; }
.s-wordmark span { color: var(--accent); }
.s-wordmark.small { font-size: 24px; }
.s-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.s-nav a { text-decoration: none; color: var(--ink-2); }
.s-nav a:hover, .s-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.s-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.s-account { font-size: 14px; font-weight: 600; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.s-cart { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 999px; padding: 9px 12px 9px 16px; font-size: 14px; font-weight: 600; }
.s-cart b { background: var(--peach); color: var(--ink); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; font-variant-numeric: tabular-nums; }

/* ---- layout ---- */
main { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; min-height: 60vh; }
.s-loading, .s-empty { color: var(--muted); padding: 48px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---- hero ---- */
.s-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; padding: 20px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.s-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 600; }
.s-hero p { color: var(--ink-2); font-size: 16px; margin: 0; max-width: 46ch; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.notice strong { display: block; margin-bottom: 2px; }
.notice.info { background: var(--peach-soft); }
.notice.warn { background: var(--warn-soft); color: #5e3a06; }
.notice.bad { background: var(--bad-soft); color: #6e1f1a; }
.notice.ok { background: var(--ok-soft); color: #164c33; }

/* ---- category tabs ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- store cards ---- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.store-card { display: grid; grid-template-rows: 150px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.store-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-cover { position: relative; background: linear-gradient(135deg, #f3d9c9, #f7ece2); display: grid; place-items: center; overflow: hidden; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-cover .glyph { font-family: var(--serif); font-size: 64px; color: var(--accent); opacity: .7; }
.store-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.store-body h3 { font-size: 19px; font-weight: 700; }
.store-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 4px 9px; }
.pill.sample { background: var(--warn-soft); color: var(--warn); }
.pill.open { background: var(--ok-soft); color: var(--ok); }
.pill.closed { background: var(--bad-soft); color: var(--bad); }
.pill.kind { background: var(--paper-2); color: var(--ink-2); }
.cover-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }

/* ---- store page ---- */
.store-head { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.store-head h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; }
.store-head p { margin: 6px 0 0; color: var(--ink-2); }
.seller-box { font-size: 13px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; max-width: 360px; }
.seller-box b { color: var(--ink); }
.menu-section { margin-top: 26px; }
.menu-section h2 { font-size: 20px; margin-bottom: 12px; }
.item-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.item-card { display: grid; grid-template-columns: 1fr 96px; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.item-card h3 { font-size: 16px; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.item-card h3 a { text-decoration: none; }
.item-card h3 a:hover { text-decoration: underline; }
.item-card p { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { margin-top: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.item-price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 13px; }
.item-side { display: grid; gap: 8px; align-content: start; justify-items: center; }
.item-thumb { width: 96px; height: 80px; border-radius: 10px; background: var(--paper-2); object-fit: cover; }
.item-thumb.placeholder { display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--accent); }
.item-links { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.item-links a { color: var(--accent); }

/* diet marks (FSSAI symbols: green square with dot, brown square with triangle) */
.diet { flex: 0 0 auto; width: 15px; height: 15px; border: 1.6px solid currentColor; border-radius: 2px; display: inline-grid; place-items: center; margin-top: 2px; }
.diet::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.diet.veg { color: var(--veg); }
.diet.nonveg { color: var(--nonveg); }
.diet.nonveg::after { border-radius: 0; width: 0; height: 0; background: none; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; }

/* ---- buttons & steppers ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; background: var(--ink); color: #fff; }
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.peach { background: var(--peach); color: var(--ink); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); overflow: hidden; }
.stepper button { border: 0; background: none; width: 32px; height: 32px; cursor: pointer; font-size: 18px; font-weight: 700; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- product page ---- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; align-items: start; }
.pdp-media { background: var(--card); border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .glyph { font-family: var(--serif); font-size: 110px; color: var(--accent); opacity: .6; }
.pdp h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; display: flex; gap: 12px; align-items: flex-start; }
.pdp h1 .diet { width: 20px; height: 20px; margin-top: 8px; }
.pdp-sub { color: var(--muted); margin: 8px 0 0; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.pdp-price strong { font-size: 30px; font-family: Manrope, sans-serif; }
.pdp-price s { color: var(--muted); }
.pdp-price small { color: var(--muted); font-size: 13px; }
.pdp-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 0 22px; }
.label-panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.label-panel h2 { font-size: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.label-panel dl { margin: 0; display: grid; grid-template-columns: minmax(130px, 38%) 1fr; }
.label-panel dt, .label-panel dd { margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.label-panel dt { color: var(--muted); font-weight: 600; }
.label-panel dd.pending { color: var(--warn); font-style: italic; }
.label-panel dl > :nth-last-child(-n+2) { border-bottom: 0; }
.nutrition { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.nutrition th, .nutrition td { padding: 7px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.nutrition td:last-child, .nutrition th:last-child { text-align: right; }
.nutrition thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.panel-note { font-size: 12px; color: var(--muted); padding: 10px 18px 14px; }

/* ---- cart & checkout ---- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.panel h2 { font-size: 20px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .name { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.cart-line .price { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 72px; text-align: right; }
.bill-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bill-row.total { font-size: 17px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.choice input { margin-top: 4px; }
.choice small { display: block; color: var(--muted); }
.map-box { height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- orders ---- */
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.order-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-top strong { font-size: 17px; }
.status-steps { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.status-steps span { padding: 4px 9px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.status-steps span.done { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.otp { font-family: Manrope, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: .25em; }

/* ---- footer ---- */
.s-footer { border-top: 1px solid var(--line); padding: 34px max(16px, calc((100vw - 1200px) / 2)) 40px; background: var(--paper-2); }
.s-footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.s-footer-grid p { color: var(--muted); font-size: 13px; margin: 8px 0 0; max-width: 36ch; }
.s-footer nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 20px; font-size: 14px; }
.s-footer nav a { text-decoration: none; color: var(--ink-2); }
.s-footer nav a:hover { text-decoration: underline; }
.s-legal { font-size: 12px; color: var(--muted); margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.7; }

/* ---- toast ---- */
.s-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 90; max-width: calc(100% - 32px); }
.s-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- policy pages ---- */
.policy { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 80px; }
.policy h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; margin-bottom: 16px; }
.policy h2 { font-size: 22px; margin: 34px 0 10px; }
.policy p, .policy li { color: var(--ink-2); line-height: 1.75; }
.policy .lead { font-size: 19px; color: var(--ink); }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.policy th, .policy td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy .updated { font-size: 13px; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; padding: 0; list-style: none; counter-reset: step; }
.flow li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; counter-increment: step; font-size: 14px; }
.flow li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--peach); color: var(--ink); font-weight: 800; margin-bottom: 8px; }
.flow li strong { display: block; color: var(--ink); }

@media (max-width: 860px) {
  .s-nav { display: none; }
  .s-hero, .pdp, .two-col, .store-head, .s-footer-grid { grid-template-columns: 1fr; }
  .label-panel dl { grid-template-columns: 1fr; }
  .label-panel dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 420px) {
  .s-wordmark { font-size: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .item-card { grid-template-columns: 1fr 80px; }
  .item-thumb { width: 80px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- bottom bar: Restaurants · Groceries · Dairy ---- */
body { padding-bottom: 84px; }
.kind-bar { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: min(520px, calc(100% - 24px)); padding: 6px; background: rgba(57, 30, 50, .94); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-radius: 22px; box-shadow: 0 18px 40px -16px rgba(57, 30, 50, .6); }
.kind-bar a { display: grid; justify-items: center; gap: 3px; padding: 8px 6px; border-radius: 16px; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }
.kind-bar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kind-bar a:hover { color: #fff; }
.kind-bar a.active { background: var(--peach); color: var(--ink); }
.kind-title { font-size: 24px; margin: 4px 0 16px; }
.s-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---- demo checkout ---- */
.demo-banner { margin-bottom: 16px; }
.demo-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: s; }
.demo-steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.demo-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: 12px; flex: 0 0 auto; }
.demo-steps li.done { color: var(--ok); background: var(--ok-soft); }
.demo-steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.demo-steps li.now { color: var(--ink); background: var(--peach-soft); }
.demo-steps li.now::before { background: var(--peach); color: var(--ink); }
.timeline { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.timeline li span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); flex: 0 0 auto; position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 27px; bottom: -9px; width: 2px; background: var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done span { background: var(--ok); border-color: var(--ok); }
.timeline li.done::after { background: var(--ok); }
.timeline li.now { color: var(--ink); font-weight: 800; }
.timeline li.now span { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(216, 93, 60, .18); }
@media (max-width: 420px) { .demo-steps li { font-size: 11.5px; padding: 8px; } }

/* ---- restaurant menu (food-app layout) ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.r-page { max-width: 820px; margin: 0 auto; }
.r-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin: 4px 0 14px; }
.r-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.r-cover { width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.r-card-body { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.r-card-body p { margin: 0; }
.r-line { font-weight: 800; font-size: 16px; }
.r-new { color: var(--ok); }
.r-cuisines { color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.r-hours { font-size: 14px; color: var(--ink-2); }
.r-timeline { margin-top: 6px; border-left: 2px solid var(--line); padding-left: 12px; display: grid; gap: 4px; font-size: 14px; }
.r-timeline b { color: var(--ink); margin-right: 6px; }
.r-page > .notice { margin-top: 16px; }
.r-tools { display: grid; gap: 12px; margin: 22px 0 6px; }
.r-search input { width: 100%; border: 0; background: var(--paper-2); border-radius: 12px; padding: 14px 16px; text-align: center; font-size: 15px; }
.r-search input:focus { outline: 2px solid var(--accent); text-align: left; }
.r-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.static { cursor: default; color: var(--veg); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip .diet { margin-top: 0; }
.r-section { border-top: 14px solid var(--paper-2); margin: 0 -2px; }
.r-section > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; }
.r-section > summary::-webkit-details-marker { display: none; }
.r-section > summary::after { content: "⌃"; font-size: 18px; transform: rotate(0deg); transition: transform .2s; }
.r-section:not([open]) > summary::after { transform: rotate(180deg); }
.r-section h2 { font-size: 18px; font-weight: 800; }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 18px; padding: 18px 2px 26px; border-bottom: 1px solid var(--line); }
.dish[hidden], .r-section[hidden] { display: none; }
.dish-text h3 { font-size: 17px; font-weight: 700; margin-top: 6px; }
.dish-text h3 a { text-decoration: none; }
.dish-text h3 a:hover { text-decoration: underline; }
.dish-price { font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dish-desc { color: var(--ink-2); font-size: 14px; margin: 10px 0 0; }
.dish-facts { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.dish-media { position: relative; padding-bottom: 18px; }
.dish-photo { display: block; width: 156px; height: 144px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--paper-2); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-add { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.add-btn { border: 1px solid var(--line); background: #fff; color: var(--ok); font-weight: 800; font-size: 16px; letter-spacing: .02em; border-radius: 10px; padding: 8px 34px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); cursor: pointer; }
.add-btn:hover { background: var(--ok-soft); }
.add-btn.big { padding: 10px 40px; }
.dish-add .stepper, .stepper.big { background: #fff; color: var(--ok); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .35); border-radius: 10px; }
.r-legal { background: var(--paper-2); border-radius: 18px; padding: 22px; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.r-legal h2 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.r-legal ul { margin: 0 0 18px; padding-left: 18px; display: grid; gap: 6px; }
.r-legal p { margin: 2px 0; }
.r-fssai { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 14px; color: var(--muted); }
.fssai-logo { height: 26px; width: auto; display: block; }
.r-legal-name { font-weight: 700; color: var(--ink); font-size: 16px; }
.r-address { margin-top: 8px !important; }
body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(28, 16, 25, .55); display: grid; place-items: center; padding: 16px; }
.dish-modal { position: relative; background: var(--card); border-radius: 22px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.dish-modal-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.dish-modal-body { padding: 16px 20px 22px; }
.dish-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.dish-modal-head h2 { font-size: 20px; margin-top: 6px; }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts dt { color: var(--muted); font-weight: 600; background: var(--paper); }
.facts dd.pending { color: var(--warn); font-style: italic; }
.facts > :nth-last-child(-n+2) { border-bottom: 0; }
.fine { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.photo-credit { font-size: 11px; color: var(--muted); margin: 8px 0 0; }

/* ---- grocery & dairy (quick-commerce layout) ---- */
.g-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.g-head h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.g-head p { margin: 6px 0 0; color: var(--ink-2); }
.g-eta { font-weight: 700; color: var(--ok) !important; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.p-media { position: relative; display: block; background: #f6f3ee; aspect-ratio: 400 / 310; }
.p-media svg, .p-media img, .gp-view svg, .gp-view img, .gp-thumb svg, .gp-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.p-off { position: absolute; top: 0; left: 10px; background: #3f6fd8; color: #fff; font-size: 11px; font-weight: 800; padding: 6px 7px 8px; border-radius: 0 0 8px 8px; line-height: 1.1; }
.p-off.inline { position: static; border-radius: 6px; padding: 3px 7px; font-size: 12px; }
.p-body { padding: 10px 12px 12px; display: grid; gap: 4px; align-content: start; }
.p-eta { justify-self: start; display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: var(--paper-2); border-radius: 6px; padding: 3px 6px; color: var(--ink-2); }
.p-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.p-body h3 a { text-decoration: none; }
.p-qty { margin: 0; font-size: 13px; color: var(--muted); }
.p-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.p-price { display: grid; font-variant-numeric: tabular-nums; }
.p-price b { font-size: 15px; }
.p-price s { font-size: 12px; color: var(--muted); }
.p-foot .add-btn { padding: 6px 16px; font-size: 14px; }
.gp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 34px; align-items: start; }
.gp-gallery { position: sticky; top: 90px; }
.gp-view { background: #f6f3ee; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; aspect-ratio: 400 / 310; }
.gp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gp-thumb { width: 86px; aspect-ratio: 400 / 310; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #f6f3ee; }
.gp-thumb[aria-selected="true"] { border-color: var(--ink); }
.gp-caption { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.gp-brand { margin: 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.gp-info h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 4px 0 6px; }
.gp-qty { margin: 0 0 8px; color: var(--ink-2); }
.gp-price { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.gp-price b { font-size: 26px; font-family: Manrope, sans-serif; }
.gp-price s, .gp-mrp { color: var(--muted); }
.gp-tax { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.gp-actions { margin: 16px 0 18px; }
.gp-info > .notice { margin-bottom: 18px; }
.gp-sec { margin-top: 20px; }
.gp-sec h2 { font-size: 18px; font-weight: 800; }
.gp-sec .nutrition { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.g-disclaimer { background: var(--paper-2); border-radius: 18px; padding: 18px 22px; margin-top: 30px; font-size: 13.5px; color: var(--ink-2); }
.g-disclaimer h2 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.g-disclaimer p { margin: 0; }
@media (max-width: 860px) {
  .r-card, .gp { grid-template-columns: 1fr; }
  .r-cover { min-height: 160px; max-height: 200px; }
  .gp-gallery { position: static; }
}
@media (max-width: 520px) {
  .dish { grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; }
  .dish-photo { width: 118px; height: 110px; }
  .add-btn { padding: 7px 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 2px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.p-cat { margin: 0; font-size: 11.5px; color: var(--muted); }
.p-body h3 { min-height: 0; }
.gp-fees { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); background: var(--ok-soft); border-radius: 10px; padding: 8px 10px; }
.gp-view { cursor: zoom-in; }
.zoom-box { position: relative; background: #fff; border-radius: 16px; overflow: hidden; width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.zoom-box svg, .zoom-box img { width: 100%; height: auto; display: block; max-height: calc(100vh - 32px); object-fit: contain; }
.p-media svg.back { display: none; }
body.modal-open #kind-bar { display: none; }
.g-cats-title { font-size: 20px; margin: 22px 0 12px; }
.g-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.g-cat { display: grid; gap: 8px; justify-items: center; text-align: center; border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink); }
.g-cat-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 18px; background: #eef1f6; overflow: hidden; border: 2px solid transparent; }
.g-cat-img svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.g-cat[aria-selected="true"] .g-cat-img { border-color: var(--ink); }
.p-card[hidden] { display: none; }
.gp-view svg.closeup, .zoom-box svg.closeup { background: #fff; }
.g-disclaimer .r-fssai { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.g-disclaimer .r-legal-name { margin: 0; font-weight: 700; color: var(--ink); }
.g-disclaimer .r-address { margin: 4px 0 0 !important; }
