/* Ali Sushi Mini App: doim yorug' (sutrang fon) uslub, 320 px dan boshlab */
/* Shrift: Inter (o'z serverimizda; lotin, o'zbek, kirill). Brauzer faqat kerakli qismni yuklaydi */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(shrift/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(shrift/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(shrift/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(shrift/inter-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

:root {
  --bg: #f7f5f2; --card: #ffffff; --text: #17171a; --hint: #8e8e93; --sep: #eeebe7; --field: #f4f2ee;
  color-scheme: light;
  --accent: #e63b2e; --accent-2: #ff5a3c; --accent-soft: #fdeceb; --ink: #1c1c1e; --ink-text: #ffffff;
  --ok: #22a45d; --warn: #f29a1f;
  --r: 20px; --shadow: 0 6px 22px rgba(20, 20, 30, .06); --shadow-2: 0 10px 30px rgba(230, 59, 46, .32);
  --tab-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text);
  font: 400 15px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11"; }
h1, h2, h3, b, strong { font-weight: 700; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: var(--text); }
svg { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
.hint { color: var(--hint); } .small { font-size: 13px; }

/* --- asosiy sahifa sarlavhasi --- */
.view { padding-bottom: calc(var(--tab-h) + 90px + var(--safe-b)); min-height: 100vh; }
.top { background: var(--card); padding: 12px 16px 12px; border-radius: 0 0 24px 24px; box-shadow: var(--shadow); }
.top-row { display: flex; align-items: center; gap: 10px; }
.logo { width: 42px; height: 42px; border-radius: 13px; }
.brand { flex: 1; min-width: 0; }
.brand b { display: block; font-size: 18px; letter-spacing: -.2px; }
.brand small { color: var(--hint); font-size: 12.5px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.off { background: var(--accent); }
.search { margin-top: 12px; display: flex; align-items: center; gap: 8px; background: var(--field); border-radius: 14px; padding: 0 12px; height: 44px; }
.search svg { width: 19px; height: 19px; color: var(--hint); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; font-size: 15px; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

/* yopishqoq toifa chiplari (plitkalar ko'rinmay qolganda) */
.chips { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none; box-shadow: 0 2px 12px rgba(0,0,0,.06); transform: translateY(-110%); transition: transform .22s ease; }
.chips.show { transform: none; }
.chips::-webkit-scrollbar, .tiles::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--field); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.chip.on { background: var(--ink); color: var(--ink-text); }

.banner { margin: 16px 16px 0; border-radius: var(--r); padding: 16px 18px; min-height: 108px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1c1c1e 0%, #2b2124 55%, #4a1f1b 100%); display: flex; flex-direction: column; justify-content: center; }
.banner b { font-size: 19px; line-height: 1.2; max-width: 62%; letter-spacing: -.2px; }
.banner p { margin: 6px 0 0; font-size: 13px; opacity: .78; max-width: 60%; }
.banner .ill { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 140px; height: 140px; background: none !important; }
.banner .ill svg { width: 100%; height: 100%; }
.banner.closed { background: linear-gradient(120deg, #3a2a12, #6b3d0e); }
.banner .tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }

.tiles { display: flex; gap: 10px; overflow-x: auto; padding: 16px 16px 4px; scrollbar-width: none; }
.tile { flex: none; width: 76px; text-align: center; }
.tile .ill { width: 76px; height: 76px; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.03); transition: transform .15s; }
.tile:active .ill { transform: scale(.94); }
.tile span { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.sec-title { margin: 22px 16px 12px; font-size: 22px; letter-spacing: -.4px; font-weight: 800; }
.sub-title { margin: 18px 2px 10px; font-size: 17px; font-weight: 800; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.hscroll .card { flex: none; width: 152px; }
.hscroll.mini { padding: 0 0 4px; }
.hscroll.mini .card { width: 132px; }

/* --- illyustratsiya va rasm --- */
.ill { width: 100%; height: 100%; display: grid; place-items: center; }
.ill svg { width: 84%; height: 84%; }
.img { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--field); }
.img > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- mahsulot to'ri --- */
.menu { padding: 0 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.grid.pad { padding: 16px; }
.card { position: relative; min-width: 0; }
.card .img { box-shadow: var(--shadow); }
.fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.fav svg { width: 18px; height: 18px; fill: none; stroke: #e7867a; stroke-width: 2.2; }
.fav.on svg { fill: var(--accent); stroke: var(--accent); }
.fav.pop svg { animation: pop .35s ease; }
.plus { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #17171a; display: grid; place-items: center; z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,.14); transition: transform .12s; }
.plus:active { transform: scale(.88); }
.plus svg { width: 20px; height: 20px; }
.stepper { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 38px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: space-between; z-index: 2; box-shadow: var(--shadow-2); }
.stepper.pop-in { animation: pop .25s ease; }
.stepper button { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; }
.stepper button svg { width: 18px; height: 18px; }
.stepper b { font-size: 15px; }
.card .price { margin-top: 9px; font-weight: 800; font-size: 16.5px; letter-spacing: -.2px; }
.card .name { margin-top: 2px; font-size: 14.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .meta { margin-top: 2px; font-size: 13px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.out .img > .ill, .card.out .img > img { opacity: .5; }
.out-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; background: rgba(28,28,30,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.cat-title { margin: 26px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; scroll-margin-top: 64px; }
.empty { text-align: center; color: var(--hint); padding: 56px 20px; }
.empty .ill { width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 30px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.sk { aspect-ratio: 3 / 4.2; border-radius: 18px; background: linear-gradient(90deg, var(--field) 25%, var(--card) 50%, var(--field) 75%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* --- katalog --- */
.view-title { margin: 0; padding: 20px 16px 8px; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }

/* --- pastki panel --- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--card); box-shadow: 0 -4px 20px rgba(0,0,0,.06); border-radius: 20px 20px 0 0; }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--hint); font-size: 11.5px; font-weight: 600; }
.tabbar button svg { width: 24px; height: 24px; transition: transform .15s; }
.tabbar button.on { color: var(--accent); }
.tabbar button.on svg { transform: translateY(-1px); }
.cart-fab { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 7; height: 54px; border-radius: 18px;
  background: var(--accent); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; box-shadow: var(--shadow-2); font-weight: 700; font-size: 15.5px; }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab .cnt { background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 9px; font-size: 13px; }
.cart-fab .sum { margin-left: auto; }

/* --- to'liq sahifalar --- */
.page { position: fixed; inset: 0; z-index: 10; background: var(--bg); overflow-y: auto; padding-bottom: calc(96px + var(--safe-b)); animation: slideIn .22s ease; }
@keyframes slideIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.page-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 6px; padding: 10px 12px; background: var(--bg); }
.page-head h2 { margin: 0; font-size: 19px; text-align: center; font-weight: 800; }
.page-head > span { width: 44px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); }
.link { color: var(--accent); font-weight: 600; font-size: 14px; padding: 8px 4px; }
.link.big { font-size: 15.5px; margin-top: 10px; }
.pad { padding: 4px 16px 16px; }
.box { background: var(--card); border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--sep); }
.line .img { width: 64px; height: 64px; border-radius: 16px; box-shadow: none; }
.line b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.line small { color: var(--hint); font-size: 13px; }
.line .lp { font-weight: 800; margin-top: 4px; display: block; }
.qty { display: flex; align-items: center; background: var(--field); border-radius: 999px; height: 36px; }
.qty button { width: 34px; height: 36px; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty b { min-width: 22px; font-variant-numeric: tabular-nums; text-align: center; font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -.1px; }
.field input, .field textarea { width: 100%; border: 1.5px solid transparent; outline: 0; background: var(--field); border-radius: 14px; padding: 12px 13px; resize: none; transition: border-color .15s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.soft-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14.5px; }
.soft-btn svg { width: 18px; height: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--field); border-radius: 16px; padding: 4px; margin-bottom: 12px; }
.box .seg { margin: 0; }
.seg button { height: 44px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--hint); display: flex; align-items: center; justify-content: center; gap: 7px; transition: all .15s; }
.seg button svg { width: 19px; height: 19px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.seg button.on svg { color: var(--accent); }
.seg button:disabled { opacity: .4; }
.store { display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.store svg { color: var(--accent); width: 26px; height: 26px; }
.totals > div { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.totals > div span:first-child { color: var(--hint); }
.totals .sum { border-top: 1px dashed var(--sep); margin-top: 6px; padding-top: 11px; font-size: 18px; font-weight: 800; }
.totals .sum span:first-child { color: var(--text); }
.warn { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff4e5; color: #9a5b00; font-size: 13.5px; }
.note { display: block; margin-top: 8px; color: var(--ok); font-size: 13.5px; font-weight: 600; }

.main-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 56px; border-radius: 18px; padding: 0 20px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-2); transition: transform .1s, opacity .15s; }
.main-btn:active { transform: scale(.98); }
.main-btn:disabled { opacity: .45; box-shadow: none; }
.main-btn.fixed { position: fixed; left: 16px; right: 16px; width: auto; bottom: calc(12px + var(--safe-b)); z-index: 12; }
.main-btn.solo { justify-content: center; }

/* --- buyurtma tayyor --- */
.center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 24px 40px; }
.center h2 { margin: 18px 0 6px; font-size: 22px; }
.center p { margin: 0 0 24px; max-width: 300px; }
.center .main-btn { justify-content: center; max-width: 320px; }
.done-ring { width: 96px; height: 96px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(34,164,93,.35); animation: pop .5s ease; }
.done-ring svg { width: 48px; height: 48px; }
.gps-gate { position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow-y: auto; padding: 24px 24px calc(32px + var(--safe-b)); }
.gps-gate .main-btn, .gps-gate .soft-btn { width: 100%; max-width: 320px; }
.gps-gate .soft-btn { margin-top: 12px; height: 50px; }
.gps-gate #gpsHolat { margin: 14px 0 0; min-height: 18px; }
.gps-ring { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; animation: pop .5s ease; }
.gps-ring svg { width: 46px; height: 46px; }
body.gps-on { overflow: hidden; }

/* --- bottom sheet --- */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10,10,14,.45); animation: fade .2s ease; }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 26px 26px 0 0; animation: up .28s cubic-bezier(.2,.9,.3,1); padding-bottom: calc(16px + var(--safe-b)); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); position: absolute; top: 8px; left: 50%; margin-left: -20px; z-index: 3; }
.sheet .big { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.sheet .big .img { aspect-ratio: auto; height: 100%; border-radius: 0; }
.sheet .big .ill svg { width: 70%; height: 80%; }
.sheet .close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: #17171a; display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sheet .close svg { width: 18px; height: 18px; }
.sheet .big .fav { top: 14px; right: 58px; width: 36px; height: 36px; }
.sheet .info { padding: 18px 18px 6px; }
.sheet h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.3px; }
.sheet .wt { color: var(--hint); margin-top: 4px; font-size: 14px; }
.sheet .desc { margin-top: 12px; font-size: 14.5px; line-height: 1.45; }
.sheet .desc.about { white-space: pre-line; overflow-wrap: anywhere; color: var(--hint); }
.sheet .in-cart { margin-top: 10px; font-size: 13px; color: var(--ok); font-weight: 600; }
.sheet .act { display: flex; gap: 10px; padding: 14px 18px 4px; align-items: center; }
.sheet .act .qty { height: 56px; border-radius: 18px; }
.sheet .act .qty button { width: 44px; height: 56px; }
.sheet .act .main-btn { flex: 1; padding: 0 16px; font-size: 15px; }
.modal .row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.modal .row2 button { height: 52px; border-radius: 16px; font-weight: 800; }
.btn-grey { background: var(--field); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-2); }
.modal .field { text-align: left; margin-bottom: 12px; }

/* --- buyurtmalarim --- */
.order { background: var(--card); border-radius: var(--r); padding: 14px; margin: 0 16px 12px; box-shadow: var(--shadow); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-top b { font-size: 16px; }
.order-top small { display: block; color: var(--hint); font-size: 12.5px; }
.status { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.status.ok { background: #e6f6ed; color: var(--ok); } .status.bad { background: var(--field); color: var(--hint); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 12px 0 4px; }
.steps i { height: 5px; border-radius: 3px; background: var(--sep); }
.steps i.on { background: var(--accent); }
.order .items { margin: 10px 0; font-size: 14px; color: var(--hint); line-height: 1.5; }
.order-bot { display: flex; justify-content: space-between; align-items: center; }
.order-bot b { font-size: 17px; }
.order-bot button { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.order-bot button svg { width: 17px; height: 17px; }

/* --- profil --- */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 8px 16px 16px; padding: 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.profile-head b { display: block; font-size: 18px; }
button.profile-head { width: calc(100% - 32px); text-align: left; }
.profile-head > div:nth-child(2) { flex: 1; min-width: 0; }
.profile-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-head b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.25; }
.profile-head .chev { width: 20px; height: 20px; color: var(--hint); }
.profile-head:active { transform: scale(.99); }
.list { margin: 0 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left; }
.item + .item { border-top: 1px solid var(--sep); }
.item .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.item .ic svg { width: 20px; height: 20px; }
.item div { flex: 1; min-width: 0; }
.item b { display: block; font-size: 15px; font-weight: 600; }
.item small { display: block; color: var(--hint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item > svg { color: var(--hint); width: 18px; height: 18px; }
.item .lang { flex: none; display: grid; grid-template-columns: 44px 44px; gap: 2px; background: var(--field); border-radius: 12px; padding: 3px; }
.lang button { width: 44px; padding: 6px 0; text-align: center; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--hint); }
.lang button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.foot { text-align: center; font-size: 12.5px; margin: 20px 0; }

.toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--ink-text);
  padding: 11px 16px; border-radius: 14px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: fade .2s; }

@media (min-width: 400px) { .tile { width: 82px; } .tile .ill { width: 82px; height: 82px; } }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item .ic svg { fill: currentColor; }

/* --- 2-bosqich (to'liq Gold Burger oqimi) --- */
.round-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--field); display: grid; place-items: center; }
.round-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--field); }
.mode-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.joy { flex: 1; min-width: 0; text-align: left; }
.joy small { display: block; color: var(--hint); font-size: 12px; }
.joy b { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.joy b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.joy svg, .tur-pill svg, .cat-select svg { width: 16px; height: 16px; flex: none; }
.tur-pill { display: flex; align-items: center; gap: 4px; background: var(--field); border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 13.5px; }
.tile .ill.filt { background: var(--field) !important; color: var(--text); }
.tile .ill.filt svg { width: 28px; height: 28px; }
.tile .ill.filt.on { background: var(--accent-soft) !important; color: var(--accent); }
.to-top { position: fixed; left: 16px; bottom: calc(var(--tab-h) + var(--safe-b) + 76px); z-index: 7; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); animation: pop .25s; }
.cart-fab .bag { position: relative; display: grid; }
.cart-fab .bag i { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; border-radius: 9px; background: #fff; color: var(--accent); font-size: 11.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.cart-fab.in-page { z-index: 11; bottom: calc(14px + var(--safe-b)); }
.out-tag { background: rgba(255,255,255,.94); color: var(--accent); }
.card.out .img > .ill, .card.out .img > img { filter: grayscale(1); opacity: .45; }
.card.out .price, .card.out .name { color: var(--hint); }

/* katalog: 3 ustun, nom tepada */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px 16px; }
.cat-card { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-align: left; padding: 10px 10px 0; display: flex; flex-direction: column; }
.cat-card b { font-size: 13px; line-height: 1.2; min-height: 2.4em; }
.cat-card .ill { aspect-ratio: 1; height: auto; border-radius: 14px; margin: 6px 0 10px; }
.cat-select { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); border-radius: 14px; height: 42px; padding: 0 12px; box-shadow: var(--shadow); }
.cat-select b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#toifaIll .ill { width: 28px; height: 28px; border-radius: 8px; }
#toifa .page-head { grid-template-columns: 44px 1fr 44px; }

/* umumiy oyna */
.modal .sheet-body { padding: 14px 18px calc(18px + var(--safe-b)); }
.modal .sheet-body::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--sep); margin: 0 auto 12px; }
.sheet-body.center-body { text-align: center; padding-top: 22px; }
.center-body h3 { margin: 14px 0 6px; font-size: 21px; }
.center-body p { margin: 0 0 18px; color: var(--hint); font-size: 14.5px; }
.pin-big { width: 84px; height: 84px; margin: 0 auto; border-radius: 28px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.pin-big svg { width: 42px; height: 42px; }
.row2.even { grid-template-columns: 1fr 1fr; }
.o-head { display: flex; justify-content: space-between; align-items: center; }
.o-title { margin: 4px 0 10px; font-size: 20px; font-weight: 800; }
.icon-btn.flat { box-shadow: none; background: var(--field); width: 34px; height: 34px; }
.icon-btn.flat svg { width: 16px; height: 16px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; text-align: left; border-bottom: 1px solid var(--sep); }
.opt b { flex: 1; font-weight: 600; font-size: 15.5px; }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sep); flex: none; transition: all .15s; }
.opt.on .radio { border: 7px solid var(--accent); }
.opt .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.opt .ic svg { width: 20px; height: 20px; }
.cat-list { max-height: 56vh; overflow-y: auto; margin: 4px -4px 12px; }
.cat-list .opt { border: 0; border-radius: 14px; padding: 8px; }
.cat-list .opt.on { background: var(--field); }
.mini-ill .ill { width: 40px; height: 40px; border-radius: 12px; }
.soft-btn.wide { width: 100%; }

/* mahsulot oynasi */
.sheet .big .fav.left { right: auto; left: 14px; }
.sheet .share { position: absolute; top: 14px; right: 58px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); color: #17171a; display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sheet .share svg { width: 17px; height: 17px; }
.avail { font-size: 13.5px; color: var(--hint); margin-bottom: 4px; }
.avail.yes b { color: var(--ok); } .avail.no b { color: var(--accent); }
.sheet .act { position: sticky; bottom: 0; background: var(--card); padding: 12px 18px 4px; border-top: 1px solid var(--sep); margin-top: 12px; display: block; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.price-row span { color: var(--hint); } .price-row b { font-size: 20px; color: var(--accent); }
.act-row { display: flex; gap: 10px; align-items: center; }
.act-row .qty { height: 56px; border-radius: 18px; }
.act-row .qty button { width: 44px; height: 56px; }
.act-row .main-btn { flex: 1; padding: 0 16px; font-size: 15px; }

/* savat: taomga izoh */
.line > div:nth-child(2) { min-width: 0; }
.izoh-link { display: block; margin-top: 4px; color: #2f7de1; font-size: 13px; font-weight: 600; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* filial va xarita */
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #2f7de1; font-weight: 600; font-size: 14px; text-decoration: none; }
.map-link svg { width: 16px; height: 16px; fill: currentColor; }
.f-label { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -.1px; margin-bottom: 8px; }
.branch { display: flex; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 2px solid transparent; border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.box .branch { box-shadow: none; background: var(--field); margin: 0; }
.branch.on { border-color: var(--accent); }
.branch .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.branch .ic svg { width: 20px; height: 20px; }
.branch > div { flex: 1; min-width: 0; }
.b-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.b-top b { font-size: 15px; }
.b-top small { font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-top small.ok { color: var(--ok); } .b-top small.bad { color: var(--accent); }
.branch .hint { font-size: 13px; display: block; margin-top: 3px; }
.search.flat { margin: 0 0 12px; background: var(--card); box-shadow: var(--shadow); }
.map { width: 100%; border-radius: 20px; overflow: hidden; background: var(--field); }
.map.tall { height: calc(100vh - 250px); }
.map-page { display: flex; flex-direction: column; padding-bottom: 0; }
.map-page .pad { padding-bottom: 8px; }
.map-wrap { position: relative; flex: 1; min-height: 300px; margin: 0 16px calc(84px + var(--safe-b)); }
.map-wrap .map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 500; color: var(--accent); pointer-events: none; transition: transform .15s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.map-pin svg { width: 44px; height: 44px; }
.map-pin.lift { transform: translate(-50%, -118%); }
.locate { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--card); color: var(--text); border-radius: 999px; padding: 11px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.16); }
.locate svg { width: 18px; height: 18px; color: var(--accent); }
.map-note { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 500; background: var(--card); border-radius: 14px; padding: 12px; font-size: 13.5px; box-shadow: var(--shadow); }
.leaflet-container { font: inherit; }
.b-top { display: block; }
.b-top small { display: block; margin-top: 2px; }

/* --- 3-bosqich: tor ekranlar (320 px+), matn iyerarxiyasi, toshib ketmaslik --- */
.price, .lp, .sum, .status, .cart-fab span, .main-btn span, .price-row b, .totals span { white-space: nowrap; }
.price, .lp, .totals span, .order-bot b, .price-row b, .cart-fab .sum, .main-btn span:last-child { font-variant-numeric: tabular-nums; }
.main-btn span:first-child, .cart-fab span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.card .price { overflow: hidden; text-overflow: ellipsis; font-weight: 800; }
.card .name { min-height: 2.5em; font-weight: 500; }
.sec-title, .cat-title, .view-title, .page-head h2, .sheet h3, .o-title { font-weight: 800; letter-spacing: -.02em; }
.page-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* savat qatori: rasm | nom, izoh, (narx ... miqdor) */
.line { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
.line b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.l-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin-top: 8px; }
.l-foot .qty { margin-left: auto; }
.l-foot .lp { margin: 0; font-size: 15.5px; }
.price-row span { font-size: 14px; }
@media (max-width: 374px) {
  .banner { padding: 14px 16px; }
  .banner b { font-size: 17px; max-width: 64%; }
  .banner p { font-size: 12.5px; }
  .banner .ill { width: 112px; height: 112px; right: -14px; }
  .card .price { font-size: 15.5px; }
  .card .name { font-size: 13.5px; }
  .grid { gap: 14px 10px; }
  .hscroll .card { width: 140px; }
  .sec-title, .cat-title { font-size: 20px; }
  .view-title { font-size: 25px; }
  .tabbar button { font-size: 11px; }
  .cart-fab { font-size: 15px; padding: 0 14px; }
  .main-btn { padding: 0 16px; font-size: 15px; }
  .cat-grid { gap: 8px; }
  .cat-card { padding: 8px 8px 0; }
  .cat-card b { font-size: 12px; }
  .seg button { font-size: 13px; gap: 5px; }
  .l-foot .lp { font-size: 14.5px; }
  .l-foot .qty button { width: 30px; }
}
.cat-card .ill { margin-top: auto; }
.cat-card b { overflow-wrap: anywhere; }
.order-top > div { min-width: 0; }
.order-top small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-top .status, .order-bot button { flex: none; }
.order-bot { gap: 8px; }
.order-bot b { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 374px) { .order-bot b { font-size: 16px; } .order-bot button { padding: 0 12px; font-size: 13.5px; } }
.order-bot { flex-wrap: wrap; } .order-bot button { margin-left: auto; }
@media (max-width: 374px) { .order-bot button svg { display: none; } }

/* Marshrut: tayyorlovchi / eng yaqin filialdan yo'l (Yandex Taxi kabi) */
.route-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.route-top .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.route-top .ic svg { width: 20px; height: 20px; }
.route-name { flex: 1; min-width: 0; }
.route-name small { display: block; color: var(--hint); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.branch .dist i { font-style: normal; color: #1f9d55; font-weight: 700; }
.route-mapw { position: relative; }
.route-badge { position: absolute; top: 10px; left: 10px; z-index: 500; background: #1f9d55; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.route-name b { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-eta { text-align: right; flex: none; }
.route-eta b { display: block; font-size: 17px; font-weight: 800; }
.route-eta small { color: var(--hint); font-size: 12.5px; }
.route-map { height: 168px; border-radius: 16px; }
.route-note { display: block; margin-top: 8px; font-size: 12.5px; }
.route-near { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #2f7de1; font-weight: 600; font-size: 13.5px; text-align: left; }
.route-near svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mk-f { background: var(--accent); color: #fff; border: 2px solid #fff; }
.mk-f svg { width: 16px; height: 16px; }
.mk-u { background: #fff; border: 8px solid #17171a; }
.branch .dist { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.near-btn { margin-bottom: 10px; }
.order-btns { display: flex; gap: 8px; margin-left: auto; }
.leaflet-overlay-pane svg { width: auto; height: auto; max-width: none; }  /* umumiy svg o'lchami marshrut chizig'ini siqmasin */
/* Manzil xaritasida filiallar va eng yaqin filial */
.mk-wrap { position: relative; }
.mk-label { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--card); color: var(--text); font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.map-chip { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 500; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; box-shadow: var(--shadow); }
.map-chip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.map-chip span { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
/* Baholash: yulduzlar */
.rt { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: #17171a; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.rt svg, .rate-avg svg { width: 14px; height: 14px; fill: #f5a623; }
.rate-box { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--field); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rate-sum { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rate-sum small { color: var(--hint); font-size: 13px; }
.rate-avg { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; }
.rate-avg svg { width: 18px; height: 18px; }
.rate-me { display: flex; align-items: center; gap: 8px; }
.rate-me > span { font-size: 13px; color: var(--hint); font-weight: 600; }
.stars { display: flex; gap: 2px; }
.stars button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.stars svg { width: 26px; height: 26px; fill: #d9d5cf; transition: transform .12s, fill .12s; }
.stars button.on svg { fill: #f5a623; }
.stars button:active svg { transform: scale(1.2); }
.rate-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.rate-row:last-child { border-bottom: 0; }
.rate-row .img { width: 56px; height: 56px; flex: none; border-radius: 14px; }
.rate-row > div:last-child { min-width: 0; flex: 1; }
.rate-row b { display: block; font-size: 14.5px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Profil: sarlavhasiz, kartochka tepadan */
#v-profil .profile-head { margin-top: 20px; }
/* Bepul yetkazishgacha shkala */
.free-top { display: flex; align-items: center; gap: 10px; }
.free-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.free-ic svg { width: 20px; height: 20px; }
.free-txt { font-size: 14.5px; line-height: 1.35; }
.free-txt b { font-weight: 800; }
.free-track { position: relative; height: 10px; margin-top: 12px; border-radius: 999px; background: var(--field); overflow: hidden; }
.free-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff8a3d, var(--accent));
  transition: width .55s cubic-bezier(.2,.9,.3,1), background .3s; }
.free-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 60px 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { from { background-position: -60px 0; } to { background-position: 300px 0; } }
.free-sub { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--hint); font-variant-numeric: tabular-nums; }
.free.done .free-ic { background: #e3f6ea; color: var(--ok); }
.free.done .free-track i { background: linear-gradient(90deg, #3ccf7c, var(--ok)); }
.free.done .free-track i::after { display: none; }
.fab-in { display: contents; }
.fab-bar { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.fab-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: inherit; transition: width .55s cubic-bezier(.2,.9,.3,1); }
.fab-bar.done i { background: #b8ffd3; }

/* --- mobil / Android ilova harakat va teginish qulayligi --- */
body { -webkit-user-select: none; user-select: none; overscroll-behavior-y: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
button, a, .card, .tile, .chip, .cat-card, .opt, .branch, .item, .star-btn { touch-action: manipulation; }
.page, .sheet-body, .gps-gate { overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.tile:active, .cat-card:active, .opt:active, .branch:active, .item:active, .soft-btn:active, .btn-grey:active, .btn-accent:active { transform: scale(.98); }
.chip:active, .icon-btn:active, .loc-pill:active, .type-pill:active { transform: scale(.96); }
.tile, .cat-card, .opt, .branch, .item, .soft-btn, .btn-grey, .btn-accent, .chip, .icon-btn, .loc-pill, .type-pill { transition: transform .1s ease, background .15s ease; }

