/* =========================================================
   Yaproq go'sht — Liquid Glass UI
   ========================================================= */
:root {
  --bg: #071a10;
  --text: #f7f2e6;
  --muted: rgba(247, 242, 230, .62);
  --cream: #f3e9d2;
  --gold: #d9b56c;
  --gold-2: #f6dc9c;
  --gold-3: #b8893a;
  --red: #ff7a66;
  --green: #6fe3a1;

  /* shisha */
  --glass: rgba(255, 255, 255, .065);
  --glass-border: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .28);
  --blur: blur(22px) saturate(170%);
  --blur-sm: blur(12px) saturate(150%);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);

  --radius: 22px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- jonli fon: oltin/zumrad nur dog'lari ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(120% 80% at 50% -20%, #14432c 0%, transparent 60%),
  linear-gradient(180deg, #0a2617 0%, var(--bg) 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.o1 { width: 340px; height: 340px; left: -120px; top: 60px; background: radial-gradient(circle, #d9b56c 0%, transparent 70%); animation: drift1 18s ease-in-out infinite; opacity: .35; }
.o2 { width: 380px; height: 380px; right: -160px; top: 38%; background: radial-gradient(circle, #1f8a58 0%, transparent 70%); animation: drift2 22s ease-in-out infinite; }
.o3 { width: 300px; height: 300px; left: 20%; bottom: -140px; background: radial-gradient(circle, #8a5a1f 0%, transparent 70%); animation: drift1 26s ease-in-out infinite reverse; opacity: .4; }
@keyframes drift1 { 50% { transform: translate(60px, 40px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-50px, -60px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ---------- shisha asos ---------- */
.product, .summary, .cart-item, .order-card, .timeline, .pay-body, .variant, .cat-chip,
.field input, .field textarea, .phone-input, .stepper, .ghost-btn, .cancel-box, .code-badge, .danger-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur-sm);
  backdrop-filter: var(--blur-sm);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 -1px 0 rgba(255, 255, 255, .04), var(--shadow);
}

#app { padding: 0 16px calc(var(--tabbar-h) + 100px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.view { display: none; animation: rise .35s var(--ease); }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 26px 0 8px; position: relative; }
.crown { color: var(--gold-2); font-size: 26px; line-height: 1; text-shadow: 0 0 18px rgba(246, 220, 156, .6); }
.logo {
  font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 40px;
  margin: 4px 0 0; letter-spacing: .3px;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-2) 35%, var(--gold) 70%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(217, 181, 108, .35));
}
.tagline {
  display: inline-block; margin: 10px 0 0; padding: 6px 14px; border-radius: 999px; font-size: 10.5px; letter-spacing: 3px;
  color: var(--cream); background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur-sm); backdrop-filter: var(--blur-sm); box-shadow: inset 0 1px 0 var(--glass-hi);
}
.closed-banner {
  margin: 14px auto 0; padding: 12px 14px; border-radius: 16px; font-size: 13px; color: #ffd9d1;
  background: linear-gradient(145deg, rgba(255, 122, 102, .22), rgba(255, 122, 102, .08));
  border: 1px solid rgba(255, 122, 102, .35); -webkit-backdrop-filter: var(--blur-sm); backdrop-filter: var(--blur-sm);
}

/* ---------- kategoriyalar ---------- */
.cats {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 16px 16px; margin: 0 -16px; scrollbar-width: none;
  background: linear-gradient(180deg, rgba(7, 26, 16, .85) 0%, rgba(7, 26, 16, .55) 70%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none; padding: 9px 15px; border-radius: 999px; color: var(--cream); font-weight: 600; font-size: 14px;
  white-space: nowrap; box-shadow: inset 0 1px 0 var(--glass-hi); transition: all .25s var(--ease);
}
.cat-chip.active {
  color: #1d1505; border-color: rgba(255, 240, 200, .6);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 20px rgba(217, 181, 108, .35);
}

/* ---------- menyu ---------- */
.cat-title {
  display: flex; align-items: center; gap: 10px; margin: 20px 2px 12px;
  font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .6px;
}
.cat-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--glass-border), transparent); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product {
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-align: left;
  position: relative; transition: transform .2s var(--ease);
}
.product::before { /* shisha yaltiroq chizig'i */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, transparent 28%, transparent 70%, rgba(255, 255, 255, .05) 100%);
}
.product:active { transform: scale(.97); }
.product .img { aspect-ratio: 4 / 3; background: #0b1c13 center / cover no-repeat; position: relative; margin: 6px 6px 0; border-radius: 17px; }
.product .img .qty-pill {
  position: absolute; top: 8px; right: 8px; color: #1d1505; font-weight: 800; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.product .body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 3; }
.product .name { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.product .desc {
  color: var(--muted); font-size: 12px; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; gap: 6px; }
.product .price { font-weight: 800; color: var(--gold-2); font-size: 14px; white-space: nowrap; }
.product .price small { font-weight: 500; color: var(--muted); font-size: 11px; }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; color: #1d1505; font-size: 22px; font-weight: 700; line-height: 36px; flex: none;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 16px rgba(217, 181, 108, .35);
  transition: transform .15s var(--ease);
}
.add-btn:active { transform: scale(.88); }
.skeleton { height: 210px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-border); margin-bottom: 12px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 30px 0 8px; }
.perks span {
  font-size: 12px; color: var(--muted); padding: 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
}

/* ---------- mahsulot oynasi (sheet) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 8, 4, .45); z-index: 40; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.sheet {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 41; max-width: 624px; margin: 0 auto;
  border-radius: 30px; padding-bottom: calc(14px + var(--safe-b));
  background: linear-gradient(160deg, rgba(40, 80, 58, .62), rgba(10, 30, 20, .78));
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), var(--shadow-lg);
  transform: translateY(110%); transition: transform .38s var(--ease);
  max-height: 90vh; overflow-y: auto;
}
.sheet:not(.open) { visibility: hidden; transition: transform .3s, visibility 0s .3s; }
.sheet.open { transform: none; }
.sheet .s-img { aspect-ratio: 16 / 10; background: #0b1c13 center / cover no-repeat; border-radius: 24px; margin: 8px 8px 0; position: relative; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.sheet .s-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 16px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sheet .s-body { padding: 16px 16px 4px; }
.sheet h3 { margin: 0; font-size: 22px; }
.sheet .s-desc { color: var(--muted); margin: 6px 0 14px; }
.variants { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.variant { flex: 1; min-width: 110px; padding: 11px 13px; border-radius: 16px; text-align: left; transition: all .2s var(--ease); }
.variant b { display: block; font-size: 14px; }
.variant small { color: var(--gold-2); font-weight: 700; }
.variant.active {
  border-color: rgba(246, 220, 156, .7);
  background: linear-gradient(145deg, rgba(246, 220, 156, .28), rgba(217, 181, 108, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px rgba(217, 181, 108, .15);
}
.sheet-actions { display: flex; gap: 10px; align-items: center; }

.stepper { display: inline-flex; align-items: center; border-radius: 16px; }
.stepper button { width: 40px; height: 46px; font-size: 20px; font-weight: 700; color: var(--gold-2); }
.stepper span { min-width: 24px; text-align: center; font-weight: 800; }
.stepper.sm { border-radius: 14px; box-shadow: inset 0 1px 0 var(--glass-hi); }
.stepper.sm button { width: 32px; height: 36px; font-size: 18px; }

/* ---------- tugmalar ---------- */
.primary-btn {
  width: 100%; padding: 15px 18px; border-radius: 18px; font-weight: 800; font-size: 16px; color: #1d1505;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fbe7b4 0%, var(--gold-2) 30%, var(--gold) 100%);
  border: 1px solid rgba(255, 244, 214, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 6px rgba(150, 105, 30, .25), 0 10px 26px rgba(217, 181, 108, .3);
  transition: transform .15s var(--ease), filter .2s;
}
.primary-btn::after { /* yaltirash */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.primary-btn:active { transform: scale(.98); }
.primary-btn:disabled { filter: grayscale(.6) brightness(.7); }
.primary-btn:disabled::after { display: none; }
.sheet-actions .primary-btn { flex: 1; white-space: nowrap; font-size: 15px; padding: 15px 12px; }
.ghost-btn { width: 100%; padding: 13px; border-radius: 16px; color: var(--cream); margin: 4px 0 12px; font-weight: 600; }
.link-btn { color: var(--red); font-weight: 600; font-size: 14px; }

/* ---------- sahifalar ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 2px 10px; }
.page-head h2 { margin: 0; font-size: 28px; font-family: "Playfair Display", Georgia, serif;
  background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cart-item { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 10px; border-radius: var(--radius); }
.cart-item .thumb { width: 66px; height: 58px; border-radius: 14px; background: #0b1c13 center / cover; flex: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info b { display: block; font-size: 14px; }
.cart-item .info small { color: var(--muted); }
.cart-item .info .p { color: var(--gold-2); font-weight: 700; font-size: 14px; margin-top: 2px; }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .e-ico { font-size: 54px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.empty .primary-btn { margin-top: 18px; }

.summary { border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.summary:empty { display: none; }
.summary .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.summary .row.total { color: var(--text); font-weight: 800; font-size: 18px; border-top: 1px solid var(--glass-border); margin-top: 6px; padding-top: 10px; }
.summary .row.total b { color: var(--gold-2); }
.summary .note { font-size: 12.5px; color: #ffd2c9; margin-top: 6px; }

/* ---------- forma ---------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 14px 15px; border-radius: 16px; color: var(--text); outline: none; resize: none; font-size: 16px;
  box-shadow: inset 0 1px 0 var(--glass-hi); transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 242, 230, .38); }
.field input:focus, .field textarea:focus, .phone-input:focus-within {
  border-color: rgba(246, 220, 156, .7); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 4px rgba(217, 181, 108, .14);
}
.field.invalid input, .field.invalid textarea, .field.invalid .phone-input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 122, 102, .15); }
.phone-input { display: flex; align-items: stretch; border-radius: 16px; overflow: hidden; box-shadow: inset 0 1px 0 var(--glass-hi); }
.phone-input .prefix {
  display: flex; align-items: center; padding: 0 10px 0 15px; margin: 8px 0; font-size: 16px; font-weight: 700; color: var(--gold-2);
  font-variant-numeric: tabular-nums; user-select: none; border-right: 1px solid var(--glass-border);
}
.field .phone-input input { border: 0; background: transparent; box-shadow: none; padding-left: 10px; letter-spacing: .4px; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: none; backdrop-filter: none; }
.field .phone-input input:focus { box-shadow: none; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option { position: relative; display: block; }
.pay-option input { position: absolute; opacity: 0; }
.pay-body { padding: 13px 14px; border-radius: 18px; height: 100%; transition: all .2s var(--ease); }
.pay-body b { display: block; }
.pay-body small { color: var(--muted); font-size: 12px; }
.pay-option input:checked + .pay-body {
  border-color: rgba(246, 220, 156, .7);
  background: linear-gradient(145deg, rgba(246, 220, 156, .26), rgba(217, 181, 108, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 3px rgba(217, 181, 108, .14);
}
.pay-option.disabled .pay-body { opacity: .5; }
.soon {
  position: absolute; top: -9px; right: 8px; color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .3px; background: linear-gradient(180deg, #ff9a86, #f0604c);
  box-shadow: 0 4px 12px rgba(240, 96, 76, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.form-error { color: #ffc5b9; background: rgba(255, 122, 102, .14); border: 1px solid rgba(255, 122, 102, .3); padding: 10px 12px; border-radius: 14px; font-size: 14px; }

/* ---------- muvaffaqiyat ---------- */
.success { text-align: center; padding: 44px 8px 0; }
.success-icon {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 46px; font-weight: 800; color: #12301f;
  background: linear-gradient(180deg, #fff1c8, var(--gold));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8), 0 0 0 10px rgba(217, 181, 108, .12), 0 0 50px rgba(217, 181, 108, .45);
  animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.success h2 { font-family: "Playfair Display", Georgia, serif; font-size: 27px; margin: 0 0 12px; }
.success p { margin: 6px 0; }
.success .primary-btn { margin-top: 22px; }
.code-badge {
  display: inline-block; margin: 4px 0 8px; padding: 11px 18px; border-radius: 14px; font-weight: 800; letter-spacing: 1px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; color: var(--gold-2); border-style: dashed; border-color: rgba(246, 220, 156, .5);
}

/* ---------- buyurtmalar ---------- */
.order-card { display: block; width: 100%; text-align: left; padding: 14px 15px; margin-bottom: 10px; border-radius: var(--radius); transition: transform .15s var(--ease); }
.order-card:active { transform: scale(.98); }
.order-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-card .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 13.5px; color: var(--gold-2); }
.order-card .meta { color: var(--muted); font-size: 13px; margin-top: 7px; display: flex; justify-content: space-between; }
.order-card .meta b { color: var(--text); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: rgba(246, 220, 156, .16); color: var(--gold-2); border: 1px solid rgba(246, 220, 156, .25); }
.pill.delivered { background: rgba(111, 227, 161, .14); color: var(--green); border-color: rgba(111, 227, 161, .28); }
.pill.cancelled { background: rgba(255, 122, 102, .14); color: #ffb4a6; border-color: rgba(255, 122, 102, .28); }
.pill.new { background: rgba(255, 255, 255, .08); color: var(--cream); border-color: var(--glass-border); }

.od-head { padding: 20px 2px 6px; }
.od-head .back {
  color: var(--gold-2); font-weight: 600; margin-bottom: 12px; display: inline-block; padding: 7px 13px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.od-head h2 { margin: 0; font-size: 18px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--gold-2); letter-spacing: .5px; }
.od-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.timeline { border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.step { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--glass-border); border-radius: 2px; }
.step:last-child::before { display: none; }
.step.done::before { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 15px; z-index: 1;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-border);
}
.step.done .dot { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: rgba(255, 244, 214, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.step.current .dot { animation: glow 1.8s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 220, 156, .5); } 50% { box-shadow: 0 0 0 10px rgba(246, 220, 156, 0); } }
.step .label { padding-top: 6px; }
.step .label b { display: block; font-size: 15px; }
.step .label small { color: var(--muted); }
.step:not(.done) .label b { color: var(--muted); font-weight: 500; }
.cancel-box { border-radius: var(--radius); padding: 14px; margin: 12px 0; border-color: rgba(255, 122, 102, .35); background: linear-gradient(145deg, rgba(255, 122, 102, .18), rgba(255, 122, 102, .05)); }

.od-items .it { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--glass-border); font-size: 14px; }
.od-items .it:last-child { border-bottom: 0; }
.od-info { font-size: 14px; color: var(--muted); }
.od-info div { padding: 3px 0; }
.od-info b { color: var(--text); font-weight: 600; }
.danger-btn { width: 100%; padding: 13px; border-radius: 16px; color: #ffb4a6; font-weight: 700; margin-top: 4px; border-color: rgba(255, 122, 102, .4); }

/* ---------- suzuvchi shisha panellar ---------- */
.tabbar {
  position: fixed; left: 14px; right: 14px; bottom: calc(10px + var(--safe-b)); z-index: 30; height: var(--tabbar-h);
  max-width: 560px; margin: 0 auto; display: flex; padding: 6px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(40, 80, 58, .55), rgba(8, 26, 17, .7));
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), var(--shadow-lg);
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 20px;
  color: var(--muted); position: relative; font-size: 11px; font-weight: 600; transition: all .25s var(--ease);
}
.tabbar button i { font-style: normal; font-size: 21px; filter: grayscale(1); opacity: .65; transition: all .25s var(--ease); }
.tabbar button.active {
  color: var(--gold-2);
  background: linear-gradient(180deg, rgba(246, 220, 156, .2), rgba(246, 220, 156, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(246, 220, 156, .25);
}
.tabbar button.active i { filter: none; opacity: 1; transform: translateY(-1px) scale(1.06); }
.badge {
  position: absolute; top: 4px; left: calc(50% + 6px); color: #fff; font-style: normal; font-size: 11px; font-weight: 800;
  min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; padding: 0 5px;
  background: linear-gradient(180deg, #ff9a86, #f0604c); box-shadow: 0 3px 10px rgba(240, 96, 76, .5);
}

.cart-bar {
  position: fixed; left: 14px; right: 14px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 20px); z-index: 31;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 22px;
  color: #1d1505; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 231, 180, .95), rgba(217, 181, 108, .92));
  border: 1px solid rgba(255, 244, 214, .8);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 14px 34px rgba(0, 0, 0, .45), 0 0 30px rgba(217, 181, 108, .25);
  animation: rise .3s var(--ease);
}
.cart-bar span:first-child { font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 999px; background: rgba(29, 21, 5, .12); }
.cart-bar b { flex: 1; font-size: 16px; }
.cart-bar-go { font-weight: 800; }

.toast {
  position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 60; color: var(--cream);
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); white-space: nowrap;
  background: linear-gradient(160deg, rgba(40, 80, 58, .7), rgba(8, 26, 17, .8));
  border: 1px solid rgba(246, 220, 156, .45);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--shadow); animation: drop .3s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }

/* backdrop-filter yo'q eski WebView lar uchun */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar, .sheet, .toast { background: #0f2c1e; }
  .product, .summary, .cart-item, .order-card, .timeline { background: rgba(26, 60, 42, .9); }
}

/* ===================== v2: til, qidiruv, belgilar, chegirma, rasmiylashtirish ===================== */
.hero { position: relative; }
.lang-switch {
  position: absolute; top: 14px; right: 0; display: flex; padding: 3px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--blur-sm); backdrop-filter: var(--blur-sm);
}
.lang-switch button { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-switch button.active { color: #1d1505; background: linear-gradient(180deg, var(--gold-2), var(--gold)); }

.search {
  display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; padding: 0 14px; border-radius: 16px; height: 46px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: var(--blur-sm); backdrop-filter: var(--blur-sm);
}
.search:focus-within { border-color: rgba(246, 220, 156, .6); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; min-width: 0; }
.search input::placeholder { color: rgba(247, 242, 230, .4); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { color: var(--muted); font-size: 14px; padding: 6px; }

.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; max-width: calc(100% - 50px); }
.badge-chip {
  font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 999px; color: #fff; letter-spacing: .2px;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge-chip.sale { background: linear-gradient(180deg, #ff8a74, #e8503b); border-color: rgba(255, 200, 190, .6); }
.badge-chip.hit { background: rgba(232, 95, 40, .75); }
.badge-chip.new { background: rgba(40, 150, 90, .8); }
.badge-chip.top { background: rgba(200, 150, 40, .85); color: #1d1505; }
.badge-chip.spicy { background: rgba(190, 40, 40, .8); }
.sheet .s-img .badges { top: 12px; left: 12px; }

.price .old, .cart-item .old, .vprice .old, .sheet-price .old {
  display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 122, 102, .9);
}
.price .new, .vprice .new, .sheet-price .new { color: #ffd166; text-shadow: 0 0 12px rgba(255, 209, 102, .35); }
.product .price { line-height: 1.15; }
.sheet-price { margin: -4px 0 14px; font-size: 20px; font-weight: 800; color: var(--gold-2); }
.sheet-price .old { font-size: 13px; }
.cart-item .old { display: inline; margin-right: 6px; }

.segmented {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--glass-border);
}
.segmented button { flex: 1; padding: 11px 8px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); transition: all .2s var(--ease); }
.segmented button.active {
  color: #1d1505; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 14px rgba(217, 181, 108, .3);
}
.segmented button:disabled { opacity: .35; }

.pickup-box {
  padding: 14px 16px; margin-bottom: 14px; border-radius: 16px; line-height: 1.6;
  background: linear-gradient(145deg, rgba(246, 220, 156, .16), rgba(246, 220, 156, .04)); border: 1px solid rgba(246, 220, 156, .3);
}

.slot-picker { margin: -4px 0 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chips.times { max-height: 190px; overflow-y: auto; }
.chip {
  padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-border);
}
.chip.active { color: #1d1505; background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: transparent; }

.field textarea#f-comment { font-size: 15px; }
.promo-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-row input {
  flex: 1; min-width: 0; padding: 13px 14px; border-radius: 14px; color: var(--text); outline: none; font-size: 16px;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
  background: linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035)); border: 1.5px dashed rgba(246, 220, 156, .45);
}
.promo-row input:disabled { opacity: .8; border-style: solid; border-color: var(--green); }
.promo-btn { padding: 0 16px; border-radius: 14px; font-weight: 800; color: var(--gold-2); background: rgba(246, 220, 156, .12); border: 1px solid rgba(246, 220, 156, .35); }
.promo-msg { margin: 0 0 12px 4px; font-size: 13.5px; font-weight: 600; }
.promo-msg.ok { color: var(--green); }
.promo-msg.err { color: #ffb4a6; }
.summary .row.disc { color: var(--green); }

.rate-box { text-align: center; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.stars button { font-size: 34px; color: rgba(255, 255, 255, .2); transition: transform .15s var(--ease), color .15s; }
.stars button.on { color: #ffd166; text-shadow: 0 0 14px rgba(255, 209, 102, .5); }
.stars button:active { transform: scale(.85); }
.stars.static { display: inline; font-size: 18px; color: #ffd166; letter-spacing: 2px; }
.rate-box textarea {
  width: 100%; padding: 12px; border-radius: 14px; color: var(--text); font-size: 15px; resize: none; outline: none; margin-bottom: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-border);
}
