/* StoreGrid Market · customer app
   Mobile first. One column with a bottom bar under 760px; content + map from 760px; header nav from 1100px. */
:root {
  --bg: #F6F7F8; --card: #FFFFFF; --ink: #1B1B1B; --ink2: #4B4F54; --mut: #7A7F85; --line: #E9EBEE; --line2: #F1F2F4; --hover: #F5F6F7;
  --green: #00B14F; --green-d: #00944A; --green-soft: #E8F8EE; --green-ink: #0B6B36;
  --amber: #F5A623; --amber-soft: #FFF4E0; --red: #D93025; --red-soft: #FDECEB; --blue: #1A73E8; --blue-soft: #E8F0FE; --star: #FFB400;
  --sh: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px -10px rgba(0,0,0,.14);
  --sh2: 0 10px 30px -10px rgba(0,0,0,.25);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --hdr: 60px; --tab: 60px; --r: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); min-height: 100dvh; padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-ink); }
[hidden] { display: none !important; }
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.f { fill: currentColor; stroke: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 50; } .skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mut { color: var(--mut); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hdr-in { max-width: 1440px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "loc brand" "search search"; gap: 10px 12px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); grid-area: brand; }
.brand .mk { width: 32px; height: 32px; border-radius: 9px; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; flex: none; }
.brand .bt { font-weight: 700; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; display: none; }
.loc { grid-area: loc; display: inline-flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; color: var(--ink); }
.loc .loc-i { width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; flex: none; }
.loc .loc-t { display: grid; min-width: 0; line-height: 1.2; } .loc small { color: var(--mut); font-size: .72rem; font-weight: 500; } .loc b { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; max-width: 60vw; } .loc b .i { color: var(--mut); }
.hsearch { grid-area: search; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; color: var(--mut); }
.hsearch:focus-within { border-color: var(--green); background: var(--card); box-shadow: 0 0 0 3px var(--green-soft); }
.hsearch input { border: 0; background: none; flex: 1; min-width: 0; height: 100%; outline: 0; font-size: .95rem; color: var(--ink); } .hsearch input::placeholder { color: var(--mut); }
.hnav { display: none; gap: 2px; }
.hnav a { text-decoration: none; color: var(--ink2); font-weight: 600; font-size: .9rem; padding: 9px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; }
.hnav a:hover { background: var(--hover); } .hnav a[aria-current="page"] { color: var(--green-d); background: var(--green-soft); }
.cnt { background: var(--red); color: #fff; font-weight: 700; font-size: .66rem; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; }

/* ---------- shell ---------- */
.shell { max-width: 1440px; margin: 0 auto; padding: 12px 16px 28px; display: grid; gap: 16px; }
.main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.main > * { min-width: 0; }
.side { display: none; }
.mapbox { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--line2); height: 100%; min-height: 240px; }
#map { position: absolute; inset: 0; z-index: 0; }
.map-tools { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 400; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.mbtn { border: 0; background: var(--card); color: var(--ink); font-weight: 600; font-size: .8rem; padding: 9px 12px; border-radius: 999px; box-shadow: var(--sh2); display: inline-flex; align-items: center; gap: 6px; }
.map-note { font-size: .74rem; color: var(--ink2); background: rgba(255,255,255,.92); padding: 6px 10px; border-radius: 999px; box-shadow: var(--sh); }
.leaflet-container { font-family: var(--font); background: var(--line2); }
.leaflet-control-attribution { font-size: .62rem !important; background: rgba(255,255,255,.75) !important; color: var(--mut) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--sh2) !important; border-radius: 10px !important; overflow: hidden; } .leaflet-bar a { border-bottom: 1px solid var(--line) !important; color: var(--ink) !important; }
.pin { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 19px; transform: translate(-19px, -19px); position: relative; }
.pin.sel { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft), 0 2px 8px rgba(0,0,0,.25); }
.pin.closed { filter: grayscale(.7); opacity: .85; }
.pin .lbl { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 5px); white-space: nowrap; font-weight: 700; font-size: .68rem; color: var(--ink); background: rgba(255,255,255,.95); padding: 2px 8px; border-radius: 999px; box-shadow: var(--sh); }
.you { width: 20px; height: 20px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(26,115,232,.18), 0 3px 8px rgba(0,0,0,.25); transform: translate(-10px, -10px); }
.rider-pin { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); transform: translate(-17px, -17px); }
.rider-pin .i { width: 18px; height: 18px; }

/* ---------- bottom bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(var(--tab) + env(safe-area-inset-bottom, 0px)); }
.tabbar a { text-decoration: none; color: var(--mut); font-weight: 600; font-size: .68rem; display: grid; justify-items: center; align-content: center; gap: 3px; position: relative; }
.tabbar a .i { width: 22px; height: 22px; } .tabbar a[aria-current="page"] { color: var(--green-d); }
.tabbar .cnt { position: absolute; top: 7px; left: calc(50% + 6px); }

/* ---------- blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card h2, .sec h2 { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; margin: 0; }
.sec { display: grid; gap: 10px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-h h2 { font-size: 1.12rem; letter-spacing: -.02em; } .sec-h .sub { color: var(--mut); font-size: .82rem; }
.sec-h a, .linkbtn { color: var(--green-d); font-weight: 600; font-size: .84rem; text-decoration: none; border: 0; background: none; padding: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; font-weight: 700; color: var(--mut); }
.btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .9rem; padding: 11px 16px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--hover); } .btn:disabled { opacity: .45; cursor: default; }
.btn.go { background: var(--green); border-color: var(--green); color: #fff; } .btn.go:hover { background: var(--green-d); }
.btn.soft { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-ink); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.danger { color: var(--red); }
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: .82rem; border-radius: 10px; } .btn.w { width: 100%; }
.btn.icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 600; background: var(--line2); color: var(--ink2); white-space: nowrap; }
.pill.go { background: var(--green-soft); color: var(--green-ink); } .pill.amber { background: var(--amber-soft); color: #9A5B00; } .pill.bad { background: var(--red-soft); color: var(--red); } .pill.blue { background: var(--blue-soft); color: var(--blue); }
.field { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink2); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 12px; font-size: .95rem; font-weight: 500; color: var(--ink); min-height: 44px; }
.field input:focus, .field select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field small { color: var(--mut); font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { background: var(--line2); border-radius: 12px; padding: 10px 12px; font-size: .84rem; color: var(--ink2); display: flex; gap: 8px; align-items: flex-start; }
.note .i { margin-top: 2px; } .note.go { background: var(--green-soft); color: var(--green-ink); } .note.amber { background: var(--amber-soft); color: #7A4A00; } .note.bad { background: var(--red-soft); color: var(--red); }
.empty { text-align: center; color: var(--mut); padding: 34px 16px; display: grid; gap: 6px; justify-items: center; }
.empty .i { width: 40px; height: 40px; color: var(--line); stroke-width: 1.4; } .empty b { color: var(--ink); font-size: 1rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line2); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; color: var(--mut); font-weight: 600; font-size: .88rem; padding: 9px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: -2px -16px; -webkit-overflow-scrolling: touch; } .chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .82rem; padding: 8px 13px; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.chips button:hover { background: var(--hover); } .chips button[aria-pressed="true"] { background: var(--green-soft); color: var(--green-ink); border-color: var(--green); }
.ttl { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; margin: 0; } .ttl + p { margin: 2px 0 0; color: var(--mut); }
.pagehead { display: flex; align-items: center; gap: 10px; }
.sk { background: linear-gradient(90deg, var(--line2) 25%, var(--line) 37%, var(--line2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- home ---------- */
.promos { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: -2px -16px; scroll-snap-type: x mandatory; } .promos::-webkit-scrollbar { display: none; }
.promo-c { flex: none; width: min(300px, 82vw); scroll-snap-align: start; border-radius: 16px; padding: 16px; color: #fff; position: relative; overflow: hidden; min-height: 128px; display: grid; align-content: end; gap: 4px; border: 0; text-align: left; font: inherit; }
.promo-c::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28), transparent 55%); }
.promo-c > * { position: relative; } .promo-c .k { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; } .promo-c b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; } .promo-c small { font-size: .8rem; opacity: .92; }
.promo-c .em { position: absolute; right: -6px; bottom: -14px; font-size: 92px; line-height: 1; opacity: .28; filter: saturate(0); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }
.cats button { position: relative; border: 2px solid transparent; background: var(--card); border-radius: 16px; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 4px 9px; color: var(--ink2); font-weight: 600; font-size: .72rem; line-height: 1.2; text-align: center; transition: transform .12s, border-color .12s; box-shadow: var(--sh); }
.cats button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cats .art, .cats .ic { width: 44px; height: 44px; } .cats .ic { border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-ink); } .cats .ic .i { width: 24px; height: 24px; }
.cats button:hover { transform: translateY(-2px); } .cats button[aria-pressed="true"] { border-color: var(--green); color: var(--ink); background: var(--green-soft); }
.cats button:disabled { opacity: .55; cursor: default; transform: none; } .cats button em { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: .56rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #94A3B8; padding: 2px 6px; border-radius: 999px; }
.cats .more { background: var(--line2); box-shadow: none; } .cats .more .ic { background: var(--card); color: var(--ink2); }
/* Google Maps anchors a marker's bottom-centre to the point; Leaflet anchors its top-left */
:root[data-maps="google"] .pin, :root[data-maps="google"] .rider-pin, :root[data-maps="google"] .you { transform: translateY(50%); }
:root[data-maps="google"] .pin .lbl { top: 100%; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.mode button { border: 0; background: transparent; color: var(--mut); font-weight: 700; font-size: .88rem; padding: 10px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ostrip { display: grid; gap: 8px; }
.oc { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: var(--ink); width: 100%; position: relative; overflow: hidden; }
.oc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); } .oc.done::before { background: var(--line); }
.oc:hover { border-color: #D6D9DE; } .oc b { font-weight: 700; display: block; font-size: .94rem; } .oc small { display: block; color: var(--mut); font-size: .76rem; margin-top: 1px; }
.oc .amt { font-weight: 700; font-size: .94rem; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 7px; }
.steps i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--green); } .steps i.now { background: var(--green); animation: pulse 1.6s ease-in-out infinite; } .steps i.bad { background: var(--red); }
@keyframes pulse { 50% { opacity: .4; } }
.avatar { border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); flex: none; }
.avatar.sm { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; }
.shops { display: grid; gap: 12px; }
.shop { display: grid; grid-template-columns: 96px 1fr; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; color: var(--ink); width: 100%; transition: border-color .12s, box-shadow .12s; align-items: start; font: inherit; }
.shop:hover { border-color: #D6D9DE; box-shadow: var(--sh2); transform: translateY(-2px); }
.cover { width: 96px; height: 96px; border-radius: 12px; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 42px; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 50%, rgba(0,0,0,.12)); }
.cover.closed::before { content: 'Closed'; position: absolute; inset: 0; z-index: 1; background: rgba(27,27,27,.55); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cover .off { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; font-size: .66rem; font-weight: 700; background: var(--green); color: #fff; padding: 4px 6px; text-align: center; line-height: 1.1; }
.cover .off.amber { background: var(--amber); }
.shop .nm { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; line-height: 1.25; display: flex; gap: 6px; align-items: center; }
.shop .nm .ver { color: var(--green); } .shop .nm .ver .i { width: 16px; height: 16px; }
.shop .meta { color: var(--ink2); font-size: .8rem; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.shop .meta .dot { color: var(--line); } .star { color: var(--star); } .star .i { width: 14px; height: 14px; }
.shop .meta2 { color: var(--mut); font-size: .78rem; margin-top: 3px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.open-t { color: var(--green-d); font-weight: 600; } .closed-t { color: var(--red); font-weight: 600; }
.shop .hit { color: var(--green-ink); font-size: .78rem; margin-top: 4px; }
.shop .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.sk-shop { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.sk-shop .sk:first-child { height: 96px; border-radius: 12px; }
.sk-shop div div { display: grid; gap: 8px; } .sk-shop .l1 { height: 16px; width: 70%; } .sk-shop .l2 { height: 12px; width: 50%; } .sk-shop .l3 { height: 12px; width: 60%; }

/* ---------- shop page ---------- */
.shp-cover { height: 150px; border-radius: 16px 16px 0 0; position: relative; overflow: hidden; margin: -12px -16px 0; border-radius: 0; }
.shp-cover .wm { position: absolute; right: -8px; bottom: -26px; font-size: 160px; line-height: 1; opacity: .25; filter: saturate(0) brightness(1.3); }
.shp-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 40%, rgba(0,0,0,.15)); }
.shp-cover .back { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(255,255,255,.95); color: var(--ink); border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh); }
.shp-info { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; margin-top: -44px; position: relative; z-index: 2; display: grid; gap: 10px; }
.shp-info .top { display: flex; gap: 12px; align-items: flex-start; }
.shp-info .avatar { width: 60px; height: 60px; font-size: 30px; border-radius: 14px; margin-top: -30px; box-shadow: var(--sh); }
.shp-info h1 { margin: 0; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.2; }
.shp-info .kind { color: var(--mut); font-size: .82rem; margin-top: 2px; }
.shp-info .facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shp-info .facts div { padding: 10px 8px; text-align: center; border-left: 1px solid var(--line); display: grid; gap: 1px; } .shp-info .facts div:first-child { border-left: 0; }
.shp-info .facts b { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; justify-content: center; gap: 4px; } .shp-info .facts small { color: var(--mut); font-size: .7rem; }
.shp-info .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sticky-tabs { position: sticky; top: var(--hdr); z-index: 5; background: var(--bg); padding: 8px 0 6px; margin-top: -8px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--card); padding: 0 8px; border-radius: 12px 12px 0 0; } .tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; color: var(--mut); font-weight: 600; font-size: .86rem; padding: 12px 10px 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-pressed="true"] { color: var(--green-d); border-bottom-color: var(--green); }
.ssearch { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; color: var(--mut); }
.ssearch input { border: 0; background: none; flex: 1; min-width: 0; height: 100%; outline: 0; color: var(--ink); }
.menu { display: grid; gap: 18px; }
.msec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.msec h2 { font-weight: 700; font-size: 1.02rem; margin: 0; padding: 12px 0 6px; letter-spacing: -.01em; }
.item { display: grid; grid-template-columns: 1fr 88px; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line2); align-items: stretch; }
.item:first-of-type { border-top: 0; }
.item .t { display: grid; gap: 3px; align-content: start; } .item .nm { font-weight: 600; font-size: .92rem; line-height: 1.3; } .item .sz { color: var(--mut); font-size: .78rem; } .item .pr { font-weight: 700; font-size: .95rem; margin-top: 4px; }
.item .th { position: relative; width: 88px; height: 88px; border-radius: 12px; background: var(--line2); display: grid; place-items: center; font-size: 40px; }
.item .add { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card); color: var(--green-d); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.item .add .i { width: 18px; height: 18px; stroke-width: 2.4; }
.stp { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh); }
.item .stp { position: absolute; right: -4px; bottom: -4px; }
.stp button { border: 0; background: none; width: 32px; height: 32px; color: var(--green-d); border-radius: 50%; display: grid; place-items: center; } .stp button .i { width: 16px; height: 16px; stroke-width: 2.4; } .stp span { min-width: 18px; text-align: center; font-weight: 700; font-size: .9rem; }
.basketbar { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab) + 12px + env(safe-area-inset-bottom, 0px)); background: var(--green); color: #fff; border: 0; border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh2); z-index: 15; text-align: left; font: inherit; }
.basketbar .n { background: rgba(255,255,255,.28); border-radius: 8px; min-width: 26px; height: 26px; display: grid; place-items: center; font-weight: 700; font-size: .85rem; } .basketbar b { font-weight: 700; font-size: .95rem; } .basketbar .amt { font-weight: 700; }

/* item detail sheet */
.item-sheet { padding: 0; gap: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; max-height: 92dvh; transform: translateY(24px); opacity: 0; transition: transform .22s ease, opacity .18s ease; }
.item-sheet.in { transform: none; opacity: 1; }
.ish-hero { height: 190px; display: grid; place-items: center; position: relative; overflow: hidden; } .ish-hero .em { font-size: 96px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); } .ish-hero img { width: 100%; height: 100%; object-fit: cover; }
.ish-hero .x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh); }
.ish-b { padding: 16px; overflow: auto; display: grid; gap: 14px; } .ish-b h2 { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; margin: 0; }
.opt-g { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .opt-h { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; background: var(--line2); } .opt-h b { font-weight: 700; font-size: .9rem; } .opt-h small { color: var(--mut); font-size: .74rem; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-top: 1px solid var(--line2); cursor: pointer; font-size: .92rem; } .opt input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.ish-f { display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--card); } .ish-f .stp { height: 46px; } .ish-f .stp button { width: 42px; height: 44px; } .ish-f .btn { min-height: 46px; font-weight: 700; }
.item .pr .pill { margin-left: 6px; vertical-align: 1px; } .item:hover { background: var(--hover); margin: 0 -14px; padding-left: 14px; padding-right: 14px; cursor: pointer; }
@media (min-width: 760px) { .scrim { align-items: center; } .item-sheet { border-radius: 20px; width: 520px; } }
/* order again */
.again { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: -2px -16px; } .again::-webkit-scrollbar { display: none; }
.ag { flex: none; width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 4px; text-decoration: none; color: var(--ink); } .ag b { font-weight: 700; font-size: .88rem; } .ag small { color: var(--mut); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ag .pill { justify-self: start; margin-top: 4px; }
.cover.sm { width: 44px; height: 44px; font-size: 22px; border-radius: 10px; } .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* map card + hover sync */
.map-card { position: absolute; left: 10px; right: 10px; bottom: 56px; z-index: 401; background: var(--card); border-radius: 14px; box-shadow: var(--sh2); padding: 10px; display: flex; align-items: center; gap: 10px; animation: rise .18s ease; }
.map-card b { font-weight: 700; display: block; font-size: .9rem; } .map-card small { color: var(--mut); font-size: .76rem; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.shop.hl { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.pin { transition: transform .12s, box-shadow .12s; } .pin.sel { transform: translate(-19px, -19px) scale(1.12); z-index: 5; }
:root[data-maps="google"] .pin.sel { transform: translateY(50%) scale(1.12); }
/* basket bar bump */
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } } .basketbar .n.bump { animation: bump .35s ease; }
.item .add:active, .stp button:active { transform: scale(.88); }
/* ratings */
.oc .rate { display: block; font-size: .68rem; color: var(--green-d); font-weight: 700; text-align: right; margin-top: 2px; } .oc .rate.on { color: var(--star); letter-spacing: .05em; }
.starrow { display: flex; gap: 6px; justify-content: center; margin: 4px 0 12px; } .starrow button { border: 0; background: none; font-size: 2.1rem; line-height: 1; color: var(--line); padding: 2px 4px; transition: transform .1s, color .1s; } .starrow button.on { color: var(--star); } .starrow button:hover { transform: scale(1.12); }
.chips.wrap { flex-wrap: wrap; overflow: visible; } .stars { color: var(--star); letter-spacing: .05em; font-size: 1.1rem; } .stars .off { color: var(--line); }
.shp-cover .share { left: auto; right: 12px; } .shp-cover .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item .th img, .bl .im img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* desktop filter sidebar */
.filters { display: none; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px 12px; }
.fcard .fh { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 4px; border-bottom: 1px solid var(--line2); } .fcard .fh b { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.fcard h3 { margin: 14px 0 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.fo { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; font-size: .88rem; cursor: pointer; } .fo:hover { background: var(--hover); }
.fo input { width: 16px; height: 16px; accent-color: var(--green); margin: 0; } .fo small { color: var(--mut); font-size: .74rem; } .fo .i { color: var(--mut); }
.fo:has(input:checked) { color: var(--green-ink); font-weight: 600; }
/* map page carousel */
.mcar { position: absolute; left: 0; right: 0; bottom: 54px; z-index: 401; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px; scrollbar-width: none; } .mcar::-webkit-scrollbar { display: none; }
.mc { flex: none; width: min(320px, calc(100% - 48px)); scroll-snap-align: center; background: var(--card); border-radius: 14px; box-shadow: var(--sh2); padding: 10px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mc b { display: block; font-weight: 700; font-size: .9rem; } .mc small { display: flex; gap: 4px; align-items: center; color: var(--mut); font-size: .74rem; flex-wrap: wrap; } .mc > .i { color: var(--mut); }
/* site footer */
.site { border-top: 1px solid var(--line); margin-top: 8px; padding: 22px 0 8px; display: grid; gap: 16px; }
.site .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; } .site .brand .bt { display: inline; }
.site h4 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); } .site a, .site .mut { display: block; font-size: .86rem; padding: 3px 0; text-decoration: none; color: var(--ink2); } .site a:hover { color: var(--green-d); } .site p.mut { padding: 6px 0 0; font-size: .82rem; line-height: 1.5; }
.site .legal { display: flex; gap: 14px; flex-wrap: wrap; font-size: .74rem; color: var(--mut); border-top: 1px solid var(--line2); padding-top: 12px; } .site .legal a { display: inline; padding: 0; font-size: inherit; }

/* route card */
.route { display: grid; gap: 12px; } .route .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; flex: none; }
.route b { display: block; font-weight: 700; font-size: .95rem; } .route small { display: block; font-size: .78rem; }
.route .navs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .route .navs .btn { font-weight: 700; }
.route-map { display: none; }
@media (max-width: 759px) { .route-map { display: block; height: 260px; border-radius: 12px; overflow: hidden; position: relative; } .route-map .mapbox { height: 100%; min-height: 0; border-radius: 12px; } .route-map .map-note { display: none; } .route-map .mbtn { padding: 7px 10px; font-size: .74rem; } .route-map:empty { display: none; } }
.route .wz { width: 22px; height: 22px; border-radius: 50%; background: #33CCFF; color: #fff; font-weight: 900; font-size: .8rem; display: grid; place-items: center; }

/* ---------- basket ---------- */
.ckwrap { display: grid; gap: 14px; }
.addr-c { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.addr-c .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green-d); display: grid; place-items: center; }
.addr-c b { display: block; font-weight: 700; font-size: .92rem; } .addr-c small { color: var(--mut); font-size: .78rem; display: block; }
.bl .it { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.bl .it:last-child { border-bottom: 0; }
.bl .im { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-size: 24px; background: var(--line2); }
.bl b { font-weight: 600; font-size: .92rem; display: block; } .bl small { display: block; color: var(--mut); font-size: .76rem; margin-top: 1px; } .bl .p { font-weight: 700; font-size: .9rem; margin-top: 2px; }
.tot { display: grid; gap: 8px; font-size: .9rem; }
.tot div { display: flex; justify-content: space-between; gap: 10px; color: var(--ink2); } .tot .big { font-weight: 800; font-size: 1.1rem; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 2px; } .tot .off { color: var(--green-d); }
.payopt { display: grid; gap: 8px; }
.payopt label { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.payopt label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.payopt .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink2); }
.payopt input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; } .payopt b { display: block; font-weight: 700; font-size: .9rem; } .payopt small { color: var(--mut); font-size: .76rem; }
.cta { position: sticky; bottom: calc(var(--tab) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 6; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--sh2); display: grid; gap: 8px; }
.cta .l { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--mut); } .cta .l b { color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.cta .btn { font-size: .95rem; min-height: 48px; font-weight: 700; }

/* ---------- tracking ---------- */
.trk-h { display: flex; align-items: flex-start; gap: 12px; }
.trk-h .eta { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; margin: 0; } .trk-h .st { color: var(--ink2); font-size: .88rem; margin-top: 2px; }
.tl { margin: 0; padding: 0; list-style: none; display: grid; }
.tl li { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start; font-size: .88rem; color: var(--ink2); position: relative; padding: 8px 0; }
.tl li .t { font-size: .76rem; color: var(--mut); font-weight: 500; padding-top: 2px; }
.tl li .d { width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin: 4px 3px 0; position: relative; } .tl li.on .d { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); } .tl li.on { color: var(--ink); font-weight: 600; }
.tl li:not(:last-child) .d::after { content: ''; position: absolute; left: 5px; top: 12px; width: 2px; height: calc(100% + 10px); background: var(--line2); }
.rider-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; background: var(--line2); border-radius: 12px; padding: 12px; }
.rider-card .av { width: 48px; height: 48px; border-radius: 50%; background: var(--card); display: grid; place-items: center; color: var(--green-d); border: 1px solid var(--line); }
.rider-card b { display: block; font-weight: 700; } .rider-card small { color: var(--mut); font-size: .78rem; }
.kv { display: grid; } .kv div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); font-size: .88rem; } .kv div:last-child { border-bottom: 0; } .kv span:first-child { color: var(--mut); }

/* ---------- sheet / toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; display: grid; align-items: end; justify-items: center; }
.sheet { background: var(--card); width: min(560px, 100%); border-radius: 20px 20px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; max-height: 90dvh; overflow: auto; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto; }
.sheet h2 { font-weight: 800; font-size: 1.1rem; margin: 0; letter-spacing: -.02em; }
.sheet .smap { height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.sheet .smap > div { position: absolute; inset: 0; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: .88rem; font-weight: 500; z-index: 40; box-shadow: var(--sh2); max-width: calc(100% - 32px); }
.foot { color: var(--mut); font-size: .74rem; text-align: center; padding: 8px 0 0; }

/* ---------- breakpoints ---------- */
@media (max-width: 759px) {
  .shell[data-page="map"] .main { display: none; } .shell[data-page="map"] .side { display: block; } .shell[data-page="map"] .mapbox { height: calc(100dvh - var(--hdr) - var(--tab) - 40px - env(safe-area-inset-bottom, 0px)); border-radius: var(--r); }
  .shell[data-page="map"] { padding-top: 12px; } .shell[data-page="map"] .map-tools { bottom: 10px; } .shell[data-page="map"] .mcar { bottom: 58px; }
  .hdr .hsearch { display: none; } body[data-page="home"] .hdr .hsearch { display: flex; }
  .shell[data-page="order"] .side { display: block; order: -1; margin: -12px -16px 0; } .shell[data-page="order"] .mapbox { height: 300px; min-height: 0; border-radius: 0; border: 0; }
  .shell[data-page="shop"] { padding-top: 0; } .shp-cover { margin-top: 0; }
}
@media (min-width: 760px) {
  body { padding-bottom: 0; } .tabbar { display: none; }
  .hdr-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search loc"; padding: 12px 20px; }
  .brand .bt { display: inline; } .loc b { max-width: 240px; } .loc { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; } .loc .loc-i { width: 30px; height: 30px; }
  .shell { grid-template-columns: minmax(0, 1fr) minmax(300px, 42%); padding: 18px 20px 32px; }
  .side { display: block; position: sticky; top: calc(var(--hdr) + 18px); height: calc(100dvh - var(--hdr) - 36px); }
  .mapbox { height: 100%; }
  .shp-cover { margin: 0; border-radius: 16px 16px 0 0; height: 190px; }
  .shp-info { margin: -44px 12px 0; }
  .sticky-tabs { top: calc(var(--hdr) + 10px); }
  .cats { grid-template-columns: repeat(8, 1fr); } .cats .art, .cats .ic { width: 48px; height: 48px; }
  .promo-c { width: 320px; }
  .msec .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .item:nth-of-type(2) { border-top: 0; }
  .basketbar { left: auto; right: auto; bottom: 20px; width: 560px; }
  .cta { bottom: 16px; }
}
@media (min-width: 1100px) {
  .hdr-in { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand search loc nav"; gap: 16px; }
  .hnav { display: flex; grid-area: nav; }
  .shell { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 22px; }
  .basketbar { width: 640px; }
  .site .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1180px) {
  .shell[data-page="home"] { grid-template-columns: 230px minmax(0, 620px) minmax(0, 1fr); }
  .shell[data-page="home"] .filters { display: block; position: sticky; top: calc(var(--hdr) + 18px); align-self: start; max-height: calc(100dvh - var(--hdr) - 36px); overflow: auto; scrollbar-width: thin; }
  .shell[data-page="home"] .chips.home, .shell[data-page="home"] .mode { display: none; }
  .shell[data-page="home"] .basketbar { left: max(20px, calc((100vw - 1440px) / 2 + 272px)); }
}
@media (min-width: 1400px) { .shell { grid-template-columns: minmax(0, 760px) minmax(0, 1fr); } .shell[data-page="home"] { grid-template-columns: 240px minmax(0, 720px) minmax(0, 1fr); } .basketbar { width: 760px; } .shops { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
