/* ===== Ranglar va o'lchamlar ===== */
:root {
  --navy: #0b2a6b;
  --blue: #1565e0;
  --sky: #3fa9f5;
  --red: #e3262f;
  --green: #17a35a;
  --amber: #d98a0b;

  --bg: #eef4fc;
  --card: #ffffff;
  --card-2: #f4f8fe;
  --text: #0b1c3d;
  --muted: #5b6b88;
  --line: #dbe5f3;
  --shadow: 0 8px 28px -14px rgba(11, 42, 107, .28);
  --r: 18px;

  --ink: #0b2a6b;            /* sarlavha va qalin matn rangi */
  --field: #ffffff;          /* input foni */
  --topbar: rgba(255, 255, 255, .88);
  --accent-soft: #eef5ff;
  --snow: rgba(63, 169, 245, .55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: "Montserrat", system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; color: var(--ink); }
h2 { font-size: 19px; }
p { margin: 0 0 .6em; }
code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.danger { color: var(--red); font-weight: 700; }
.warn { color: var(--amber); font-weight: 700; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.container { flex: 1; padding-top: 20px; padding-bottom: 48px; }

/* ===== Header / footer ===== */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand b { display: block; font-weight: 900; font-size: 19px; letter-spacing: .5px; line-height: 1.1; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; color: var(--muted); font-weight: 700; }
.nav a.active, .nav a:hover { background: var(--card-2); color: var(--ink); }
.nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 22px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ===== Umumiy elementlar ===== */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.card + .card { margin-top: 14px; }
.grid > .card, .two-col > .card { margin-top: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--blue); color: #fff; font-weight: 700; text-align: center;
  transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.light { background: #fff; color: var(--navy); }
.btn.ghost { background: var(--card-2); color: var(--ink); }
.btn.danger { background: #fdecec; color: var(--red); }
.btn.block { width: 100%; margin-top: 10px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--muted); cursor: pointer; font-weight: 800; }
.icon-btn:hover { background: #fdecec; color: var(--red); }
.back { display: inline-block; font-weight: 700; margin-bottom: 12px; }
.page-title { font-size: 30px; font-weight: 900; margin-bottom: 18px; }
.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }

.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; transition: opacity .5s, transform .5s; }
.alert.ok { background: #e3f6ec; color: #0d6b3a; }
.alert.err { background: #fdecec; color: #a3141b; }
.alert.err ul { margin: 0; padding-left: 18px; }
.alert.err:empty, .validation-summary-valid { display: none; }
.alert.fade { opacity: 0; transform: translateY(-6px); }

/* ===== Formalar ===== */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field textarea, .field select, .filters input, .filters select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); outline: none;
}
.field input:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 224, .12); }
.input-validation-error { border-color: var(--red) !important; }
.field-err { color: var(--red); font-size: 12.5px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option > span { display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s; }
.option b { display: block; color: var(--ink); }
.option small { color: var(--muted); font-weight: 600; }
.option input:checked + span { border-color: var(--blue); background: var(--accent-soft); }
.option input:focus-visible + span { outline: 3px solid rgba(21, 101, 224, .35); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* ===== Belgilar ===== */
.pill { display: inline-block; background: var(--red); color: #fff; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px; }

/* ===== Katalog ===== */
.filters { display: grid; grid-template-columns: 1fr 220px 190px auto; gap: 10px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 8px 16px; border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; border: 1.5px solid var(--line); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.result-count { font-size: 13px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s; }
.product:hover { transform: translateY(-3px); }
.product-img { position: relative; aspect-ratio: 1; background: var(--card-2); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product:hover .product-img img { transform: scale(1.04); }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: #fff; }
.tag.sale { background: var(--red); }
.tag.out { background: #333; left: auto; right: 10px; }
.tag.static { position: static; }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.cat { font-size: 12px; font-weight: 700; color: var(--blue); }
.product h3 { font-size: 15px; font-weight: 700; margin: 2px 0 10px; }
.price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-row b { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.price-row s { display: block; font-size: 12px; color: var(--muted); }
.add { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; }
.add:hover { filter: brightness(1.1); }
.empty { text-align: center; padding: 50px 16px; }
.empty h1 { font-size: 64px; }
.empty-icon { font-size: 54px; margin-bottom: 8px; }

/* ===== Mahsulot sahifasi ===== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pdp-img { overflow: hidden; aspect-ratio: 1; position: sticky; top: 90px; }
.pdp-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: 30px; font-weight: 900; }
.big-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.big-price b { font-size: 30px; font-weight: 900; color: var(--ink); }
.big-price s { color: var(--muted); font-weight: 600; }
.stock { font-weight: 700; color: var(--green); }
.stock.low { color: var(--amber); }
.buy { display: flex; gap: 10px; margin: 18px 0 10px; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ink); }
.qty button:hover { background: var(--card-2); }
.qty input { width: 46px; border: 0; background: none; text-align: center; font-weight: 800; outline: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.small button { width: 34px; height: 36px; }
.qty.small input { width: 36px; }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-weight: 600; }

/* ===== Savat va rasmiylashtirish ===== */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.line { display: flex; align-items: center; gap: 14px; padding: 12px; }
.line + .line { margin-top: 10px; }
.line img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-info a b { color: var(--ink); }
.line-total { color: var(--ink); }
.summary { position: sticky; top: 90px; }
.summary .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-weight: 600; }
.summary .total { font-size: 19px; font-weight: 900; color: var(--ink); border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--green)); }
.mini-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.mini-line img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.mini-line span { flex: 1; }
.mini-line b { white-space: nowrap; }

/* ===== To'lov ===== */
.pay-wrap { max-width: 460px; margin: 0 auto; }
.pay-head { text-align: center; margin-bottom: 16px; }
.pay-amount { font-size: 34px; font-weight: 900; color: var(--ink); }
.demo-note { display: flex; gap: 10px; background: #fff6e0; color: #7a5300; border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.bank-card {
  aspect-ratio: 1.7; border-radius: 18px; padding: 20px; margin-bottom: 18px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, #0b2a6b, #1565e0 70%, #3fa9f5);
  box-shadow: 0 16px 30px -14px #0b2a6b;
}
.bank-card .row { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; opacity: .92; }
.bank-card .num { font-size: 21px; font-weight: 700; letter-spacing: 2px; font-variant-numeric: tabular-nums; }

/* ===== Chek ===== */
.receipt-page { max-width: 560px; margin: 0 auto; }
.receipt-status { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.receipt-status .icon { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: #fff; background: var(--green); }
.receipt-status.wait .icon { background: var(--amber); }
.receipt-status h1 { font-size: 24px; margin: 0 0 2px; }
.receipt-status p { margin: 0; }
.receipt {
  background: #fff; padding: 26px 26px 30px; position: relative; font-size: 13.5px;
  box-shadow: var(--shadow); border-radius: 6px 6px 0 0;
}
.receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 7px, #fff 0) 0 0 / 14px 10px, linear-gradient(45deg, transparent 7px, #fff 0) 0 0 / 14px 10px;
}
.r-head { text-align: center; }
.r-head img { margin: 0 auto 6px; }
.r-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.r-head p { color: var(--muted); font-size: 12.5px; }
.r-title { text-align: center; font-weight: 900; letter-spacing: 2px; padding: 10px 0; margin: 10px 0; border-top: 1.5px dashed #c9d3e2; border-bottom: 1.5px dashed #c9d3e2; color: var(--ink); }
.r-meta, .r-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0; }
.r-meta dt, .r-sum dt { color: var(--muted); font-weight: 600; }
.r-meta dd, .r-sum dd { margin: 0; text-align: right; font-weight: 700; word-break: break-word; }
.r-meta + .r-meta { border-top: 1.5px dashed #c9d3e2; padding-top: 12px; }
.r-items { width: 100%; border-collapse: collapse; margin: 6px 0; }
.r-items th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--line); }
.r-items td { padding: 7px 0; border-bottom: 1px solid #f0f3f8; vertical-align: top; }
.r-items th:not(:first-child), .r-items td:not(:first-child) { text-align: right; padding-left: 10px; white-space: nowrap; }
.r-sum { border-top: 1.5px dashed #c9d3e2; padding-top: 12px; }
.r-sum .grand { font-size: 18px; font-weight: 900; color: var(--ink); }
.status { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-wait { background: #fff1d6; color: #9a6200; }
.st-new { background: #e4efff; color: #1250b0; }
.st-paid { background: #e3f6ec; color: #0d6b3a; }
.st-ship { background: #efe6ff; color: #5b2bb5; }
.st-done { background: #d9f2e4; color: #0b5a31; }
.st-cancel { background: #fdecec; color: #a3141b; }
.r-foot { text-align: center; border-top: 1.5px dashed #c9d3e2; padding-top: 16px; color: var(--muted); font-size: 12.5px; }
.r-foot .qr { width: 120px; margin: 0 auto 10px; }
.r-foot .qr svg { width: 100%; height: auto; display: block; }
.r-foot b { color: var(--ink); }
.receipt-actions { display: grid; gap: 10px; margin-top: 26px; }

/* ===== Moslashuvchanlik ===== */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .summary { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search, .filters .btn { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-img { position: static; }
  .brand small { display: none; }
  .nav a { padding: 8px 10px; }
  .page-title { font-size: 24px; }
  .line { flex-wrap: wrap; }
  .line-info { flex-basis: calc(100% - 90px); }
  .qty-form { margin-left: 90px; }
  .field-row.three { grid-template-columns: 1fr 1fr; }
  .receipt { padding: 20px 16px 26px; }
}
@media (max-width: 400px) {
  .product h3 { font-size: 13.5px; }
  .price-row b { font-size: 14px; }
  .add { width: 34px; height: 34px; font-size: 19px; }
}

@media print {
  body { background: #fff; }
  .topbar, .footer, .receipt-status, .receipt-actions, .alert, .no-print { display: none !important; }
  main.container { padding: 0; }
  .receipt { box-shadow: none; max-width: 100%; }
  .receipt::after { display: none; }
}

/* ===== Tungi rejim =====
   Tema <html data-theme="dark"> orqali yoqiladi (_Layout'dagi skript va site.js).
   Asosan tokenlar almashadi, qolgan stillar ularni o'zi oladi. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #3b86f5;
  --bg: #050c1f;
  --card: #0b1835;
  --card-2: #10224a;
  --text: #dfe8f8;
  --muted: #93a5c6;
  --line: #1b2f5c;
  --shadow: 0 10px 30px -14px rgba(0, 0, 0, .8);
  --ink: #f1f5ff;
  --field: #081330;
  --topbar: rgba(5, 12, 31, .82);
  --accent-soft: #11295a;
  --snow: rgba(255, 255, 255, .75);
}
body { transition: background-color .3s, color .3s; }
[data-theme="dark"] .chip.active { background: var(--blue); border-color: var(--blue); }
[data-theme="dark"] .alert.ok { background: #0d3523; color: #8ee6b4; }
[data-theme="dark"] .alert.err { background: #3a1216; color: #ffb1b5; }
[data-theme="dark"] .demo-note { background: #33280a; color: #ffd77a; }
[data-theme="dark"] .btn.danger, [data-theme="dark"] .icon-btn:hover { background: #3a1216; }
/* Chek doim oq qog'oz ko'rinishida qoladi */
.receipt { --ink: #0b2a6b; --text: #0b1c3d; --muted: #5b6b88; --line: #dbe5f3; color: var(--text); }

.theme-toggle {
  width: 40px; height: 40px; margin-left: 4px; border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  transition: transform .3s;
}
.theme-toggle:hover { transform: rotate(-20deg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* Orqa fonda uchib yuradigan qorparchalar (site.js chizadi) */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.section-title { font-size: 22px; font-weight: 900; margin: 0; }
.section > .section-title { margin-bottom: 14px; }
.section-head { margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.sort {
  padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--field); color: var(--ink); font-weight: 700; font-size: 14px; cursor: pointer;
}

/* ===== Reklama karuseli ===== */
.promo {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff; isolation: isolate;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(63, 169, 245, .55), transparent 55%),
    linear-gradient(118deg, #040a1a 0%, #0b2a6b 45%, #1565e0 78%, #3fa9f5 100%);
  box-shadow: 0 24px 50px -24px rgba(11, 42, 107, .65);
}
/* Qadoqdagidek oq "to'lqin" chizig'i */
.promo::before {
  content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; top: 55%; height: 120%;
  border-radius: 50%; border-top: 3px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 18px 40px -20px rgba(255, 255, 255, .35); transform: rotate(-7deg);
}
.promo-track { display: grid; }
.promo-slide {
  grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px;
  padding: 44px 64px 64px; opacity: 0; visibility: hidden; transform: translateX(48px);
  transition: opacity .6s, transform .6s, visibility 0s .6s;
}
.promo-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s, transform .6s; }
.promo-flake {
  position: absolute; top: 20px; right: 24px; width: 62px; height: 62px; color: #fff;
  filter: drop-shadow(0 0 10px rgba(143, 211, 255, .9)); animation: spin 14s linear infinite;
}
.promo-text h2 { color: #fff; font-size: clamp(28px, 4.4vw, 50px); font-weight: 900; letter-spacing: -.5px; line-height: 1.08; margin-bottom: 18px; }
.promo-product { display: inline-flex; gap: 6px; color: #cfe6ff; font-weight: 700; font-size: 16px; }
.promo-product:hover { color: #fff; }
.promo-price { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 22px; }
.promo-price b { font-size: 30px; font-weight: 900; white-space: nowrap; }
.promo-price s { opacity: .7; font-weight: 600; white-space: nowrap; }
.promo-img { position: relative; justify-self: center; height: 330px; display: flex; align-items: center; justify-content: center; }
.promo-img::before {
  content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 211, 255, .6), transparent 62%);
}
.promo-img img {
  position: relative; height: 100%; width: auto; max-width: 100%; object-fit: cover; border-radius: 24px;
  box-shadow: 0 26px 40px -16px rgba(0, 0, 0, .6); animation: float 6s ease-in-out infinite;
}
.promo-nav {
  position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px);
  transition: background .2s;
}
.promo-nav:hover { background: rgba(255, 255, 255, .28); }
.promo-nav.prev { left: 12px; }
.promo-nav.next { right: 12px; }
.promo-dots { position: absolute; z-index: 2; left: 64px; bottom: 26px; display: flex; gap: 8px; }
.promo-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; overflow: hidden; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: width .3s;
}
.promo-dots button.is-active { width: 40px; }
.promo-dots i { display: block; width: 0; height: 100%; background: #fff; }
/* Faol nuqtadagi chiziq 6 soniyada to'ladi (site.js dagi DELAY bilan bir xil) */
.promo-dots button.is-active i { animation: fill 6s linear forwards; }
.promo.is-paused .promo-dots i { animation-play-state: paused; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
@keyframes fill { to { width: 100%; } }

/* ===== Qidiruv paneli ===== */
.searchbar {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 6px 6px 20px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 99px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 101, 224, .15), var(--shadow); }
.searchbar svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; padding: 10px 0; }
.searchbar .btn { border-radius: 99px; }

/* ===== Kategoriyalar: kir yuvish mashinasi ===== */
.machines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.machine {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 18px;
  background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s;
}
.machine:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -16px rgba(11, 42, 107, .45); }
.machine-panel {
  align-self: stretch; display: flex; align-items: center; gap: 8px; padding: 12px 2px; margin-bottom: 16px;
  border-bottom: 1.5px solid var(--line);
}
.knob { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #c5d3e8); box-shadow: inset 0 0 0 2px #aab9d1; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.knob + .led { background: var(--green); box-shadow: 0 0 6px var(--green); }
.screen { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: var(--navy); color: #8fd3ff; font: 700 11px/1 ui-monospace, monospace; }
.door {
  display: block; width: 74%; aspect-ratio: 1; padding: 10px; border-radius: 50%;
  background: conic-gradient(from 200deg, #f5f8fc, #a9b8cf, #eef3fa, #8c9db8, #f5f8fc);
  box-shadow: 0 12px 24px -12px rgba(11, 42, 107, .55);
}
.drum {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%;
  background: #dcebff;
}
.drum img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Oyna yaltirashi */
.drum::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55) 0 18%, transparent 38%),
    radial-gradient(circle, transparent 58%, rgba(11, 42, 107, .4) 100%);
  box-shadow: inset 0 0 0 5px #263a5c;
}
/* Sichqoncha ustiga kelganda baraban aylanadi */
.machine:hover .drum img { animation: spin 1.4s linear infinite; }
.machine b { margin-top: 14px; font-size: 16px; font-weight: 800; color: var(--ink); }
.machine small { color: var(--muted); font-weight: 600; }

@media (max-width: 960px) {
  .promo-slide { padding: 36px 56px 60px; }
  .promo-img { height: 260px; }
}
@media (max-width: 720px) {
  .promo { border-radius: 22px; }
  .promo-slide { grid-template-columns: 1fr; gap: 6px; padding: 24px 22px 54px; }
  .promo-img { order: -1; height: 190px; }
  .promo-flake { width: 44px; height: 44px; top: 14px; right: 14px; }
  .promo-price { margin-bottom: 16px; }
  .promo-price b { font-size: 24px; }
  .promo-nav { display: none; }
  .promo-dots { left: 22px; bottom: 20px; }
  .searchbar { padding-left: 14px; }
  .searchbar .btn { padding: 0 16px; }
  .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .machine { padding: 0 12px 14px; border-radius: 22px; }
  .machine b { font-size: 14px; }
  .section-title { font-size: 19px; }
}
@media (max-width: 480px) {
  .nav .nav-catalog { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-flake, .promo-img img, .machine:hover .drum img { animation: none; }
  .promo-dots button.is-active i { animation: none; width: 100%; }
  .promo-slide { transition: none; }
}
