/* Yeaii customer look: tokens, components, and the class names the older customer pages still use.
   Loaded by templates/base.html only (staff pages keep style.css / staff.css). */
:root {
  --swatch-default: #16A34A; --swatch-blue: #2563EB; --swatch-purple: #7C3AED; --swatch-pink: #DB2777; --swatch-orange: #EA580C; --swatch-red: #DC2626; --swatch-teal: #0D9488; --swatch-indigo: #4F46E5;
  --brand: #16A34A; --brand-deep: #0E7A3B; --brand-btn: #15803D; --tint: #F0FDF4;
  --accent: #FF9F1C; --accent-tint: #FFF4E0; --accent-ink: #3A2300; --accent-text: #B45309;
  --ink: #0F2A1D; --muted: #5B6B62; --surface: #FFFFFF; --bg: #F6F8F5; --line: #E3E9E2; --danger: #DC2626;
  --link: #15803D; --on-brand: #FFFFFF; --brand-text: #15803D; --deep-text: #0E7A3B; --btn-hover: #0E7A3B;
  --danger-btn: #DC2626; --danger-hover: #B91C1C; --on-danger: #FFFFFF;
  --ok-bg: #ECFDF5; --ok-text: #065F46; --warn-bg: #FFFBEB; --warn-text: #92400E;
  --bad-bg: #FEF2F2; --bad-text: #991B1B; --info-bg: #F0F9FF; --info-text: #075985;
  --font-d: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-b: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px; --radius-md: 14px; --radius-sm: 10px; --radius-lg: 18px; --radius-full: 999px;
  --shadow: 0 1px 2px rgba(15, 42, 29, .06), 0 6px 18px rgba(15, 42, 29, .06);
  --header-h: 60px; --header-min: 60px; --tabbar-h: 64px;
  --border: var(--line); --text: var(--ink); --text-muted: var(--muted); --text-subtle: var(--muted);
  --primary: var(--brand-text); --primary-hover: var(--deep-text); --primary-light: var(--tint);
  --success: var(--brand-text); --success-bg: var(--ok-bg); --success-text: var(--ok-text);
  --warning: var(--accent-text); --warning-bg: var(--warn-bg); --warning-text: var(--warn-text);
  --danger-bg: var(--bad-bg); --danger-text: var(--bad-text);
  --font-main: var(--font-b); --font-display: var(--font-d);
  --shadow-sm: 0 1px 2px rgba(15, 42, 29, .06); --shadow-md: var(--shadow); --shadow-lg: 0 10px 30px rgba(15, 42, 29, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #34D06B; --brand-deep: #22C55E; --brand-btn: #15803D; --tint: #12281B;
    --accent: #FFB347; --accent-tint: #33260F; --accent-text: #FFB347;
    --ink: #EAF4EC; --muted: #9DB2A4; --surface: #15221A; --bg: #0D1712; --line: #25362B; --danger: #F87171;
    --link: #4ADE80; --brand-text: #4ADE80; --deep-text: #4ADE80; --btn-hover: #166534;
    --danger-btn: #B91C1C; --danger-hover: #991B1B;
    --ok-bg: #12281B; --ok-text: #86EFAC; --warn-bg: #33260F; --warn-text: #FCD34D;
    --bad-bg: #3A1717; --bad-text: #FCA5A5; --info-bg: #0F2430; --info-text: #7DD3FC;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #34D06B; --brand-deep: #22C55E; --brand-btn: #15803D; --tint: #12281B;
  --accent: #FFB347; --accent-tint: #33260F; --accent-text: #FFB347;
  --ink: #EAF4EC; --muted: #9DB2A4; --surface: #15221A; --bg: #0D1712; --line: #25362B; --danger: #F87171;
  --link: #4ADE80; --brand-text: #4ADE80; --deep-text: #4ADE80; --btn-hover: #166534;
  --danger-btn: #B91C1C; --danger-hover: #991B1B;
  --ok-bg: #12281B; --ok-text: #86EFAC; --warn-bg: #33260F; --warn-text: #FCD34D;
  --bad-bg: #3A1717; --bad-text: #FCA5A5; --info-bg: #0F2430; --info-text: #7DD3FC;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .35); --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-b); line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; color: var(--ink); }
h1 { font-size: 26px; } h2 { font-size: 21px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--brand-btn); color: var(--on-brand); padding: 10px 16px; border-radius: 0 0 12px 12px; font-weight: 700; }
.skip-link:focus { top: 0; text-decoration: none; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: var(--brand-text); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px 20px; flex: 1; }
#main:focus { outline: none; }
.app-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-in { max-width: 1200px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: var(--header-min); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-d); font-weight: 700; font-size: 22px; letter-spacing: -.5px; min-height: 44px; max-width: 46vw; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 12px; color: var(--muted); flex: 1 1 260px; min-width: 0; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.search input { border: 0; background: transparent; box-shadow: none; padding: 10px 0; min-height: 44px; margin: 0; flex: 1; min-width: 0; color: var(--ink); width: auto; }
.search input:focus { outline: none; box-shadow: none; }
.main-nav { display: none; gap: 4px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.main-nav a:hover { background: var(--tint); text-decoration: none; }
.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}
.hero-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-banner .hero-title {
  font-size: 2.5rem;
  font-family: var(--font-d);
  margin-bottom: 12px;
  color: var(--on-brand);
}
.hero-banner .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--on-brand);
}
.hero-banner .btn.primary {
  background: var(--brand-btn);
  color: var(--on-brand);
}
.main-nav a[aria-current="page"] { color: var(--brand-text); background: var(--tint); }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.loc-bar { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); min-height: 44px; max-width: 40vw; }
.loc-bar .ic { color: var(--brand); }
.loc-bar select { width: auto; max-width: 34vw; border: 0; background: transparent; padding: 8px 2px; font-weight: 600; font-size: 13px; color: var(--ink); min-height: 44px; }
.loc-bar span.city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--deep-text); padding: 6px 12px; border-radius: var(--radius-full); font-weight: 700; font-size: 12px; white-space: nowrap; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--tint); }
.notif-wrap, .acct-wrap { position: relative; }
#notifBell .badge { position: absolute; top: 4px; right: 2px; }
#notifBell:not(.has-unread) .badge { display: none; }
#notifDrop, .acct-menu { position: absolute; right: 0; top: 50px; width: 340px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; z-index: 150; }
#notifDrop.open, .acct-menu.open { display: block; }
#notifDrop .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
#notifDrop .notif { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
#notifDrop .notif p { margin: 2px 0; }
#notifDrop .notif.unread { background: var(--tint); }
#notifDrop small { color: var(--muted); font-size: 11px; }
.acct-menu { width: 230px; padding: 6px; }
.acct-menu a, .acct-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border: 0; background: transparent; border-radius: 12px; color: var(--ink); font: 600 14px var(--font-b); cursor: pointer; text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--tint); text-decoration: none; }
.acct-menu .who { padding: 8px 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cart-link .badge { position: absolute; top: 2px; right: 0; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: flex; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tab { position: relative; flex: 1; min-width: 56px; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 12px; }
.tab:hover { text-decoration: none; color: var(--ink); }
.tab .ic { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--brand-text); }
.tab .badge { position: absolute; top: 0; left: calc(50% + 6px); }
.badge[hidden] { display: none; }
body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.sticky-cta { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand-btn); color: var(--on-brand); border: 0; border-radius: var(--radius); padding: 13px 16px; font: 700 14px var(--font-b); box-shadow: 0 8px 20px rgba(21, 128, 61, .35); width: 100%; min-height: 48px; cursor: pointer; }
.sticky-cta:hover { text-decoration: none; background: var(--btn-hover); color: #fff; }
@media (min-width: 900px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
  .main-nav { display: flex; }
  .search { order: 1; flex: 1 1 280px; max-width: 420px; }
  .main-nav { order: 2; }
  .hdr-actions { order: 3; }
  .sticky-cta { bottom: 12px; }
  .loc-bar, .loc-bar select { max-width: 220px; }
  .brand { max-width: 260px; }
}
@media (max-width: 899px) {
  #notifDrop, .acct-menu { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 4px); width: auto; max-width: none; }
  .hdr-actions { order: 1; }
  .search { order: 10; flex: 1 1 100%; }
  .hide-tabbar { display: none; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand-btn); color: var(--on-brand); border: 1px solid transparent; padding: 10px 18px; min-height: 44px; border-radius: 12px; cursor: pointer; font: 700 14px var(--font-b); text-decoration: none; transition: background .15s ease, transform .1s ease; }
.btn:hover { background: var(--btn-hover); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand-btn); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--tint); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--link); }
.btn.ghost:hover { background: var(--tint); color: var(--link); }
.btn.danger { background: var(--danger-btn); color: var(--on-danger); }
.btn.danger:hover { background: var(--danger-hover); color: var(--on-danger); }
.btn.success { background: var(--brand-btn); }
.btn.sm, .btn.small { padding: 6px 12px; font-size: 13px; min-height: 36px; border-radius: 10px; }
@media (pointer: coarse) { .btn.sm, .btn.small { min-height: 44px; } }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.shop-card { background: var(--surface); border: none; border-radius: var(--radius); overflow: hidden; display: block; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04); transition: transform .2s ease, box-shadow .2s ease; animation: cardIn .35s ease both; }
.shop-card:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.shop-card .im { height: 150px; background: var(--tint); object-fit: cover; width: 100%; display: block; }
.shop-card .tx { padding: 10px 14px 14px; font-size: 13px; }
.shop-card b { display: block; font: 700 16px var(--font-d); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.meta { display: flex; gap: 8px; color: var(--muted); align-items: center; flex-wrap: wrap; margin-top: 2px; font-size: 12px; }
.tag { background: var(--accent-tint); color: var(--accent-text); border-radius: 6px; padding: 1px 6px; font-weight: 700; font-size: 11px; }
.prod-card, .product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.04); transition: transform .15s ease, box-shadow .15s ease; }
.prod-card:active, .product-card:active { transform: scale(.98); }
.prod-card .im, .product-card img { width: 100%; height: 140px; border-radius: 0; object-fit: cover; background: var(--tint); display: block; }
.product-card .pc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.prod-card b { display: block; font-size: 14px; margin-top: 8px; }
.prod-card small { color: var(--muted); font-size: 12px; }
.product-card h3 { font-size: 13px; margin: 0; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font: 800 16px var(--font-d); }
.price s { font: 500 12px var(--font-b); color: var(--muted); margin-left: 4px; }
.sale-price { color: #dc2626; }
.purchase-limit { margin-top: 4px; color: var(--muted); font-size: 11px; }
.product-card .offer-flag { top: 10px; left: auto; right: 10px; }
.shop-offer-tag { display: inline-flex; margin-top: 6px; background: #fff1f2; color: #be123c; }
.shop-offers { margin-bottom: 20px; }
.shop-offers .sec { margin-top: 12px; }
.product-card .price { display: block; color: var(--brand-text); font-size: 15px; margin: 0; }
.product-card .heart { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #64748B; border: 0; border-radius: 50%; cursor: pointer; font-size: 16px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.add-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--brand-text); border: 1px solid var(--line); display: inline-grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.1); font-size: 20px; font-weight: 700; }
.add-btn:hover { background: var(--brand-btn); color: #fff; border-color: var(--brand-btn); }
.stepper { display: inline-flex; align-items: center; background: var(--tint); border-radius: var(--radius-full); font-weight: 800; font-size: 14px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--deep-text); border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 800 18px var(--font-b); }
.stepper em { font-style: normal; min-width: 22px; text-align: center; }
.card-stepper { width: 100%; justify-content: space-between; display: flex; }
.off { position: absolute; top: 16px; left: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 11px; border-radius: 8px; padding: 2px 7px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-full); padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; font: 600 13px var(--font-b); white-space: nowrap; cursor: pointer; }
.chip.on, .chip[aria-pressed="true"] { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 0 10px; }
.cat { background: transparent; border: none; border-radius: 0; padding: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; transition: color .15s ease, transform .1s ease; }
.cat:hover { text-decoration: none; color: var(--ink); }
.cat:active { transform: scale(.93); }
.cat[aria-pressed="true"] { color: var(--brand-text); }
.cat svg, .cat img { display: block; margin: 0; width: 24px; height: 24px; }
.banner { border-radius: 20px; padding: 22px; color: #fff; background: linear-gradient(135deg, #15803D 0%, #0E7A3B 50%, #166534 100%); position: relative; overflow: hidden; min-height: 120px; margin-bottom: 16px; display: flex; flex-direction: column; justify-content: center; }
.banner h3 { color: #fff; font-size: 20px; max-width: 18ch; }
.banner p { margin: 4px 0 10px; font-size: 13px; opacity: .9; max-width: 32ch; }
.banner .btn { background: #fff; color: #0E7A3B; border-radius: var(--radius-full); font-size: 13px; padding: 8px 16px; min-height: 36px; }
.banner::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 10px; }
.sec h2 { margin: 0; font-size: 18px; }
.sec h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-full); font-size: 11px; font-weight: 800; padding: 1px 6px; min-width: 18px; line-height: 1.4; }
.badge.ok { background: var(--ok-bg); color: var(--ok-text); font-weight: 700; padding: 3px 10px; }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); font-weight: 700; padding: 3px 10px; }
.badge.bad { background: var(--bad-bg); color: var(--bad-text); font-weight: 700; padding: 3px 10px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; color: var(--ink); }
input, textarea, select { width: 100%; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; font: 400 15px var(--font-b); color: var(--ink); background: var(--surface); }
textarea { min-height: 80px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22, 163, 74, .25); }
input[type="checkbox"], input[type="radio"] { width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--brand-btn); cursor: pointer; }
::placeholder { color: var(--muted); opacity: 1; }
.field { margin-bottom: 12px; }
.field > label:first-child { margin-top: 0; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 3px; margin-bottom: 10px; }
.seg button, .seg label, .seg a { text-align: center; padding: 10px 8px; min-height: 44px; border-radius: 11px; font: 700 13px var(--font-b); color: var(--muted); border: 0; background: transparent; cursor: pointer; margin: 0; display: flex; align-items: center; justify-content: center; }
.seg .on, .seg [aria-pressed="true"], .seg [aria-selected="true"] { background: var(--surface); color: var(--deep-text); box-shadow: var(--shadow-sm); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font: 800 16px var(--font-d); }
.payment-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 12px 0 18px; }
.payment-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; background: var(--surface); position: relative; min-height: 44px; }
.payment-card:hover { border-color: var(--brand); }
.payment-card.selected { border-color: var(--brand-btn); background: var(--tint); }
.payment-card .pay-icon { font-size: 24px; line-height: 1; }
.payment-card .pay-info { flex: 1; }
.payment-card .pay-title { font-weight: 700; font-size: 15px; }
.payment-card .pay-desc { font-size: 12px; color: var(--muted); }
.login-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 8px 0 16px; }
.login-card { width: 100%; max-width: 420px; padding: 28px; box-shadow: var(--shadow-lg); }
.login-card.wide { max-width: 480px; }
.status-banner { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); }
.status-banner.pending { background: var(--warn-bg); color: var(--warn-text); }
.status-banner.confirmed { background: var(--ok-bg); color: var(--ok-text); }
.status-banner.cancelled { background: var(--bad-bg); color: var(--bad-text); }
.status-banner .banner-icon { font-size: 22px; line-height: 1; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.done { color: var(--ink); } .timeline li.done::before { background: var(--brand-btn); border-color: var(--brand-btn); }
.timeline li.now { color: var(--ink); font-weight: 700; } .timeline li.now::before { background: var(--surface); border: 4px solid var(--brand-btn); box-shadow: 0 0 0 4px var(--tint); }
.timeline li.bad { color: var(--bad-text); font-weight: 700; }
.timeline li.bad::before { background: var(--danger); border-color: var(--danger); }
.order-stepper { display: flex; justify-content: space-between; align-items: flex-start; position: relative; margin: 24px 0 32px; padding: 0 6px; }
.order-stepper::before { content: ''; position: absolute; top: 20px; left: 40px; right: 40px; height: 4px; background: var(--line); z-index: 1; }
.order-step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; text-align: center; flex: 1; }
.order-step .step-circle { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.order-step.completed .step-circle { border-color: var(--brand-btn); background: var(--brand-btn); color: #fff; }
.order-step.active .step-circle { border-color: var(--brand-btn); background: var(--tint); color: var(--brand-text); box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.order-step.pending-pulse .step-circle { border-color: var(--accent); background: var(--warn-bg); color: var(--warn-text); animation: pulse 2s infinite; }
.order-step .step-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.order-step.active .step-label, .order-step.completed .step-label { color: var(--ink); }
@keyframes pulse { 50% { transform: scale(1.06); } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; background: var(--surface); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); max-width: 640px; margin: 0 auto; }
.sheet.open { transform: none; }
.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -6px auto 12px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: min(92vw, 420px); background: #0F2A1D; color: #fff; padding: 12px 20px; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 500; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { background: #166534; } .toast.error { background: #B91C1C; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--tint) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 12px; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; color: var(--brand); margin-bottom: 8px; }
.empty h3 { color: var(--ink); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.app-footer { text-align: center; font-size: 12px; color: var(--muted); padding: 20px 16px; }
.app-footer a { color: var(--muted); text-decoration: underline; padding: 10px 6px; display: inline-block; }
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 200; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; }
.install-banner p { margin: 0; font-size: 13px; flex: 1; }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; }
@media (min-width: 900px) { .install-banner { bottom: 16px; } }
@media (max-width: 480px) {
  .container { padding: 16px 14px; }
  .hdr-in { padding: 6px 14px; gap: 8px; }
  h1 { font-size: 22px; }
  .order-stepper { flex-direction: column; gap: 14px; align-items: flex-start; }
  .order-stepper::before { display: none; }
  .order-step { flex-direction: row; gap: 12px; text-align: left; }
  .order-step .step-label { margin-top: 0; }
  .grid { gap: 10px; }
  .card { padding: 14px; }
}
.show-phone { display: none; }
.menu-city { display: flex; align-items: center; gap: 8px; padding: 4px 12px; margin: 0; }
.menu-city select { border: 1px solid var(--line); min-height: 44px; }
.acct-menu .who.show-phone { align-items: center; gap: 6px; }
@media (max-width: 640px) {
  :root { --header-min: 56px; --header-h: 56px; }
  .hdr-in { flex-wrap: nowrap; padding: 6px 12px; }
  .hdr-actions { gap: 2px; }
  .hide-phone { display: none; }
  .show-phone { display: block; }
  .acct-menu .who.show-phone { display: flex; }
  .menu-city { display: flex; }
  .search { display: none; position: absolute; left: 12px; right: 12px; top: calc(var(--header-h) - 2px); z-index: 5; box-shadow: var(--shadow-lg); background: var(--surface); }
  .app-header.show-search .search { display: flex; }
  .brand { max-width: 56vw; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .app-header, .tabbar, .app-footer, .install-banner { display: none !important; } body { padding: 0; } }
.home-loc { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.home-loc .loc-txt { min-width: 0; }
.home-loc small { display: block; color: var(--muted); font-size: 12px; }
.home-loc strong { display: flex; align-items: center; gap: 4px; font: 700 15px var(--font-d); min-width: 0; }
.home-loc strong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-loc strong .ic { color: var(--brand); }
@media (min-width: 900px) { .home-loc { display: none; } }
.banner.skeleton { background-color: var(--line); }
.banner .bn-title { font: 700 20px/1.2 var(--font-d); color: #fff; max-width: 18ch; position: relative; overflow-wrap: anywhere; }
.banner p, .banner .btn, .banner .bn-count { position: relative; }
.banner .bn-count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; opacity: .9; }
a.banner { display: block; text-decoration: none; color: #fff; }
.banner.has-img { background-size: cover; background-position: center; }
.banner.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 28, 17, .8), rgba(8, 28, 17, .25)); }
.cat { cursor: pointer; font-family: var(--font-b); }
.cat-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0; border-radius: 16px; background: var(--tint); color: var(--brand-text); }
.cat[aria-pressed="true"] .cat-ic { background: var(--brand-btn); color: #fff; box-shadow: 0 2px 8px rgba(22, 163, 74, .3); }
.cat-tx { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; text-transform: capitalize; max-width: 100%; }
.cat.skeleton { height: 88px; }
.shop-tools { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 4px; }
.shop-tools .chips { flex: 1 1 200px; min-width: 0; margin-bottom: 0; }
.sort-sel { width: auto; flex: 0 1 190px; max-width: 100%; }
.chip[hidden] { display: none; }
.shop-card { position: relative; display: flex; flex-direction: column; }
.im-box { position: relative; height: 160px; display: grid; place-items: center; background: var(--tint); color: var(--brand); overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.im-box .im { position: absolute; inset: 0; height: 100%; }
.im-box .st { position: absolute; left: 8px; top: 8px; }
.card-rate { position: absolute; right: 8px; bottom: 8px; }
.card-rate .rate { background: rgba(255,255,255,.92); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); padding: 3px 8px; border-radius: 8px; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.shop-card .tx { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.shop-card .tx b { font-size: 15px; }
.shop-card .tx b a { color: var(--ink); }
.shop-card .tx b a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.shop-card:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.shop-card .tx b a:focus-visible { outline: none; }
.shop-card.is-closed .im { filter: grayscale(.7); opacity: .7; }
.shop-card .meta { margin-top: 0; }
.shop-card .desc { margin: 2px 0 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta-i, .rate { display: inline-flex; align-items: center; gap: 3px; }
.rate { color: var(--accent-text); font-weight: 700; }
.rate .ic { fill: currentColor; }
.addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.addr { flex-wrap: nowrap; }
.notice { display: flex; gap: 8px; align-items: flex-start; background: var(--info-bg); color: var(--info-text); border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 4px 0; }
.notice .ic { margin-top: 2px; }
.notice.bad { background: var(--bad-bg); color: var(--bad-text); padding: 12px 14px; border-radius: var(--radius); margin: 0 0 12px; }
.shop-card.sk { pointer-events: none; }
.sk-im { height: 160px; border-radius: var(--radius) var(--radius) 0 0; }
.sk-line { height: 14px; margin: 6px 0; } .sk-line.short { width: 55%; }
.empty .btn { margin-top: 8px; }
.empty p { max-width: 38ch; margin-inline: auto; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; }
.shop-head h1 { margin-bottom: 6px; }
.shop-head .meta { font-size: 13px; margin-bottom: 4px; }
.shop-head p { color: var(--muted); }
.shop-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 16px; }
.shop-filters .chk { display: flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; font-weight: 600; grid-column: 1 / -1; }
.shop-filters input, .shop-filters select { margin: 0; }
@media (max-width: 640px) { .shop-filters { grid-template-columns: 1fr 1fr; } .shop-filters .q-wrap { grid-column: 1 / -1; } }
.product-card .im.ph { display: grid; place-items: center; color: var(--brand); height: 140px; }
.product-card .heart .ic { width: 20px; height: 20px; }
.product-card .heart.on .ic { fill: currentColor; }
.product-card .heart { color: #475569; }
.product-card .prod-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-card .desc { margin: 0 0 6px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card.sk { min-height: 180px; }
.pager { justify-content: center; margin-top: 20px; }
.reco-title { margin: 18px 0 8px; }
.im-box > .ic { width: 40px; height: 40px; opacity: .85; }
.cat-ic { width: 64px; height: 64px; border-radius: 16px; }
.cat-ic .ic { width: 24px; height: 24px; }
.product-card .im.ph .ic { width: 40px; height: 40px; }
.product-card .im.ph { background: var(--tint); border-radius: 0; }
.product-card h3 a { color: var(--ink); }
.banner.skeleton { min-height: 120px; }
.product-card .heart { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.product-card .heart:hover, .product-card .heart.on { color: var(--danger); }
.pc-img-wrap { display: block; position: relative; overflow: hidden; background: var(--tint); }
.product-card .add-btn { position: absolute; bottom: 8px; right: 8px; z-index: 2; }
.product-card .pc-body .add-btn { position: static; }
.product-card .qty-row:not([hidden]) + .add-btn { display: none; }
.grid.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
[hidden] { display: none !important; }
.im-box.no-img { height: 100px; background: linear-gradient(135deg, var(--tint), var(--bg)); }
.im-box.no-img > .ic { width: 36px; height: 36px; opacity: .5; }
.shop-card.is-closed .tx b a { color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.sec-h { font-size: 18px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-h .count { background: var(--tint); color: var(--deep-text); border-radius: var(--radius-full); font: 700 12px var(--font-b); padding: 2px 9px; }
.sec-sub { font-size: 15px; margin: 18px 0 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 8px; }
.cart-layout.is-empty { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
.cart-side > .card + .card { margin-top: 16px; }
@media (max-width: 899px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img step total"; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-lines > .cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line.sk { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img info"; }
.cl-img { grid-area: img; position: relative; width: 64px; height: 64px; border-radius: 12px; background-color: var(--tint); color: var(--brand); display: grid; place-items: center; overflow: hidden; }
.cl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cl-name { font-weight: 700; color: var(--ink); }
.cl-price { font-size: 13px; color: var(--muted); }
.cart-line .stepper { grid-area: step; justify-self: start; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper button:hover:not(:disabled) { background: var(--line); }
.cl-total { grid-area: total; justify-self: end; font: 800 16px var(--font-d); }
.cl-rm { grid-area: rm; justify-self: end; align-self: start; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cl-rm:hover { background: var(--bad-bg); color: var(--bad-text); }
.seg button { gap: 6px; }
#fulfilmentChoice { margin-bottom: 12px; }
#notesBox label { margin-top: 14px; }
.shop-pick { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 8px; }
.sp-h { display: flex; align-items: center; gap: 8px; color: var(--brand-text); }
.sp-h strong { color: var(--ink); }
.sp-i { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.sp-i .ic { margin-top: 3px; color: var(--brand-text); }
.sp-map { font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.sp-note { margin: 0; font-size: 13px; color: var(--muted); }
.coupon { margin-bottom: 16px; }
.coupon label { margin-top: 0; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; }
.coupon-msg { font-size: 13px; margin-top: 6px; }
.coupon-msg:empty { display: none; }
.sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.sum-row.ok { color: var(--ok-text); }
.sum-row.tot { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font: 800 17px var(--font-d); }
.sum-row.tot strong { font-size: 20px; }
.ok-text { color: var(--ok-text); font-weight: 700; white-space: nowrap; }
.credit-chk { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 14px; min-height: 44px; cursor: pointer; }
.sum-err { display: flex; gap: 8px; align-items: flex-start; background: var(--bad-bg); color: var(--bad-text); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin: 6px 0; }
.sum-err .ic { margin-top: 1px; }
.note-info { display: flex; gap: 10px; align-items: flex-start; background: var(--info-bg); color: var(--info-text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.note-info .ic { margin-top: 1px; }
.cart-side .payment-selector { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0 14px; }
.payment-card { align-items: center; }
.payment-card:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.payment-card .pay-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint); color: var(--brand-text); display: grid; place-items: center; }
.payment-card.selected .pay-icon { background: var(--surface); }
.payment-card .pay-info { display: flex; flex-direction: column; min-width: 0; }
.payment-card input[type="radio"] { flex: none; margin: 0; }
.leaflet-container { z-index: 0; }
.checkout-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 90; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px 12px; }
.co-row { display: flex; align-items: center; gap: 12px; }
.co-total { display: flex; flex-direction: column; min-width: 0; }
.co-pay { font-size: 12px; color: var(--muted); }
.co-total strong { font: 800 20px var(--font-d); line-height: 1.15; }
.co-btn { flex: 1; min-height: 48px; font-size: 16px; }
.co-error { display: flex; gap: 8px; align-items: flex-start; background: var(--bad-bg); color: var(--bad-text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 8px; }
.co-error .ic { margin-top: 2px; }
@media (min-width: 900px) {
  .checkout-bar { bottom: 12px; margin-left: auto; width: min(100%, 520px); }
}
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .pd-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.pd-skimg { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.pd-main { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 420px; border-radius: var(--radius); background: var(--tint); color: var(--brand); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 12px; border: 2px solid var(--line); background: var(--tint); overflow: hidden; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on { border-color: var(--brand-btn); }
.pd-info h1 { margin-bottom: 4px; }
.pd-cat { margin-bottom: 6px; }
.pd-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 1px; }
.stars .ic { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.stars .ic.on { fill: var(--accent); stroke: var(--accent); }
.pd-price { font: 800 30px var(--font-d); color: var(--brand-text); margin: 6px 0; }
.pd-desc { max-width: 60ch; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pd-actions .btn { min-height: 48px; flex: 1 1 150px; }
.btn.secondary.on { color: var(--danger); border-color: var(--danger); }
.btn.secondary.on .ic { fill: currentColor; }
.reviews { list-style: none; margin: 0; padding: 0; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review:first-child { padding-top: 0; }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review p { margin: 4px 0; }
.rv-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.empty .btn .ic { width: 18px; height: 18px; color: inherit; margin: 0; }
.payment-card input[type="radio"] { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 22px; border: 2px solid var(--muted); border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.payment-card input[type="radio"]::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: scale(0); transition: transform .12s ease; }
.payment-card input[type="radio"]:checked { border-color: var(--brand); }
.payment-card input[type="radio"]:checked::after { transform: scale(1); }
.page-cart { --tabbar-h: 0px; }
.page-cart .tabbar { display: none; }
.page-cart .checkout-bar { bottom: calc(env(safe-area-inset-bottom) + 8px); }
.page-cart .install-banner { display: none; }
.page-cart .toast { bottom: calc(env(safe-area-inset-bottom) + 84px); }
.badge.info { background: var(--info-bg); color: var(--info-text); font-weight: 700; padding: 3px 10px; }
.badge .ic { width: 14px; height: 14px; }
a.notice { min-height: 44px; align-items: center; font-weight: 600; margin: 0; }
a.notice:hover { text-decoration: underline; }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); }
.ord-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ord-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.ord-card.is-active { border-left: 4px solid var(--brand); }
.ord-card.is-ready { background: var(--tint); border-color: var(--brand-btn); }
.ord-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ord-no { display: inline-flex; align-items: center; min-height: 44px; font: 700 16px var(--font-d); color: var(--ink); }
.ord-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; color: var(--muted); font-size: 13px; }
.ord-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.ord-total { font: 800 18px var(--font-d); }
.ord-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.help-note { display: inline-flex; gap: 6px; align-items: flex-start; font-size: 13px; max-width: 460px; }
.ord-primary { margin-bottom: 14px; }
.ord-primary .btn { width: 100%; min-height: 48px; }
#decide > .card, #status > .card, #tracking > .card, #chat > .card, #order > .card { margin-bottom: 14px; }
.status-banner.info { background: var(--info-bg); color: var(--info-text); }
.status-banner .banner-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.status-banner .banner-tx { min-width: 0; flex: 1; }
.status-banner p { margin: 2px 0 0; font-size: 13px; }
.status-banner .btn { margin-top: 10px; }
.tl-label, .timeline time, .tl-note { display: block; }
.tl-note, .timeline time { font-size: 12px; font-weight: 500; color: var(--muted); }
.code-card { text-align: center; border: 2px solid var(--brand-btn); background: var(--tint); }
.code-h { font-size: 15px; display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0; }
.code-digits { font: 800 clamp(34px, 12vw, 52px) var(--font-d); letter-spacing: .22em; padding-left: .22em; margin: 6px 0; color: var(--ink); user-select: all; overflow-wrap: normal; }
.code-card p { margin: 0; font-size: 13px; }
.rider-card { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.rider-tx { display: flex; flex-direction: column; flex: 1; min-width: 130px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-btn); color: #fff; display: grid; place-items: center; font: 700 18px var(--font-d); flex: none; }
.track-eta { font-size: 17px; display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.track-eta .ic { margin-top: 2px; }
.track-card p { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.track-map { width: 100%; height: 260px; margin-top: 10px; border-radius: 12px; }      /* the rider on the order page (maps.js styles the pins) */
.ord-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; font-size: 14px; padding: 12px 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; font-size: 14px; }
.info-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.info-grid a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.rcpt-items { list-style: none; margin: 0 0 12px; padding: 0; }
.rcpt-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n t" "q t"; gap: 0 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.rcpt-items a { grid-area: n; font-weight: 600; display: flex; align-items: center; min-height: 44px; }
.rcpt-items span { grid-area: q; font-size: 13px; }
.rcpt-items strong { grid-area: t; align-self: center; }
.rcpt .summary .disc { color: var(--brand-text); }
.note-box { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); }
.note-box.ok { background: var(--ok-bg); color: var(--ok-text); }
.note-box p { margin: 4px 0 0; }
.decide-card { border: 2px solid var(--accent); background: var(--warn-bg); }
.chat-msgs { max-height: 240px; min-height: 64px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--bg); }
.bubble-row { display: flex; margin: 4px 0; }
.bubble-row.mine { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: var(--line); color: var(--ink); }
.mine .bubble { background: var(--brand-btn); color: #fff; }
.bubble small { display: block; font-size: 11px; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form input { flex: 1; min-width: 0; }
.small { font-size: 12px; }
.who { font-weight: 500; }
.wish-card .wish-rm { margin-top: 10px; width: 100%; }
.wish-card h3 { overflow-wrap: anywhere; }
.empty.card { border-style: dashed; }
#decide, #status, #tracking, #chat, #order { max-width: 760px; }
.empty .btn + .btn { margin-left: 8px; }
.info-grid a:not(.btn) { margin-block: -10px; }
.status-banner:focus, h1:focus, .empty h3:focus { outline: none; }
#refreshNote .notice { align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
#refreshNote .notice span { flex: 1 1 160px; }
#refreshNote .btn { flex: none; white-space: nowrap; }
/* ---------- sign-in pages, profile, help, legal, error ---------- */
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h1 { font-size: 24px; margin: 0 0 4px; }
.auth-head p { margin: 0; font-size: 14px; }
.auth-mark { display: block; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.block + .btn.block { margin-top: 10px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
.pw-field { position: relative; }
.pw-field input { padding-right: 50px; }
.pw-toggle { position: absolute; top: 0; right: 0; width: 46px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 12px; cursor: pointer; padding: 0; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .ic:last-child, .pw-toggle[aria-pressed="true"] .ic:first-child { display: none; }
.pw-toggle[aria-pressed="true"] .ic:last-child { display: inline; }
.form-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; background: var(--bad-bg); color: var(--bad-text); }
.form-msg.ok { background: var(--ok-bg); color: var(--ok-text); }
.form-msg:empty { margin: 0; padding: 0; height: 0; overflow: hidden; }
.auth-links { text-align: center; margin: 8px 0 0; font-size: 14px; }
.auth-links a, .auth-alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.auth-alt { text-align: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.social-options { display: grid; gap: 9px; margin: 16px 0; }
.social-btn { justify-content: center; text-align: center; }
.social-separator { margin: 2px 0; color: var(--muted); text-align: center; font-size: 13px; }
.register-social-options { max-width: 480px; margin: 0 auto 24px; padding: 0 20px; }
.social-connected { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.terms-note { font-size: 12px; margin: 0 0 12px; }
.prof { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; }
.prof-head { display: flex; align-items: center; gap: 14px; }
.prof-head h1 { margin: 0; font-size: 24px; }
.prof-head p { margin: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--deep-text); border: 1px solid var(--line); display: grid; place-items: center; font: 800 24px var(--font-d); }
.prof-card h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 8px; }
.prof-card h2 .ic { color: var(--brand-text); }
.prof-card > p { font-size: 14px; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.danger-zone { border-color: var(--danger-btn); }
.danger-zone h2 .ic { color: var(--danger); }
.addr-skel { height: 96px; }
.notice .btn { flex: none; margin-left: auto; white-space: nowrap; }
.dlg { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; width: min(92vw, 420px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dlg::backdrop { background: rgba(15, 42, 29, .55); }
.dlg h2 { font-size: 19px; }
.dlg-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.help { max-width: 760px; margin: 0 auto; }
.help-intro { max-width: 65ch; }
.help .card { margin-bottom: 16px; }
.help h2 { font-size: 18px; margin: 0 0 12px; }
.two-col { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-row { width: 100%; min-height: 60px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 14px; color: var(--ink); font: inherit; cursor: pointer; }
.tk-row:hover { background: var(--tint); }
.tk-main { flex: 1 1 180px; min-width: 0; display: grid; }
.tk-main .muted { font-size: 12px; }
.tk-skel { height: 60px; margin-bottom: 8px; }
.th-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.th-head > div { flex: 1 1 220px; min-width: 0; }
.th-head h2 { margin: 0; font-size: 18px; }
.th-head h2:focus { outline: none; }
.th-head .badge, .tk-row .badge { flex: none; white-space: nowrap; }
.thread-card .chat-msgs { max-height: 360px; }
#rForm textarea { margin-top: 10px; }
.badge.mute { background: var(--bg); color: var(--muted); border: 1px solid var(--line); font-weight: 700; padding: 3px 10px; }
.prose { max-width: 760px; margin: 8px auto; padding: 24px; }
.prose h1 { font-size: 28px; }
.prose-text { max-width: 65ch; white-space: pre-wrap; line-height: 1.7; font-size: 16px; }
.err-page { max-width: 480px; margin: 32px auto; padding: 32px 20px; text-align: center; }
.err-page h1 { font-size: 22px; }
.err-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--brand-text); }
.err-ic .ic { width: 36px; height: 36px; }
.err-code { margin: 8px 0 0; font: 800 44px/1.1 var(--font-d); color: var(--muted); }
.err-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
dialog:not([open]) { display: none; }
@media (max-width: 360px) { .kv div { flex-direction: column; gap: 0; } .kv dd { text-align: left; } }
@media (max-width: 420px) {
  .app-header .hdr-actions { gap: 6px; }
  .app-header .hdr-actions .btn.sm { padding: 0 11px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .grid.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card .im, .product-card img { height: 120px; }
  .product-card h3 { font-size: 13px; }
  .product-card .price { font-size: 14px; }
  .product-card .desc { display: none; }
  .product-card .btn { min-height: 36px; padding: 6px 10px; font-size: 12px; border-radius: 10px; }
  .product-card .heart { width: 30px; height: 30px; top: 8px; left: 8px; }
  .product-card .heart .ic { width: 16px; height: 16px; }
  .qty-row .stepper button { width: 34px; height: 34px; }
  .qty-row .stepper em { min-width: 18px; }
  .cat-grid { gap: 8px; }
  .cat-ic { width: 56px; height: 56px; border-radius: 14px; }
  .cat-ic .ic { width: 22px; height: 22px; }
  .cat { font-size: 10px; gap: 4px; }
}
.theme-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0 8px; }
.theme-dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform .15s, border-color .15s; padding: 0; }
.theme-dot:hover { transform: scale(1.15); }
.theme-dot.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.theme-mode-row { display: flex; gap: 14px; padding: 6px 0 0; }
.theme-mode-label { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; cursor: pointer; }
.theme-mode-label input { accent-color: var(--brand); }
.shop-card:active { transform: scale(.98); }
.cat:active, .chip:active, .tab:active { transform: scale(.95); }
.chip { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tabbar { padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 0; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(255, 255, 255, .92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar { background: rgba(21, 34, 26, .92); } }
:root[data-theme="dark"] .tabbar { background: rgba(21, 34, 26, .92); }
.tab[aria-current="page"]::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 18px; height: 3px; border-radius: 3px; background: var(--brand); }
.floating-cart { position: fixed; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); left: 16px; right: 16px; z-index: 110; text-align: center; background: var(--brand-btn); color: var(--on-brand); border-radius: var(--radius); padding: 14px 20px; font: 700 15px var(--font-b); box-shadow: 0 4px 20px rgba(21, 128, 61, .35); text-decoration: none; max-width: 420px; margin: 0 auto; animation: slideUp .25s ease; }
.floating-cart:hover { background: var(--btn-hover); text-decoration: none; color: #fff; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 900px) { .floating-cart { left: auto; right: 24px; width: 320px; bottom: 24px; } }
.app-header.scrolled { box-shadow: 0 1px 8px rgba(0, 0, 0, .06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-header.scrolled { box-shadow: 0 1px 8px rgba(0, 0, 0, .25); } }
:root[data-theme="dark"] .app-header.scrolled { box-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.register-map { height: 190px; margin-top: 10px; }
.theme-dot[data-theme-color="default"] { background: var(--swatch-default); }
.theme-dot[data-theme-color="blue"] { background: var(--swatch-blue); }
.theme-dot[data-theme-color="purple"] { background: var(--swatch-purple); }
.theme-dot[data-theme-color="pink"] { background: var(--swatch-pink); }
.theme-dot[data-theme-color="orange"] { background: var(--swatch-orange); }
.theme-dot[data-theme-color="red"] { background: var(--swatch-red); }
.theme-dot[data-theme-color="teal"] { background: var(--swatch-teal); }
.theme-dot[data-theme-color="indigo"] { background: var(--swatch-indigo); }
