/* ===== Burgercity — qizil + sariq dizayn ===== */
:root {
  --red: #e11d2a;
  --red-600: #c8101d;
  --red-700: #9f0c16;
  --red-50: #fff0f0;
  --yellow: #ffc527;
  --yellow-300: #ffd95e;
  --yellow-100: #fff4cc;
  --ink: #17120f;
  --text: #17120f;
  --muted: #6e6560;
  --line: #ece6e1;
  --bg: #ffffff;
  --bg-soft: #f7f3ef;
  --surface: #ffffff;
  --green: #14a356;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 8px 26px rgba(40, 14, 4, .08);
  --shadow-lg: 0 24px 60px rgba(40, 14, 4, .22);
  --header-h: 74px;
  --catbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --text: #f7f1ec;
  --muted: #b3a8a1;
  --line: #352c28;
  --bg: #121010;
  --bg-soft: #1a1615;
  --surface: #1f1a18;
  --red-50: #3a1515;
  --yellow-100: #3a2f10;
  --shadow: 0 8px 26px rgba(0, 0, 0, .4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--catbar-h) + 12px); }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(90px + var(--safe-bottom));
}
@media (min-width: 760px) { body { padding-bottom: 0; } }
body.tg { padding-bottom: calc(90px + var(--safe-bottom)); }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
body.tg .site-only { display: none !important; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 24px; } }
.no-scroll { overflow: hidden; }

/* ---------- promo strip ---------- */
.promo-strip {
  background: var(--yellow); color: var(--ink); text-align: center;
  font-weight: 700; font-size: 13px; padding: 8px 12px; letter-spacing: .01em;
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-badge {
  width: 46px; height: 46px; border-radius: 14px; background: var(--red);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(225, 29, 42, .35);
  transform: rotate(-4deg);
}
.logo-badge svg { width: 34px; height: 34px; transform: rotate(4deg); }
.logo-word { font-weight: 900; font-size: 22px; letter-spacing: -.01em; color: var(--text); line-height: 1; }
.logo-word b { color: var(--red); font-weight: 900; }
.logo-word.light { color: #fff; }
.logo-word.light b { color: var(--yellow); }
@media (max-width: 520px) { .header .logo-word { display: none; } .card-img { aspect-ratio: 1 / 1; font-size: 64px; } }

.addr-btn {
  flex: 1; min-width: 0; max-width: 420px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg-soft);
  cursor: pointer; text-align: left; transition: border-color .2s;
}
.addr-btn:hover { border-color: var(--red); }
.addr-ico { font-size: 20px; flex: none; }
.addr-text { display: grid; min-width: 0; line-height: 1.2; }
.addr-text small { color: var(--red); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.addr-text b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-eta {
  margin-left: auto; flex: none; background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 12px; padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 420px) { .addr-eta { display: none !important; } }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.open-chip {
  display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.open-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(20, 163, 86, .18); }
.open-chip.closed::before { background: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 42, .18); }
@media (min-width: 1180px) { .open-chip { display: inline-flex; } }
.phone-link { display: none; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (min-width: 980px) { .phone-link { display: inline; } }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.lang-switch button { border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang-switch button.active { background: var(--red); color: #fff; }
.cart-btn {
  display: none; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border: 0; border-radius: 16px;
  background: var(--red); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px rgba(225, 29, 42, .3);
}
.cart-btn-count { background: var(--yellow); color: var(--ink); border-radius: 8px; padding: 1px 7px; font-size: 13px; font-weight: 800; }
@media (min-width: 760px) and (max-width: 1099px) { .cart-btn { display: inline-flex; } }
body.tg .cart-btn { display: none !important; }

/* ---------- hero ---------- */
.hero { margin-top: 18px; position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 28px; scroll-behavior: smooth;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative; overflow: hidden;
  min-height: 230px; padding: 28px 24px; display: flex; align-items: center;
  background: radial-gradient(circle at 85% 30%, #ff4d4d 0%, var(--red) 45%, var(--red-700) 100%); color: #fff;
}
.slide.yellow { background: radial-gradient(circle at 85% 30%, #ffe27a 0%, var(--yellow) 50%, #f5a400 100%); color: var(--ink); }
.slide.dark { background: radial-gradient(circle at 85% 30%, #4a2418 0%, #24130d 60%, #120a07 100%); color: #fff; }
@media (min-width: 760px) { .slide { min-height: 340px; padding: 48px 56px; } }
.slide-text { position: relative; z-index: 2; max-width: 560px; }
.slide-tag {
  display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; margin-bottom: 12px;
}
.slide.yellow .slide-tag { background: var(--red); color: #fff; }
.slide h2 {
  margin: 0 0 10px; font-weight: 900; text-transform: uppercase; line-height: .98; letter-spacing: -.02em;
  font-size: clamp(28px, 6.4vw, 60px); max-width: 12ch;
}
.slide h2 em { font-style: normal; color: var(--yellow); }
.slide.yellow h2 em { color: var(--red); }
.slide p { margin: 0 0 18px; font-size: 15px; opacity: .92; max-width: 40ch; }
@media (min-width: 760px) { .slide p { font-size: 18px; } }
.slide-art {
  position: absolute; right: -10px; bottom: -14px; z-index: 1; font-size: 120px; line-height: 1;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .3)); transform: rotate(-8deg);
}
.slide-art::before {
  content: ""; position: absolute; inset: 10% -6% -6% 10%; z-index: -1; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
@media (max-width: 759px) { .slide-art { font-size: 96px; opacity: .9; right: -18px; } .slide h2 { max-width: 9ch; } }
@media (min-width: 760px) { .slide-art { font-size: 230px; right: 6%; bottom: -30px; } }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.dots button.active { width: 26px; background: var(--red); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.feature { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); }
.feature-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--yellow); }
.feature b { display: block; font-size: 15px; line-height: 1.2; }
.feature small { color: var(--muted); font-size: 12.5px; }

/* ---------- category bar ---------- */
.catbar {
  position: sticky; top: var(--header-h); z-index: 30; background: var(--bg);
  border-bottom: 1px solid var(--line); margin-top: 18px;
}
body.tg .catbar { margin-top: 0; }
.catbar-inner { display: flex; align-items: center; gap: 12px; height: var(--catbar-h); }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px 0; }
.cats::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.cat-pill .ico { font-size: 18px; }
.cat-pill:hover { border-color: var(--red); }
.cat-pill.active { background: var(--red); color: #fff; border-color: var(--red); }
.search {
  flex: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; width: 44px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-soft); cursor: text; transition: width .25s, border-color .2s;
}
.search:focus-within, .search.filled { width: 200px; border-color: var(--red); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-weight: 500; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
@media (min-width: 900px) { .search { width: 240px; } .search:focus-within, .search.filled { width: 280px; } }

.closed-banner {
  margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--red-50);
  color: var(--red-600); font-weight: 700; border: 1px solid rgba(225, 29, 42, .2);
}
:root[data-theme="dark"] .closed-banner { color: #ff9a9a; }

/* ---------- layout ---------- */
.layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.cart-side { display: none; }
@media (min-width: 1100px) {
  .cart-side {
    display: block; position: sticky; top: calc(var(--header-h) + var(--catbar-h) + 18px); margin-top: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 18px; max-height: calc(100vh - var(--header-h) - var(--catbar-h) - 36px); overflow-y: auto;
  }
  body.tg .cart-side { display: none; }
  body.tg .layout { grid-template-columns: 1fr; }
}

/* ---------- menu ---------- */
.menu { min-width: 0; }
.menu-section { padding-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.section-head small { color: var(--muted); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1500px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body.tg .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hits { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 46%); gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.hits::-webkit-scrollbar { display: none; }
.hits .card { scroll-snap-align: start; }
@media (min-width: 640px) { .hits { grid-auto-columns: minmax(200px, 31%); } }
@media (min-width: 1500px) { .hits { grid-auto-columns: minmax(200px, 23.6%); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40, 14, 4, .14); } }
.card-img {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--yellow-100) 55%, #ffe59a 100%);
  font-size: 72px;
}
:root[data-theme="dark"] .card-img { background: radial-gradient(circle at 50% 45%, #3b2c14 0%, #2a2010 60%, #1f180c 100%); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
@media (hover: hover) { .card:hover .card-img img { transform: scale(1.05); } }
.card-img .emoji { filter: drop-shadow(0 10px 12px rgba(120, 50, 0, .25)); transition: transform .35s ease; }
@media (hover: hover) { .card:hover .card-img .emoji { transform: scale(1.1) rotate(-6deg); } }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--red); color: #fff;
  font-weight: 800; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px;
  box-shadow: 0 4px 10px rgba(225, 29, 42, .35);
}
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card-name { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.card-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 10px; display: grid; gap: 10px; }
.price { font-weight: 900; font-size: 18px; letter-spacing: -.01em; white-space: nowrap; }
.add-btn {
  width: 100%; height: 42px; border-radius: 13px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 800;
  transition: background .2s, transform .1s;
}
.add-btn:hover { background: var(--yellow-300); }
.add-btn:active { transform: scale(.97); }
.stepper { display: inline-flex; align-items: center; justify-content: space-between; border-radius: 13px; background: var(--red); color: #fff; height: 42px; }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.card-foot .stepper { width: 100%; }
.stepper.sm { height: 34px; border-radius: 10px; }
.stepper.sm button { width: 32px; height: 34px; font-size: 18px; }

.loading { display: grid; place-items: center; padding: 70px 0; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 34px 8px; }
.empty .big { font-size: 46px; margin-bottom: 6px; }

/* ---------- cart panel ---------- */
.cart-panel h3 { margin: 0 0 12px; font-size: 22px; font-weight: 900; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cart-panel h3 small { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: none; }
.cart-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cart-line + .cart-line { border-top: 1px dashed var(--line); }
.thumb { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 28px; overflow: hidden; background: radial-gradient(circle, #fff 0%, var(--yellow-100) 70%); }
:root[data-theme="dark"] .thumb { background: #2a2010; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line-info small { color: var(--muted); font-weight: 600; }
.progress { margin: 14px 0 4px; padding: 12px; border-radius: 14px; background: var(--yellow-100); font-size: 13px; font-weight: 600; }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; margin-top: 8px; }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow), var(--red)); transition: width .4s ease; }
.progress.done { background: #e2f7ea; color: #0e7a40; }
:root[data-theme="dark"] .progress.done { background: #123020; color: #7be0a6; }
.upsell { margin-top: 14px; }
.upsell-title { font-weight: 800; font-size: 14px; margin: 0 0 8px; }
.upsell-list { display: grid; gap: 8px; }
.upsell-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); }
.upsell-item .thumb { width: 42px; height: 42px; font-size: 22px; border-radius: 11px; }
.upsell-item .u-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.upsell-item .u-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.upsell-item small { display: block; color: var(--muted); font-weight: 600; }
.plus-btn { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 0; background: var(--red); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.totals { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--muted); font-weight: 500; }
.row.total { color: var(--text); font-weight: 900; font-size: 20px; padding-top: 8px; }
.repeat-btn { margin-top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  border-radius: 16px; border: 0; font-weight: 800; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(225, 29, 42, .32); }
.btn-red:hover { background: var(--red-600); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 22px rgba(255, 170, 0, .3); }
.btn-yellow:hover { background: var(--yellow-300); }
.btn-dark { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .btn-dark { background: #2c2522; }
.btn-ghost { background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--line); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.slide.yellow .btn-yellow { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(225, 29, 42, .3); }

/* ---------- about & footer ---------- */
.about { display: grid; gap: 16px; margin-top: 46px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 1fr; } }
.about-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.eyebrow { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; }
.about-card h2 { margin: 10px 0 10px; font-size: 32px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.about-card p { margin: 0 0 18px; white-space: pre-line; color: var(--muted); font-size: 15.5px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: flex; gap: 12px; align-items: flex-start; }
.facts .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); font-size: 18px; }
.facts small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.facts span { font-weight: 600; }
.facts a { font-weight: 800; text-decoration: none; color: var(--red); }
.about-map { display: grid; gap: 10px; grid-template-rows: 1fr auto; }
.map { width: 100%; height: 280px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); z-index: 0; }
.about-map .map { height: 100%; min-height: 280px; }

.footer { margin-top: 46px; background: var(--ink); color: #d9cfc9; border-top: 6px solid var(--red); }
.footer-inner { display: grid; gap: 22px; padding-top: 30px; padding-bottom: 22px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; } }
.footer p { margin: 10px 0 0; max-width: 44ch; font-size: 14px; color: #b9aea7; }
.footer-col { display: grid; gap: 6px; font-size: 14px; }
.footer-col a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-col .btn-yellow { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; padding-bottom: calc(18px + var(--safe-bottom)); font-size: 13px; color: #8f847e; }

/* ---------- floating bars ---------- */
.cart-bar {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-bottom));
  width: min(560px, calc(100% - 24px)); min-height: 60px; padding: 0 18px; display: flex; align-items: center; gap: 12px;
  border: 0; border-radius: 20px; cursor: pointer; background: var(--red); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 16px 34px rgba(225, 29, 42, .45); animation: rise .3s ease;
}
@media (min-width: 760px) { body:not(.tg) .cart-bar { display: none !important; } }
.cart-bar-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px; background: var(--yellow); color: var(--ink); font-size: 14px; }
.cart-bar-label { flex: 1; text-align: left; }
@keyframes rise { from { transform: translate(-50%, 24px); opacity: 0; } }
.track-chip {
  position: fixed; z-index: 44; left: 16px; bottom: calc(86px + var(--safe-bottom)); display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 13.5px;
  box-shadow: var(--shadow-lg); cursor: pointer; animation: rise2 .3s ease; max-width: calc(100% - 32px);
}
.track-chip::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: pulse 1.4s infinite; }
@media (min-width: 760px) { body:not(.tg) .track-chip { bottom: 24px; } }
@keyframes rise2 { from { transform: translateY(20px); opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 197, 39, .25); } }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(18, 8, 4, .55); backdrop-filter: blur(3px); animation: fade .2s ease; }
.modal {
  position: fixed; z-index: 70; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-height: 94vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg); animation: slideUp .3s cubic-bezier(.2, .8, .2, 1);
}
.modal.full { height: 94vh; }
body.tg .modal { max-height: 100vh; }
body.tg .modal.full { height: 100vh; border-radius: 0; }
@media (min-width: 760px) {
  body:not(.tg) .modal { bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 40px)); max-height: 90vh; border-radius: 26px; animation: pop .25s ease; }
  body:not(.tg) .modal.wide { width: min(880px, calc(100% - 40px)); }
  body:not(.tg) .modal.full { height: auto; }
}
@keyframes slideUp { from { transform: translate(-50%, 50px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -46%) scale(.97); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--bg-soft); color: var(--text); font-size: 16px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.modal-body { overflow-y: auto; padding: 22px 18px calc(18px + var(--safe-bottom)); -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) { .modal-body { padding: 26px 26px 24px; } }
.modal-title { margin: 0 44px 16px 0; font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }

/* product modal */
.pm { display: grid; gap: 18px; }
@media (min-width: 760px) { .pm { grid-template-columns: 1fr 1fr; align-items: start; } }
.pm-img { aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; display: grid; place-items: center; font-size: 150px; background: radial-gradient(circle at 50% 45%, #fff 0%, var(--yellow-100) 55%, #ffe59a 100%); position: relative; }
:root[data-theme="dark"] .pm-img { background: radial-gradient(circle, #3b2c14 0%, #1f180c 100%); }
@media (max-width: 759px) { .pm-img { aspect-ratio: 16 / 10; font-size: 110px; } }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-img .emoji { filter: drop-shadow(0 18px 18px rgba(120, 50, 0, .3)); }
.pm h2 { margin: 0 0 6px; font-size: 28px; font-weight: 900; line-height: 1.1; padding-right: 40px; }
.pm p { margin: 0 0 14px; color: var(--muted); }
.pm-price { font-size: 30px; font-weight: 900; margin-bottom: 14px; }
.pm-actions { display: flex; gap: 10px; }
.pm-actions .stepper { height: 52px; border-radius: 16px; background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--line); }
.pm-actions .stepper button { color: var(--text); height: 52px; width: 46px; }
.pm-actions .btn { flex: 1; }

/* forms */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { min-height: 46px; border: 0; border-radius: 12px; background: transparent; font-weight: 800; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(225, 29, 42, .3); }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.block-title { font-weight: 800; font-size: 15px; margin: 0 0 10px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 29, 42, .1); }
textarea.input { min-height: 74px; resize: vertical; }
.input.invalid { border-color: var(--red); background: var(--red-50); }
.pick-map { height: 260px; }
.geo-line { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-weight: 700; }
.geo-line small { display: block; color: var(--muted); font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1.5px solid var(--line); background: var(--bg-soft); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.accent { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.eta-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--yellow-100); margin-bottom: 12px; font-weight: 600; }
.eta-card b { display: block; font-size: 18px; font-weight: 900; }
.eta-card .ico { font-size: 28px; }
.pin { font-size: 36px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; cursor: pointer; padding: 0 10px; }
.pay.active { border-color: var(--red); background: var(--red-50); color: var(--red-600); }
:root[data-theme="dark"] .pay.active { color: #ff9a9a; }
.form-error { background: var(--red-50); color: var(--red-600); border: 1px solid rgba(225, 29, 42, .25); padding: 11px 13px; border-radius: 14px; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
:root[data-theme="dark"] .form-error { color: #ff9a9a; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* tracking */
.track-head { text-align: center; padding: 6px 0 4px; }
.track-badge { width: 86px; height: 86px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: var(--yellow); box-shadow: 0 0 0 10px var(--yellow-100); animation: pop2 .5s cubic-bezier(.2, 1.6, .4, 1); }
.track-badge.cancel { background: var(--red-50); box-shadow: 0 0 0 10px rgba(225, 29, 42, .08); }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } }
.track-head h3 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.track-head p { margin: 0; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 20px 0; display: grid; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 17px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); border: 2px solid var(--line); font-size: 16px; z-index: 1; }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.done::before { background: var(--green); }
.step.now .dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(225, 29, 42, .15); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 10px rgba(225, 29, 42, .05); } }
.step b { display: block; padding-top: 7px; }
.step small { color: var(--muted); }
.step.todo b { color: var(--muted); font-weight: 500; }

/* toast */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
:root[data-theme="dark"] .toast { background: #fff; color: var(--ink); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 760px) { body:not(.tg) .toast { bottom: 28px; } }
.leaflet-container { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.modal .cart-panel h3 { padding-right: 48px; }
