/* ================= varo. design tokens =================
   Brand palette: Velocity Red #FF4328 (signature), Action Red #D52E18 (actions),
   Carbon Black #171717, Warm Ivory #FFF7EF, Pure White #FFFFFF.
   Light by default, dark when the system asks for it (or the user picks it). */
:root {
  color-scheme: light;
  --brand: #FF4328;            /* Velocity Red: logo, banners, badges */
  --carbon: #171717;
  --ivory: #FFF7EF;
  --bg: #FFFFFF;
  --surface: #FFFFFF;          /* cards */
  --surface-2: #FFF7EF;        /* inputs, chips, quiet buttons (warm ivory) */
  --surface-3: #F7E9DC;        /* hover */
  --border: #F0E6DC;
  --text: #171717;
  --text-2: #6B645E;
  --heading: #171717;
  --accent: #D52E18;           /* Action Red: buttons */
  --accent-hover: #B5240F;
  --accent-tint: #FFEAE5;
  --accent-on-tint: #C42A14;
  --logo: #171717;
  --ok: #138A55;
  --ok-tint: #E3F5EB;
  --warn: #9A5A00;
  --warn-tint: #FFF1D9;
  --panel-dark: #171717;
  --overlay: rgba(23, 23, 23, .5);
  --card-shadow: 0 1px 2px rgba(23, 23, 23, .05), 0 2px 12px rgba(23, 23, 23, .06);
  --float-shadow: 0 12px 32px rgba(23, 23, 23, .18);
  --header-bg: rgba(255, 255, 255, .92);

  --r-xl: 20px;
  --r-lg: 14px;
  --r-md: 12px;
  --r-sm: 8px;
  --font: "Inter", "Noto Sans Georgian", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1280px;
  --gutter: 24px;
  --header-h: 72px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E0E0E;
    --surface: #171717;
    --surface-2: #212121;
    --surface-3: #2B2B2B;
    --border: #262626;
    --text: #FFF7EF;
    --text-2: #A8A19A;
    --heading: #FFFFFF;
    --accent: #FF4328;
    --accent-hover: #FF5C44;
    --accent-tint: rgba(255, 67, 40, .15);
    --accent-on-tint: #FF6A52;
    --logo: #FF4328;
    --ok: #3CCB8B;
    --ok-tint: rgba(60, 203, 139, .15);
    --warn: #F5B547;
    --warn-tint: rgba(245, 181, 71, .14);
    --panel-dark: #171717;
    --overlay: rgba(0, 0, 0, .65);
    --card-shadow: none;
    --float-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    --header-bg: rgba(14, 14, 14, .92);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0E0E;
  --surface: #171717;
  --surface-2: #212121;
  --surface-3: #2B2B2B;
  --border: #262626;
  --text: #FFF7EF;
  --text-2: #A8A19A;
  --heading: #FFFFFF;
  --accent: #FF4328;
  --accent-hover: #FF5C44;
  --accent-tint: rgba(255, 67, 40, .15);
  --accent-on-tint: #FF6A52;
  --logo: #FF4328;
  --ok: #3CCB8B;
  --ok-tint: rgba(60, 203, 139, .15);
  --warn: #F5B547;
  --warn-tint: rgba(245, 181, 71, .14);
  --panel-dark: #171717;
  --overlay: rgba(0, 0, 0, .65);
  --card-shadow: none;
  --float-shadow: 0 12px 32px rgba(0, 0, 0, .55);
  --header-bg: rgba(14, 14, 14, .92);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-optical-sizing: auto; font-size: 16px; line-height: 1.45;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: 0; line-height: 1.25; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: 24px; font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { min-height: calc(100vh - var(--header-h)); padding-bottom: 120px; outline: none; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--text-2); }

@media (max-width: 640px) { :root { --gutter: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= Buttons & controls ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border-radius: var(--r-md); border: 0;
  font-weight: 650; font-size: 16px; white-space: nowrap; background: var(--accent); color: #fff;
  transition: background .15s, transform .08s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: var(--surface-3); color: var(--text-2); cursor: not-allowed; transform: none; }
.btn.soft { background: var(--accent-tint); color: var(--accent-on-tint); }
.btn.soft:hover { background: color-mix(in srgb, var(--accent-tint) 70%, var(--accent) 12%); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-3); }
.btn.dark { background: var(--heading); color: var(--bg); }
.btn.herb { background: var(--ok); color: #fff; }
.btn.herb:hover { background: color-mix(in srgb, var(--ok) 85%, black); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn.split { justify-content: space-between; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-on-tint); font-weight: 650; }
.link-btn:hover { text-decoration: underline; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: var(--surface-2); color: var(--text); flex-shrink: 0; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.tint { background: var(--accent-tint); color: var(--accent-on-tint); }
.icon-btn[disabled] { opacity: .4; cursor: default; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--heading); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--surface-2); outline: none; transition: border-color .15s, background .15s;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background: var(--surface); }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--accent-on-tint); background: var(--accent-tint); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }

.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label {
  display: flex; gap: 10px; align-items: center; padding: 14px; min-height: 56px;
  border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; font-weight: 600; background: var(--surface);
}
.choice input:checked + label { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-on-tint); }
.choice input:focus-visible + label { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.pom { background: var(--accent-tint); color: var(--accent-on-tint); }
.badge.dark { background: var(--heading); color: var(--bg); }

/* ================= Logo ================= */
.logo { display: inline-flex; align-items: baseline; gap: 8px; color: var(--logo); flex-shrink: 0; }
.wordmark { font-family: "Inter", sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -0.055em; line-height: 1; color: var(--logo); }
.logo small { font-size: 13px; font-weight: 600; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }

/* ================= Header ================= */
#header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, min(420px, 34vw)) minmax(0, .4fr) auto; align-items: center; gap: 16px; height: var(--header-h); }
.addr-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 99px; min-width: 0; max-width: 100%; justify-self: start; color: var(--accent-on-tint); font-weight: 650; }
.addr-btn:hover { background: var(--surface-2); }
.addr-btn .addr-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); display: grid; place-items: center; flex-shrink: 0; }
.addr-btn .addr-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.search { position: relative; grid-column: 3; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.search input { width: 100%; height: 44px; border-radius: 99px; border: 0; background: var(--surface-2); padding: 0 16px 0 42px; outline: none; color: var(--text); }
.search input::placeholder { color: var(--text-2); }
.search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.top-actions { display: flex; align-items: center; gap: 10px; grid-column: 5; }
.profile-pill { display: flex; align-items: center; gap: 4px; height: 44px; padding: 3px 10px 3px 3px; border-radius: 99px; border: 0; background: var(--surface-2); color: var(--text); }
.profile-pill:hover { background: var(--surface-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-on-tint); display: grid; place-items: center; font-weight: 750; font-size: 14px; border: 0; flex-shrink: 0; }
.cart-btn { position: relative; width: 44px; height: 44px; }
.lang-btn { width: 44px; height: 44px; font-weight: 750; font-size: 13px; }
.cart-btn .count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }

@media (max-width: 860px) {
  .topbar .wrap { grid-template-columns: auto minmax(0, 1fr) auto; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .top-actions { grid-column: 3; }
  :root { --header-h: 118px; }
  .wordmark { font-size: 26px; }
  .logo small { display: none; }
}


/* ================= Generated art (stands in for photos) ================= */
.art {
  --t: #FDE3E8; --d: #F5BFCB;
  --tb: var(--t); --db: var(--d);
  position: relative; overflow: hidden; display: grid; place-items: center;
  background-color: var(--tb);
  background-image:
    radial-gradient(circle at 20% 30%, var(--db) 0 5px, transparent 6px),
    radial-gradient(circle at 70% 75%, var(--db) 0 4px, transparent 5px),
    radial-gradient(circle at 85% 20%, var(--db) 0 3px, transparent 4px);
  background-size: 64px 64px, 52px 52px, 40px 40px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art { --tb: color-mix(in srgb, var(--t) 16%, #241E22); --db: color-mix(in srgb, var(--d) 30%, #241E22); } }
:root[data-theme="dark"] .art { --tb: color-mix(in srgb, var(--t) 16%, #241E22); --db: color-mix(in srgb, var(--d) 30%, #241E22); }
.art .emo { font-size: 60px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); transform: rotate(-6deg); }
.art.lg .emo { font-size: 120px; }
.art.sm .emo { font-size: 46px; }
.art.xs .emo { font-size: 26px; transform: none; filter: none; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ================= Home ================= */
.home-top { padding-top: 20px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(21px, 2.4vw, 26px); }
.section-tools { display: flex; align-items: center; gap: 10px; }
.section-tools .see-all { color: var(--accent-on-tint); font-weight: 650; font-size: 15px; margin-right: 4px; }
.arrows { display: flex; gap: 8px; }
.arrows .icon-btn { width: 36px; height: 36px; background: var(--accent-tint); color: var(--accent-on-tint); }
@media (max-width: 640px) { .arrows { display: none; } }

.rail { display: grid; grid-auto-flow: column; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.venues { grid-auto-columns: minmax(260px, calc((100% - 48px) / 4)); }
@media (max-width: 1100px) { .rail.venues { grid-auto-columns: minmax(260px, calc((100% - 32px) / 3)); } }
@media (max-width: 640px) { .rail.venues { grid-auto-columns: 78%; } }

.cats { grid-auto-columns: 96px; gap: 12px; }
.cat { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--text); }
.cat .tile { width: 96px; height: 80px; border-radius: var(--r-lg); overflow: hidden; border: 2px solid transparent; transition: border-color .15s; }
.cat .tile .art { width: 100%; height: 100%; }
.cat .tile .art .emo { font-size: 38px; transform: none; }
.cat.active .tile { border-color: var(--accent); }
.cat.active { color: var(--accent-on-tint); }
.cat:hover .tile { border-color: var(--surface-3); }
.cat.active:hover .tile { border-color: var(--accent); }

.banners { grid-auto-columns: min(760px, 88%); gap: 16px; }
.banner { position: relative; height: 300px; border-radius: var(--r-xl); overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 28px; isolation: isolate; }
.banner .b-emo { position: absolute; right: 6%; top: 50%; transform: translateY(-55%) rotate(-8deg); font-size: clamp(110px, 16vw, 190px); line-height: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); z-index: -1; }
.banner h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; max-width: 15ch; line-height: 1.08; }
.banner p { margin-top: 8px; opacity: .88; max-width: 34ch; }
.banner .b-chip { position: absolute; top: 22px; left: 28px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 650; }
.banner.light { color: #171717; box-shadow: inset 0 0 0 1px #F0E6DC; }
.banner.light h3 { color: #171717; }
.banner.light .b-chip { background: #FF4328; color: #fff; }
.banner.brand { align-items: center; }
.banner .b-word { display: block; font-size: clamp(72px, 11vw, 132px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.banner .b-tag { margin-top: 14px; font-weight: 600; letter-spacing: .05em; font-size: clamp(13px, 1.5vw, 17px); opacity: 1; }
@media (max-width: 640px) { .banner { height: 220px; padding: 20px; } .banner .b-chip { left: 20px; top: 16px; } }

.vcard { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; transition: transform .2s; min-width: 0; }
.vcard:hover { transform: translateY(-2px); }
.vcard-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vcard-img .art { width: 100%; height: 100%; }
.vcard.closed .vcard-img .art { filter: grayscale(.8) brightness(.8); }
.vcard-img .closed-veil { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; font-weight: 700; font-size: 15px; text-align: center; padding: 8px; }
.vcard-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.vcard-name { font-weight: 700; color: var(--heading); font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); gap: 0; }
.vcard-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.vcard-meta .fee { color: var(--accent-on-tint); font-weight: 600; }
.vcard-tag { justify-self: start; margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 99px; background: var(--accent-tint); color: var(--accent-on-tint); font-size: 12.5px; font-weight: 650; }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-select { height: 40px; border-radius: 99px; border: 0; padding: 0 14px; background: var(--surface-2); font-weight: 600; color: var(--text); }
.pill-select:focus { outline: 2px solid var(--accent); }

.empty { text-align: center; padding: 64px 16px; display: grid; justify-items: center; gap: 10px; }
.empty .e { font-size: 56px; }
.sk { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }

/* ================= Venue page ================= */
.v-hero { position: relative; height: 320px; }
.v-hero .art { position: absolute; inset: 0; }
.v-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.v-hero .back { position: absolute; top: 16px; left: var(--gutter); z-index: 2; background: var(--surface); box-shadow: var(--card-shadow); }
.v-info { position: relative; z-index: 2; margin-top: -72px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.v-name { font-size: clamp(32px, 5vw, 48px); }
.v-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 4px; color: var(--text-2); font-size: 14.5px; }
.v-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.v-meta .strong { color: var(--text); font-weight: 600; }
.v-meta .link-btn { font-size: 14.5px; }
.v-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; width: 100%; margin-top: 8px; }
.v-pill { height: 46px; border-radius: 99px; border: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-tint); color: var(--accent-on-tint); font-weight: 650; }
.v-pill.closed { background: var(--surface-2); color: var(--text-2); }
.fav-btn { width: 46px; height: 46px; background: var(--accent-tint); color: var(--accent-on-tint); }
.fav-btn.on svg { fill: currentColor; }

.menu-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); margin-top: 24px; }
.menu-nav .wrap { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.menu-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs a { padding: 9px 14px; border-radius: 99px; font-weight: 650; font-size: 14.5px; color: var(--text); white-space: nowrap; }
.menu-tabs a:hover { background: var(--surface-2); }
.menu-tabs a.active { background: var(--accent-tint); color: var(--accent-on-tint); }
.menu-search { position: relative; width: 260px; flex-shrink: 0; }
.menu-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.menu-search input { width: 100%; height: 42px; border-radius: 99px; border: 0; background: var(--surface-2); padding: 0 14px 0 38px; outline: none; color: var(--text); }
.menu-search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
@media (max-width: 760px) { .menu-search { width: 44%; } }

.menu-section { padding-top: 36px; scroll-margin-top: calc(var(--header-h) + 80px); }
.menu-section h2 { margin-bottom: 16px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .item-grid { grid-template-columns: 1fr; } }
.item {
  display: grid; grid-template-columns: 1fr 140px; gap: 16px; text-align: left; align-items: stretch; min-height: 140px;
  padding: 14px; border-radius: var(--r-lg); border: 0; background: var(--surface); box-shadow: var(--card-shadow); transition: background .15s;
}
.item:hover { background: color-mix(in srgb, var(--surface) 92%, var(--text) 4%); }
.item .txt { display: flex; flex-direction: column; min-width: 0; }
.item h3 { font-size: 16px; }
.item p { font-size: 14px; color: var(--text-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .price { font-weight: 650; color: var(--accent-on-tint); font-size: 15px; }
.item .thumb { position: relative; border-radius: var(--r-md); overflow: hidden; }
.item .thumb .art { width: 100%; height: 100%; }
.item .add { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); backdrop-filter: blur(8px); color: var(--accent-on-tint); display: grid; place-items: center; }
.item .thumb .add { background: color-mix(in srgb, var(--surface) 75%, var(--accent) 25%); color: var(--accent-on-tint); }
.item .qty-tag { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; border-radius: 99px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; }
.item.unavailable { opacity: .5; cursor: not-allowed; }
.item.unavailable .price { color: var(--text-2); }
@media (max-width: 480px) { .item { grid-template-columns: 1fr 112px; min-height: 120px; } }

/* ================= Overlays ================= */
.backdrop { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: grid; place-items: center; padding: 16px; animation: fade .18s ease; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--float-shadow); animation: pop .22s cubic-bezier(.2,.9,.3,1.2); position: relative; }
.modal.wide { width: min(760px, 100%); }
.modal-body { padding: 24px; display: grid; gap: 16px; }
.modal .close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--surface); box-shadow: var(--card-shadow); }
.modal-art { aspect-ratio: 16 / 9; }
.modal-art .art { width: 100%; height: 100%; }
.modal-foot { position: sticky; bottom: 0; background: var(--surface); padding: 16px 24px 24px; display: flex; gap: 12px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 640px) {
  .backdrop { place-items: end center; padding: 0; }
  .modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; width: 100%; }
}

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 99px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--accent-on-tint); display: grid; place-items: center; }
.stepper button[disabled] { color: var(--text-2); opacity: .5; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.stepper.sm button { width: 30px; height: 30px; }

.drawer-back { position: fixed; inset: 0; z-index: 100; background: var(--overlay); animation: fade .18s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 101; display: flex; flex-direction: column; box-shadow: var(--float-shadow); animation: slide .25s cubic-bezier(.2,.9,.3,1); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer-foot { padding: 16px 24px 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line .art { width: 56px; height: 56px; border-radius: var(--r-md); }
.line .name { font-weight: 650; color: var(--heading); }
.line .sub { font-size: 13.5px; color: var(--text-2); }
.line .right { display: grid; gap: 6px; justify-items: end; }

.cartbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; width: min(520px, calc(100% - 32px)); animation: rise .3s cubic-bezier(.2,.9,.3,1.2); }
.cartbar .btn { width: 100%; height: 58px; border-radius: var(--r-lg); box-shadow: var(--float-shadow); font-size: 17px; justify-content: space-between; padding: 0 12px; }
.cartbar .n { background: rgba(255,255,255,.22); border-radius: 10px; min-width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; }
.cartbar .t { padding-right: 8px; font-weight: 750; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }

#toasts { position: fixed; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--heading); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-weight: 600; box-shadow: var(--float-shadow); animation: rise2 .25s ease; max-width: 90vw; }
.toast.error { background: var(--accent); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@keyframes rise2 { from { opacity: 0; transform: translateY(-10px); } }

/* ================= Checkout ================= */
.page-title { padding: 32px 0 20px; display: flex; align-items: center; gap: 14px; }
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r-xl); padding: 24px; display: grid; gap: 16px; background: var(--surface); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.panel + .panel { margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sticky-panel { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .sticky-panel { position: static; } }
.addr-option label { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start; }
.addr-option label .ic-wrap { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.addr-option input:checked + label .ic-wrap { background: var(--accent); color: #fff; }
.addr-option label small { font-weight: 500; color: var(--text-2); font-size: 13.5px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row .k { color: var(--text-2); }
.sum-row.total { font-size: 20px; font-weight: 800; color: var(--heading); padding-top: 12px; border-top: 1.5px dashed var(--border); }
.sum-row.discount .v { color: var(--ok); font-weight: 650; }
.problems { display: grid; gap: 8px; }
.problem { background: var(--warn-tint); color: var(--warn); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { text-transform: uppercase; }
.promo-row .input::placeholder { text-transform: none; }

/* ================= Order tracking ================= */
.track { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; padding-top: 28px; align-items: start; }
@media (max-width: 900px) { .track { grid-template-columns: 1fr; } }
.track-hero { background: var(--panel-dark); color: #fff; border-radius: var(--r-xl); padding: 28px; position: relative; overflow: hidden; }
.track-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,67,40,.6), transparent 70%); }
.track-hero h1 { color: #fff; font-size: clamp(26px, 3.4vw, 36px); max-width: 18ch; position: relative; z-index: 1; }
.track-hero .eta { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; position: relative; z-index: 1; }
.track-hero .eta b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.track-hero .eta span { opacity: .75; }
.track-hero .code { position: relative; z-index: 1; margin-top: 6px; opacity: .7; font-size: 14px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; position: relative; z-index: 1; }
.steps li { display: grid; gap: 8px; font-size: 13px; font-weight: 600; opacity: .55; }
.steps li::before { content: ""; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); }
.steps li.done, .steps li.current { opacity: 1; }
.steps li.done::before { background: #fff; }
.steps li.current::before { background: linear-gradient(90deg, #fff 0 50%, rgba(255,255,255,.25) 50%); background-size: 200% 100%; animation: progress 1.6s linear infinite; }
@keyframes progress { from { background-position: 100% 0; } to { background-position: 0 0; } }
.steps li small { font-weight: 500; opacity: .75; }
.map { height: 340px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); z-index: 0; }
.map.sm { height: 220px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.map-pin span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); font-size: 19px; border: 3px solid #FF4328; }
.map-pin.home span { border-color: #171717; }
.map-pin.courier span { border-color: #14845A; }
.person { display: flex; gap: 12px; align-items: center; }
.person .avatar { width: 46px; height: 46px; font-size: 18px; }
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: 0; font-size: 34px; color: var(--surface-3); padding: 0; line-height: 1; }
.stars button.on { color: #F2A400; }

/* ================= Account ================= */
.account { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding-top: 28px; align-items: start; }
@media (max-width: 900px) { .account { grid-template-columns: 1fr; } }
.order-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.order-row .art { width: 56px; height: 56px; border-radius: var(--r-md); }
.list { display: grid; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: var(--r-md); padding: 4px; }
.seg button { height: 38px; border: 0; border-radius: 9px; background: none; font-weight: 650; color: var(--text-2); }
.seg button.active { background: var(--surface); color: var(--heading); box-shadow: var(--card-shadow); }

/* ================= Auth ================= */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: var(--r-md); padding: 4px; }
.auth-tabs button { height: 40px; border: 0; border-radius: 9px; background: none; font-weight: 650; color: var(--text-2); }
.auth-tabs button.active { background: var(--surface); color: var(--heading); box-shadow: var(--card-shadow); }
.demo-row { display: flex; gap: 8px; flex-wrap: wrap; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ================= Store dashboard ================= */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 20px; }
.dash-head .who { display: flex; gap: 14px; align-items: center; }
.dash-head .who .art { width: 56px; height: 56px; border-radius: 16px; }
.open-toggle { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 99px; background: var(--surface-2); font-weight: 650; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface-2); border-radius: var(--r-lg); padding: 16px 18px; }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--heading); letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--text-2); }
.tabs { display: flex; gap: 6px; margin: 28px 0 18px; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: 0; padding: 12px 16px; font-weight: 650; color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--heading); border-color: var(--accent); }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--surface-2); border-radius: var(--r-lg); padding: 12px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-weight: 700; color: var(--heading); }
.col-head .badge { background: var(--surface); }
.ocard { background: var(--surface); border-radius: var(--r-md); padding: 14px; display: grid; gap: 10px; box-shadow: var(--card-shadow); }
.ocard.fresh { animation: flash 1.6s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 3px var(--accent); } }
.ocard .top { display: flex; justify-content: space-between; align-items: baseline; }
.ocard .top b { color: var(--heading); font-size: 17px; }
.ocard ul { margin: 0; padding: 0; list-style: none; font-size: 14px; display: grid; gap: 2px; }
.ocard .note { font-size: 13.5px; background: var(--warn-tint); color: var(--warn); padding: 6px 10px; border-radius: var(--r-sm); }
.ocard .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ocard .acts .btn { flex: 1; }
.menu-admin .row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.menu-admin h3 { margin: 24px 0 6px; }

/* ================= Courier ================= */
.courier { max-width: 640px; margin: 0 auto; padding-top: 24px; display: grid; gap: 18px; }
.online-card { border-radius: var(--r-xl); padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-2); }
.online-card.on { background: var(--ok-tint); }
.online-card h2 { font-size: 22px; }
.job { border-radius: var(--r-xl); padding: 18px; display: grid; gap: 12px; background: var(--surface); box-shadow: var(--card-shadow); border: 1px solid var(--border); }
.job .payout { font-size: 26px; font-weight: 800; color: var(--ok); letter-spacing: -0.02em; }
.route { display: grid; position: relative; }
.route .stop { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 6px 0; position: relative; }
.route .stop .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface); margin: 4px 0 0 7px; position: relative; z-index: 1; }
.route .stop.home .dot { border-color: var(--heading); background: var(--heading); }
.route .stop:first-child::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: -10px; border-left: 2px dashed var(--surface-3); }
.job-steps { display: flex; gap: 6px; }
.job-steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); }
.job-steps span.on { background: var(--ok); }
.earn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
