/* Zarrr design system. One column app (max 520px) so it looks the same in the Play Store app and on the web. */
:root {
  --ink: #0b0b0b; --ink2: #5e5e5e; --ink3: #8d8d8d;
  --line: #ececec; --fill: #f4f2ef; --fill2: #ebe7e2;
  --bg: #ffffff; --page: #f3f1ee; --cream: #fff8f0; --card: #ffffff;
  --saffron: #ffc400; --chilli: #e8432e; --chilli-soft: #fdecea;
  --good: #06a35a; --good-soft: #e7f6ee; --bad: #d93025; --warn: #b26a00; --warn-soft: #fff4dc;
  --radius: 16px; --shadow: 0 8px 30px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.08); --shadow-s: 0 1px 3px rgba(0,0,0,.08), 0 1px 1px rgba(0,0,0,.03);
  --col: 520px; --safe-b: env(safe-area-inset-bottom);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent; font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { min-height: 100vh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.app { max-width: var(--col); margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,.03); }
@media (min-width: 600px) { .app { box-shadow: 0 0 40px rgba(0,0,0,.06); } }
.fixed-col { position: fixed; left: 50%; transform: translateX(-50%); width: min(100%, var(--col)); }

/* ---------------- type */
h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.03em; margin: 6px 0 6px; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin: 2px 0 4px; }
h3 { font-size: 18px; letter-spacing: -.01em; margin: 22px 0 10px; }
.sub { color: var(--ink2); margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.muted { color: var(--ink2); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.b { font-weight: 700; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pad { padding: 0 16px; } .stack > * + * { margin-top: 10px; }
.price { font-weight: 800; white-space: nowrap; }

/* ---------------- logo */
.logo { font-weight: 800; letter-spacing: -.045em; font-size: 22px; display: inline-flex; align-items: center; line-height: 1; direction: ltr; }
.logo i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); margin-left: 2px; transform: translateY(5px); }
.logo .speed { display: inline-flex; flex-direction: column; gap: 3px; margin-right: 5px; }
.logo .speed b { display: block; height: 2.5px; border-radius: 2px; background: var(--saffron); }
.logo .speed b:nth-child(1) { width: 12px; } .logo .speed b:nth-child(2) { width: 8px; margin-left: 4px; } .logo .speed b:nth-child(3) { width: 10px; margin-left: 2px; }
.logo.big { font-size: 40px; } .logo.big .speed b { height: 4px; } .logo.big .speed b:nth-child(1) { width: 20px; } .logo.big .speed b:nth-child(2) { width: 13px; margin-left: 7px; } .logo.big .speed b:nth-child(3) { width: 16px; margin-left: 4px; } .logo.big i { width: 11px; height: 11px; transform: translateY(9px); }

/* ---------------- controls */
label.lbl { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--ink2); }
.field { width: 100%; height: 52px; border-radius: 12px; border: 2px solid transparent; background: var(--fill); padding: 0 14px; font-size: 16px; outline: none; transition: border-color .15s, background .15s; }
textarea.field { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.field:focus { border-color: var(--ink); background: var(--bg); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir=rtl] select.field { background-position: 20px 22px, 15px 22px; }
.phone { display: flex; gap: 8px; direction: ltr; }
.phone .cc { height: 52px; border-radius: 12px; background: var(--fill); display: grid; place-items: center; padding: 0 14px; font-weight: 700; }
.btn { width: 100%; height: 54px; border-radius: 12px; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .08s, opacity .15s, background .15s; user-select: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.chilli { background: var(--chilli); color: #fff; }
.btn.saffron { background: var(--saffron); color: var(--ink); }
.btn.secondary { background: var(--fill); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.danger { background: var(--chilli-soft); color: var(--bad); }
.btn.good { background: var(--good); color: #fff; }
.btn.sm { height: 42px; font-size: 15px; border-radius: 10px; }
.btn.xs { height: 34px; font-size: 13px; border-radius: 9px; width: auto; padding: 0 12px; }
.btn.auto { width: auto; padding: 0 18px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .spacer { flex: 1; }
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ibtn:active { background: var(--fill); }
.ibtn.solid { background: var(--bg); box-shadow: var(--shadow); }
[dir=rtl] [data-i=back] svg, [dir=rtl] [data-i=next] svg { transform: scaleX(-1); }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin: 10px 0 0; line-height: 1.4; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: rot .7s linear infinite; }
.spin.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes rot { to { transform: rotate(360deg); } }
.switch { position: relative; width: 52px; height: 32px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #cfcfcf; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; inset-inline-start: 3px; top: 3px; width: 26px; height: 26px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::after { transform: translateX(20px); }
[dir=rtl] .switch input:checked + span::after { transform: translateX(-20px); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--fill); font-weight: 600; font-size: 14px; white-space: nowrap; flex: none; }
.chip.on { background: var(--ink); color: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 7px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge.demo { background: #eef0ff; color: #3d4ed8; }
.badge.closed { background: var(--fill2); color: var(--ink2); }
.badge.free { background: var(--good-soft); color: var(--good); }
.badge.hot { background: var(--chilli-soft); color: var(--chilli); }
.stars-inline { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.stars-inline svg { width: 14px; height: 14px; fill: var(--saffron); color: var(--saffron); }

/* ---------------- top bars */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; min-height: 60px; }
.topbar.shadow { box-shadow: 0 1px 0 var(--line); }
.addr-chip { display: flex; align-items: center; gap: 6px; min-width: 0; text-align: start; }
.addr-chip .k { font-size: 12px; color: var(--ink2); font-weight: 600; display: block; }
.addr-chip .v { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.addr-chip .v svg { width: 16px; height: 16px; flex: none; }
.searchbar { margin: 0 16px; height: 48px; border-radius: 12px; background: var(--fill); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--ink2); font-size: 15px; width: calc(100% - 32px); text-align: start; }
.searchbar input { border: 0; background: none; outline: none; flex: 1; min-width: 0; height: 100%; font-size: 16px; color: var(--ink); }

/* ---------------- bottom nav */
.tabbar { bottom: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding-bottom: var(--safe-b); }
.tabbar button { height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink3); position: relative; }
.tabbar button.on { color: var(--ink); }
.tabbar button .dot { position: absolute; top: 8px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--chilli); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.has-tabbar { padding-bottom: calc(76px + var(--safe-b)); }

/* ---------------- illustrations, covers, thumbs */
.thumb { border-radius: 14px; overflow: hidden; background: var(--fill); flex: none; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.art { background: radial-gradient(circle at 30% 25%, #fffaf3, #f6eadb); display: grid; place-items: center; }
.thumb.art svg { width: 88%; height: 88%; }
.cover { position: relative; overflow: hidden; background: var(--fill); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.gen { background: radial-gradient(120% 90% at 85% 10%, hsl(var(--h) 85% 82%), transparent 60%), linear-gradient(135deg, hsl(var(--h) 70% 93%), hsl(calc(var(--h) + 25) 75% 86%)); }
.cover.gen::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(hsl(var(--h) 60% 70% / .35) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.cover.gen > div { position: absolute; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.cover.gen .cv-a { width: 52%; aspect-ratio: 1; inset-inline-end: -4%; top: 6%; }
.cover.gen .cv-b { width: 34%; aspect-ratio: 1; inset-inline-end: 38%; top: 30%; transform: rotate(-8deg); }
.cover.gen .cv-c { width: 26%; aspect-ratio: 1; inset-inline-start: 4%; top: 8%; transform: rotate(10deg); opacity: .9; }
.logo-c { border-radius: 50%; overflow: hidden; background: #fff; flex: none; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, var(--shadow-s); }
.logo-c img { width: 100%; height: 100%; object-fit: cover; }
.logo-c.gen { background: hsl(var(--h) 60% 22%); color: #fff; font-weight: 800; letter-spacing: -.02em; direction: ltr; }

/* ---------------- home */
.hero-title { padding: 6px 16px 0; }
.typerail { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 6px; }
.typerail::-webkit-scrollbar { display: none; }
.typetile { flex: none; width: 74px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.25; }
.typetile .ic { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 6px; background: radial-gradient(circle at 35% 30%, #fffaf3, #f3e6d4); display: grid; place-items: center; transition: transform .12s; }
.typetile .ic svg { width: 54px; height: 54px; }
.typetile.on .ic { box-shadow: 0 0 0 2.5px var(--ink); }
.typetile:active .ic { transform: scale(.94); }
.promos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 16px 4px; }
.promos::-webkit-scrollbar { display: none; }
.promo { flex: none; width: 82%; scroll-snap-align: center; border-radius: 18px; min-height: 128px; padding: 18px; position: relative; overflow: hidden; color: var(--ink); }
.promo b { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; max-width: 62%; }
.promo span { display: block; font-size: 13px; margin-top: 6px; max-width: 60%; color: rgba(0,0,0,.65); }
.promo .art { position: absolute; inset-inline-end: -8px; bottom: -12px; width: 46%; aspect-ratio: 1; filter: drop-shadow(0 8px 12px rgba(0,0,0,.15)); }
.promo.p1 { background: linear-gradient(135deg, #ffe082, #ffc400); }
.promo.p2 { background: linear-gradient(135deg, #ffd6cc, #ff8a65); }
.promo.p3 { background: linear-gradient(135deg, #d7f5e3, #8fdcb0); }
.shopcard { display: block; padding: 0 16px; margin-bottom: 22px; }
.shopcard .cover { height: 168px; border-radius: 16px; }
.shopcard .meta { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.shopcard .nm { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.shopcard .ln { font-size: 13px; color: var(--ink2); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.shopcard.off { opacity: .55; }
.shopcard .flag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-s); }
.dotsep::before { content: "·"; margin: 0 2px; color: var(--ink3); }
.empty { text-align: center; padding: 40px 24px; color: var(--ink2); }
.empty .art { width: 140px; height: 140px; margin: 0 auto 8px; }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.soon { margin: 4px 16px 14px; border-radius: 14px; background: var(--cream); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.soon .ic { width: 40px; height: 40px; flex: none; }

/* ---------------- shop page */
.shophead { position: relative; }
.shophead .cover { height: 210px; }
.shophead .floatbar { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 3; }
.shopinfo { position: relative; margin: -34px 12px 0; background: var(--bg); border-radius: 18px; box-shadow: var(--shadow); padding: 46px 16px 14px; z-index: 2; }
.shopinfo .logo-c { position: absolute; top: -30px; inset-inline-start: 16px; }
.shopinfo h1 { font-size: 24px; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.facts div { background: var(--fill); border-radius: 12px; padding: 8px 10px; }
.facts small { display: block; font-size: 11px; color: var(--ink2); font-weight: 700; }
.facts b { font-size: 14px; }
.cattabs { position: sticky; top: 60px; z-index: 25; background: var(--bg); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.sticky-name { position: sticky; top: 0; z-index: 26; height: 60px; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 0 12px; transform: translateY(-100%); opacity: 0; transition: .2s; pointer-events: none; margin-bottom: -60px; }
.sticky-name.on { transform: none; opacity: 1; pointer-events: auto; }
.section-h { padding: 18px 16px 4px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; scroll-margin-top: 124px; }
.prow { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: start; align-items: flex-start; }
.prow .grow .nm { font-weight: 700; font-size: 16px; line-height: 1.3; }
.prow .grow .ds { font-size: 13px; color: var(--ink2); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .grow .pr { margin-top: 6px; font-weight: 800; }
.prow .grow .pr small { font-weight: 600; color: var(--ink2); }
.prow .pic { position: relative; flex: none; }
.prow .thumb { width: 96px; height: 96px; }
.prow .add { position: absolute; bottom: -6px; inset-inline-end: -6px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--chilli); box-shadow: var(--shadow); display: grid; place-items: center; }
.prow .add svg { stroke-width: 3; }
.prow .inc { position: absolute; bottom: -6px; inset-inline-end: -6px; min-width: 36px; height: 36px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; padding: 0 10px; box-shadow: var(--shadow); }
.prow.sold { opacity: .45; }
.prow.sold .add { display: none; }

/* ---------------- sheets */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { bottom: 0; z-index: 61; background: var(--bg); border-radius: 22px 22px 0 0; max-height: 92vh; overflow-y: auto; transform: translate(-50%, 105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding-bottom: var(--safe-b); overscroll-behavior: contain; }
.sheet.on { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #d7d7d7; margin: 8px auto 4px; }
.sheet .sheet-img { height: 230px; margin: 0 0 4px; }
.sheet .sheet-img .thumb { width: 100%; height: 100%; border-radius: 0; }
.sheet .body { padding: 8px 16px 16px; }
.sheet .foot { position: sticky; bottom: 0; background: var(--bg); padding: 12px 16px calc(12px + var(--safe-b)); box-shadow: 0 -1px 0 var(--line); display: flex; gap: 10px; align-items: center; }
.optgroup { margin-top: 16px; }
.optgroup .gh { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.optgroup .gh b { font-size: 16px; }
.req { font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 7px; background: var(--fill); color: var(--ink2); }
.req.need { background: var(--warn-soft); color: var(--warn); }
.req.ok { background: var(--good-soft); color: var(--good); }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: start; font-size: 15px; }
.choice .mk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #bdbdbd; flex: none; display: grid; place-items: center; }
.choice.multi .mk { border-radius: 6px; }
.choice.on .mk { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice.on .mk::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice.multi.on .mk::after { width: 10px; height: 6px; border-radius: 0; background: none; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.stepper { display: inline-flex; align-items: center; background: var(--fill); border-radius: 12px; height: 48px; flex: none; }
.stepper button { width: 44px; height: 48px; display: grid; place-items: center; }
.stepper b { min-width: 38px; text-align: center; font-size: 17px; }
.stepper.sm { height: 36px; border-radius: 10px; }
.stepper.sm button { width: 34px; height: 36px; }
.stepper.sm b { min-width: 26px; font-size: 15px; }

/* ---------------- cart bar */
.cartbar { bottom: calc(68px + var(--safe-b)); z-index: 35; padding: 0 12px; transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.cartbar.hide { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.cartbar.no-tabs { bottom: calc(12px + var(--safe-b)); }
.cartbar button { width: 100%; height: 56px; border-radius: 14px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cartbar .n { background: var(--chilli); border-radius: 8px; min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 6px; font-size: 14px; }
.cartbar .n.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.flyer { position: fixed; width: 18px; height: 18px; border-radius: 50%; background: var(--chilli); z-index: 80; pointer-events: none; transition: transform .55s cubic-bezier(.5,-.3,.7,1), opacity .55s; }

/* ---------------- cart & checkout */
.cartline { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cartline .thumb { width: 56px; height: 56px; }
.cartline .opts { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.4; }
.card { background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-s); padding: 14px 16px; }
.card.flat { box-shadow: none; background: var(--fill); }
.bill div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.bill .tot { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.mapmini { height: 120px; border-radius: 12px; overflow: hidden; background: var(--fill); position: relative; }
.mapmini .pinmid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none; }
.saved { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px 0 0; }
.payrow { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-weight: 700; }
.payrow .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; }

/* ---------------- map screens (address picker, tracking) */
.mapscreen { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, var(--col)); z-index: 50; background: #e9e6df; }
.mapscreen .map { position: absolute; inset: 0; }
.mapscreen .mtop { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.mapscreen .mtop > * { pointer-events: auto; }
.mapsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 600; background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.14); padding: 6px 16px calc(16px + var(--safe-b)); max-height: 60%; overflow-y: auto; }
.mapsheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #d7d7d7; margin: 2px auto 12px; }
.crosshair { position: absolute; left: 50%; z-index: 590; transform: translate(-50%, -100%); pointer-events: none; transition: transform .15s; }
.crosshair.lift { transform: translate(-50%, calc(-100% - 10px)); }
.crosshair .head { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 8px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); margin: 0 auto -1px; }
.crosshair .stick { width: 3px; height: 18px; background: var(--ink); margin: 0 auto; border-radius: 2px; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255,255,255,.75) !important; }
.tiles-warm { filter: grayscale(.7) sepia(.15) brightness(1.04) contrast(.92); }
.tiles-dark { filter: invert(1) hue-rotate(180deg) grayscale(.75) brightness(.82) contrast(1.1); }

/* markers */
.zv, .zpt, .zshop, .zlabel { background: none; border: 0; }
.zv-rot { width: 44px; height: 44px; display: grid; place-items: center; transition: transform .6s ease; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.zpt-home { width: 24px; height: 24px; background: var(--ink); border: 6px solid #fff; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.zshop-in { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid var(--chilli); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); position: relative; }
.zshop-in .logo-c { box-shadow: none; }
.zshop-tail { width: 12px; height: 12px; background: var(--chilli); transform: rotate(45deg); margin: -8px auto 0; border-radius: 0 0 3px 0; }
.zshop-in.pulse::before, .zshop-in.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--chilli); animation: ring 2s ease-out infinite; }
.zshop-in.pulse::after { animation-delay: 1s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.zlabel-in { background: var(--ink); color: #fff; border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; }
.zlabel-in b { background: var(--saffron); color: var(--ink); border-radius: 5px; padding: 2px 6px; font-size: 11px; }

/* ---------------- tracking */
.eta-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.timeline { margin: 16px 0 6px; }
.tl { display: grid; grid-template-columns: 30px 1fr auto; gap: 0 12px; min-height: 46px; position: relative; }
.tl .dotc { display: flex; flex-direction: column; align-items: center; }
.tl .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--fill2); color: var(--ink3); display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.tl .dot svg { width: 14px; height: 14px; stroke-width: 2.6; }
.tl .bar { width: 2px; flex: 1; background: var(--fill2); margin: 2px 0; min-height: 14px; }
.tl:last-child .bar { display: none; }
.tl .tx { padding-top: 3px; font-weight: 600; color: var(--ink3); line-height: 1.35; }
.tl .tm { padding-top: 4px; font-size: 12px; color: var(--ink3); }
.tl.done .dot { background: var(--ink); color: #fff; } .tl.done .bar { background: var(--ink); } .tl.done .tx { color: var(--ink); }
.tl.now .dot { background: var(--chilli); color: #fff; box-shadow: 0 0 0 6px rgba(232,67,46,.15); animation: nowpulse 1.6s ease-in-out infinite; }
.tl.now .tx { color: var(--ink); font-weight: 800; }
@keyframes nowpulse { 50% { box-shadow: 0 0 0 10px rgba(232,67,46,.05); } }
.codebox { display: flex; align-items: center; gap: 14px; background: var(--cream); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.codebox .digits { font-size: 28px; font-weight: 800; letter-spacing: .25em; direction: ltr; }
.ring { width: 58px; height: 58px; position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.contact { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }

/* ---------------- stars, rating */
.stars { display: flex; gap: 8px; justify-content: center; margin: 12px 0 16px; }
.stars button { color: #d6d6d6; transition: transform .1s, color .1s; }
.stars button svg { width: 40px; height: 40px; }
.stars button.on { color: var(--saffron); }
.stars button.on svg { fill: currentColor; }

/* ---------------- toast, skeleton, confetti */
.toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -20px); background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 200; opacity: 0; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow); line-height: 1.4; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }
.skel { background: linear-gradient(90deg, var(--fill) 25%, var(--fill2) 50%, var(--fill) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.confetti { position: fixed; left: 50%; top: 45%; z-index: 300; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: conf 1.6s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes conf { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 60% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 260px)) rotate(var(--r)); opacity: 0; } }
.fadein { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- language picker */
.langs { display: inline-flex; background: var(--fill); border-radius: 999px; padding: 4px; gap: 2px; }
.langs button { border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.langs button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.langs button[lang=ur] { font-family: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; font-size: 13px; }
.langs button[lang=ps] { font-family: "Noto Naskh Arabic", serif; }
.langs button[lang=en] { font-family: "Plus Jakarta Sans", sans-serif; }

/* ---------------- list rows (account, orders) */
.lrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: start; }
.lrow .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; flex: none; }
.lrow .t { font-weight: 700; } .lrow .s { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.ostatus { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ostatus.placed, .ostatus.preparing, .ostatus.ready { background: var(--warn-soft); color: var(--warn); }
.ostatus.out { background: #e3efff; color: #1a56c4; }
.ostatus.delivered { background: var(--good-soft); color: var(--good); }
.ostatus.rejected, .ostatus.cancelled, .ostatus.expired { background: var(--chilli-soft); color: var(--bad); }

/* ---------------- Urdu (Nastaliq is tall) and Pashto */
html[lang=ur] { font-family: "Plus Jakarta Sans", "Noto Nastaliq Urdu", serif; }
html[lang=ps] { font-family: "Plus Jakarta Sans", "Noto Naskh Arabic", serif; }
html[lang=ur] h1 { font-size: 25px; line-height: 1.9; letter-spacing: 0; }
html[lang=ur] h2 { font-size: 20px; line-height: 1.9; letter-spacing: 0; }
html[lang=ur] h3, html[lang=ur] .section-h { line-height: 2; letter-spacing: 0; }
html[lang=ur] .sub, html[lang=ur] p, html[lang=ur] .ds, html[lang=ur] .s, html[lang=ur] .ln, html[lang=ur] .small { line-height: 2.05; }
html[lang=ur] .ellipsis { line-height: 2.1; padding-block: 1px; }
html[lang=ur] .nm, html[lang=ur] .t, html[lang=ur] .tx, html[lang=ur] .addr-chip .v { line-height: 2; }
html[lang=ur] .btn { font-size: 16px; line-height: 1.6; }
html[lang=ur] .typetile { line-height: 1.8; font-size: 11.5px; }
html[lang=ur] .promo b { font-size: 18px; line-height: 1.8; }
html[lang=ur] .badge, html[lang=ur] .ostatus, html[lang=ur] .req { line-height: 1.9; letter-spacing: 0; }
html[lang=ur] .toast { line-height: 2; }
html[lang=ps] h1, html[lang=ps] h2 { line-height: 1.45; letter-spacing: 0; }
html[lang=ps] .sub, html[lang=ps] p { line-height: 1.7; }
html:not([lang=en]) .field { font-size: 15px; }
.ltr { direction: ltr; unicode-bidi: isolate; }

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