/* MukheDao — brand: pink sunset gradient, heavy display type, chunky rounded UI */
/* Bangla: our own cuts of Anek Bangla (assets/fonts/OFL.txt), loaded only when the page has Bengali text.
   Text matches Plus Jakarta Sans; Display is wider and heavier to match Unbounded's headings. */
@font-face { font-family: "MukheDao Bangla"; src: url("../fonts/mukhedao-bangla.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
@font-face { font-family: "MukheDao Bangla Display"; src: url("../fonts/mukhedao-bangla-display.woff2") format("woff2"); font-weight: 600 800; font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+25CC; }
:root {
  --grad: linear-gradient(120deg, #f6661c 0%, #ee1f4d 50%, #e4007f 100%);
  --orange: #f6661c; --red: #ee1f4d; --pink: #e4007f; --red-rgb: 238 31 77;
  --ink: #1c0a13; --ink-2: #4a2a38; --muted: #84697a;
  --bg: #fffafb; --surface: #ffffff; --soft: #fff0f4; --line: #f3dfe6;
  --ok: #14a37f; --warn: #f59e0b; --bad: #dc2626;
  --display: "Unbounded", "MukheDao Bangla Display", "Arial Black", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "MukheDao Bangla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
  --shadow: 0 20px 44px -22px rgb(var(--red-rgb) / .38);
  /* theme tokens (light) */
  --surface-2: #faf6f8; --admin-bg: #fbf6f8; --inverse: #1c0a13; --glass: rgba(255, 250, 251, .86);
  --warn-bg: #fff4d6; --warn-fg: #a16207; --note-bg: #fff8e6;
  --ok-bg: #dcf7ee; --ok-soft: #e9f8f3; --ok-fg: #0f7a5f;
  --bad-bg: #fdecec; --neutral-bg: #f1f1f1; --neutral-fg: #666666; --info-bg: #eaf3ff; --info-fg: #1d4ed8;
  color-scheme: light;
}
/* dark: follows the phone/computer setting, or the toggle (data-theme on <html>) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #f7ecf1; --ink-2: #dccbd3; --muted: #a8929d;
  --bg: #120a0e; --surface: #1e1319; --surface-2: #271921; --soft: #34131f; --line: #3b2731;
  --admin-bg: #0e080b; --inverse: #2d1a24; --glass: rgba(18, 10, 14, .86);
  --warn-bg: #3a2c0d; --warn-fg: #f5c76a; --note-bg: #33280f;
  --ok-bg: #0f3229; --ok-soft: #12322a; --ok-fg: #6ee0be;
  --bad-bg: #3d1518; --bad: #ff6b6b; --neutral-bg: #2a2025; --neutral-fg: #b9a9b1; --info-bg: #142640; --info-fg: #8db7ff;
  --shadow: 0 20px 44px -22px rgba(0, 0, 0, .7); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --ink: #f7ecf1; --ink-2: #dccbd3; --muted: #a8929d;
  --bg: #120a0e; --surface: #1e1319; --surface-2: #271921; --soft: #34131f; --line: #3b2731;
  --admin-bg: #0e080b; --inverse: #2d1a24; --glass: rgba(18, 10, 14, .86);
  --warn-bg: #3a2c0d; --warn-fg: #f5c76a; --note-bg: #33280f;
  --ok-bg: #0f3229; --ok-soft: #12322a; --ok-fg: #6ee0be;
  --bad-bg: #3d1518; --bad: #ff6b6b; --neutral-bg: #2a2025; --neutral-fg: #b9a9b1; --info-bg: #142640; --info-fg: #8db7ff;
  --shadow: 0 20px 44px -22px rgba(0, 0, 0, .7); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; touch-action: manipulation; } /* no double-tap zoom */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-grad:hover { filter: saturate(1.15) brightness(1.04); }
.btn-ghost { background: var(--surface); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-white { background: #fff; color: var(--red); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }
.link-btn { background: none; border: 0; color: var(--red); font-weight: 800; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.head-row { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -.03em; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 21px; box-shadow: 0 8px 18px -8px rgb(var(--red-rgb) / .7); transform: rotate(-6deg); }
.brand-mark.is-mouth svg { width: 100%; height: 100%; display: block; }
.brand-mark.has-img { background: none; transform: none; overflow: hidden; box-shadow: none; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-mark.big { width: 64px; height: 64px; font-size: 32px; border-radius: 20px; margin-bottom: 20px; }
.top-nav { display: flex; gap: 4px; margin: 0 auto; }
.top-nav a { padding: 9px 16px; border-radius: 999px; font-weight: 700; color: var(--ink-2); }
.top-nav a:hover { background: var(--soft); color: var(--red); }
.top-nav a[aria-current="page"] { background: var(--inverse); color: #fff; }
.bag-btn { display: inline-flex; align-items: center; gap: 9px; background: var(--grad); color: #fff; border-radius: 999px; padding: 10px 12px 10px 18px; font-weight: 800; box-shadow: var(--shadow); }
.bag-count { background: #fff; color: var(--red); min-width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; padding: 0 6px; }
.bottom-nav { display: none; }

@media (max-width: 860px) {
  .top-nav { display: none; }
  .head-row { justify-content: space-between; height: 62px; }
  .hide-sm { display: none; }
  .bag-btn { padding: 9px 10px 9px 13px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); box-shadow: 0 -10px 30px -18px rgba(28,10,19,.25); }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 800; color: var(--muted); padding: 6px 0; border-radius: 14px; }
  .bottom-nav a[aria-current="page"] { color: var(--red); background: var(--soft); }
}

/* floating bag (mobile) */
.float-bag { display: none; }
@media (max-width: 860px) {
  .float-bag:not([hidden]) { display: flex; position: fixed; left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 44; justify-content: space-between; align-items: center; background: var(--grad); color: #fff; border-radius: 18px; padding: 14px 18px; font-weight: 800; box-shadow: var(--shadow); animation: rise .3s ease-out; }
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* hero: one compact row (pill + headline | location buttons) */
.hero-mini { padding-block: 18px 4px; }
/* shape background */
.hero-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 22px 26px 18px; background: var(--soft); border: 2px solid var(--line); }
.hero-shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-shapes i { position: absolute; display: block; }
.hs1 { width: 360px; height: 360px; right: -90px; top: -210px; border-radius: 46% 54% 42% 58% / 52% 40% 60% 48%; background: var(--grad); opacity: .2; animation: morph 12s ease-in-out infinite; }
.hs2 { width: 150px; height: 150px; left: -60px; bottom: -80px; border-radius: 50%; border: 18px solid rgb(var(--red-rgb) / .14); }
.hs3 { width: 130px; height: 70px; right: 31%; top: 14px; background: radial-gradient(rgb(var(--red-rgb) / .35) 2px, transparent 2.5px) 0 0 / 14px 14px; }
.hs4 { width: 54px; height: 54px; left: 44%; bottom: 66px; border-radius: 16px; background: var(--grad); opacity: .16; rotate: 18deg; }
.hs5 { width: 26px; height: 26px; right: 22%; bottom: 20px; border-radius: 50%; background: var(--orange); opacity: .28; }
/* top-selling logo strip */
.top-strip { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed rgb(var(--red-rgb) / .16); }
.top-label { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.logo-marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-set { display: flex; gap: 10px; padding-right: 10px; }
.lchip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); font-size: 14px; white-space: nowrap; transition: border-color .15s, transform .15s; }
.lchip:hover { border-color: var(--red); transform: translateY(-2px); }
.lchip-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; }
.lchip-logo img { width: 100%; height: 100%; object-fit: cover; }
.lchip-logo > span { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 17px; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee { overflow-x: auto; } }
.hero-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; }
.status-pill, .open-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: 14px; font-weight: 800; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(20, 163, 127, .2); animation: pulse 2s infinite; }
.is-closed .dot { background: var(--muted); box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(20, 163, 127, .08); } }
.hero-mini h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin: 10px 0 0; }
.hero-mini .status-pill { padding: 4px 12px 4px 9px; font-size: 13px; }
.hero-acts { display: flex; gap: 10px; }
.hero-bar .field-msg { grid-column: 1 / -1; margin: 0; }
.hero-bar .field-msg:empty { display: none; }
.hero-mini + .sec { padding-top: 32px; }
.lede { font-size: 19px; color: var(--ink-2); font-weight: 600; max-width: 46ch; margin-bottom: 28px; }
@media (max-width: 760px) {
  .hero-mini { padding-block: 14px 0; }
  .hero-panel { padding: 16px 16px 14px; border-radius: 22px; }
  .hs1 { width: 240px; height: 240px; right: -90px; top: -150px; }
  .hs3 { right: 6%; top: 10px; width: 84px; }
  .hs4 { display: none; }
  .top-strip { gap: 10px; margin-top: 14px; padding-top: 12px; }
  .top-label { font-size: 11px; letter-spacing: .03em; flex-direction: column; gap: 2px; text-align: center; max-width: 64px; line-height: 1.15; }
  .lchip { font-size: 13px; padding-right: 12px; }
  .lchip-logo { width: 34px; height: 34px; }
  .hero-bar { grid-template-columns: 1fr; }
  .hero-mini h1 { font-size: clamp(21px, 5.9vw, 30px); margin-top: 8px; }
  .hero-mini + .sec { padding-top: 22px; }
  .hero-acts .btn { flex: 1; padding: 11px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* art tiles */
.art { border-radius: 16px; overflow: hidden; aspect-ratio: 5 / 4; display: grid; place-items: center; max-width: 100%; }
.art svg { width: 100%; height: 100%; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.tile-pink { background: linear-gradient(150deg, #ffd6e2, #f57aa3); }
.tile-sun { background: linear-gradient(150deg, #ffeab6, #f7a23c); }
.tile-fire { background: linear-gradient(150deg, #ffd3bd, #ef6a3f); }
.tile-choc { background: linear-gradient(150deg, #f0d5c2, #94603f); }
.tile-mint { background: linear-gradient(150deg, #d6f6eb, #5ccfb1); }
.tile-grape { background: linear-gradient(150deg, #ead2f0, #9d4fb5); }

/* sections */
.sec { padding-block: 48px; }
/* two sections in a row share one gap instead of stacking both paddings */
.sec + .sec { padding-top: 0; }
@media (max-width: 640px) { .sec { padding-block: 32px; } }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 46px); margin-top: 8px; }
.more { font-weight: 800; color: var(--ink-2); border-bottom: 3px solid var(--line); padding-bottom: 2px; }
.more:hover { color: var(--red); border-color: var(--red); }

.crave { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.crave a { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 10px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.crave a:hover { transform: translateY(-5px) rotate(-1deg); border-color: var(--red); box-shadow: var(--shadow); }
.crave strong { display: block; margin: 12px 4px 0; font-size: 15px; font-weight: 800; line-height: 1.25; }
.crave span { display: block; margin: 2px 4px 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 960px) { .crave { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .crave { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chips button { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 20px; font-weight: 800; }
.chips button[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow); }

/* item cards */
.grid-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.item { background: var(--surface); border: 2px solid var(--line); border-radius: 26px; padding: 10px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f8c6d5; }
.item-art { position: relative; }
.item-art .art { border-radius: 18px; }
/* Labels on the food photo: small pills, kept clear of the heart button (top right) */
.chip-best, .chip-only { position: absolute; z-index: 1; left: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 10px -6px rgb(0 0 0 / .45); }
.chip-best { top: 8px; max-width: calc(100% - 58px); background: var(--inverse); color: #fff; }
.chip-hot { background: var(--grad); }
.chip-hot::before { content: "★"; font-size: 1.05em; letter-spacing: 0; }
.item-body { padding: 14px 8px 6px; display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.item-cat { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.item h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.item p { color: var(--muted); font-size: 14px; font-weight: 600; }
.item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--display); font-weight: 800; font-size: 20px; }
.price small { font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 700; }
.add-btn { width: 46px; height: 46px; border-radius: 16px; border: 0; background: var(--grad); color: #fff; font-size: 26px; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .15s; }
.add-btn:hover { transform: rotate(90deg) scale(1.06); }
.add-btn.pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
@media (max-width: 1020px) { .grid-items { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-items { grid-template-columns: repeat(2, 1fr); gap: 12px; } .item h3 { font-size: 16px; } .item p { display: none; } .price { font-size: 17px; } .add-btn { width: 40px; height: 40px; border-radius: 14px; } }
@media (max-width: 360px) { .grid-items { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 14px; }
.g-tile { position: relative; border-radius: var(--r); overflow: hidden; }
.g-tile:first-child { grid-row: span 2; }
.g-tile .art { aspect-ratio: auto; height: 100%; border-radius: 0; }
.g-tile .art svg { width: 70%; max-width: 240px; height: auto; }
.g-tile > span { position: absolute; left: 12px; bottom: 12px; background: rgba(28, 10, 19, .78); color: #fff; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; } .g-tile:first-child { grid-row: auto; grid-column: span 2; } }

/* branches */
.branch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.branch { background: var(--surface); border: 2px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.branch-top { height: 120px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.branch-top .open-pill { position: absolute; top: 12px; left: 12px; border: 0; font-size: 12px; color: var(--ink); }
.branch-body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.branch h3 { font-size: 21px; margin-bottom: 2px; }
.branch-body p svg { vertical-align: -2px; }
.branch-acts { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.branch-acts .btn { flex: 1; }
@media (max-width: 1020px) { .branch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .branch-grid { grid-template-columns: 1fr; } }

/* CTA */
.cta-band { background: var(--grad); color: #fff; border-radius: 36px; padding: 52px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-band h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 900; margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: .92; max-width: 44ch; margin-bottom: 24px; }
.cta-steps { display: grid; gap: 12px; position: relative; z-index: 1; }
.cta-steps div { background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.28); border-radius: 18px; padding: 14px 16px; font-weight: 800; display: flex; align-items: center; gap: 14px; }
.cta-steps b { width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--red); display: grid; place-items: center; font-family: var(--display); }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 32px 24px; border-radius: 28px; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 52px 28px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 30px; }
.site-foot p { color: var(--muted); margin-top: 14px; max-width: 34ch; font-size: 15px; }
.site-foot h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.site-foot ul a:hover { color: var(--red); }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* page hero + menu */
.page-hero { padding-block: 44px 26px; }
.page-hero.slim { padding-bottom: 12px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 900; letter-spacing: -.04em; margin-top: 8px; }
.page-hero .lede { margin-top: 14px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 0 16px; margin-top: 22px; max-width: 560px; color: var(--muted); }
.search:focus-within { border-color: var(--red); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; padding: 15px 0; font-weight: 700; min-width: 0; }
.cat-bar { position: sticky; top: calc(70px + env(safe-area-inset-top)); z-index: 30; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .cat-bar { top: calc(62px + env(safe-area-inset-top)); } }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-scroll a { flex: none; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 14px; }
.cat-scroll a.on { background: var(--grad); color: #fff; border-color: transparent; }
.menu-wrap { padding-block: 10px 40px; }
.menu-sec { padding-top: 34px; scroll-margin-top: 150px; }
.menu-sec h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.count { font-family: var(--body); font-size: 14px; background: var(--soft); color: var(--red); border-radius: 999px; padding: 3px 11px; letter-spacing: 0; }
.empty-note { text-align: center; color: var(--muted); padding: 50px 0; font-size: 17px; }

/* bottom sheet (options) */
.sheet-scrim { position: fixed; inset: 0; background: rgba(28, 10, 19, .5); z-index: 60; }
.sheet { position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(520px, 100%); translate: -50% 100%; background: var(--surface); border-radius: 28px 28px 0 0; padding: 12px 22px calc(22px + env(safe-area-inset-bottom)); transition: translate .28s cubic-bezier(.2, .9, .3, 1.1); }
.sheet.open { translate: -50% 0; }
@media (min-width: 700px) { .sheet { bottom: 50%; border-radius: 28px; translate: -50% 60%; opacity: 0; transition: translate .25s, opacity .2s; } .sheet.open { translate: -50% 50%; opacity: 1; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 16px; }
.sheet h3 { font-size: 24px; }
.opt-list { display: grid; gap: 10px; margin: 16px 0 20px; }
.opt { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 800; cursor: pointer; }
.opt span { flex: 1; }
.opt input { accent-color: var(--red); width: 20px; height: 20px; }
.opt:has(input:checked) { border-color: var(--red); background: var(--soft); }
.sheet-foot { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 800; font-size: 18px; line-height: 1; }
.qty button:hover { border-color: var(--red); color: var(--red); }
.qty b { min-width: 18px; text-align: center; }
.qty.big button { width: 44px; height: 44px; border-radius: 14px; }

/* Short messages ("… added"): a small pill centred near the bottom, as wide as its text (up to the screen width) */
.toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: min(480px, calc(100% - 24px)); box-sizing: border-box;
  bottom: calc(24px + env(safe-area-inset-bottom)); background: var(--inverse); color: #fff; padding: 9px 16px; border-radius: 14px;
  font-size: 13.5px; font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 80; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); text-align: center; animation: rise .25s ease-out; }
@media (max-width: 860px) { .toast { bottom: calc(146px + env(safe-area-inset-bottom)); } } /* above the floating bag bar */

/* forms */
input, select, textarea { width: 100%; border: 2px solid var(--line); background: var(--surface); border-radius: 16px; padding: 13px 15px; font-weight: 700; outline: 0; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
textarea { resize: vertical; }
label { font-weight: 800; font-size: 14px; display: block; margin-bottom: 7px; }
.lbl-gap { margin-top: 18px; }
.phone-field { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; margin: 14px 0 6px; }
.phone-field:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px var(--soft); }
.phone-field span { padding: 0 6px 0 18px; font-family: var(--display); font-weight: 800; color: var(--muted); }
.phone-field input { border: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .04em; padding: 16px 16px 16px 6px; border-radius: 0; }
.phone-field input:focus { box-shadow: none; }
.field-msg { min-height: 22px; font-size: 14px; color: var(--bad); margin-bottom: 10px; }
.field-msg.ok { color: var(--ok); }
.form-error, .alert { background: var(--bad-bg); color: var(--bad); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; margin: 12px 0; }
.alert.ok { background: var(--ok-bg); color: var(--ok-fg); }
.alert.warn { background: var(--warn-bg); color: var(--warn-fg); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }

/* checkout */
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; padding-block: 18px 40px; }
.co-main { display: grid; gap: 18px; min-width: 0; }
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: 26px; padding: 22px; }
.panel h2 { font-size: 21px; display: flex; align-items: center; gap: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.step { width: 32px; height: 32px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.sticky { position: sticky; top: calc(90px + env(safe-area-inset-top)); }
.co-side h2 { margin-bottom: 14px; }
.bag-list { display: grid; gap: 10px; }
.bag-row { display: grid; grid-template-columns: 58px 1fr auto auto; gap: 14px; align-items: center; border: 2px solid var(--line); border-radius: 18px; padding: 8px 14px 8px 8px; }
.bag-thumb { width: 58px; height: 50px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.bag-thumb svg, .bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-info { min-width: 0; }
.bag-info b { display: block; font-weight: 800; }
.bag-info small { color: var(--muted); font-weight: 700; }
.bag-line { font-family: var(--display); min-width: 64px; text-align: right; }
@media (max-width: 560px) { .bag-row { grid-template-columns: 50px 1fr auto; } .bag-line { grid-column: 2; text-align: left; } .bag-row .qty { grid-row: 1 / span 2; grid-column: 3; } .bag-thumb { width: 50px; height: 44px; grid-row: span 2; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; font-family: var(--display); font-size: 17px; }
.seg small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); margin-top: 3px; }
.seg input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.seg input:checked + span small { color: rgba(255,255,255,.88); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.branch-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bp { margin: 0; cursor: pointer; display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.bp input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.bp b { display: block; }
.bp small { color: var(--muted); font-weight: 700; }
.bp:has(input:checked) { border-color: var(--red); background: var(--soft); }
.bp.is-closed { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { .branch-pick { grid-template-columns: 1fr; } }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-weight: 700; color: var(--ink-2); }
.sum-row.total { border-top: 2px dashed var(--line); margin-top: 6px; padding-top: 14px; font-family: var(--display); font-size: 22px; color: var(--ink); }
.co-side .muted { margin: 10px 0 14px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .sticky { position: static; } }
.empty-bag, .success { text-align: center; padding: 30px 0 60px; display: grid; justify-items: center; gap: 12px; }
.empty-bag .art { width: 200px; border-radius: 30px; }
.empty-bag h2, .success h2 { font-size: 32px; }
.tick { width: 92px; height: 92px; border-radius: 30px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); animation: pop .5s ease; }
.code { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 9vw, 60px); letter-spacing: .04em; padding: 10px 26px; border: 3px dashed var(--red); border-radius: 22px; color: var(--red); }

/* orders */
.orders-wrap { padding-block: 16px 50px; max-width: 820px; }
.lookup label:first-child { font-size: 16px; }
.lookup-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lookup-row .phone-field { flex: 1; min-width: 220px; margin: 0; }
.lookup .field-msg { margin-top: 8px; }
.who { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; font-weight: 700; }
.order-list { display: grid; gap: 16px; }
.order-card { background: var(--surface); border: 2px solid var(--line); border-radius: 26px; padding: 20px; }
.order-card.cancelled { opacity: .75; }
.oc-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.code-sm { font-family: var(--display); font-size: 22px; display: block; }
.oc-head small { color: var(--muted); font-weight: 700; }
.status { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.s-pending { background: var(--warn-bg); color: var(--warn-fg); }
.s-accepted, .s-preparing { background: var(--soft); color: var(--red); }
.s-ready { background: var(--grad); color: #fff; }
.s-completed { background: var(--ok-bg); color: var(--ok-fg); }
.s-cancelled { background: var(--neutral-bg); color: var(--neutral-fg); }
.track { list-style: none; padding: 0; margin: 20px 0 6px; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.track li { position: relative; text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); padding-top: 30px; }
.track li span { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 22px; height: 22px; border-radius: 50%; background: var(--line); z-index: 1; }
.track li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 4px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li.done span, .track li.now span { background: var(--grad); }
.track li.done::before, .track li.now::before { background: var(--red); }
.track li.now { color: var(--red); }
.track li.now span { box-shadow: 0 0 0 6px var(--soft); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 10px rgb(var(--red-rgb) / .08); } }
.cancelled { margin: 16px 0 4px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-weight: 700; color: var(--neutral-fg); }
.oc-items { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 2px dashed var(--line); display: grid; gap: 6px; }
.oc-items li { display: flex; justify-content: space-between; gap: 10px; }
.oc-items em { color: var(--muted); font-style: normal; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-family: var(--display); font-size: 18px; }
.oc-foot .btn-row { font-family: var(--body); }
.empty-orders { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 36px; }

/* install / auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; background: var(--grad); }
.auth-card { width: min(440px, 100%); background: var(--surface); border-radius: 30px; padding: 34px; box-shadow: 0 30px 60px -20px rgba(28, 10, 19, .5); }
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.auth-card .muted { margin-bottom: 18px; }
.form { display: grid; gap: 6px; }
.form input { margin-bottom: 8px; }
.form .btn { margin-top: 10px; }
.stack-btns { display: grid; gap: 10px; margin-top: 20px; }

/* ───────── v2: restaurants, location, pre-payment ───────── */
.head-row { gap: 14px; }
.loc-bar { min-width: 0; }
.loc-btn { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); background: var(--surface); border-radius: 16px; padding: 6px 12px; max-width: 280px; text-align: left; }
.loc-btn:hover { border-color: var(--red); }
.loc-btn svg { color: var(--red); flex: none; }
.loc-btn span:not(.chev) { display: grid; min-width: 0; line-height: 1.15; }
.loc-btn small { font-size: 11px; color: var(--muted); font-weight: 700; }
.loc-btn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); font-size: 12px; }
.loc-gps { margin-top: 16px; }
.loc-sheet-gap, [data-loc-sheet] select { margin-bottom: 12px; }
.loc-clear { margin-top: 4px; }
@media (max-width: 860px) {
  .head-row { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 8px; }
  .loc-bar { order: 3; width: 100%; }
  .loc-btn { max-width: none; width: 100%; padding: 8px 12px; }
  .chev { margin-left: auto; }
  .bottom-nav { grid-template-columns: repeat(5, 1fr); }
  .cat-bar { top: calc(118px + env(safe-area-inset-top)); }
}

.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok-fg); }
.b-off { background: var(--neutral-bg); color: var(--neutral-fg); }
.b-pay { background: var(--soft); color: var(--red); }
.rcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rcard { background: var(--surface); border: 2px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.rcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f8c6d5; }
.rcard.is-closed { opacity: .72; }
.rcard-art { position: relative; }
.rcard-art .art { border-radius: 0; aspect-ratio: 16 / 9; }
.rcard-art .art svg { width: 62%; height: auto; }
.rcard-art .open-pill { position: absolute; top: 12px; left: 12px; border: 0; font-size: 12px; }
.dist-pill { position: absolute; top: 12px; right: 12px; background: var(--inverse); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.rcard-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.rcard h3 { font-size: 22px; }
.rcard-where { font-weight: 700; color: var(--ink-2); }
.near-note { margin: -12px 0 18px; font-weight: 700; }
@media (max-width: 960px) { .rgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rgrid { grid-template-columns: 1fr; } }

.dish-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.dish { background: var(--surface); border: 2px solid var(--line); border-radius: 22px; padding: 10px; display: grid; gap: 4px; }
.dish:hover { border-color: var(--red); }
.dish b { margin-top: 8px; font-weight: 800; line-height: 1.25; }

/* restaurant page */
.r-hero { padding-block: 32px 18px; }
.r-hero-row { display: flex; gap: 26px; align-items: center; }
.r-logo { width: 150px; flex: none; }
.r-logo .art { border-radius: 30px; aspect-ratio: 1; box-shadow: var(--shadow); }
.r-logo .art svg { width: 80%; height: auto; }
.r-info { display: grid; gap: 10px; min-width: 0; }
.r-info h1 { font-size: clamp(34px, 5.6vw, 62px); font-weight: 900; letter-spacing: -.04em; }
.r-info .lede { margin: 0; }
@media (max-width: 640px) { .r-hero-row { flex-direction: column; align-items: start; gap: 16px; } .r-logo { width: 96px; } }
.branch-switch { padding-top: 26px; padding-bottom: 18px; }
@media (max-width: 640px) { .branch-switch { padding-top: 20px; } }
.bs-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bs-head h2 { font-size: 20px; }
.bs-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.bs-row::-webkit-scrollbar { display: none; }
.bs { flex: none; min-width: 170px; border: 2px solid var(--line); background: var(--surface); border-radius: 18px; padding: 12px 14px; display: grid; gap: 2px; }
.bs:hover { border-color: var(--red); }
.bs b { font-family: var(--display); font-size: 17px; }
.bs small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.bs.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.bs.on small { color: rgba(255,255,255,.9); }
.bs .dot-s { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.bs.is-closed .dot-s { background: var(--muted); }
.bs.on .dot-s { background: var(--surface); }
.bs-dist:empty { display: none; }
.bs-detail { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.bs-detail svg { vertical-align: -2px; color: var(--red); }
.closed-note, .warn { background: var(--warn-bg); color: var(--warn-fg); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; margin-top: 14px; }
.cat-scroll { align-items: center; }
.search.mini { margin: 0 0 0 auto; flex: none; padding: 0 12px; border-radius: 999px; min-width: 170px; }
.search.mini input { padding: 8px 0; font-size: 14px; }
@media (max-width: 640px) {
  .search.mini { min-width: 130px; padding: 0 10px; }
  .search.mini input { padding: 6px 0; font-size: 12.5px; }
  .cat-scroll { gap: 6px; padding-block: 8px; }
  .cat-scroll a { padding: 6px 13px; font-size: 12.5px; border-width: 1.5px; }
  .item { padding: 8px; border-radius: 20px; }
  .item-art .art { border-radius: 14px; }
  .item-cat { font-size: 9.5px; letter-spacing: .08em; }
}
@media (max-width: 400px) { .cat-scroll a { padding: 5px 11px; font-size: 12px; } .item-cat { font-size: 9px; } }
.chip-only { bottom: 8px; background: rgb(255 255 255 / .94); color: var(--red); }
.item.sold-out { opacity: .55; }
.item.sold-out:hover { transform: none; box-shadow: none; }

/* checkout payment */
.seg label.is-off { opacity: .45; cursor: not-allowed; }
.loc-inline { margin-top: 10px; }
.loc-inline svg { color: var(--red); }
.field-msg.muted { color: var(--muted); }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pay-opt { margin: 0; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt span { display: block; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.pay-opt b { display: block; font-family: var(--display); font-size: 18px; }
.pay-opt small { color: var(--muted); font-weight: 700; }
.pay-opt input:checked + span { border-color: var(--red); background: var(--soft); box-shadow: 0 0 0 3px var(--soft); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.pm-bkash b { color: #e2136e; }
.pm-nagad b { color: #ec6321; }
.pay-why { grid-column: 1 / -1; margin-top: 2px; }
.prepay { margin-top: 16px; border: 2px dashed #f4b7c9; border-radius: 20px; padding: 18px; background: var(--surface-2); }
.pay-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; font-weight: 600; }
.pay-steps b { font-weight: 800; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; margin-left: 6px; vertical-align: 1px; }
.copy-btn:hover { border-color: var(--red); color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > div { min-width: 0; }
.prepay .two input { font-family: var(--display); letter-spacing: .03em; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.pay-state { background: var(--soft); color: var(--red); font-weight: 800; padding: 10px 16px; border-radius: 14px; }

/* orders v2 */
.oc-rest { display: block; font-size: 16px; margin-top: 2px; }
.pay-line { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pstat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.ps-verifying, .ps-unpaid { background: var(--warn-bg); color: var(--warn-fg); }
.ps-paid { background: var(--ok-bg); color: var(--ok-fg); }
.ps-rejected { background: var(--bad-bg); color: var(--bad); }
.ps-refunded { background: var(--neutral-bg); color: var(--neutral-fg); }
.repay { margin-top: 12px; display: grid; gap: 10px; background: var(--bad-bg); border-radius: 16px; padding: 14px; }
.repay .btn { justify-self: start; }

.swap-acts { margin-top: 20px; }
.foot-grid { grid-template-columns: 1.3fr 1fr 2fr; }
.foot-cols { columns: 2; display: block !important; }
.foot-cols li { margin-bottom: 9px; break-inside: avoid; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-wide { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } .foot-cols { columns: 1; } }

/* v3: customer login */
.acct-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; background: var(--soft); border-radius: 18px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.acct-acts { display: flex; gap: 16px; }
.mini-form { display: grid; gap: 10px; margin-bottom: 16px; }
.mini-form h3, .protect h3 { font-size: 18px; }
.protect { display: grid; gap: 8px; margin-bottom: 16px; border-color: #f8c6d5; background: var(--surface-2); }
.protect .lookup-row input { flex: 1; min-width: 200px; }
.hint-line { background: var(--surface-2); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.device-note { margin: 0 0 12px; font-weight: 700; }
.login-panel { display: grid; gap: 8px; margin-top: 22px; }
.login-panel h2 { font-size: 24px; display: block; }
.login-panel .phone-field { margin: 6px 0 4px; }
.login-panel .btn { justify-self: start; margin-top: 6px; }

/* v4: maps, saved addresses, riders */
.md-pin { background: none !important; border: 0 !important; }
.map-loading { color: var(--muted); font-weight: 700; font-size: 14px; padding: 16px; text-align: center; }
.addr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.addr-list:empty { display: none; }
.addr-opt { margin: 0; cursor: pointer; }
.addr-opt input { position: absolute; opacity: 0; pointer-events: none; }
.addr-opt span { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; height: 100%; }
.addr-opt b { font-weight: 800; }
.addr-opt small { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.addr-opt input:checked + span { border-color: var(--red); background: var(--soft); }
.addr-opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }
.warn-s { color: var(--warn-fg) !important; font-weight: 800 !important; }
.addr-new { display: grid; gap: 8px; }
.addr-map { height: 260px; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.addr-map > .leaflet-container, .addr-map > div:not(.map-loading) { width: 100%; height: 100%; }
/* Maps keep their layers (z-index up to 1000) inside: otherwise they cover the header and the checkout's floating bar */
.leaflet-container, .addr-map { isolation: isolate; z-index: 0; }
.addr-map { position: relative; }
.map-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map-tools svg { color: var(--red); }
.pin-msg { font-size: 13px; font-weight: 700; color: var(--muted); }
.pin-msg.ok { color: var(--ok); }
.save-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.save-row .check { margin: 0; }
.save-row select { width: auto; padding: 8px 12px; }
.rider-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--ok-soft); color: var(--ok-fg); border-radius: 14px; padding: 10px 14px; margin-top: 12px; font-weight: 700; }
.oc-addr { margin-top: 8px; }
.addr-book { margin-top: 18px; }
.addr-rows { display: grid; gap: 8px; }
.addr-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; flex-wrap: wrap; }
.addr-row > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
.addr-row small { color: var(--muted); font-weight: 600; }
.addr-edit { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--line); }
.s-picked_up { background: var(--grad); color: #fff; }
.track li { font-size: 11.5px; }

.help-foot { font-weight: 700; color: var(--ink-2) !important; }
.help-foot a { color: var(--red); }
.help-foot small { color: var(--muted); font-weight: 600; }
.help-link { color: var(--red); font-weight: 800; }
.help-btn { border-color: #f8c6d5; color: var(--red); }

/* v5: hidden radio inputs must never widen the page (that zoomed phones out and hid the bottom menu) */
.seg label, .pay-opt, .addr-opt, .opt { position: relative; }
.seg input, .pay-opt input, .addr-opt input { width: 1px !important; height: 1px !important; left: 0; top: 0; margin: 0; }
html, body { overflow-x: clip; }
.bottom-nav a[aria-current="page"] svg { color: var(--red); }

/* v5: restaurant banners */
.rcard-art .art img { object-fit: cover; }
.rcard-logo { position: absolute; left: 14px; bottom: -22px; width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 3px solid var(--surface); background: var(--surface); box-shadow: 0 8px 18px -10px rgba(0,0,0,.5); }
.rcard-art:has(.rcard-logo) + .rcard-body { padding-top: 28px; }
.r-banner { height: clamp(160px, 28vw, 320px); background-size: cover; background-position: center; position: relative; }
.r-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); }
.r-hero.has-banner { margin-top: -70px; position: relative; z-index: 1; padding-top: 0; }
.r-hero.has-banner .r-logo .art { border: 4px solid var(--surface); }
.r-banner.no-img, .r-back, .r-banner .open-pill { display: none; }
/* mobile: cover photo on top, then a card with logo + name + tagline, info chips in one swipeable row */
@media (max-width: 640px) {
  .r-banner, .r-banner.no-img { display: block; height: 190px; }
  .r-banner.no-img { height: 120px; background: var(--grad); overflow: hidden; }
  .r-banner.no-img::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: -190px 150px 0 -40px rgba(255, 255, 255, .1); }
  .r-banner::after { background: linear-gradient(180deg, rgba(0, 0, 0, .38), transparent 38%, transparent 62%, rgba(0, 0, 0, .22)); }
  .r-banner.no-img::after { background: none; }
  .r-back { display: grid; place-items: center; position: absolute; z-index: 2; top: 12px; left: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #1c0a13; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
  .r-banner .open-pill { display: inline-flex; position: absolute; z-index: 2; top: 15px; right: 14px; padding: 4px 11px 4px 8px; font-size: 12px; border: 0; background: rgba(255, 255, 255, .94); color: #1c0a13; }
  .r-hero, .r-hero.has-banner { margin-top: -46px; padding: 0 0 4px; position: relative; z-index: 1; }
  .r-hero-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center;
    margin-inline: 14px; width: auto; padding: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: 22px; box-shadow: 0 18px 34px -24px rgba(28, 10, 19, .45); }
  .r-logo, .r-hero.has-banner .r-logo { width: 64px; grid-row: 1 / 3; align-self: center; }
  .r-logo .art, .r-hero.has-banner .r-logo .art { border-radius: 18px; border: 0; box-shadow: none; }
  .r-info { display: contents; }
  .r-info > .more { display: none; }
  .r-info h1 { grid-column: 2; align-self: end; font-size: clamp(20px, 6vw, 24px); line-height: 1.12; letter-spacing: -.03em; overflow-wrap: anywhere; }
  .r-info .lede { grid-column: 2; align-self: start; font-size: 13.5px; color: var(--muted); max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .r-info .rcard-tags { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 10px -12px 0; padding: 10px 12px 0; border-top: 2px dashed var(--line); }
  .r-info .rcard-tags::-webkit-scrollbar { display: none; }
}

/* v5: dark mode details */
.theme-btn, .lang-btn { border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 14px; height: 40px; min-width: 40px; padding: 0 10px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; }
.theme-btn:hover, .lang-btn:hover { border-color: var(--red); color: var(--red); }
.theme-btn svg { width: 18px; height: 18px; }
.head-tools { display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .head-tools { margin-left: auto; } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9); } }
:root[data-theme="dark"] .art svg ellipse, :root[data-theme="dark"] .tile-pink, :root[data-theme="dark"] .tile-sun,
:root[data-theme="dark"] .tile-fire, :root[data-theme="dark"] .tile-choc, :root[data-theme="dark"] .tile-mint, :root[data-theme="dark"] .tile-grape { filter: saturate(.9) brightness(.92); }
.lg-shop::before { background: var(--ink) !important; }
.auth-top { display: flex; justify-content: space-between; align-items: start; }
.auth-top .brand-mark.big { margin-bottom: 20px; }
.bs-near{font-size:.62rem;padding:.1rem .4rem;vertical-align:middle}

/* online payment */
.pay-wait { background: var(--warn-bg); color: var(--warn-fg); border-radius: 16px; padding: 12px 14px; margin: 10px 0; display: grid; gap: 8px; justify-items: start; }
.pay-wait p { margin: 0; }
.status.s-waitpay { background: var(--warn-bg); color: var(--warn-fg); }
.pay-note { margin-bottom: 16px; }
.pay-opt.pm-online b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-fg); margin-left: 6px; vertical-align: 2px; }

/* profile button in the header */
.profile-btn { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--ink); background: var(--surface); transition: border-color .15s, color .15s; }
.profile-btn:hover, .profile-btn[aria-current="page"] { border-color: var(--red); color: var(--red); }
@media (max-width: 640px) { .profile-btn { width: 38px; height: 38px; } }

/* hearts */
.fav-btn { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgb(255 255 255 / .92); color: #6d5560; box-shadow: 0 6px 16px -8px rgb(0 0 0 / .4); transition: transform .15s, color .15s; z-index: 2; }
.fav-btn svg { fill: none; transition: fill .15s; }
.fav-btn:hover { transform: scale(1.08); color: var(--red); }
.fav-btn.on { color: var(--red); } .fav-btn.on svg { fill: currentColor; }
.fav-btn.pop { animation: heartPop .45s ease; }
/* Phones (two foods per row): smaller labels and heart */
@media (max-width: 760px) {
  .chip-best, .chip-only { left: 6px; font-size: 9px; padding: 3px 7px; letter-spacing: .04em; max-width: calc(100% - 12px); }
  .chip-best { top: 6px; max-width: calc(100% - 44px); }
  .chip-only { bottom: 6px; }
  .item .fav-btn { top: 5px; right: 5px; width: 30px; height: 30px; }
  .item .fav-btn svg { width: 16px; height: 16px; }
}
@keyframes heartPop { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.item.flash-item { border-color: var(--red); box-shadow: 0 0 0 6px rgb(var(--red-rgb) / .15); }

/* home: favourite again */
.fav-again-sec { padding-top: 6px; padding-bottom: 32px; }
.fav-again { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 28px; padding: 14px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.fav-again:hover { border-color: var(--red); transform: translateY(-2px); }
.fa-art { position: relative; } .fa-art .art { border-radius: 20px; aspect-ratio: 5 / 4; }
.fa-heart { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; }
.fa-heart svg { fill: currentColor; }
.fa-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 4px 0 6px; }
.fa-body p { margin: 0 0 14px; }
.fa-more { margin: 10px 4px 0; font-weight: 800; } .fa-more a { color: var(--red); }
@media (max-width: 560px) { .fav-again { grid-template-columns: 110px 1fr; gap: 14px; padding: 10px; } .fa-body .btn { padding: 9px 16px; font-size: 14px; } .fa-body p { margin-bottom: 10px; } }

/* profile page */
.profile-wrap { display: grid; gap: 16px; padding-block: 18px 40px; max-width: 860px; }
.profile-wrap > * { margin: 0; }
.profile-card { display: flex; gap: 18px; align-items: center; }
.pc-avatar { width: 76px; height: 76px; flex: none; border-radius: 26px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 900 34px/1 var(--display); transform: rotate(-4deg); box-shadow: var(--shadow); }
.pc-main { min-width: 0; } .pc-main h2 { margin: 0 0 2px; font-size: 26px; overflow-wrap: anywhere; } .pc-main p { margin: 0 0 10px; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-stats span { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pc-stats b { color: var(--ink); }
.skel { background: var(--surface-2); box-shadow: none; transform: none; }
.skel-line { height: 18px; width: 180px; background: var(--surface-2); border-radius: 8px; } .skel-line.short { width: 120px; margin-top: 8px; }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fav-card { position: relative; border: 2px solid var(--line); border-radius: 22px; padding: 8px; display: flex; flex-direction: column; transition: opacity .25s, transform .25s; }
.fav-card.leaving { opacity: 0; transform: scale(.94); }
.fav-card.off { opacity: .6; }
.fav-art .art { border-radius: 16px; aspect-ratio: 5 / 4; }
.fav-body { padding: 8px 4px 2px; display: grid; gap: 2px; flex: 1; }
.fav-body small { color: var(--muted); font-weight: 600; }
.fav-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.fav-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 18px 10px; color: var(--muted); grid-column: 1 / -1; }
.fav-empty svg { color: var(--red); fill: none; } .fav-empty p { margin: 0; max-width: 360px; }
.profile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-links a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2); color: inherit; }
.profile-links a svg { color: var(--red); flex: none; } .profile-links span { display: grid; } .profile-links small { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .profile-links { grid-template-columns: 1fr; } .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pc-avatar { width: 62px; height: 62px; font-size: 28px; border-radius: 20px; } .pc-main h2 { font-size: 22px; } .fav-foot { flex-wrap: wrap; } }

/* ---------- checkout: summary always in view, vouchers, phone total bar ---------- */
.co-side { position: sticky; top: calc(88px + env(safe-area-inset-top)); align-self: start; }
.co-sum { max-height: calc(100vh - 108px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.sum-row.disc { color: var(--ok-fg); }
.sum-row.disc small { font-size: 12px; font-weight: 800; letter-spacing: .04em; margin-left: 4px; }
.save-note { margin: 4px 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok-fg); font-weight: 800; font-size: 14px; text-align: center; }
.voucher { margin: 0 0 12px; padding: 12px; border: 2px dashed var(--line); border-radius: 18px; }
.v-row { display: flex; gap: 8px; }
.v-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; margin: 0; }
.v-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; }
.v-applied { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--ok-soft); color: var(--ok-fg); }
.v-applied div { flex: 1; min-width: 0; display: grid; }
.v-applied b { letter-spacing: .06em; }
.v-applied small { color: var(--ink-2); font-weight: 600; }
.v-offers { display: grid; gap: 6px; margin-top: 10px; }
.v-offers-h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.v-offer { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.v-offer b { grid-row: span 2; padding: 4px 8px; border-radius: 8px; background: var(--soft); color: var(--red); font-size: 12px; letter-spacing: .06em; }
.v-offer span { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-offer em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ok-fg); }
.v-offer.is-off { opacity: .72; }
.v-offer.is-off em { color: var(--muted); font-weight: 600; }
.v-offer:hover { border-color: var(--red); transform: translateY(-1px); }
.voucher .field-msg { margin-top: 8px; }
.voucher .field-msg:empty { display: none; }
.oc-items .oc-disc, .a-items .a-disc { color: var(--ok-fg); }
.co-bar { display: none; }
@media (max-width: 900px) {
  .co-side { position: static; }
  .co-sum { max-height: none; overflow: visible; }
  .checkout { padding-bottom: 96px; }
  .co-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 44;
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 10px 10px 10px 18px; border-radius: 22px; background: var(--inverse); color: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); animation: bar-in .35s cubic-bezier(.2,.8,.2,1); }
  .co-bar-sum { display: grid; line-height: 1.15; }
  .co-bar-sum small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
  .co-bar-sum b { font-family: var(--display); font-size: 22px; }
  .co-bar-sum .co-bar-save { opacity: 1; color: #7ef0c8; letter-spacing: .02em; text-transform: none; font-size: 12px; }
  .co-bar .btn { flex: none; }
  /* what's still missing, shown above the bar after tapping its button (assets/js/app.js) */
  .co-bar-msg { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); max-height: 46vh; overflow: auto; padding: 12px 14px; border-radius: 16px;
    background: var(--bad-bg); color: var(--bad); font-weight: 700; font-size: 14px; line-height: 1.4; box-shadow: 0 14px 32px -14px rgba(0,0,0,.45); animation: bar-in .25s ease-out; }
}
.form-error ul, .co-bar-msg ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-weight: 600; }
/* a section or field the customer still has to fill in */
.checkout .need { outline: 2px solid var(--bad); outline-offset: 3px; border-radius: 14px; animation: need-pulse .9s ease-out 2; }
.checkout [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18); }
.checkout .phone-field:has([aria-invalid="true"]) { border-color: var(--bad); }
@keyframes need-pulse { 50% { outline-offset: 7px; } }
.checkout label, .checkout .phone-field, .checkout .need, .checkout .addr-map { scroll-margin-top: 110px; }
@media (max-width: 860px) { .co-bar { bottom: calc(84px + env(safe-area-inset-bottom)); } .checkout { padding-bottom: 170px; } }
@keyframes bar-in { from { transform: translateY(24px); opacity: 0; } }

/* ---------- home page slider ---------- */
.hs-sec { padding-top: 20px; }
.hs { position: relative; border-radius: 32px; overflow: hidden; isolation: isolate; color: #fff; box-shadow: var(--shadow); }
.hs-stage { display: grid; }
.hs-slide { grid-area: 1 / 1; position: relative; min-height: var(--hs-h, 340px); display: flex; align-items: center; overflow: hidden; visibility: hidden; background: var(--grad); }
.hs-slide.is-active, .hs-slide.is-leaving { visibility: visible; }
.hs-slide.is-active { z-index: 2; } .hs-slide.is-leaving { z-index: 1; }
.hs-t-pink { background: linear-gradient(125deg, #ff6aa2, #e4007f 70%); }
.hs-t-sun { background: linear-gradient(125deg, #ffb238, #f6661c 70%); }
.hs-t-fire { background: linear-gradient(125deg, #ff4d5e, #b0103d 75%); }
.hs-t-mint { background: linear-gradient(125deg, #19c79a, #0b7a63 75%); }
.hs-t-grape { background: linear-gradient(125deg, #9b6bff, #5521b5 75%); }
.hs-t-choc { background: linear-gradient(125deg, #a0613a, #3d1f12 80%); }
.hs-t-night { background: linear-gradient(125deg, #3a2230, #120a0e 80%); }
.hs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hs-slide.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 6, 12, .78) 0%, rgba(18, 6, 12, .45) 45%, rgba(18, 6, 12, 0) 75%); }
.hs-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hs-deco span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); animation: hs-drift 14s ease-in-out infinite alternate; }
.hs-deco span:nth-child(1) { width: 420px; height: 420px; right: -90px; top: -160px; }
.hs-deco span:nth-child(2) { width: 220px; height: 220px; right: 28%; bottom: -120px; animation-duration: 11s; background: rgba(255, 255, 255, .09); }
.hs-deco span:nth-child(3) { width: 90px; height: 90px; left: 46%; top: 18%; animation-duration: 9s; background: rgba(255, 255, 255, .16); }
.hs-inner { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px clamp(24px, 6vw, 72px) 64px; }
.hs-copy { max-width: 560px; display: grid; justify-items: start; gap: 12px; }
.hs-badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hs-title { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 46px); line-height: 1.05; letter-spacing: -.03em; color: #fff; margin: 0; text-wrap: balance; }
.hs-sub { font-size: clamp(15px, 1.6vw, 18px); font-weight: 600; opacity: .92; margin: 0; max-width: 46ch; }
.hs-btn { margin-top: 6px; }
.hs-art { flex: none; width: clamp(150px, 26vw, 300px); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .25)); }
.hs-art svg { width: 100%; height: auto; display: block; }
/* text and picture arrive one after another */
.hs-slide.is-active .hs-copy > * { animation: hs-up .7s cubic-bezier(.2, .8, .2, 1) both; }
.hs-slide.is-active .hs-copy > :nth-child(1) { animation-delay: .18s; }
.hs-slide.is-active .hs-copy > :nth-child(2) { animation-delay: .28s; }
.hs-slide.is-active .hs-copy > :nth-child(3) { animation-delay: .38s; }
.hs-slide.is-active .hs-copy > :nth-child(4) { animation-delay: .48s; }
.hs-slide.is-active .hs-art { animation: hs-art-in .9s .2s cubic-bezier(.2, .9, .25, 1.2) both, hs-bob 4s 1.2s ease-in-out infinite; }
/* 1. slide across */
.hs[data-effect="slide"] .hs-slide { transform: translateX(calc(var(--dir, 1) * 100%)); }
.hs[data-effect="slide"] .hs-slide.is-active { transform: none; transition: transform .85s cubic-bezier(.7, 0, .2, 1); }
.hs[data-effect="slide"] .hs-slide.is-leaving { transform: translateX(calc(var(--dir, 1) * -100%)); transition: transform .85s cubic-bezier(.7, 0, .2, 1); }
/* 2. fade, 3. fade + slow zoom */
.hs[data-effect="fade"] .hs-slide, .hs[data-effect="zoom"] .hs-slide { opacity: 0; }
.hs[data-effect="fade"] .hs-slide.is-active, .hs[data-effect="zoom"] .hs-slide.is-active { opacity: 1; transition: opacity .9s ease; }
.hs[data-effect="fade"] .hs-slide.is-leaving, .hs[data-effect="zoom"] .hs-slide.is-leaving { opacity: 0; transition: opacity .9s ease; }
.hs[data-effect="zoom"] .hs-slide.is-active .hs-bg, .hs[data-effect="zoom"] .hs-slide.is-active .hs-deco { animation: hs-kenburns calc(var(--hs-int, 5s) + 1s) ease-out both; }
/* 4. pop up */
.hs[data-effect="pop"] .hs-slide { opacity: 0; transform: translateY(40px) scale(.94); }
.hs[data-effect="pop"] .hs-slide.is-active { opacity: 1; transform: none; transition: transform .75s cubic-bezier(.2, .9, .25, 1.15), opacity .5s ease; }
.hs[data-effect="pop"] .hs-slide.is-leaving { opacity: 0; transform: scale(1.06); transition: transform .6s ease, opacity .6s ease; }
/* controls */
.hs-arrow { position: absolute; z-index: 5; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s, background .2s, scale .2s; }
.hs-arrow.prev { left: 14px; } .hs-arrow.next { right: 14px; }
.hs:hover .hs-arrow, .hs-arrow:focus-visible { opacity: 1; }
.hs-arrow:hover { background: rgba(255, 255, 255, .38); scale: 1.06; }
.hs-foot { position: absolute; z-index: 5; left: clamp(24px, 6vw, 72px); bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hs-dots { display: flex; gap: 6px; }
.hs-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer; overflow: hidden; position: relative; transition: width .35s cubic-bezier(.2, .8, .2, 1), background .2s; }
.hs-dots button[aria-selected="true"] { width: 34px; background: rgba(255, 255, 255, .4); }
.hs-dots button span { position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.hs-dots button[aria-selected="true"] span { width: 100%; }
.hs.is-auto .hs-dots button[aria-selected="true"] span { animation: hs-fill var(--hs-int, 5s) linear both; }
.hs.is-paused .hs-dots button span { animation-play-state: paused !important; }
.hs-pause { width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .22); color: #fff; }
.hs-pause:hover { background: rgba(255, 255, 255, .38); }
@keyframes hs-up { from { opacity: 0; transform: translateY(22px); } }
@keyframes hs-art-in { from { opacity: 0; transform: translateY(30px) rotate(-8deg) scale(.85); } }
@keyframes hs-bob { 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes hs-drift { to { transform: translate(-30px, 24px) scale(1.08); } }
@keyframes hs-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes hs-fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 700px) {
  .hs { border-radius: 24px; }
  .hs-slide { min-height: max(260px, calc(var(--hs-h, 340px) * .8)); align-items: flex-start; }
  .hs-inner { padding: 26px 22px 54px; }
  .hs-art { position: absolute; right: -14px; bottom: 6px; width: 132px; opacity: .9; }
  .hs-copy { max-width: calc(100% - 70px); }
  .hs-sub { font-size: 14px; }
  .hs-arrow { display: none; }
  .hs-foot { left: 22px; bottom: 16px; }
}
/* the dashboard's small preview of each slide */
.slide-mini { margin-bottom: 14px; border-radius: 20px; overflow: hidden; pointer-events: none; }
.slide-mini .hs-slide { visibility: visible; min-height: 170px; color: #fff; }
.slide-mini .hs-inner { padding: 22px 28px; }
.slide-mini .hs-title { font-size: 24px; }
.slide-mini .hs-sub { font-size: 14px; }
.slide-mini .hs-art { width: 130px; }
.slide-mini .hs-copy > * { animation: none !important; }

/* ---------- universal search ---------- */
.search-page { padding-bottom: 48px; }
.search-form { position: sticky; top: calc(70px + env(safe-area-inset-top)); z-index: 20; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin: 0 -12px; padding: 12px 12px 10px; border-radius: 0 0 24px 24px; }
.search.big { max-width: none; margin-top: 0; border-radius: 22px; padding: 0 18px; box-shadow: 0 10px 30px -22px rgba(var(--red-rgb) / .6); }
.search.big input { padding: 17px 0; font-size: 17px; }
.search-filters { display: grid; gap: 10px; margin-top: 12px; }
.price-filter, .sf-row, .seg-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.chip { border: 2px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--inverse); border-color: var(--inverse); color: #fff; }
.pf-range { display: inline-flex; align-items: center; gap: 6px; }
.pf-range input { width: 92px; margin: 0; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.sf-row select { width: auto; margin: 0 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.sf-row .small-check { margin: 0; font-size: 14px; }
.search-count { margin: 6px 0 14px; }
.search-results { transition: opacity .2s; }
.search-results.is-loading { opacity: .45; }
.sr-block { margin-bottom: 30px; }
.sr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sr-head h2 { font-size: 24px; }
.sr-head h2 .muted { font-size: 16px; font-weight: 700; margin-left: 4px; }
.item-from { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-from:hover { color: var(--red); }
.item-from .closed-txt { color: var(--bad); }
.search-empty { text-align: center; padding: 40px 0; display: grid; justify-items: center; gap: 8px; }
.search-empty .art { width: 160px; margin-bottom: 8px; }
@media (max-width: 860px) { .search-form { top: calc(118px + env(safe-area-inset-top)); } }
@media (max-width: 560px) { .sf-row select { margin-left: 0; } .pf-range input { width: 84px; } .price-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; } }

/* ---------- Pocket Saver ---------- */
.ps-hero .lede { max-width: 640px; }
.ps { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; padding-block: 10px 56px; }
.ps-form { position: sticky; top: calc(88px + env(safe-area-inset-top)); display: grid; gap: 18px; }
.ps-budget label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ps-amount { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-weight: 800; }
.ps-amount span { font-size: 34px; color: var(--red); }
.ps-amount input { border: 0; padding: 0; background: transparent; font: inherit; font-size: 52px; letter-spacing: -.04em; width: 100%; min-width: 0; color: var(--ink); -moz-appearance: textfield; }
.ps-amount input::-webkit-outer-spin-button, .ps-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ps-budget input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; padding: 0; border: 0; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--pink)); margin: 10px 0 12px; cursor: pointer; }
.ps-budget input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.ps-budget input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.ps-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ps-quick .chip { padding: 6px 12px; font-size: 13px; }
.ps-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.ps-row2 { grid-template-columns: auto 1fr; }
.ps-row2 select { min-width: 0; }
.ps-lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ps-seg { margin: 0; }
.ps-seg span { padding-block: 10px !important; }
.ps-row select { padding: 11px 14px; }
.ps-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.tog span::before { content: "+"; font-weight: 900; }
.tog input:checked + span { background: var(--inverse); border-color: var(--inverse); color: #fff; }
.tog input:checked + span::before { content: "✓"; }
.tog input:focus-visible + span { outline: 3px solid rgb(var(--red-rgb) / .35); outline-offset: 2px; }
.ps-loc { margin: -6px 0 0; }
.ps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ps-head h2 { font-size: 22px; }
.ps-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; transition: opacity .2s; }
.ps-list.is-loading { opacity: .45; }
.ps-card { background: var(--surface); border: 2px solid var(--line); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 14px; animation: ps-in .5s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
.ps-card.is-top { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.ps-card-head { display: flex; align-items: center; gap: 12px; }
.ps-r-art { width: 54px; height: 54px; flex: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.ps-r-art svg { width: 120%; } .ps-r-art img { width: 100%; height: 100%; object-fit: cover; }
.ps-r-name { display: grid; min-width: 0; flex: 1; }
.ps-r-name b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; }
.ps-r-name small { color: var(--muted); font-weight: 700; font-size: 13px; }
.ps-best { flex: none; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; }
.ps-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ps-items li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: baseline; font-weight: 700; font-size: 15px; }
.ps-items .q { color: var(--red); font-weight: 800; }
.ps-items em { font-style: normal; color: var(--muted); font-size: 13px; }
.ps-star { font-style: normal; color: var(--orange); font-size: 12px; }
.ps-money { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; padding-top: 12px; border-top: 2px dashed var(--line); }
.ps-lines { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ps-lines div { display: flex; justify-content: space-between; gap: 10px; }
.ps-lines .ok { color: var(--ok-fg); }
.ps-total { display: grid; justify-items: end; line-height: 1.1; }
.ps-total small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ps-total b { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; }
.ps-total s { color: var(--muted); font-weight: 700; font-size: 14px; }
.ps-total small:last-child { text-transform: none; letter-spacing: 0; font-size: 12px; margin-top: 2px; }
.ps-meter { height: 10px; border-radius: 99px; background: var(--soft); display: flex; overflow: hidden; }
.ps-meter span { width: var(--w); transition: width .8s cubic-bezier(.2, .8, .2, 1); animation: ps-grow 1s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
.ps-meter .used { background: var(--grad); }
.ps-meter .saved { background: repeating-linear-gradient(45deg, #19c79a 0 6px, #7ee6c6 6px 12px); }
.ps-left { margin: -6px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ps-left b { color: var(--ok-fg); }
.ps-card .btn { margin-top: auto; }
.ps-note, .ps-empty { grid-column: 1 / -1; text-align: center; padding: 36px 16px; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 2px dashed var(--line); border-radius: 26px; }
.ps-empty { display: grid; justify-items: center; gap: 10px; }
.ps-empty .art { width: 150px; }
@keyframes ps-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes ps-grow { from { width: 0; } }
@media (max-width: 960px) { .ps { grid-template-columns: 1fr; } .ps-form { position: static; } }
.ps > * { min-width: 0; }
.ps-list { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 560px) { .ps-row, .ps-row2 { grid-template-columns: 1fr; } .ps-amount input { font-size: 46px; } .ps-card { padding: 16px; } }
.ps-form > *, .ps-budget > * { min-width: 0; }
.ps-amount input { flex: 1; width: 1px; }
.ps-budget input[type="range"] { display: block; box-sizing: border-box; max-width: 100%; }
.grid-items > * { min-width: 0; }
.search-filters > * { min-width: 0; }
.seg input, .tog input { width: 1px; height: 1px; }
.co-sum { padding-bottom: 0; }
.co-sum-foot { position: sticky; bottom: 0; background: var(--surface); padding-bottom: 22px; margin-top: 2px; box-shadow: 0 -14px 16px -14px rgba(28, 10, 19, .12); }
@media (max-width: 900px) { .co-sum { padding-bottom: 22px; } .co-sum-foot { position: static; box-shadow: none; padding-bottom: 0; } }

/* ---------- header: nothing overlaps at any width ----------
   Desktop: logo · location · menu · search · language/theme · profile · bag, each a fixed size except the location box,
   which shrinks first; then labels drop away step by step. Phones: logo + language/theme + profile on top,
   location + search below; the bag lives in the bottom bar (with its count). */
.head-row > * { flex: none; }
.head-row > .loc-bar { flex: 0 1 205px; min-width: 180px; }
.loc-btn small { white-space: nowrap; }
.top-nav { flex: none; margin: 0 auto; }
.top-nav a, .bag-btn, .loc-btn b { white-space: nowrap; }
.loc-btn { width: 100%; }
@media (max-width: 1520px) and (min-width: 861px) {
  .head-row { gap: 14px; }
  .bag-btn .hide-sm { display: none; }
  .bag-btn { padding: 10px 12px 10px 14px; }
  .loc-btn small { display: none; }
  .top-nav a { padding-inline: 12px; }
}
@media (max-width: 1200px) and (min-width: 861px) {
  .head-row { gap: 10px; }
  .head-row > .loc-bar { flex: none; min-width: 0; }
  .loc-btn { width: auto; gap: 6px; padding: 9px 10px; }
  .loc-btn span:not(.chev) { display: none; }
  .top-nav { gap: 0; }
  .top-nav a { padding-inline: 10px; }
  .head-tools { gap: 6px; }
}
@media (max-width: 1040px) and (min-width: 861px) {
  .logo > span:not(.brand-mark) { display: none; }
  .top-nav a { padding-inline: 9px; font-size: 15px; }
}
@media (max-width: 860px) {
  .head-row { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 8px 10px; }
  .head-row > .logo { order: 0; margin-right: auto; }
  .head-row > .head-tools { order: 1; margin-left: 0; }
  .head-row > .profile-btn:not(.search-btn) { order: 2; }
  .head-row > .bag-btn { display: none; }
  .head-row > .loc-bar { order: 3; flex: 1 1 calc(100% - 60px); }
  .head-row > .search-btn { display: grid; order: 4; width: 46px; height: 46px; border-radius: 16px; }
  .loc-btn { max-width: none; padding: 8px 12px; }
  .loc-btn small { display: block; }
}
@media (max-width: 380px) { .logo { font-size: 18px; gap: 8px; } .logo .brand-mark { width: 36px; height: 36px; } }
/* Phones: a fixed two-row grid, so nothing wraps onto a third row on narrow screens (320–400px).
   Row 1: logo (shrinks, name cut with …) · language/theme · profile. Row 2: location · search. */
@media (max-width: 860px) {
  .head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "logo tools profile" "loc loc search"; gap: 8px; align-items: center; }
  .head-row > .logo { grid-area: logo; min-width: 0; margin-right: 0; }
  .head-row > .logo > span:not(.brand-mark) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .head-row > .head-tools { grid-area: tools; }
  .head-row > .profile-btn:not(.search-btn) { grid-area: profile; justify-self: end; }
  .head-row > .loc-bar { grid-area: loc; min-width: 0; }
  .head-row > .search-btn { grid-area: search; justify-self: end; }
}
@media (max-width: 400px) {
  .site-head .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .head-row { gap: 8px 6px; }
  .head-tools { gap: 6px; }
  .head-tools .lang-btn, .head-tools .theme-btn { height: 36px; min-width: 36px; padding: 0 7px; border-radius: 12px; }
  .head-row > .profile-btn:not(.search-btn) { width: 36px; height: 36px; }
  .logo { font-size: 17px; gap: 7px; }
  .logo .brand-mark { width: 34px; height: 34px; }
}
@media (max-width: 335px) { .logo > span:not(.brand-mark) { display: none; } }
.bn-bag { position: relative; }
.bn-count { position: absolute; top: 0; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.bn-count.is-zero { display: none; }

/* Pocket Saver form: one setting per row so nothing spills out; badge sits on the card's edge */
.ps-row, .ps-row2 { grid-template-columns: 1fr; gap: 16px; }
.ps-seg span { font-size: 15px; padding: 11px 14px !important; text-align: center; }
.ps-toggles .tog span { white-space: nowrap; }
.ps-card { position: relative; }

.ps-card .ps-best { position: absolute; top: -12px; right: 18px; box-shadow: 0 6px 14px -6px rgb(var(--red-rgb) / .7); }
.ps-r-name b { line-height: 1.15; }
.ps-money { grid-template-columns: minmax(0, 1fr) auto; }
@media (min-width: 861px) { .loc-btn small { display: none; } .loc-btn { padding-block: 9px; } }
@media (min-width: 1521px) { .top-nav a { padding-inline: 12px; } .head-row { gap: 12px; } }
.bag-btn .hide-sm { display: none; } .bag-btn { padding: 10px 12px 10px 14px; }

/* v3.1: policy pages, about us, BanglaQR, transaction charges, terms at checkout */
.foot-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 18px 4px; font-size: 13px; }
.pay-chip { border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 800; background: var(--surface); }

.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 60px; }
.legal-nav { position: sticky; top: 90px; display: grid; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 14px; font-weight: 700; color: var(--ink-2); }
.legal-nav a:hover { background: var(--soft); }
.legal-nav a[aria-current="page"] { background: var(--soft); color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.legal-hero .lede { max-width: 720px; font-size: 18px; }
.legal-date { margin-top: 10px; }
.legal { padding: clamp(20px, 4vw, 40px); line-height: 1.7; font-weight: 500; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 34px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--body); font-size: 17px; margin: 18px 0 8px; letter-spacing: 0; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal b { font-weight: 800; }
.legal a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal .btn { text-decoration: none; }
.legal .btn-grad { color: #fff; }
.legal-contact { background: var(--surface-2); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.legal-contact p { margin: 0 0 4px; }
.legal-cta { margin-top: 18px; }
.legal-table { border: 2px solid var(--line); border-radius: 18px; overflow: hidden; margin: 4px 0 16px; font-size: 15px; }
.lt-row { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.lt-row:first-child { border-top: 0; }
.lt-head { background: var(--soft); font-weight: 800; }
@media (max-width: 820px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 14px; }
  .legal-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .legal-nav a { white-space: nowrap; border: 2px solid var(--line); }
  .legal-nav a[aria-current="page"] { box-shadow: none; border-color: var(--red); }
}
@media (max-width: 560px) {
  .lt-row { grid-template-columns: 1fr; gap: 2px; }
  .lt-head { display: none; }
  .lt-row span:first-child { font-weight: 800; }
}
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.about-stats div { background: var(--soft); border-radius: 18px; padding: 16px; text-align: center; }
.about-stats b { display: block; font-family: var(--display); font-size: clamp(24px, 4vw, 34px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats span { color: var(--muted); font-weight: 700; font-size: 14px; }
@media (max-width: 560px) { .about-stats { grid-template-columns: 1fr 1fr; } }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 8px; }
.about-card { border: 2px solid var(--line); border-radius: 18px; padding: 18px; }
.about-card h3 { margin-top: 0; }
.about-steps li::marker { font-family: var(--display); font-weight: 800; color: var(--red); }

.pay-opt .pay-charge { display: block; margin-top: 2px; color: var(--warn-fg); font-size: 12px; }
.qr-pay { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 14px; }
.qr-box { margin: 0; background: #fff; border-radius: 18px; padding: 12px; border: 2px solid var(--line); text-align: center; }
.qr-box img { width: 100%; height: auto; aspect-ratio: auto; image-rendering: pixelated; }
.qr-box figcaption { color: #1c0a13; font-size: 13px; font-weight: 800; margin-top: 6px; }
.qr-pay .pay-steps { margin-bottom: 12px; }
.qr-pay .btn { margin-bottom: 8px; }
@media (max-width: 560px) { .qr-pay { grid-template-columns: 1fr; } .qr-box { max-width: 260px; margin-inline: auto; } .qr-pay .btn { width: 100%; } }
.terms-check { align-items: flex-start; font-weight: 600; font-size: 14px; line-height: 1.45; margin: 12px 0; }
.terms-check input { flex: none; margin-top: 1px; }
.terms-check a { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.qr-thumb { object-fit: contain; background: #fff; }

/* Notifications + install the app (assets/js/push.js, app.php) */
.push-ask { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; }
.push-ask[hidden], .push-on[hidden] { display: none; }
.success .push-ask { margin: 6px auto 14px; }
.push-on { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.r-push { display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.r-push[hidden] { display: none; }
.install-bar { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--surface, #fff); color: var(--ink, #1c0a13);
  box-shadow: 0 14px 40px -12px rgba(28, 10, 19, .45); border: 1px solid var(--line, #eee); max-width: 560px; margin: 0 auto; }
.install-bar img { border-radius: 11px; flex: none; }
.install-bar div { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.install-bar small { color: var(--muted, #7a6670); font-size: 12px; }
.install-x { border: 0; background: none; color: inherit; font-size: 24px; line-height: 1; padding: 4px 6px; opacity: .6; }
@media (max-width: 860px) { body:has(.bottom-nav) .install-bar { bottom: calc(80px + env(safe-area-inset-bottom)); } } /* above the phone menu bar */
.app-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 10px 0 30px; }
/* Get the app: each app in its own colours (app_colors() in includes/settings.php), like its icon and splash screen */
.app-card, .panel.app-card { display: grid; align-content: start; padding: 8px; overflow: hidden; }
.app-hero { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 20px; color: #fff; overflow: hidden; border-radius: 20px;
  background: linear-gradient(135deg, var(--a1) 0%, var(--a2) 55%, var(--a3) 100%); }
.app-hero img { border-radius: 18px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 10px 24px rgba(0, 0, 0, .18); flex: none; }
.app-hero h2 { margin: 2px 0 0; font-size: 21px; color: #fff; }
.app-for { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(255, 255, 255, .2); padding: 3px 9px; border-radius: 99px; }
.app-pic { position: absolute; right: -6px; bottom: -14px; font-size: 76px; line-height: 1; opacity: .9; transform: rotate(-10deg); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }
.app-hero > div { position: relative; z-index: 1; padding-right: 54px; }
@media (max-width: 640px) { .app-hero { padding: 16px 14px; gap: 12px; border-radius: 16px; } .app-hero img { width: 52px; height: 52px; border-radius: 14px; } .app-hero h2 { font-size: 17px; } .app-pic { font-size: 58px; } .app-for { font-size: 10.5px; } }
.app-body { display: grid; gap: 12px; padding: 14px 12px 14px; }
.app-body .btn { justify-self: start; max-width: 100%; white-space: normal; text-align: center; }
.app-body .muted { margin: 0; }
.app-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-weight: 600; }
.app-feats li { position: relative; padding-left: 28px; }
.app-feats li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a3)); }
.app-feats li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.app-get { color: #fff; border: 0; background: linear-gradient(120deg, var(--a1), var(--a2) 50%, var(--a3)); box-shadow: 0 8px 20px -8px var(--a2); }
.app-get:hover { color: #fff; filter: brightness(1.06); }
.app-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.app-steps svg { vertical-align: -3px; }
.app-howto { scroll-margin-top: 90px; }
.app-mine { outline: 2px solid var(--red, #ee1f4d); outline-offset: 2px; }
.app-card:target { outline: 3px solid var(--a2); outline-offset: 3px; }

/* Bangla: Bengali letters join along the top line, so no letter spacing (it breaks the words apart), and taller lines
   for the marks above and below the letters. */
html[lang="bn"] body *:not(.logo, .logo *, .tnum) { letter-spacing: 0 !important; }
html[lang="bn"] :is(h1, h2, h3, .hs-title) { line-height: 1.28; }
html[lang="bn"] .eyebrow { font-size: 13px; }

/* Phones: smaller type, so headings fit on one line and more of each page shows on the screen. */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .small, label, .field-msg, .form-error, .alert, .closed-note, .warn, .chip, .loc-btn b { font-size: 13px; }
  input, select, textarea { padding: 11px 13px; }
  .btn { font-size: 13.5px; padding: 10px 16px; }
  .btn-lg { font-size: 14px; padding: 12px 20px; }
  .btn-sm { font-size: 12.5px; padding: 7px 13px; }
  .lede, .legal-hero .lede { font-size: 14px; margin-bottom: 18px; }
  .cta-band p, .empty-note, .search.big input { font-size: 14px; }
  .page-hero { padding-block: 22px 14px; }
  .page-hero h1 { font-size: clamp(21px, 6vw, 25px); letter-spacing: -.03em; }
  .sec-head h2 { font-size: clamp(18px, 5vw, 21px); }
  .hero-mini h1, .hero-copy h1 { font-size: clamp(17px, 4.6vw, 19px); }
  .hs-title { font-size: clamp(17px, 4.6vw, 19px); }
  .hs-sub { font-size: 12.5px; }
  .cta-band h2 { font-size: clamp(21px, 6vw, 26px); }
  .menu-sec h2 { font-size: 17px; margin-bottom: 12px; }
  .bs-head h2, .ps-head h2 { font-size: 16px; }
  .bs b { font-size: 14px; }
  .fa-body h2 { font-size: 17px; }
  .r-info h1 { font-size: clamp(16px, 4.4vw, 18px); }
  .rcard h3, .about-card h3 { font-size: 15.5px; }
  .rcard-art .art { aspect-ratio: 21 / 9; }
  .rcard-art .art svg { width: 40%; }
  .item h3 { font-size: 14px; }
  .price { font-size: 15px; }
  .panel { padding: 16px; }
  .panel h2, .panel-head h2 { font-size: 15.5px; gap: 10px; }
  .panel h3, .ps-r-name b { font-size: 14.5px; }
  .sheet h3, .sr-head h2 { font-size: 17px; }
  .empty-bag h2, .success h2 { font-size: 20px; }
  .auth-card h1 { font-size: 20px; }
  .login-panel h2 { font-size: 18px; }
  .legal h2 { font-size: 16px; }
  .legal h3 { font-size: 15px; }
  .pc-main h2 { font-size: 16px; }
  .seg span { font-size: 14px; padding: 11px 13px; }
  .seg small { font-size: 12px; }
  .pay-opt b { font-size: 14.5px; }
  .phone-field input { font-size: 17px; padding-block: 11px; }
  .sum-row.total { font-size: 17px; }
  .co-bar-sum b { font-size: 18px; }
  .oc-foot { font-size: 15px; }
  .code { font-size: clamp(28px, 8vw, 38px); padding: 8px 18px; }
  .ps-amount span { font-size: 24px; }
  .ps-amount input { font-size: 34px; }
  .ps-total b { font-size: 21px; }
  .about-stats b { font-size: 20px; }
  .install-bar b { font-size: 14px; }
  .install-bar small { font-size: 11.5px; }
}
@media (max-width: 640px) and (min-width: 401px) { .logo { font-size: 18px; } } /* 400px and narrower: smaller still, above */

/* Small phones (iPhone SE/7/8, 400px and narrower): a slimmer header, menu bar and floating bars, smaller icons and one
   more step of smaller text, so more of the page fits on the short screen. */
@media (max-width: 400px) {
  body { font-size: 13.5px; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .small, label, .field-msg, .form-error, .alert, .closed-note, .warn, .chip, .loc-btn b { font-size: 12.5px; }
  input, select, textarea { padding: 10px 12px; border-radius: 14px; }
  .btn { font-size: 13px; padding: 9px 14px; }
  .btn-lg { font-size: 13.5px; padding: 11px 18px; }
  .btn-sm { font-size: 12px; padding: 7px 12px; }

  /* header: about 90px instead of 112px */
  .head-row { padding-block: 7px; gap: 6px 6px; }
  .logo { font-size: 15.5px; gap: 6px; }
  .logo .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .head-tools { gap: 5px; }
  .head-tools .lang-btn, .head-tools .theme-btn { height: 32px; min-width: 32px; padding: 0 6px; border-radius: 10px; font-size: 12px; border-width: 1.5px; }
  .theme-btn svg { width: 15px; height: 15px; }
  .head-row > .profile-btn:not(.search-btn) { width: 32px; height: 32px; border-width: 1.5px; }
  .head-row > .search-btn { width: 40px; height: 40px; border-radius: 13px; border-width: 1.5px; }
  .profile-btn svg { width: 18px; height: 18px; }
  .loc-btn { padding: 5px 10px; gap: 8px; border-radius: 13px; border-width: 1.5px; }
  .loc-btn svg { width: 16px; height: 16px; }
  .loc-btn small { font-size: 10px; }
  .cat-bar, .search-form { top: calc(92px + env(safe-area-inset-top)); }

  /* phone menu bar: about 52px instead of 64px */
  .bottom-nav { padding-top: 4px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .bottom-nav a { font-size: 10px; padding: 4px 0; gap: 1px; border-radius: 12px; }
  .bottom-nav svg { width: 19px; height: 19px; }
  .bn-count { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
  .float-bag:not([hidden]) { bottom: calc(62px + env(safe-area-inset-bottom)); padding: 10px 14px; border-radius: 15px; font-size: 13px; left: 10px; right: 10px; }
  .co-bar { bottom: calc(62px + env(safe-area-inset-bottom)); left: 10px; right: 10px; padding: 7px 7px 7px 14px; border-radius: 18px; }
  .co-bar-sum small { font-size: 10px; }
  .co-bar-sum b { font-size: 16px; }
  .co-bar .btn { padding: 9px 16px; }
  body:has(.bottom-nav) .install-bar { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(114px + env(safe-area-inset-bottom)); font-size: 12.5px; padding: 8px 14px; border-radius: 12px; }
  .install-bar { padding: 8px 8px 8px 10px; gap: 10px; border-radius: 15px; }
  .install-bar img { width: 32px; height: 32px; border-radius: 9px; }
  .install-bar b { font-size: 13px; }
  .install-bar small { font-size: 11px; }

  /* headings and numbers */
  .page-hero { padding-block: 18px 12px; }
  .page-hero h1 { font-size: 21px; }
  .sec-head h2 { font-size: 18px; }
  .hero-mini h1, .hero-copy h1, .hs-title { font-size: 17px; }
  .hs-sub { font-size: 12px; }
  .cta-band h2 { font-size: 21px; }
  .menu-sec h2 { font-size: 16px; }
  .bs-head h2, .ps-head h2, .r-info h1 { font-size: 15.5px; }
  .rcard h3, .about-card h3, .fa-body h2 { font-size: 15px; }
  .item h3, .panel h3, .ps-r-name b, .pay-opt b, .bs b, .seg span { font-size: 13.5px; }
  .price { font-size: 14px; }
  .panel { padding: 14px; border-radius: 20px; }
  .panel h2, .panel-head h2 { font-size: 14.5px; gap: 8px; }
  .step { width: 26px; height: 26px; border-radius: 9px; font-size: 13px; }
  .sheet h3, .sr-head h2, .login-panel h2 { font-size: 16px; }
  .empty-bag h2, .success h2, .auth-card h1 { font-size: 18px; }
  .legal h2, .pc-main h2 { font-size: 15px; }
  .phone-field input { font-size: 16px; padding-block: 10px; }
  .sum-row.total { font-size: 16px; }
  .oc-foot { font-size: 14px; }
  .code { font-size: 28px; }
  .ps-amount input { font-size: 30px; }
  .ps-total b { font-size: 19px; }
  .add-btn { width: 34px; height: 34px; border-radius: 12px; font-size: 21px; }
  .qty button { width: 30px; height: 30px; border-radius: 10px; font-size: 16px; }
  .r-back { width: 34px; height: 34px; top: 10px; left: 12px; }
  .r-banner .open-pill { top: 12px; right: 12px; font-size: 11px; }
  .r-banner, .r-banner.no-img { height: 150px; }
  .r-banner.no-img { height: 96px; }
  .r-hero, .r-hero.has-banner { margin-top: -38px; }
  .r-hero-row { grid-template-columns: 50px minmax(0, 1fr); column-gap: 10px; margin-inline: 10px; padding: 10px; border-radius: 18px; }
  .r-logo, .r-hero.has-banner .r-logo { width: 50px; }
  .r-logo .art, .r-hero.has-banner .r-logo .art { border-radius: 14px; }
  .r-info .lede { font-size: 12.5px; }
  .hero-acts .btn { font-size: 13px; padding: 9px 10px; }
  .hs-slide { min-height: 210px; }
  .hs-inner { padding: 20px 18px 46px; }
  .hs-art { width: 104px; }
  .hs-foot { left: 18px; bottom: 12px; }
  .hs-badge { font-size: 10.5px; }
  .bag-row { grid-template-columns: 44px 1fr auto; }
  .bag-thumb { width: 44px; height: 40px; }
  .eyebrow { font-size: 11px; }
}
