/* ═══════════════════════════════════════════════════════
   IDEAL SEYF — main.css
   Seyflar do'koni: logo ranglari (indigo) asosidagi dizayn tizimi
   ═══════════════════════════════════════════════════════ */

/* Shriftlar (Manrope, Montserrat) index.html da <link> orqali yuklanadi — tezroq */

/* ── Design tokens ── */
:root {
  --brand: #2A1E9C;
  --brand-600: #241890;
  --brand-700: #1D137C;
  --brand-800: #150E5E;
  --brand-900: #0D0940;
  --brand-50: #F2F1FC;
  --brand-100: #E4E2F8;
  --brand-200: #C9C5F0;
  --gold: #F6B73C;
  --gold-600: #E5A21E;
  --ink: #0E1024;
  --text: #1C1F33;
  --muted: #5E6178;
  --subtle: #8B8EA4;
  --line: #E5E6EF;
  --line-soft: #EFF0F5;
  --bg: #F6F6FA;
  --surface: #FFFFFF;
  --danger: #D92D20;
  --success: #12A150;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(14, 16, 36, 0.06);
  --shadow: 0 6px 18px rgba(14, 16, 36, 0.07);
  --shadow-lg: 0 18px 50px rgba(14, 16, 36, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.22s var(--ease);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Manrope', system-ui, sans-serif;
  --max: 1280px;
  --header-h: 76px;

  /* ui.css (spinner/skeleton) uchun */
  --blue: var(--brand);
  --text-muted: var(--subtle);
  --text-secondary: var(--muted);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-700);
  box-shadow: 0 8px 20px rgba(42, 30, 156, 0.28);
}

.btn--outline {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--brand-200);
}

.btn--outline:hover {
  border-color: var(--brand);
  background: var(--brand-50);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-600);
  box-shadow: 0 10px 26px rgba(246, 183, 60, 0.35);
}

.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Section scaffolding ── */
.section {
  padding: 88px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head--center {
  justify-content: center;
  text-align: center;
}

.section-head--center .section-sub {
  margin: 12px auto 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.eyebrow--light {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.section-sub {
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
}

/* ══════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════ */
.topbar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__item svg {
  flex-shrink: 0;
  color: var(--gold);
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 2px;
}

.lang-switch button {
  height: 26px;
  min-width: 34px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: background var(--t), color var(--t);
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.currency {
  position: relative;
}

.currency__toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.currency__arrow {
  transition: transform var(--t);
}

.currency.open .currency__arrow {
  transform: rotate(180deg);
}

.currency__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1100;
}

.currency.open .currency__menu {
  display: flex;
  animation: k-fade-up 0.18s var(--ease);
}

.currency-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.currency-dropdown__item small {
  color: var(--subtle);
  font-weight: 600;
}

.currency-dropdown__item:hover {
  background: var(--brand-50);
}

.currency-dropdown__item.active {
  background: var(--brand);
  color: #fff;
}

.currency-dropdown__item.active small {
  color: rgba(255, 255, 255, 0.8);
}

/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--brand);
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(180deg, #221694 0%, #372DA0 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(34, 22, 148, 0.28);
}

.brand__mark img {
  width: 30px;
  height: 28px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.4px;
  line-height: 1;
  color: var(--brand);
}

.brand__name b {
  font-weight: 900;
}

.brand--light {
  color: #fff;
}

.brand--light .brand__name {
  color: #fff;
}

.brand--light .brand__mark {
  background: #fff;
  color: var(--brand);
  box-shadow: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}

.header__nav a:hover {
  color: var(--brand);
  background: var(--brand-50);
}

.header__search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 440px;
  margin-left: auto;
}

.header__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}

.header__search input {
  width: 100%;
  height: 46px;
  padding: 0 92px 0 42px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}

.header__search input::-webkit-search-cancel-button {
  display: none;
}

.header__search input::placeholder {
  color: var(--subtle);
}

.header__search input:focus {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 30, 156, 0.1);
}

.header__search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  padding: 0 16px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--t);
}

.header__search-btn:hover {
  background: var(--brand-700);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header__call {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 8px;
}

.header__call-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  transition: background var(--t), color var(--t);
}

.header__call:hover .header__call-icon {
  background: var(--brand);
  color: #fff;
}

.header__call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__call-text small {
  font-size: 11px;
  font-weight: 600;
  color: var(--subtle);
}

.header__call-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  color: var(--text);
  transition: background var(--t), color var(--t);
}

.icon-btn:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.icon-btn__badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

.header__burger {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav .container {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: 14px;
}

.mobile-nav a {
  padding: 12px 4px;
  font-weight: 700;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav__call {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  border-bottom: none !important;
}

.header.nav-open .mobile-nav {
  display: block;
}

/* ── Search popup ── */
.search-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  overflow: hidden;
  flex-direction: column;
  animation: k-fade-up 0.18s var(--ease);
}

.search-popup__content {
  max-height: 420px;
  overflow-y: auto;
}

.search-popup__header {
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--subtle);
}

.search-popup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--t);
}

.search-popup__item:hover {
  background: var(--brand-50);
}

.search-popup__item-img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--brand);
  overflow: hidden;
}

.search-popup__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-popup__item-info {
  flex: 1;
  min-width: 0;
}

.search-popup__item-title {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-popup__item-sub {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--subtle);
}

.search-popup__item-price {
  font-weight: 800;
  font-size: 14px;
  color: var(--brand);
  white-space: nowrap;
}

.search-popup__empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--subtle);
  font-size: 14px;
}

.search-popup__footer {
  border-top: 1px solid var(--line-soft);
  padding: 10px;
  text-align: center;
}

.search-popup__footer-btn {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
}

.search-popup__footer-btn:hover {
  background: var(--brand-50);
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(91, 76, 230, 0.45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(246, 183, 60, 0.10), transparent 60%),
    linear-gradient(160deg, #1B1180 0%, #120B57 55%, #0B0738 100%);
  color: #fff;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 96px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero__text {
  max-width: 520px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero__chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(246, 183, 60, 0.18);
}

/* Seyf diski (dekorativ) */
.hero__visual {
  display: flex;
  justify-content: center;
}

.dial {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.dial__ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.55) 0deg 1deg, transparent 1deg 6deg);
  -webkit-mask-image: radial-gradient(circle, transparent 63%, #000 64%, #000 69%, transparent 70%);
  mask-image: radial-gradient(circle, transparent 63%, #000 64%, #000 69%, transparent 70%);
  animation: dial-spin 60s linear infinite;
}

.dial__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 80px rgba(118, 104, 255, 0.25);
}

.dial__ring::after {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(246, 183, 60, 0.7);
}

.dial__core {
  width: 56%;
  aspect-ratio: 1;
  border-radius: 28%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #3A2DC4 0%, #2A1E9C 55%, #1C1279 100%);
  box-shadow:
    0 30px 60px rgba(5, 3, 30, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -10px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.dial__core img {
  width: 64%;
  height: auto;
  aspect-ratio: 336 / 306;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

@keyframes dial-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══════════════════════════════════════
   SEYF TURLARI
   ══════════════════════════════════════ */
.types {
  background: var(--surface);
}

.types__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.type-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.type-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--brand-50) 0%, var(--brand-100) 100%);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--brand);
}

.type-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(42, 30, 156, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}

.type-card--img .type-card__media::after {
  display: none;
}

.type-card__icon {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(42, 30, 156, 0.14);
  transition: transform var(--t), background var(--t), color var(--t);
}

.type-card__icon svg {
  width: 36px;
  height: 36px;
}

.type-card:hover .type-card__icon {
  transform: scale(1.06);
  background: var(--brand);
  color: #fff;
}

.type-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.type-card__text {
  flex: 1;
  min-width: 0;
}

.type-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.type-card__count {
  font-size: 13px;
  color: var(--subtle);
  font-weight: 600;
}

.type-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--brand);
  transition: background var(--t), color var(--t), border-color var(--t);
}

.type-card:hover .type-card__arrow {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.type-card--skeleton {
  pointer-events: none;
}

/* ══════════════════════════════════════
   KATALOG
   ══════════════════════════════════════ */
.catalog {
  background: var(--bg);
}

.catalog__count {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

/* Kategoriya chiplari */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 40px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.chip:hover {
  border-color: var(--brand-200);
  color: var(--brand);
}

.chip__count {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 13px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.chip.active .chip__count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.chips--sub {
  margin-top: -4px;
  margin-bottom: 18px;
}

.chips--sub .chip {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  background: transparent;
  border-style: dashed;
}

.chips--sub .chip.active {
  background: var(--brand-50);
  border-color: var(--brand);
  border-style: solid;
  color: var(--brand);
}

.chip--skeleton {
  width: 120px;
  border: none;
}

.catalog__layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Filtrlar paneli */
.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.filters__head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.filters__close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  place-items: center;
}

.filters__backdrop {
  display: none;
}

.sidebar__filter-group {
  border-bottom: 1px solid var(--line-soft);
}

.sidebar__filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  user-select: none;
}

.sidebar__filter-header svg {
  color: var(--subtle);
  transition: transform var(--t);
}

.sidebar__filter-header.open svg {
  transform: rotate(180deg);
}

.sidebar__filter-body {
  display: none;
  padding-bottom: 16px;
}

.sidebar__filter-body.open {
  display: block;
}

.price-slider-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.price-slider-values span:not(.price-slider-sep) {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 4px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: var(--r-sm);
  background: var(--bg);
  text-align: center;
  white-space: nowrap;
}

.price-slider-sep {
  color: var(--subtle);
}

.price-slider-wrap {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  margin: 0 2px 6px;
}

.price-slider-track,
.price-slider-progress {
  position: absolute;
  height: 4px;
  border-radius: 2px;
}

.price-slider-track {
  width: 100%;
  background: var(--line);
}

.price-slider-progress {
  background: var(--brand);
  z-index: 1;
}

.price-range-input {
  position: absolute;
  width: 100%;
  height: 4px;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 2px 6px rgba(14, 16, 36, 0.2);
  cursor: grab;
  pointer-events: auto;
}

.price-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 2px 6px rgba(14, 16, 36, 0.2);
  cursor: grab;
  pointer-events: auto;
}

.price-slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--subtle);
  font-weight: 600;
}

.sidebar__checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.sidebar__checkbox-list input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.color-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.filters__empty {
  font-size: 13px;
  color: var(--subtle);
}

.filters__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.filters__actions .btn {
  height: 40px;
  padding: 0 10px;
  font-size: 13px;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 18px;
}

.toolbar__filters {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  margin-right: auto;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.toolbar__sort {
  height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface) url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' stroke='%235E6178' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.toolbar__sort:focus {
  border-color: var(--brand);
}

.toolbar__view {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.view-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--subtle);
  transition: background var(--t), color var(--t);
}

.view-btn:hover {
  color: var(--brand);
}

.view-btn.active {
  background: var(--brand);
  color: #fff;
}

/* Mahsulot kartochkalari */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.product-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #F7F7FB 0%, #EEEEF5 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--brand);
}

.product-card__image>svg {
  width: 72px;
  height: 72px;
  opacity: 0.3;
}

.product-card__img-real {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__img-real {
  transform: scale(1.05);
}

.product-card__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card__tag {
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.product-card__tag--top {
  background: var(--gold);
  color: var(--ink);
}

.product-card__tag--discount {
  background: var(--danger);
  color: #fff;
}

.product-card__wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: color var(--t), transform var(--t);
}

.product-card__wishlist-btn:hover {
  color: var(--brand);
  transform: scale(1.08);
}

.product-card__wishlist-btn.active {
  color: var(--danger);
}

.product-card__wishlist-btn.active svg {
  fill: currentColor;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.product-card__cat {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.product-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-card__meta li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-200);
}

.product-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.product-card__prices {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.product-card__old-price {
  font-size: 13px;
  color: var(--subtle);
  text-decoration: line-through;
}

.product-card__cart {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  transition: background var(--t), color var(--t);
}

.product-card__cart:hover {
  background: var(--brand);
  color: #fff;
}

.product-card__buy {
  margin-top: 12px;
  height: 42px;
}

/* Ro'yxat ko'rinishi */
.product-grid--list {
  grid-template-columns: 1fr;
}

.product-grid--list .product-card {
  flex-direction: row;
}

.product-grid--list .product-card__image {
  width: 220px;
  flex-shrink: 0;
}

.product-grid--list .product-card__body {
  padding: 20px 22px;
}

.product-grid--list .product-card__buy {
  align-self: flex-start;
  min-width: 200px;
}

/* Skeleton kartochka */
.product-card--skeleton {
  pointer-events: none;
}

.product-card--skeleton .skeleton-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.product-card--skeleton .skeleton-actions .skeleton {
  height: 42px;
  flex: 1;
  border-radius: var(--r);
}

/* Bo'sh holat */
.catalog-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--brand-200);
  border-radius: var(--r-lg);
}

/* Ikki telefon tugmasi orasida bo'shliq (yonma-yon yoki ustma-ust) */
.catalog-empty > .btn {
  margin: 8px 4px 0;
}

.catalog-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
}

.catalog-empty__icon svg,
.catalog-empty__icon img {
  width: 40px;
  height: 36px;
}

.catalog-empty h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.catalog-empty p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.loadmore {
  text-align: center;
  padding-top: 32px;
}

/* ══════════════════════════════════════
   AFZALLIKLAR
   ══════════════════════════════════════ */
.why {
  background: var(--brand-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  right: -260px;
  top: -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 76, 230, 0.35), transparent 65%);
  pointer-events: none;
}

.why .section-title {
  color: #fff;
}

.why .section-sub {
  color: rgba(255, 255, 255, 0.65);
}

.why__grid {
  position: relative;
  display: grid;
  /* Kartochka admin sozlamasida o'chirilsa, qolganlari bo'sh joysiz cho'ziladi */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.why-card {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(246, 183, 60, 0.45);
  transform: translateY(-3px);
}

.why-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--gold);
  color: var(--ink);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ══════════════════════════════════════
   QAYTA QO'NG'IROQ
   ══════════════════════════════════════ */
.callback {
  background: var(--surface);
}

.callback__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-50) 0%, #FFFFFF 70%);
  border: 1px solid var(--brand-100);
}

.callback__text p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
}

.callback__direct {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.callback__direct small {
  font-size: 13px;
  font-weight: 600;
  color: var(--subtle);
}

.callback__direct strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.3px;
}

.callback__form-wrap {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(42, 30, 156, 0.1);
}

.callback__success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r);
  background: #E8F7EE;
  color: #0B6B35;
  font-weight: 700;
  animation: k-fade-up 0.3s var(--ease);
}

/* ══════════════════════════════════════
   MANZIL
   ══════════════════════════════════════ */
.location {
  background: var(--bg);
}

.location__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: stretch;
}

.location__info .section-sub {
  margin-top: 10px;
}

.location__list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.store-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}

.store-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.store-card__row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.store-card__row-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand);
}

.store-card__row small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.store-card__row strong,
.store-card__row a {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.store-card__row a:hover {
  color: var(--brand);
}

/* Bir nechta raqam bo'lsa — har biri alohida qatorda */
.store-card__row a[href^="tel:"] {
  display: block;
}

.store-card__row a[href^="tel:"] + a[href^="tel:"] {
  margin-top: 2px;
}

.store-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.location__map {
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brand-50);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.68);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
}

.footer__brand p {
  margin-top: 18px;
  max-width: 380px;
  font-size: 14px;
}

.footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: background var(--t), color var(--t);
}

.footer__social:hover {
  background: var(--gold);
  color: var(--ink);
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.footer__col li {
  margin-bottom: 11px;
  font-size: 14px;
}

.footer__col a {
  transition: color var(--t);
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contacts svg {
  flex-shrink: 0;
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

/* ══════════════════════════════════════
   SAVATCHA PANELI
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  justify-content: flex-end;
  background: rgba(13, 9, 64, 0.45);
  backdrop-filter: blur(3px);
}

.modal-overlay.active {
  display: flex;
}

.cart-panel {
  width: 430px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: cart-in 0.32s var(--ease);
}

@keyframes cart-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.cart-panel__header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.cart-panel__close {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.cart-panel__close:hover {
  background: var(--bg);
  color: var(--ink);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-panel__empty {
  padding: 64px 0;
  text-align: center;
  color: var(--subtle);
  font-weight: 600;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.cart-item__image {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: var(--r);
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--brand);
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.cart-item__price {
  margin-top: 2px;
  font-weight: 800;
  color: var(--brand);
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.cart-item__qty button {
  width: 34px;
  height: 34px;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

.cart-item__qty button:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.cart-item__qty span {
  min-width: 32px;
  text-align: center;
  font-weight: 800;
}

.cart-item__remove {
  font-size: 13px;
  font-weight: 700;
  color: var(--subtle);
  padding: 6px;
}

.cart-item__remove:hover {
  color: var(--danger);
}

.cart-panel__footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
}

.cart-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--muted);
}

.cart-panel__total span:last-child {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

/* ══════════════════════════════════════
   SUZUVCHI SAVATCHA
   ══════════════════════════════════════ */
.floating-cart {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 18px;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 34px rgba(42, 30, 156, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t);
}

.floating-cart.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-cart:hover {
  background: var(--brand-700);
}

.floating-cart__icon {
  position: relative;
  display: grid;
  place-items: center;
}

.floating-cart__badge {
  position: absolute;
  top: -11px;
  right: -13px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.floating-cart__badge.is-bumping {
  animation: badge-bump 0.4s ease;
}

@keyframes badge-bump {
  35% {
    transform: scale(1.4);
  }

  65% {
    transform: scale(0.9);
  }
}

.floating-cart__total {
  font-weight: 800;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   BUYURTMA OYNASI
   ══════════════════════════════════════ */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 9, 64, 0.5);
  backdrop-filter: blur(3px);
}

.order-modal.active {
  display: flex;
}

.order-modal__box {
  width: 460px;
  max-width: 100%;
  padding: 32px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: k-pop-in 0.3s var(--ease);
}

.order-modal__box h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.order-modal__field {
  margin-bottom: 14px;
}

.order-modal__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.order-modal__field input,
.order-modal__field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t);
}

.order-modal__field textarea {
  height: 90px;
  padding: 12px 14px;
  resize: vertical;
}

.order-modal__field input:focus,
.order-modal__field textarea:focus {
  border-color: var(--brand);
}

.order-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.order-modal__actions .btn--primary {
  flex: 1;
  height: 50px;
}

.order-modal__actions .btn--outline {
  height: 50px;
}

.order-success {
  text-align: center;
  padding: 12px 0;
}

.order-success__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #E8F7EE;
  color: var(--success);
}

.order-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.order-success p {
  margin-top: 6px;
  color: var(--muted);
}

/* ══════════════════════════════════════
   MAHSULOT OYNASI
   ══════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 64, 0.5);
  backdrop-filter: blur(4px);
}

.modal__container {
  position: relative;
  width: 100%;
  max-width: 1040px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.active .modal__container {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  transition: background var(--t), color var(--t);
}

.modal__close:hover {
  background: var(--ink);
  color: #fff;
}

.product-modal {
  padding: 32px;
}

.product-modal__content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
}

.product-modal__gallery {
  min-width: 0;
}

.product-modal__main-image-wrap {
  position: relative;
}

.product-modal__main-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #F7F7FB 0%, #EEEEF5 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
  color: var(--brand);
}

.product-modal__main-image>svg {
  width: 120px;
  height: 120px;
  opacity: 0.25;
}

.product-modal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}

.product-modal__zoom-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.product-modal__zoom-btn:hover {
  background: var(--brand);
  color: #fff;
}

.product-modal__thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.product-modal__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
  flex: 1;
}

.product-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.product-modal__thumbs-arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.product-modal__thumbs-arrow:hover {
  background: var(--brand-50);
  color: var(--brand);
}

.thumb-item {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--r);
  border: 2px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: var(--brand);
}

.product-modal__info {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.product-modal__type {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.product-modal__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  padding-right: 48px;
}

.product-modal__prices {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 18px 0 22px;
}

.product-modal__price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--brand);
}

.product-modal__old-price {
  font-size: 17px;
  color: var(--subtle);
  text-decoration: line-through;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.spec-item {
  padding: 11px 14px;
  border-radius: var(--r);
  background: var(--bg);
}

.spec-item dt {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--subtle);
}

.spec-item dd {
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-modal__description {
  color: var(--muted);
  font-size: 15px;
  white-space: pre-line;
  margin-bottom: 24px;
}

.product-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-modal__actions .btn--primary {
  flex: 1;
}

.wishlist-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color var(--t), color var(--t);
}

.wishlist-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.wishlist-btn.active {
  color: var(--danger);
  border-color: rgba(217, 45, 32, 0.35);
}

.wishlist-btn.active svg {
  fill: currentColor;
}

.product-modal__call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.product-modal__call strong {
  color: var(--brand);
}

/* ══════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════ */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(8, 6, 32, 0.94);
}

.image-lightbox.active {
  display: flex;
  animation: k-fade-in 0.2s ease;
}

.image-lightbox__stage {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
}

.image-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  min-width: 0;
  object-fit: contain;
  border-radius: var(--r);
  background: #fff;
}

.image-lightbox__close,
.image-lightbox__nav {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background var(--t);
}

.image-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.image-lightbox__close:hover,
.image-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Toast */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 5000;
  transform: translate(-50%, 120px);
  padding: 13px 22px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease);
  max-width: calc(100vw - 32px);
  text-align: center;
}

.site-toast.show {
  transform: translate(-50%, 0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1180px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: grid;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .section {
    padding: 64px 0;
  }

  .header__call {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 64px;
    gap: 24px;
  }

  .hero__visual {
    display: none;
  }

  .types__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .catalog__layout {
    grid-template-columns: 1fr;
  }

  .toolbar__filters {
    display: inline-flex;
  }

  /* Filtrlar chap tomondan chiqadigan panelga aylanadi */
  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(340px, 88vw);
    z-index: 2100;
    border-radius: 0;
    border: none;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
  }

  .filters.sidebar--open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .filters__close {
    display: grid;
  }

  .filters__backdrop {
    position: fixed;
    inset: 0;
    z-index: 2050;
    background: rgba(13, 9, 64, 0.45);
  }

  .filters.sidebar--open+.filters__backdrop {
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .callback__card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }

  .location__inner {
    grid-template-columns: 1fr;
  }

  .location__map,
  .location__map iframe {
    min-height: 320px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .product-modal {
    padding: 20px;
  }

  .product-modal__content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .product-modal__main-image {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .header__inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    margin-right: auto;
  }

  .header__search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }

  .header__search input {
    height: 44px;
  }

  .search-popup {
    min-width: 0;
  }

  .topbar__hours {
    display: none !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .why__grid {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  /* Faqat yon bo'shliq: yuqori/pastki bo'shliq (header, hero) saqlansin */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .section-head--center {
    align-items: center;
  }

  .topbar__inner {
    min-height: 36px;
  }

  .topbar__item {
    font-size: 12px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand__mark img {
    width: 26px;
    height: 24px;
  }

  .brand__name {
    font-size: 18px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .hero__inner {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero__text {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .types__grid {
    gap: 10px;
  }

  .type-card__media {
    aspect-ratio: 16 / 10;
  }

  .type-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  .type-card__icon svg {
    width: 28px;
    height: 28px;
  }

  .type-card__body {
    padding: 12px;
    gap: 8px;
  }

  .type-card__name {
    font-size: 14px;
  }

  .type-card__count {
    font-size: 12px;
  }

  .type-card__arrow {
    display: none;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .toolbar__sort {
    flex: 1;
    min-width: 0;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card__body {
    padding: 12px;
  }

  .product-card__name {
    font-size: 14px;
  }

  .product-card__meta {
    display: none;
  }

  .product-card__price {
    font-size: 15px;
  }

  .product-card__bottom {
    padding-top: 10px;
  }

  /* Tor kartochkada narx to'liq ko'rinsin: savatga qo'shish "Sotib olish" orqali */
  .product-grid:not(.product-grid--list) .product-card__cart {
    display: none;
  }

  .product-card__buy {
    height: 38px;
    font-size: 13px;
  }

  .product-grid--list .product-card__image {
    width: 120px;
  }

  .product-grid--list .product-card__buy {
    min-width: 0;
    align-self: stretch;
  }

  .why-card {
    padding: 20px 16px;
  }

  .why-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
  }

  .why-card h3 {
    font-size: 16px;
  }

  .why-card p {
    font-size: 13px;
  }

  .callback__card {
    padding: 22px 16px;
    border-radius: var(--r-lg);
  }

  .callback__form-wrap {
    padding: 18px;
  }

  .callback__direct strong {
    font-size: 22px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-cart {
    right: 16px;
    bottom: 16px;
    height: 54px;
    padding: 0 18px;
  }

  .floating-cart__total {
    display: none;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal__container {
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
  }

  .product-modal {
    padding: 16px;
  }

  .specs {
    grid-template-columns: 1fr 1fr;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox__nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 380px) {
  .header__actions {
    gap: 0;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobil tuzatishlar ── */
@media (max-width: 560px) {
  /* Ro'yxat ko'rinishi telefonda ham bitta ustun bo'lsin (aks holda 2 ustunda matn qirqiladi) */
  .product-grid.product-grid--list {
    grid-template-columns: 1fr;
  }

  /* Bildirishnoma pastdagi "Buyurtma berish" tugmasini yopib qo'ymasin — tepada chiqadi */
  .site-toast {
    top: calc(12px + env(safe-area-inset-top));
    bottom: auto;
    transform: translate(-50%, -160px);
  }

  .site-toast.show {
    transform: translate(-50%, 0);
  }

  /* Suzuvchi savat tugmasi footer oxiridagi matnni yopmasin */
  .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  /* Mahsulot oynasida narx "so'm" bilan bitta qatorda, eski narx pastga o'tadi */
  .product-modal__prices {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .product-modal__price {
    font-size: 26px;
    white-space: nowrap;
  }

  .product-modal__old-price {
    white-space: nowrap;
  }

  /* iPhone 16px dan kichik maydonga bosilganda sahifani kattalashtirib yuboradi */
  input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select,
  textarea {
    font-size: 16px;
  }

  /* Topbardagi manzil qirqilmasin: kerak bo'lsa ikki qatorga bo'linadi (topbar balandligi o'zgarmaydi) */
  .topbar__info {
    flex: 1;
  }

  .topbar__item:not(.topbar__hours) {
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.25;
    padding: 3px 0;
  }

  #topbarAddress {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* Til va valyuta tugmalari barmoq bilan bosishga qulay bo'lsin */
  .lang-switch button,
  .currency__toggle {
    min-height: 32px;
  }
}

/* Tor telefonlar: til/valyuta tugmalari ixchamroq — manzilga ko'proq joy qolsin */
@media (max-width: 380px) {
  .topbar__inner {
    gap: 8px;
  }

  .topbar__controls {
    gap: 6px;
  }

  .lang-switch button {
    min-width: 28px;
    padding: 0 5px;
  }

  .currency__toggle {
    padding: 0 6px;
  }
}

/* Juda tor ekran (320px): manzil qirqilmasin, kerak bo'lsa 3 qatorga o'tadi */
@media (max-width: 340px) {
  #topbarAddress {
    -webkit-line-clamp: 3;
  }

  /* Logo va ikonkalar bitta qatorga sig'sin (aks holda ikonkalar logo ostiga tushadi) */
  .brand {
    gap: 8px;
  }

  .brand__name {
    font-size: 17px;
  }

  .header__actions .icon-btn {
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dial__ticks {
    animation: none;
  }
}

/* Forma ostidagi shaxsiy ma'lumotlar haqidagi izoh */
.form-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--subtle);
  text-align: center;
}

.product-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}


/* ══════════════════════════════════════
   BUYURTMA ASOSIDA: XOHLAGAN O'LCHAM
   ══════════════════════════════════════ */
.custom {
  background: var(--surface);
}

.custom__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--brand-50) 0%, var(--brand-100) 100%);
  border: 1px solid var(--brand-100);
  overflow: hidden;
}

.custom__card::after {
  content: '';
  position: absolute;
  inset: 0 0 0 45%;
  background-image: radial-gradient(rgba(42, 30, 156, 0.13) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
  pointer-events: none;
}

.custom__text,
.custom__media {
  position: relative;
  z-index: 1;
}

.custom__text > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 500px;
}

.custom__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.custom__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.custom__list svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 5px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}

.custom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.custom__media img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 24px 36px rgba(14, 16, 36, 0.22));
}

@media (max-width: 960px) {
  .custom__card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 32px;
  }

  .custom__card::after {
    inset: 0;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%);
    mask-image: linear-gradient(180deg, #000, transparent 55%);
  }

  .custom__media {
    order: -1;
  }

  .custom__media img {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .custom__card {
    padding: 24px 18px;
    border-radius: var(--r-lg);
  }

  .custom__list li {
    font-size: 14px;
  }

  .custom__actions .btn {
    width: 100%;
  }
}

/* ══════════════════════════════════════
   KARTOCHKA: "SOTIB OLISH" + SAVATCHA YONMA-YON
   ══════════════════════════════════════ */
.product-card__bottom {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

.product-card__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.product-card__actions .product-card__buy {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin-top: 0;
}

.product-grid--list .product-card__actions {
  align-self: flex-start;
}

.product-grid--list .product-card__actions .product-card__buy {
  flex: 0 0 auto;
  min-width: 200px;
}

@media (max-width: 560px) {
  .product-grid:not(.product-grid--list) .product-card__cart {
    display: grid;
  }

  .product-card__cart {
    width: 38px;
    height: 38px;
  }

  .product-card__actions {
    gap: 6px;
  }

  .product-card__actions .product-card__buy {
    height: 38px;
    padding: 0 8px;
  }

  .product-grid--list .product-card__actions {
    align-self: stretch;
  }

  .product-grid--list .product-card__actions .product-card__buy {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .product-grid:not(.product-grid--list) .product-card__cart {
    display: none;
  }
}
