/* Shriftlar base.html orqali <link> bilan yuklanadi (@import bloklash/yuklash muammolarini oldini oladi) */

:root {
  /* UI Redesign: tokens.css'dagi --color-primary bilan unified — Cobalt Blue. */
  --primary: #023E8A;
  --primary-light: #2563EB;
  --primary-dark: #03306E;
  --accent: #00C9A7;
  --accent2: #FF6B35;
  --bg: #FFFFFF;
  --white: #ffffff;
  --dark: #022757;
  --gray: #4A5568;
  --gray-light: #E2E8F0;
  --text: #1A2332;
  --card-shadow: 0 4px 24px rgba(2, 62, 138,0.10);
  --radius: 18px;
  --radius-sm: 10px;
  /* Responsive system */
  --max-width: 1600px;
  --side-padding: 20px;
  --blue: #023E8A;
  --blue-dark: #03306E;
  --blue-light: #E6EFFB;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

@media (min-width: 641px) {
  :root {
    --side-padding: 32px;
  }
}
@media (min-width: 1201px) {
  :root {
    --side-padding: 48px;
  }
}
@media (min-width: 1441px) {
  :root {
    --side-padding: 64px;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
@media (min-width: 641px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Inter', 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* TOPBAR — header_restructure: butunlay olib tashlandi.
   Eski .topbar/.topbar-* qoidalari (background: primary-dark) tozalandi —
   page'da bunday element yo'q, lekin orphan qoidalar tepada ko'k zolzol
   chiziq paydo qilishi mumkin edi (ehtimol cache + qoldiqlar). */

/* ===== STICKY SHELL (header + nav) ===== */
.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}
.site-header-shell.scrolled {
  box-shadow: 0 10px 40px rgba(13, 27, 42, 0.12);
}

/* ===== HEADER ===== */
header.site-header,
.site-header {
  position: relative; z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--gray-light);
  transition: background 0.3s;
}
.site-header-shell.scrolled .site-header {
  background: rgba(255,255,255,0.99);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: inherit;
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
}
.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}
.header-brand-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
}
.header-brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  flex-shrink: 0;
}
.header-phone-number {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.header-phone-label {
  font-size: 11px;
  color: var(--gray);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Search — desktop widths; mobile: icon + full-width overlay below header */
.header-search-open {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search-open:hover {
  border-color: var(--primary);
}
.header-search-overlay {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 95;
  padding: 10px var(--side-padding, 24px) 14px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.08);
}
.header-search-overlay.is-open {
  display: block;
}
@media (min-width: 641px) {
  .header-search-overlay {
    display: none !important;
  }
}
.header-search {
  display: flex;
  align-items: center;
  position: relative;
  width: 260px;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
  margin: 0;
}
.header-search--desktop {
  width: 100%;
  max-width: 260px;
  flex: 0 1 auto;
}
@media (max-width: 1199px) {
  .header-search--desktop {
    max-width: 250px;
  }
}
@media (max-width: 899px) {
  .header-search--desktop {
    max-width: 200px;
  }
}
.header-search--overlay {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1 1 auto;
}
.header-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search-input:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}
.header-search-input::placeholder { color: #9e9e9e; }
.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9e9e9e;
  pointer-events: none;
  line-height: 1;
}
@media (max-width: 640px) {
  .header-search--desktop {
    display: none !important;
  }
  .header-search-open {
    display: flex;
  }
  .header-right .header-search {
    margin: 0 0 0 8px;
  }
}

/* Lang switcher (dropdown, topbar) — toggled via JS (inline display) */
.lang-switcher {
  position: relative;
  z-index: 999;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 6px 12px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}
.lang-current:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}
.lang-arrow {
  font-size: 10px;
  margin-left: 2px;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  min-width: 220px;
  overflow: hidden;
  z-index: 1000;
}
.lang-dropdown form {
  margin: 0;
  padding: 6px 0;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border: none;
  background: none;
  color: #334155;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.lang-option:hover {
  background: #f1f5f9;
}
.header-area .lang-current {
  color: #334155;
  background: rgba(255, 255, 255, 0.95);
  border-color: #e2e8f0;
}
.header-area .lang-current:hover {
  background: #fff;
  border-color: #cbd5e1;
}

/* Auth */
.auth-btns { display: flex; gap: 8px; }
.auth-btn {
  padding: 8px 14px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; text-decoration: none; font-family: inherit;
}
.auth-btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.auth-btn-outline:hover { background: var(--primary); color: white; }
.auth-btn-fill { background: var(--primary); color: white; border: 1.5px solid var(--primary); }
.auth-btn-fill:hover { background: var(--primary-dark); }
.auth-btn--compact { font-size: 12px; padding: 8px 10px; }

.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 2px solid var(--gray-light);
  text-decoration: none;
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}
.header-icon-btn:hover {
  border-color: var(--primary);
  background: rgba(26, 115, 232, 0.06);
}
.header-icon-btn__glyph { font-size: 18px; line-height: 1; }
.header-icon-btn__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent2);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: opacity 0.2s, transform 0.2s;
}
.header-icon-btn__badge.is-empty {
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
}

.header-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.header-menu-toggle__bar {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.header-menu-toggle.is-active .header-menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-menu-toggle.is-active .header-menu-toggle__bar:nth-child(2) { opacity: 0; }
.header-menu-toggle.is-active .header-menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hide-below-sm { display: flex; }
.hide-below-md { display: flex; }
@media (max-width: 640px) {
  .hide-below-sm { display: none !important; }
}
@media (max-width: 900px) {
  .hide-below-md { display: none !important; }
}

/* ===== NAV ===== */
nav.site-nav,
.site-nav {
  background: var(--primary-dark);
  position: relative;
  box-shadow: 0 4px 20px rgba(15, 79, 163, 0.28);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 0; align-items: stretch;
}
.nav-catalog-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: white; border: none;
  padding: 0 22px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
  font-family: inherit; white-space: nowrap;
}
.nav-catalog-btn:hover { background: #082C66; }
.nav-catalog-btn span { font-size: 18px; }
.nav-links { display: flex; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 14px 18px; font-size: 14px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-link.active-nav { color: white; background: rgba(255,255,255,0.1); }
.nav-link .arrow { font-size: 10px; opacity: 0.6; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
  min-width: 220px; padding: 8px 0; z-index: 200;
}
.nav-item:hover .dropdown { display: block; }
.dropdown a {
  display: block; padding: 10px 20px; color: var(--text);
  text-decoration: none; font-size: 13.5px; transition: background 0.15s;
}
.dropdown a:hover { background: var(--bg); color: var(--primary); }

.nav-links--desktop {
  display: flex;
  gap: 0;
}
.nav-item--mega {
  position: static;
}
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  box-shadow: 0 24px 48px rgba(13, 27, 42, 0.12);
  z-index: 150;
  display: none !important;
  pointer-events: none;
}
/* Faqat katta ekranda ochiladi — mobil/planshet oqimida dokument ichida “tushib qolmaydi” */
@media (min-width: 1025px) {
  .nav-item--mega:hover .mega-menu,
  .nav-item--mega:focus-within .mega-menu {
    display: block !important;
    pointer-events: auto;
  }
}
.mega-menu-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 40px;
}
.mega-col {
  padding: 0;
}
.mega-col__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--dark);
  text-decoration: none;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
  transition: color .15s, border-color .15s;
}
.mega-col__head-text {
  line-height: 1.3;
}
.mega-col__head:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.mega-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-col__list a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--gray);
  text-decoration: none;
  transition: color .12s;
}
.mega-col__list a:hover {
  color: var(--primary);
}
.mega-col__all {
  font-weight: 600;
  color: var(--primary) !important;
}
.mega-menu-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
  text-align: center;
}
.mega-menu-all {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}
.mega-menu-all:hover {
  text-decoration: underline;
}
.mega-empty {
  grid-column: 1 / -1;
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

.nav-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.45);
  z-index: 1100;
}
.nav-mobile-backdrop.is-open {
  display: block;
}
.nav-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 400px);
  max-width: 100vw;
  height: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 1110;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s ease, visibility 0.3s ease, clip-path 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  /* Yopiqda hattoki kontent ham ko‘rinmasin (desktopda “ikkinchi menyu” effekti) */
  clip-path: inset(0 0 0 100%);
}
.nav-mobile-drawer.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
}
.nav-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-light);
  flex-shrink: 0;
}
.nav-mobile-drawer__title {
  font-weight: 800;
  font-size: 16px;
  color: var(--dark);
}
.nav-mobile-drawer__close {
  border: none;
  background: var(--bg);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.nav-mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 32px;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile-auth {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.nav-mobile-auth__link {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--gray-light);
  color: var(--dark);
}
.nav-mobile-auth__link--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.nav-mobile-cat-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.nav-mobile-link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
}
.nav-mobile-link--bold {
  font-weight: 800;
  color: var(--primary);
  border-bottom: none;
  padding-bottom: 8px;
}
.nav-mobile-sep {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 16px 0;
}
.nav-mobile-acc {
  border-bottom: 1px solid var(--gray-light);
}
.nav-mobile-acc summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-mobile-acc summary::-webkit-details-marker {
  display: none;
}
.nav-mobile-acc__body {
  padding-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile-acc__body a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  padding-left: 8px;
}
.nav-mobile-acc__body a:hover {
  color: var(--primary);
}

@media (max-width: 1024px) {
  .nav-links--desktop {
    display: none;
  }
  .header-menu-toggle {
    display: flex;
  }
  .nav-item--mega .mega-menu {
    display: none !important;
  }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2563EB 100%);
  color: white; padding: 60px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(0,201,167,0.12); border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -120px; left: 30%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,201,167,0.2); border: 1px solid rgba(0,201,167,0.4);
  border-radius: 50px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; color: #6EECD9; margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px; font-weight: 800;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 span { color: #6EECD9; }
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.8);
  line-height: 1.6; margin-bottom: 32px; max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary {
  background: var(--accent); color: white; border: none;
  border-radius: 12px; padding: 14px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.hero-btn-primary:hover { background: #00a88d; transform: translateY(-2px); }
.hero-btn-secondary {
  background: rgba(255,255,255,0.15); color: white;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 12px;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
}
.hero-btn-secondary:hover { background: rgba(255,255,255,0.25); }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-stat strong { font-size: 28px; font-weight: 800; color: white; display: block; }
.hero-stat span { font-size: 12px; color: rgba(255,255,255,0.65); }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius);
  padding: 20px; transition: transform 0.2s; cursor: pointer;
  text-decoration: none; color: white;
}
.hero-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); }
.hero-card-icon { font-size: 32px; margin-bottom: 10px; }
.hero-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.hero-card p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.4; }

/* ===== PARTNERS CAROUSEL ===== */
.partners-band {
  background: var(--white); padding: 28px 0;
  border-bottom: 1px solid var(--gray-light);
  overflow: hidden; position: relative;
}
.partners-band::before, .partners-band::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 140px; z-index: 2; pointer-events: none;
}
.partners-band::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.partners-band::after  { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.partners-label {
  text-align: center; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 18px;
}
.partners-track-wrap { overflow: hidden; }
.partners-track {
  display: flex; align-items: center; width: max-content;
  animation: scroll-partners 36s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes scroll-partners {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partner-item {
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px; flex-shrink: 0; opacity: 0.45; transition: opacity 0.25s;
}
.partner-item:hover { opacity: 1; }
.p-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  line-height: 1.15;
  max-width: min(100%, 240px);
}
.p-logo__line { display: block; max-width: 100%; }
.p-logo__line--main { font-weight: 800; color: var(--dark); }
.p-logo__line--accent {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88em;
}
/* Eski markup: matn + <span> (highlight) */
.p-logo > span:not(.p-logo__line) {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88em;
}
[data-size="xl"] .p-logo { font-size: 26px; }
[data-size="lg"] .p-logo { font-size: 20px; }
[data-size="md"] .p-logo { font-size: 15px; }
[data-size="sm"] .p-logo {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
[data-size="sm"] .p-logo__line--accent,
[data-size="sm"] .p-logo > span:not(.p-logo__line) {
  text-transform: none;
  letter-spacing: -0.02em;
}

.partner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  max-width: min(100%, 240px);
}
.partner-highlight {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88em;
}
.partner-divider { width: 1px; height: 24px; background: var(--gray-light); flex-shrink: 0; }
.partner-item img { height: 36px; width: auto; object-fit: contain; }

/* ===== SECTIONS ===== */
section { padding: 60px var(--side-padding); }
.section-inner { max-width: min(var(--max-width), 100%); margin: 0 auto; }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px;
}
.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--primary); margin-bottom: 6px;
}
.section-title {
  font-size: 32px; font-weight: 800; color: var(--dark);
  letter-spacing: -0.5px; line-height: 1.15;
}
.view-all {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  color: var(--primary); font-weight: 600; font-size: 14px;
  text-decoration: none;
  border: 1.5px solid rgba(26, 115, 232, 0.22);
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.04);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.view-all:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}
.view-all:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.35);
  outline-offset: 2px;
}

/* ===== QUICK CATS ===== */
.quick-cats { background: var(--white); }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--bg); border-radius: var(--radius); padding: 22px 16px;
  text-align: center; cursor: pointer; text-decoration: none; color: var(--text);
  transition: all 0.2s; border: 2px solid transparent;
}
.cat-card:hover {
  background: white; border-color: var(--primary);
  transform: translateY(-3px); box-shadow: var(--card-shadow);
}
.cat-card-icon { font-size: 36px; margin-bottom: 10px; }
.cat-card h4 { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--dark); }

/* ===== SERVICES ===== */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--card-shadow); transition: transform 0.2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.service-card:hover { transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
}
.service-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.service-card ul { list-style: none; }
.service-card ul li {
  padding: 6px 0; font-size: 13.5px; color: var(--gray);
  border-bottom: 1px solid var(--gray-light);
  display: flex; gap: 8px; align-items: flex-start;
}
.service-card ul li:last-child { border: none; }
.service-card ul li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.service-btn {
  display: inline-block; margin-top: 20px; background: var(--primary); color: white;
  padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background 0.2s;
}
.service-btn:hover { background: var(--primary-dark); }

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(13,71,161,0.08); border-radius: 50px;
  padding: 6px 16px; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 16px;
}
.about-text h2 { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 18px; line-height: 1.15; }
.about-text p { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.about-text p strong { color: var(--primary); }
.about-cta {
  display: inline-block; background: var(--primary); color: white;
  padding: 13px 28px; border-radius: 12px; font-weight: 700; font-size: 14px;
  text-decoration: none; margin-top: 10px; transition: background 0.2s;
}
.about-cta:hover { background: var(--primary-dark); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.astat {
  background: var(--bg); border-radius: var(--radius); padding: 28px 24px;
  text-align: center; border-bottom: 3px solid var(--primary);
}
.astat strong { font-size: 38px; font-weight: 800; color: var(--primary); display: block; }
.astat span { font-size: 13px; color: var(--gray); margin-top: 6px; display: block; line-height: 1.3; }

/* ===== NEWS ===== */
.news { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow); transition: transform 0.2s;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); }
.news-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(255,255,255,0.4); overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12px; color: var(--gray); margin-bottom: 10px; }
.news-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.4; flex: 1; margin-bottom: 16px; color: var(--dark); }
.news-arrow { color: var(--primary); font-weight: 700; font-size: 13px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 60px 24px;
}
.cta-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: 34px; font-weight: 800; max-width: 500px; line-height: 1.2; }
.cta-inner p { color: rgba(255,255,255,0.75); margin-top: 10px; font-size: 15px; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-input {
  padding: 13px 18px; border-radius: 12px; border: none;
  font-size: 14px; font-family: inherit; width: 240px;
  background: rgba(255,255,255,0.15); color: white; outline: none;
}
.cta-input::placeholder { color: rgba(255,255,255,0.5); }
.cta-input:focus { background: rgba(255,255,255,0.25); }
.cta-submit {
  background: var(--accent); color: white; border: none;
  border-radius: 12px; padding: 13px 28px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.cta-submit:hover { background: #00a88d; transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 24px 30px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { margin-bottom: 18px; }
.footer-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white; margin-bottom: 10px;
}
.footer-logo-name { font-weight: 800; font-size: 16px; color: white; }
.footer-logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); margin-bottom: 18px; }
.footer-contacts a {
  display: flex; align-items: center; gap: 8px; color: white;
  text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 8px;
}
.footer-contacts a:hover { color: #FFFFFF; }
.footer-col h4 {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: white; margin-bottom: 18px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 13px; margin-bottom: 10px; transition: color 0.2s;
}
/* Footer foni dark grey — hover'da oq rangga o'tsin (avval var(--accent)
   #555555 ga o'tib, fonga qo'shilib ko'rinmay qolardi). */
.footer-col a:hover { color: #FFFFFF; }
.footer-partner {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
}
.footer-partner img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: #fff;
  padding: 6px 8px;
  opacity: 0.95;
  transition: opacity 0.2s;
}
.footer-partner img:hover { opacity: 1; }
.footer-bottom {
  max-width: 1280px; margin: 24px auto 0;
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

footer.site-footer .site-footer__grid {
  grid-template-columns: 1.35fr 1fr 1fr 1fr minmax(200px, 1.05fr);
  gap: 32px 28px;
}
.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 16px;
}
.site-footer__logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.site-footer__social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, border-color 0.2s;
}
.site-footer__social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.footer-address,
.footer-hours {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
}
.footer-muted {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}
.site-footer__newsletter .newsletter-lead {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.newsletter-input:focus {
  border-color: var(--primary-light);
}
.newsletter-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.newsletter-btn:hover {
  background: var(--primary-light);
}
.newsletter-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 10px;
  line-height: 1.4;
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  margin-left: 16px;
}
.footer-bottom-links a:hover {
  color: #FFFFFF;
}
@media (max-width: 1100px) {
  footer.site-footer .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__newsletter {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}
@media (max-width: 600px) {
  footer.site-footer .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,27,42,0.65); backdrop-filter: blur(4px);
  z-index: 1200; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: 24px; padding: 40px;
  max-width: 460px; width: 100%; margin: 20px; position: relative;
  animation: modalIn 0.3s cubic-bezier(.34,1.56,.64,1);
}
/* _modal_consult.html ishlatadigan klasslar (.modal-box) */
.modal-box {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 460px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.3s cubic-bezier(.34,1.56,.64,1);
}
.modal-box .modal-icon {
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1;
}
.modal-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark, #1F2937);
  margin: 0 0 6px;
}
.modal-box > p {
  color: var(--gray, #6B7280);
  font-size: 14px;
  margin: 0 0 20px;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.modal-form .form-input {
  width: 100%;
  border: 1.5px solid var(--gray-light, #E5E7EB);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #FFFFFF;
  color: var(--dark, #1F2937);
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.modal-form .form-input:focus {
  border-color: #023E8A;
  box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.12);
}
.modal-form .btn-submit {
  width: 100%;
  background: #1F2937;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  margin-top: 4px;
}
.modal-form .btn-submit:hover { background: #111827; }
.modal-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--gray, #9CA3AF);
}
@keyframes modalIn { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--gray);
  display: flex; align-items: center; justify-content: center;
}
.modal h2 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.modal p { color: var(--gray); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  font-size: 12px; font-weight: 700; color: var(--gray);
  margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: 1px;
}
.form-group input, .form-group textarea {
  width: 100%; border: 2px solid var(--gray-light); border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-family: inherit;
  outline: none; transition: border 0.2s; resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-submit {
  width: 100%; background: var(--primary); color: white; border: none;
  border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background 0.2s; margin-top: 4px;
}
.form-submit:hover { background: var(--primary-dark); }
.form-note { text-align: center; font-size: 11px; color: var(--gray); margin-top: 10px; }

/* ===== CATALOG PANEL ===== */
.catalog-panel { display: none; position: fixed; inset: 0; z-index: 900; }
.catalog-panel.open { display: flex; }
.catalog-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.catalog-drawer {
  position: relative; background: white;
  width: 860px; max-width: 95vw; height: 100vh;
  display: flex; overflow: hidden; animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.catalog-sidebar-panel {
  width: 260px; flex-shrink: 0; background: var(--dark);
  padding: 20px 0; overflow-y: auto;
}
.catalog-sidebar-title {
  padding: 10px 20px 16px; color: white; font-weight: 800; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 8px;
}
.cat-side-item {
  padding: 11px 20px; color: rgba(255,255,255,0.7); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; transition: all 0.15s;
}
.cat-side-item__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-side-item:hover, .cat-side-item.active { background: var(--primary); color: white; }
.catalog-panel-content { flex: 1; padding: 24px; overflow-y: auto; }
.catalog-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg); border: none; border-radius: 50%;
  width: 36px; height: 36px; font-size: 20px; cursor: pointer; color: var(--gray);
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.catalog-section { display: none; }
.catalog-section.active { display: block; }
.catalog-section h3 { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.catalog-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.catalog-link {
  background: var(--bg); border-radius: 10px; padding: 13px 15px;
  text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600;
  transition: all 0.15s; display: flex; align-items: center; gap: 8px;
}
.catalog-link:hover { background: var(--primary); color: white; }
.catalog-link-icon { font-size: 18px; }

/* ===== SCROLL TOP + TOAST ===== */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--primary); color: white;
  width: 44px; height: 44px; border-radius: 12px; border: none;
  cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(13,71,161,0.35);
  transition: all 0.2s; z-index: 500; opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
/* === TOAST — premium B2B notification ===
   Auto-dismiss 3s, brand colors per variant, ikon + matn + ✕.
   role="status" / aria-live="polite" base.html'da. */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(120px);
  display: inline-flex; align-items: center; gap: 10px;
  background: #1A2332; color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 12px 40px rgba(2, 62, 138, 0.28),
              0 4px 12px rgba(0,0,0,0.12);
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1),
              opacity 0.25s ease;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  opacity: 0;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast::before {
  content: '';
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18) center/14px no-repeat;
}
.toast.toast-success {
  background: var(--color-success, #16A34A);
  border-color: rgba(255,255,255,0.18);
}
.toast.toast-success::before {
  background-color: rgba(255,255,255,0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.toast.toast-error {
  background: var(--color-danger, #DC2626);
}
.toast.toast-error::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}
.toast.toast-info {
  background: var(--color-primary, #023E8A);
}
.toast.toast-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
.toast__close {
  margin-left: 8px;
  background: transparent; border: none; cursor: pointer;
  color: inherit; opacity: 0.7; padding: 4px;
  font-size: 16px; line-height: 1;
  border-radius: 6px;
}
.toast__close:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.toast__close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 480px) {
  .toast { font-size: 13px; padding: 12px 14px; border-radius: 12px; bottom: 16px; }
  .toast::before { width: 20px; height: 20px; flex-basis: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity 0.2s; transform: translateX(-50%) translateY(0); }
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2563EB 100%);
  padding: 40px 24px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(0,201,167,0.12); border-radius: 50%;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.35); }
.page-hero h1 {
  font-size: 36px; font-weight: 800; color: white;
  letter-spacing: -0.5px; line-height: 1.15;
}
.page-hero p { font-size: 15px; color: rgba(255,255,255,0.75); margin-top: 8px; }

/* ===== CATEGORY CARDS (catalog index) ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.cat-big-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 28px;
  text-decoration: none; color: var(--text); box-shadow: var(--card-shadow);
  transition: all 0.25s; border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.cat-big-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transition: transform 0.25s;
}
.cat-big-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,71,161,0.15); }
.cat-big-card:hover::after { transform: scaleX(1); }
.cat-big-icon { font-size: 44px; margin-bottom: 16px; display: block; }
.cat-big-name { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 6px; line-height: 1.3; }
.cat-big-count {
  display: inline-block; font-size: 12px; font-weight: 700;
  background: rgba(13,71,161,0.08); color: var(--primary);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.cat-big-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }
.cat-big-arrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-top: 16px; opacity: 0; transition: opacity 0.2s;
}
.cat-big-card:hover .cat-big-arrow { opacity: 1; }

/* ===== CATALOG LAYOUT ===== */
.catalog-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 28px; max-width: 1280px; margin: 0 auto; padding: 0 24px;
}

/* Sidebar */
.catalog-sidebar-box { flex-shrink: 0; }
.sidebar-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 20px;
}
.sidebar-card-head {
  padding: 16px 20px; font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--dark);
  border-bottom: 1px solid var(--gray-light);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-cat-list { padding: 8px 0; }
.sidebar-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; text-decoration: none;
  font-size: 14px; color: var(--text); font-weight: 500;
  transition: all 0.15s; gap: 8px;
}
.sidebar-cat-item:hover { background: var(--bg); color: var(--primary); }
.sidebar-cat-item.active {
  background: rgba(13,71,161,0.08); color: var(--primary); font-weight: 700;
  border-left: 3px solid var(--primary);
}
.sidebar-cat-item .cat-icon { font-size: 18px; flex-shrink: 0; }
.sidebar-cat-item .cat-name { flex: 1; }
.sidebar-cat-item .cat-cnt {
  font-size: 11px; background: var(--gray-light);
  color: var(--gray); padding: 2px 7px; border-radius: 10px; font-weight: 700;
}
.sidebar-cat-item.active .cat-cnt { background: rgba(13,71,161,0.15); color: var(--primary); }

/* Availability filter */
.sidebar-filter-list { padding: 12px 20px; }
.filter-check {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  cursor: pointer; font-size: 14px; color: var(--text);
}
.filter-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* CTA sidebar */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius); padding: 24px 20px; color: white;
}
.sidebar-cta h4 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta-btn {
  display: block; background: var(--accent); color: white; border: none;
  border-radius: 10px; padding: 10px 16px; font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer; text-align: center;
  text-decoration: none; transition: background 0.2s;
}
.sidebar-cta-btn:hover { background: #00a88d; }

/* Catalog toolbar */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.catalog-toolbar-left { display: flex; align-items: center; gap: 10px; }
.results-count { font-size: 14px; color: var(--gray); }
.results-count strong { color: var(--dark); font-weight: 800; }
.sort-select {
  border: 2px solid var(--gray-light); border-radius: 10px;
  padding: 8px 14px; font-family: inherit; font-size: 13px;
  background: var(--white); color: var(--text); cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--primary); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--gray-light);
  background: var(--white); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: var(--gray);
}
.view-btn.active { border-color: var(--primary); background: rgba(13,71,161,0.08); color: var(--primary); }
.view-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ===== PRODUCT CARDS (grid) ===== */
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 2px solid transparent;
}
.product-card:hover {
  transform: translateY(-5px); box-shadow: 0 16px 48px rgba(13,71,161,0.15);
  border-color: rgba(13,71,161,0.15);
}
.product-card-img {
  height: 260px; background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; overflow: hidden; position: relative;
  padding: 8px;
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.3s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}
.badge-new { background: var(--primary); color: white; }
.badge-hit { background: var(--accent2); color: white; }
.badge-sale { background: #16a34a; color: white; }
.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card-sku { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.product-card-name { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.product-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.product-tag {
  font-size: 11px; background: var(--bg); color: var(--primary);
  border: 1px solid rgba(13,71,161,0.2); padding: 3px 8px; border-radius: 6px; font-weight: 600;
}
.product-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 20px; font-weight: 800; color: var(--dark); }
.product-price-unit { font-size: 11px; color: var(--gray); margin-top: 1px; }
.product-price-request { font-size: 13px; font-weight: 700; color: var(--primary); }
.btn-add {
  background: var(--primary); color: white; border: none; border-radius: 10px;
  padding: 9px 16px; font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.btn-add:hover { background: var(--primary-dark); }

/* ===== PRODUCTS LIST (row view) ===== */
.products-list { display: flex; flex-direction: column; gap: 14px; }
.product-row {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow);
  display: flex; gap: 0; overflow: hidden; text-decoration: none; color: inherit;
  border: 2px solid transparent; transition: all 0.2s;
}
.product-row:hover { border-color: rgba(13,71,161,0.2); transform: translateX(4px); }
.product-row-img {
  width: 180px; flex-shrink: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 52px; overflow: hidden;
}
.product-row-img img { width: 100%; height: 100%; object-fit: cover; }
.product-row-body { padding: 20px 24px; flex: 1; display: flex; align-items: center; gap: 24px; }
.product-row-info { flex: 1; }
.product-row-sku { font-size: 11px; color: var(--gray); text-transform: uppercase; margin-bottom: 4px; }
.product-row-name { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.3; }
.product-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-row-price { text-align: right; flex-shrink: 0; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px;
}
.page-btn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--gray-light); background: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; color: var(--text); transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 1280px; margin: 0 auto; padding: 40px 24px; align-items: start;
}

/* Gallery */
.gallery-main {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow);
  height: 420px; display: flex; align-items: center; justify-content: center;
  font-size: 100px; overflow: hidden; margin-bottom: 12px; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.gallery-main-badge { position: absolute; top: 16px; left: 16px; }
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 80px; height: 80px; border-radius: 10px; border: 2px solid var(--gray-light);
  overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 28px; background: var(--white); transition: border-color 0.15s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info-sku { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.product-info-name { font-size: 28px; font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.product-info-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.product-tag-lg {
  font-size: 12px; font-weight: 700; background: rgba(13,71,161,0.08);
  color: var(--primary); padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(13,71,161,0.2);
}

/* Availability badge */
.availability-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; padding: 6px 14px;
  border-radius: 20px; margin-bottom: 20px;
}
.avail-in_stock { background: rgba(0,201,167,0.1); color: #00a88d; }
.avail-on_order { background: rgba(255,107,53,0.1); color: var(--accent2); }
.avail-out_of_stock { background: rgba(107,122,141,0.1); color: var(--gray); }

/* Price block */
.product-price-box {
  background: var(--bg); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 24px;
}
.product-main-price { font-size: 36px; font-weight: 800; color: var(--dark); }
.product-main-price-unit { font-size: 13px; color: var(--gray); margin-top: 2px; }
.product-main-price-request { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-actions { display: flex; gap: 12px; margin-top: 16px; }
.btn-primary-lg {
  flex: 1; background: var(--primary); color: white; border: none;
  border-radius: 12px; padding: 14px 24px; font-family: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.btn-primary-lg:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline-lg {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
  border-radius: 12px; padding: 14px 20px; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-outline-lg:hover { background: var(--primary); color: white; }

/* Specs */
.specs-section { margin-bottom: 28px; }
.specs-title { font-size: 16px; font-weight: 800; color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--gray-light); }
.specs-table tr:last-child { border: none; }
.specs-table td { padding: 10px 0; font-size: 14px; vertical-align: top; }
.specs-table td:first-child { color: var(--gray); width: 45%; font-weight: 500; }
.specs-table td:last-child { color: var(--dark); font-weight: 600; }

/* Description */
.product-desc { font-size: 15px; color: var(--gray); line-height: 1.7; margin-bottom: 24px; }

/* Tabs */
.product-tabs { border-bottom: 2px solid var(--gray-light); margin-bottom: 24px; display: flex; gap: 0; }
.product-tab {
  padding: 12px 20px; font-size: 14px; font-weight: 700;
  color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.2s; background: none;
  border-top: none; border-left: none; border-right: none; font-family: inherit;
}
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.product-tab:hover { color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Related products */
.related-section {
  background: var(--white); padding: 48px 24px;
  border-top: 1px solid var(--gray-light);
}
.related-inner { max-width: 1280px; margin: 0 auto; }
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px;
}

/* ===== BLOG GRID ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.blog-page { padding: 40px 0 80px; }

/* ===== BLOG (list + detail) ===== */
.blog-page-inner { padding-left: 24px; padding-right: 24px; }
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card-article {
  margin: 0;
  height: 100%;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--gray-light);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 115, 232, 0.12);
}
.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  overflow: hidden;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.35);
}
.blog-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
}
.blog-card__tag {
  display: inline-block;
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 700;
  line-height: 1.2;
}
.blog-card__date {
  color: var(--gray);
  font-weight: 600;
}
.blog-card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin: 0;
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 4px;
}
.blog-card--compact .blog-card__media--sm {
  aspect-ratio: 16 / 9;
  max-height: 160px;
}
.blog-card--compact .blog-card__title {
  font-size: 15px;
}
.blog-pagination {
  margin-top: 40px;
  flex-wrap: wrap;
}

.post-detail-inner {
  padding-left: 24px;
  padding-right: 24px;
}
.post-article {
  min-width: 0;
}
.post-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.post-header__date {
  color: var(--gray);
  font-weight: 600;
}
.post-header__dot {
  color: var(--gray-light);
}
.post-header__author {
  color: var(--gray);
}
.post-header__title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin: 0 0 12px;
}
.post-featured-figure {
  margin: 0 0 32px;
}
.post-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background: var(--bg);
}
.post-featured-img img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}
.post-footer-share {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-light);
}
.post-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.post-share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 115, 232, 0.06);
}
.post-share-btn--tg:hover {
  border-color: #0088cc;
  color: #0088cc;
  background: rgba(0, 136, 204, 0.08);
}
.post-share-btn--fb:hover {
  border-color: #1877f2;
  color: #1877f2;
  background: rgba(24, 119, 242, 0.08);
}
.post-share-btn--tw:hover {
  border-color: #000;
  color: #000;
}

.blog-related-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--gray-light);
}
.blog-related-section__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--dark);
}
.blog-cards-grid--related {
  grid-template-columns: repeat(4, 1fr);
}

.post-related-mini {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-related-mini li {
  margin: 0;
}
.recent-post__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 4px;
  line-height: 1.35;
}

.blog-empty .btn-primary {
  display: inline-block;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-cards-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-cards-grid,
  .blog-cards-grid--related {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE EXTRAS ===== */
.page-hero-sm { padding: 36px 24px; }

/* About page */
.about-page { padding: 60px 24px; }
.about-mission { display: grid; grid-template-columns: 3fr 2fr; gap: 60px; align-items: center; }
.mission-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.mission-text p { font-size: 15px; color: var(--gray); margin-bottom: 14px; line-height: 1.7; }
.mission-values { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-icon { font-size: 24px; flex-shrink: 0; width: 44px; height: 44px; background: rgba(13,71,161,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.value-item strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--dark); }
.value-item p { font-size: 14px; color: var(--gray); }
.mission-stats { display: flex; flex-direction: column; gap: 16px; }
.big-stat { background: rgba(13,71,161,0.06); border-radius: var(--radius); padding: 24px; text-align: center; border: 2px solid var(--primary); }
.big-stat strong { display: block; font-size: 40px; font-weight: 800; color: var(--primary); }
.big-stat span { font-size: 13px; color: var(--gray); font-weight: 600; }
.team-section { background: var(--bg); padding: 60px 24px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--card-shadow); }
.team-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.team-card p { font-size: 14px; color: var(--gray); }

/* About / Contact / Projects (v2 layouts) */
.about-page--story {
  padding: 48px 24px 32px;
  background: var(--white);
}
.about-page--stats {
  padding: 32px 24px 48px;
  background: var(--bg);
}
.about-page-inner {
  max-width: 960px;
  margin: 0 auto;
}
.about-team .about-page-inner {
  max-width: 1280px;
}
.about-page__intro {
  margin-bottom: 20px;
}
.about-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}
.about-page__title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin: 0;
}
.about-page__prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
}
.about-page__prose > p {
  margin: 0 0 16px;
}
.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}
.about-mv-card {
  background: var(--bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
}
.about-mv-card__h {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 10px;
  font-weight: 800;
}
.about-mv-card p {
  margin: 0;
  font-size: 15px;
  color: var(--gray);
  line-height: 1.65;
}
.about-page__cta-wrap {
  margin-top: 28px;
}
.about-page__section-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 24px;
  text-align: center;
  color: var(--dark);
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.about-page__section-head {
  margin-bottom: 28px;
}
.about-page__section-lead {
  font-size: 15px;
  color: var(--gray);
  margin-top: 8px;
  max-width: 560px;
  line-height: 1.5;
}
.about-team.team-section {
  padding-top: 48px;
  padding-bottom: 72px;
}

.contact-page-v2 {
  padding: 48px 24px 80px;
}
.contact-page-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.contact-info-v2 .contact-info-lead,
.contact-form-lead {
  font-size: 15px;
  color: var(--gray);
  margin: -12px 0 24px;
  line-height: 1.55;
}
.contact-form-v2 .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.contact-form-v2 .form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}
.contact-form-v2 .req {
  color: #dc2626;
}
.field-error {
  font-size: 13px;
  color: #b91c1c;
  margin-top: 4px;
}
.contact-messages {
  margin-bottom: 24px;
}
.contact-map-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-light);
}
.contact-map-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--dark);
}
.contact-map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  max-height: 440px;
}
.contact-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-map-fallback {
  font-size: 15px;
  color: var(--gray);
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px dashed var(--gray-light);
  line-height: 1.6;
}

.projects-page-v2 {
  padding: 40px 24px 80px;
}
.projects-page-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.projects-filter {
  margin-bottom: 32px;
}
.projects-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-light);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(26, 115, 232, 0.1);
}
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  overflow: hidden;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 160px;
  font-size: 56px;
  color: rgba(255, 255, 255, 0.35);
}
.project-card__type {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: calc(100% - 60px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: var(--dark);
}
.project-card__desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-top: auto;
}
.projects-empty .btn-primary {
  margin-top: 16px;
  display: inline-block;
}

/* Project/Service card endi <a> tag — default link stilini reset qilamiz */
a.project-card,
a.project-card:hover,
a.project-card:focus,
a.project-card:visited,
a.svc-card,
a.svc-card:hover,
a.svc-card:focus,
a.svc-card:visited {
  text-decoration: none;
  color: inherit;
}
a.project-card *,
a.svc-card * {
  text-decoration: none;
}
.project-card__cta,
.svc-card__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #023E8A;
  text-decoration: none;
}
a.project-card:hover .project-card__cta,
a.svc-card:hover .svc-card__cta {
  text-decoration: underline;
}

@media (max-width: 1280px) {
  .projects-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .about-mv-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .about-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.contact-page { padding: 60px 24px 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2, .contact-form-wrap h2 { font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon { font-size: 20px; flex-shrink: 0; width: 44px; height: 44px; background: rgba(13,71,161,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.contact-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-item a, .contact-item p { font-size: 15px; color: var(--gray); text-decoration: none; }
.contact-item a:hover { color: var(--primary); }
.social-link { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 2px solid var(--gray-light); border-radius: 50px; padding: 8px 16px; font-size: 14px; font-weight: 700; transition: all 0.2s; }
.social-link:hover { border-color: var(--primary); color: var(--primary); }
.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.contact-form-wrap form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-wrap .form-group { margin-bottom: 0; }
.contact-form-wrap .form-group label { font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 1px; }
.contact-form-wrap .form-group input, .contact-form-wrap .form-group textarea { width: 100%; border: 2px solid var(--gray-light); border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: inherit; outline: none; transition: border 0.2s; resize: none; }
.contact-form-wrap .form-group input:focus, .contact-form-wrap .form-group textarea:focus { border-color: var(--primary); }

.form-input {
  width: 100%;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  display: block;
  color: var(--dark);
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13,71,161,0.1);
}
.form-input::placeholder { color: #aab0bb; }
textarea.form-input { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Kontakt sahifa — ixcham layout: aloqa + forma + xarita bitta sahifaga sig'sin ── */
.contact-page-v2 { padding: 28px 24px 40px; }
.contact-page-v2 .contact-grid { gap: 44px; align-items: start; }
.contact-page-v2 .contact-info h2,
.contact-page-v2 .contact-form-wrap h2 { font-size: 21px; margin-bottom: 14px; }
.contact-page-v2 .contact-info-lead,
.contact-page-v2 .contact-form-lead { margin: -6px 0 16px; font-size: 14px; }
.contact-page-v2 .contact-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-bottom: 8px; }
.contact-page-v2 .contact-item { margin-bottom: 0; gap: 12px; }
.contact-page-v2 .contact-icon { width: 40px; height: 40px; color: var(--primary); font-size: 0; }
.contact-page-v2 .contact-form-v2 .form-field { margin-bottom: 10px; gap: 6px; }
.contact-page-v2 .form-input { padding: 11px 14px; font-size: 14px; border-radius: 10px; }
.contact-page-v2 textarea.form-input { min-height: 84px; }
.contact-page-v2 .btn-submit { padding: 12px; font-size: 15px; margin-top: 4px; }
.contact-page-v2 .contact-map-section { margin-top: 28px; padding-top: 22px; }
.contact-page-v2 .contact-map-title { font-size: 19px; margin-bottom: 12px; }
.contact-page-v2 .contact-map-wrap { aspect-ratio: auto; height: 300px; max-height: 300px; }
@media (max-width: 560px) {
  .contact-page-v2 .contact-items-grid { grid-template-columns: 1fr; }
}

/* Projects page */
.projects-page { padding: 40px 24px 80px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { background: var(--white); border: 2px solid var(--gray-light); border-radius: 50px; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--gray); transition: all 0.2s; text-decoration: none; cursor: pointer; font-family: inherit; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.projects-big-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-big-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
.project-big-img { height: 240px; overflow: hidden; }
.project-big-img img { width: 100%; height: 100%; object-fit: cover; }
.project-big-body { padding: 24px; }
.project-type-badge { display: inline-block; background: rgba(13,71,161,0.08); color: var(--primary); border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.project-big-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.project-big-body p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.project-meta-row { display: flex; gap: 16px; font-size: 13px; color: var(--gray); font-weight: 600; }

/* Post detail */
.post-detail-page { padding: 40px 24px 80px; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: 1280px; margin: 0 auto; }
.post-header { margin-bottom: 28px; }
.post-excerpt { font-size: 18px; color: var(--gray); margin-top: 12px; line-height: 1.7; }
.post-hero-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.post-hero-img img { width: 100%; max-height: 500px; object-fit: cover; }
.post-body { font-size: 16px; line-height: 1.8; color: var(--dark); }
.post-body h2, .post-body h3 { margin: 28px 0 12px; }
.post-body p { margin-bottom: 16px; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body a { color: var(--primary); }
.post-sidebar .sidebar-widget { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.post-sidebar .sidebar-widget h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.post-sidebar .sidebar-widget p { font-size: 14px; color: var(--gray); margin-bottom: 14px; }
.recent-post { display: block; padding: 12px 0; border-bottom: 1px solid var(--gray-light); text-decoration: none; color: inherit; }
.recent-post:last-child { border-bottom: none; }
.recent-post h4 { font-size: 14px; font-weight: 700; color: var(--dark); margin-top: 4px; }
.btn-sidebar { display: block; background: var(--primary); color: white; border: none; border-radius: 10px; padding: 10px 16px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; transition: background 0.2s; }
.btn-sidebar:hover { background: var(--primary-dark); }

/* Empty state */
.empty-state { text-align: center; padding: 60px; color: var(--gray); }
.empty-state p { font-size: 18px; margin-bottom: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-mission { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-big-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; min-height: 64px; }
  .header-phone, .auth-btns { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; }
  .cta-form { flex-direction: column; }
  .cta-input { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid, .blog-grid, .blog-cards-grid, .blog-cards-grid--related { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-cards { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== CATALOG PAGE ===== */
.catalog-page-wrap { padding: 32px 0; max-width: 1400px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.catalog-sidebar-box { position: sticky; top: 80px; }
.sidebar-card { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.sidebar-card-head { padding: 14px 18px; font-weight: 800; font-size: 14px; background: var(--light); border-bottom: 1px solid var(--gray-light); }
.sidebar-cat-list { padding: 8px 0; }
.sidebar-cat-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; text-decoration: none; color: var(--dark); font-size: 14px; transition: background 0.15s; cursor: pointer; }
.sidebar-cat-item:hover, .sidebar-cat-item.active { background: var(--primary-bg); color: var(--primary); }
.sidebar-cat-item .cat-icon { font-size: 16px; }
.sidebar-cat-item .cat-name { flex: 1; }
.sidebar-cat-item .cat-cnt { font-size: 12px; color: var(--gray); }
.sidebar-cat-child { padding-left: 32px; font-size: 13px; }
.sidebar-price-filter { padding: 16px; }
.price-range-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-input { flex: 1; border: 1px solid var(--gray-light); border-radius: 8px; padding: 6px 10px; font-size: 13px; width: 80px; }
.btn-filter-apply { width: 100%; background: var(--primary); color: white; border: none; border-radius: 8px; padding: 8px; font-weight: 700; cursor: pointer; }
.sidebar-filter-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.filter-check input { accent-color: var(--primary); }
.sidebar-cta { background: #F4F7FB; color: #1E2B3C; border: 1px solid #E5E9F0; border-radius: var(--radius); padding: 18px; margin-top: 4px; }
.sidebar-cta h4 { font-size: 15px; margin-bottom: 6px; color: #1E2B3C; font-weight: 700; }
.sidebar-cta p { font-size: 13px; color: #6b7280; margin-bottom: 14px; line-height: 1.45; }
.sidebar-cta-btn { width: 100%; background: #1E2B3C; color: #fff; border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s ease; }
.sidebar-cta-btn:hover { background: #0F172A; }

/* Catalog toolbar */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.results-count { font-size: 14px; color: var(--gray); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select { border: 1px solid var(--gray-light); border-radius: 8px; padding: 6px 12px; font-size: 14px; }
.view-toggle { display: flex; border: 1px solid var(--gray-light); border-radius: 8px; overflow: hidden; }
.view-btn { width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; font-size: 16px; }
.view-btn.active { background: var(--primary); color: white; }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.products-list { display: flex; flex-direction: column; gap: 16px; }
.products-grid-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Product card */
.product-card { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; position: relative; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-card-img { position: relative; height: 240px; background: white; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 8px; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-no-img { font-size: 48px; }
.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}
.product-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; color: white; }
.product-card-badges .product-badge {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  top: auto;
  left: auto;
}
.badge-hit { background: #f59e0b; }
.badge-new { background: #10b981; }
.badge-sale { background: #ef4444; }
.product-card-body { padding: 12px; }
.product-card-sku { font-size: 11px; color: var(--gray); margin-bottom: 4px; }
.product-card-rating { font-size: 12px; color: #f59e0b; margin-bottom: 4px; }
.product-card-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.product-tag { background: var(--primary-bg); color: var(--primary); font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.product-card-price-block { margin-top: 8px; }
.price-old { font-size: 12px; color: var(--gray); text-decoration: line-through; }
.price-main { font-size: 16px; font-weight: 800; color: var(--dark); }
.price-vat { font-size: 11px; color: var(--gray); }
.price-on-request { font-size: 13px; font-weight: 700; color: var(--primary); }
.product-card-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.btn-add-to-cart { flex: 1; background: var(--primary); color: white; border: none; border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-add-to-cart:hover { background: var(--primary-dark); }
.btn-on-request { flex: 1; background: transparent; color: var(--primary); border: 1px solid var(--primary); border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-compare { width: 36px; background: transparent; border: 1px solid var(--gray-light); border-radius: 8px; cursor: pointer; font-size: 16px; transition: all 0.2s; }
.btn-compare.active { background: var(--primary-bg); border-color: var(--primary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--gray-light); border-radius: 8px; text-decoration: none; color: var(--dark); font-size: 14px; transition: all 0.15s; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:hover:not(.active) { background: var(--primary-bg); border-color: var(--primary); }
.category-seo-text { margin-top: 48px; padding: 32px; background: var(--light); border-radius: var(--radius); font-size: 15px; line-height: 1.8; }

/* Empty state */
.empty-state { text-align: center; padding: 80px 40px; grid-column: 1/-1; }
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--gray); margin-bottom: 24px; }
.empty-state-sm { text-align: center; padding: 40px; }

/* ===== PRODUCT DETAIL ===== */
.product-page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-gallery { }
.product-main-img { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--light); height: 420px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.product-main-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-no-img-lg { font-size: 80px; }
.product-badges-stack { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s; }
.thumb.active, .thumb:hover { border-color: var(--primary); }
.product-info { }
.product-sku { font-size: 13px; color: var(--gray); margin-bottom: 4px; }
.product-brand { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.product-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars-big { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.rating-num { font-weight: 700; }
.rating-link { font-size: 13px; color: var(--primary); }
.product-title { font-size: 26px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.product-short-desc { color: var(--gray); font-size: 15px; margin-bottom: 16px; line-height: 1.6; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.product-price-block { margin-bottom: 20px; }
.price-old-lg { font-size: 18px; color: var(--gray); text-decoration: line-through; }
.price-main-lg { font-size: 32px; font-weight: 800; color: var(--dark); }
.price-on-request-lg { font-size: 22px; font-weight: 700; color: var(--primary); }
.price-note { font-size: 13px; color: var(--gray); margin-top: 4px; }
.discount-badge { display: inline-block; background: #ef4444; color: white; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 6px; margin-top: 6px; }
.product-availability { font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.availability-in_stock { color: #10b981; }
.availability-on_order { color: #f59e0b; }
.availability-out_of_stock { color: #ef4444; }
.product-buy-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--gray-light); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 36px; height: 42px; border: none; background: var(--light); cursor: pointer; font-size: 18px; transition: background 0.15s; }
.qty-control button:hover { background: var(--primary-bg); }
.qty-control input { width: 52px; height: 42px; border: none; border-left: 1px solid var(--gray-light); border-right: 1px solid var(--gray-light); text-align: center; font-size: 16px; font-weight: 700; }
.btn-buy { background: var(--primary); color: white; border: none; border-radius: 10px; padding: 0 24px; height: 42px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.btn-buy:hover { background: var(--primary-dark); }
.btn-request-lg { background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 0 24px; height: 42px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-compare-lg { background: transparent; border: 1px solid var(--gray-light); border-radius: 10px; padding: 0 16px; height: 42px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn-compare-lg.active { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.product-files { background: var(--light); border-radius: 10px; padding: 16px; }
.files-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.files-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { background: white; border: 1px solid var(--gray-light); border-radius: 8px; padding: 6px 14px; font-size: 13px; text-decoration: none; color: var(--dark); transition: all 0.15s; }
.file-btn:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }

/* Product tabs */
.product-tabs-section { margin-bottom: 48px; }
.tabs-nav { display: flex; border-bottom: 2px solid var(--gray-light); margin-bottom: 24px; }
.tab-btn { padding: 12px 24px; border: none; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.product-description { font-size: 15px; line-height: 1.8; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(even) { background: var(--light); }
.spec-key { padding: 10px 16px; font-weight: 600; width: 35%; border-right: 1px solid var(--gray-light); }
.spec-val { padding: 10px 16px; }

/* Reviews */
.reviews-list { margin-bottom: 32px; }
.review-item { padding: 20px; border: 1px solid var(--gray-light); border-radius: var(--radius); margin-bottom: 16px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.review-date { font-size: 13px; color: var(--gray); margin-left: auto; }
.review-text { font-size: 15px; line-height: 1.6; }
.no-reviews { color: var(--gray); margin-bottom: 24px; }
.review-form-wrap { background: var(--light); border-radius: var(--radius); padding: 28px; }
.review-form-wrap h3 { font-size: 18px; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-control { width: 100%; border: 1px solid var(--gray-light); border-radius: 8px; padding: 10px 14px; font-size: 14px; transition: border-color 0.15s; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: var(--primary); }
.form-note { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* Related products */
.related-products { margin-top: 48px; }
.related-products h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }

/* ===== CART ===== */
.cart-page-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 80px 1fr 120px 130px 130px auto; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--gray-light); border-radius: var(--radius); margin-bottom: 16px; }
.cart-item-img { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--light); display: flex; align-items: center; justify-content: center; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--dark); display: block; margin-bottom: 4px; }
.cart-item-sku { font-size: 12px; color: var(--gray); }
.cart-item-avail { font-size: 12px; margin-top: 4px; }
.cart-item-avail.available { color: #10b981; }
.cart-item-avail.on-order { color: #f59e0b; }
.cart-item-unit-price { font-size: 14px; color: var(--gray); }
.cart-item-unit-price--ask,
.cart-item-subtotal--ask { font-size: 13px; color: #6b7280; font-weight: 500; font-style: italic; }
.cart-qty-input { width: 52px; height: 38px; border: 1px solid var(--gray-light); border-radius: 6px; text-align: center; font-size: 14px; font-weight: 700; padding: 0; -webkit-appearance: none; -moz-appearance: textfield; appearance: none; }
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item-subtotal { font-size: 16px; font-weight: 800; }
/* Cart-remove tugmasi: trash icon + "O'chirish" matn (icon-only emoji emas) */
.cart-remove-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid #E5E7EB; cursor: pointer;
  padding: 6px 10px; border-radius: 8px; transition: all 0.15s;
  color: var(--gray, #6b7280); font-size: 13px; font-weight: 500;
  font-family: inherit; white-space: nowrap;
}
.cart-remove-btn:hover { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }
.cart-remove-btn svg { flex-shrink: 0; }
.remove-btn { background: transparent; border: none; cursor: pointer; font-size: 18px; color: var(--gray); padding: 6px; border-radius: 6px; transition: all 0.15s; }
.remove-btn:hover { background: #fee2e2; color: #ef4444; }
.cart-summary-card { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; position: sticky; top: 90px; min-width: 0; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.cart-summary-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.summary-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; margin-bottom: 12px; min-width: 0; word-break: break-word; }
.summary-row > span { min-width: 0; }
.summary-total { font-size: 18px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--gray-light); }
.cart-checkout-btn { display: block; width: 100%; text-align: center; margin-top: 20px; margin-bottom: 10px; }
.cart-continue-btn { display: block; width: 100%; text-align: center; }
.cart-help-card { background: var(--light); border-radius: var(--radius); padding: 20px; }
.cart-help-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cart-help-card p { font-size: 13px; color: var(--gray); margin-bottom: 12px; }

/* "Narxni so'rang" — total noma'lum bo'lganda */
.cart-summary-ask { color: #6b7280; font-style: italic; font-weight: 600; }
.cart-summary-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #F3F4F6;
  border-radius: 8px;
  font-size: 12px;
  color: #4B5563;
  line-height: 1.5;
}
.cart-mini-total--ask { color: #6b7280; font-style: italic; }

/* ===== CHECKOUT ===== */
.checkout-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-section { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.checkout-section h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-full { grid-column: 1 / -1; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-option { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px solid var(--gray-light); border-radius: 10px; cursor: pointer; transition: all 0.15s; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-bg); }
.checkout-submit-btn { width: 100%; padding: 16px; font-size: 17px; }
.checkout-note { font-size: 12px; color: var(--gray); margin-top: 10px; text-align: center; }
.checkout-summary-card { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.checkout-summary-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; }
.checkout-item { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-light); }
.checkout-item-name { flex: 1; font-weight: 600; }
.checkout-item-qty { color: var(--gray); }
.checkout-item-price { font-weight: 700; white-space: nowrap; }
.checkout-total { font-size: 18px; font-weight: 800; padding-top: 16px; }

/* ===== SUCCESS ===== */
.success-page-wrap { display: flex; justify-content: center; align-items: center; padding: 80px 24px; }
.success-card { background: var(--bg); border: 1px solid var(--gray-light); border-radius: 20px; padding: 48px; text-align: center; max-width: 480px; width: 100%; }
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-card h1 { font-size: 28px; margin-bottom: 12px; }
.success-info { background: var(--light); border-radius: 10px; padding: 16px; text-align: left; margin: 24px 0; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn-telegram { background: #0088cc !important; color: #fff !important; border: none; }
.btn-telegram:hover { background: #006da3 !important; }
.telegram-redirect-note { font-size: 13px; color: var(--gray); margin-top: 16px; animation: pulse-text 1.5s ease-in-out infinite; }
@keyframes pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ===== CART EMPTY STATE — boyitilgan (Steve Jobs simplicity) ===== */
.cart-empty {
  display: flex; justify-content: center;
  padding: 32px 24px 48px;
}
.cart-empty__hero {
  background: linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 100%);
  border: 1px solid var(--color-border, #E2E8F0);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 560px; width: 100%;
  text-align: center;
}
.cart-empty__icon {
  font-size: 44px; line-height: 1; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: var(--color-primary-light, #E5EBF5);
  border-radius: 50%;
}
.cart-empty__title {
  font-size: 23px; font-weight: 800;
  color: var(--color-text, #1A2332); margin: 0 0 6px;
}
.cart-empty__lead {
  font-size: 15px; color: var(--color-text-secondary, #4A5568);
  margin: 0 auto 22px; max-width: 420px; line-height: 1.5;
}
.cart-empty__actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.cart-empty__actions .btn-primary,
.cart-empty__actions .btn-outline {
  min-width: 200px;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--color-primary, #023E8A);
  border: 2px solid var(--color-primary, #023E8A);
  border-radius: 10px; padding: 10px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--color-primary, #023E8A); color: #fff;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
@media (max-width: 640px) {
  .cart-empty { padding: 32px 12px; }
  .cart-empty__hero { padding: 40px 20px; border-radius: 16px; }
  .cart-empty__icon { width: 88px; height: 88px; font-size: 48px; }
  .cart-empty__title { font-size: 22px; }
  .cart-empty__actions { width: 100%; flex-direction: column; }
  .cart-empty__actions .btn-primary,
  .cart-empty__actions .btn-outline { width: 100%; min-width: 0; }
}

/* ===== AUTH ===== */
.auth-page-wrap { display: flex; justify-content: center; padding: 48px 24px; }
.auth-card { background: var(--bg); border: 1px solid var(--gray-light); border-radius: 20px; padding: 40px; width: 100%; max-width: 420px; }
.auth-card-wide { max-width: 680px; }
.auth-logo { font-size: 48px; margin-bottom: 8px; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.auth-card p { color: var(--gray); font-size: 14px; margin-bottom: 28px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; }
.auth-links a { color: var(--primary); font-weight: 700; }
.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-full { grid-column: 1 / -1; }
.field-error { color: #ef4444; font-size: 12px; margin-top: 4px; }
.req { color: #ef4444; margin-left: 2px; font-weight: 700; }
.btn-full { width: 100%; }

/* Auth: split links (e.g. forgot password) */
.auth-links--split { display: flex; justify-content: flex-end; margin-top: 8px; }
.auth-forgot { color: var(--gray); font-size: 13px; text-decoration: none; }
.auth-forgot:hover { color: var(--primary); text-decoration: underline; }

/* Password field + toggle eye */
.pwd-field { position: relative; }
.pwd-field .form-control { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; padding: 0;
  border-radius: 8px; font-size: 18px; line-height: 1; color: var(--gray);
}
.pwd-toggle:hover { background: rgba(0,0,0,0.04); color: var(--dark); }
.pwd-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pwd-hint { font-size: 12px; color: var(--gray); margin-top: 4px; }

/* Real-time validation states (HTML5 :invalid only after blur via .was-touched) */
.form-control.was-touched:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}
.form-control.was-touched:valid:not(:placeholder-shown):required {
  border-color: #16a34a;
}
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ===== DASHBOARD ===== */
.dashboard-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.dashboard-nav { background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 16px 0; position: sticky; top: 80px; height: fit-content; }
.dash-nav-link { display: block; padding: 12px 20px; text-decoration: none; color: var(--dark); font-size: 14px; font-weight: 600; transition: all 0.15s; }
.dash-nav-link:hover, .dash-nav-link.active { background: var(--primary-bg); color: var(--primary); }
.dash-nav-logout { color: #ef4444; }
.dashboard-profile-card { display: flex; align-items: center; gap: 20px; background: var(--bg); border: 1px solid var(--gray-light); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: white; font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.profile-info { flex: 1; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.profile-info h3 { font-size: 18px; margin-bottom: 4px; }
.b2b-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: 12px; padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.profile-edit-btn { align-self: flex-start; }
.dashboard-section h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders-table th { background: var(--light); padding: 12px 16px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--gray-light); }
.orders-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); }
.order-status { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.order-status-new { background: #dbeafe; color: #1d4ed8; }
.order-status-confirmed { background: #d1fae5; color: #065f46; }
.order-status-processing { background: #fef3c7; color: #92400e; }
.order-status-shipped { background: #ede9fe; color: #5b21b6; }
.order-status-delivered { background: #d1fae5; color: #065f46; }
.order-status-cancelled { background: #fee2e2; color: #991b1b; }

/* ═══ COMPARE PAGE (v2) ═══ */
.cmp-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.cmp-scroll {
  overflow-x: auto;
  min-width: 0;
}
.cmp-grid {
  display: grid;
  gap: 0;
  min-width: 500px;
}
.cmp-grid--cards {
  gap: 12px;
  margin-bottom: 24px;
  align-items: stretch;
}
.cmp-corner { }
.cmp-product-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 20px 14px 18px;
  text-align: center;
  position: relative;
  transition: box-shadow .2s;
}
.cmp-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.cmp-remove {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff;
  color: #94a3b8; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; line-height: 1;
}
.cmp-remove:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }
.cmp-product-img {
  display: block; width: 130px; height: 130px;
  margin: 0 auto 10px; border-radius: 10px;
  overflow: hidden; background: #f8fafc; border: 1px solid #f1f5f9;
}
.cmp-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cmp-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; background: #f1f5f9;
}
.cmp-product-name {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--dark); text-decoration: none;
  margin-bottom: 6px; line-height: 1.3;
}
.cmp-product-name:hover { color: var(--primary); }
.cmp-product-price { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.cmp-price-request { font-size: 12px; font-weight: 600; color: var(--gray); }
.cmp-cart-btn {
  display: inline-block; padding: 8px 18px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 8px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.cmp-cart-btn:hover { background: var(--primary-dark, #082C66); }
.cmp-cart-btn--secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.cmp-cart-btn--secondary:hover { background: var(--primary); color: #fff; }
.cmp-grid--row { border-bottom: 1px solid #f1f5f9; align-items: center; }
.cmp-grid--alt { background: #f8fafc; }
.cmp-label {
  padding: 13px 14px; font-size: 12px; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: 0.04em;
}
.cmp-val { padding: 13px 14px; font-size: 13px; color: var(--dark); text-align: center; }
.cmp-stock--yes { color: #16a34a; font-weight: 600; }
.cmp-stock--wait { color: #d97706; font-weight: 600; }
.cmp-stock--no { color: #dc2626; font-weight: 600; }
@media (max-width: 640px) {
  .cmp-product-img { width: 90px; height: 90px; }
  .cmp-product-card { padding: 12px 8px; }
  .cmp-label { font-size: 10px; padding: 10px 6px; }
  .cmp-val { font-size: 11px; padding: 10px 6px; }
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.cart-sidebar.open { pointer-events: all; }
.cart-sidebar-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.3s; }
.cart-sidebar.open .cart-sidebar-backdrop { opacity: 1; }
.cart-sidebar-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 380px; background: white; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s; }
.cart-sidebar.open .cart-sidebar-panel { transform: translateX(0); }
.cart-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-light); }
.cart-sidebar-head h3 { font-size: 18px; font-weight: 800; }
.cart-sidebar-head button { background: transparent; border: none; font-size: 20px; cursor: pointer; }
.cart-sidebar-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-sidebar-footer { padding: 16px; border-top: 1px solid var(--gray-light); }

/* Cart mini items */
.cart-mini-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-light); }
.cart-mini-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cart-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-mini-info { flex: 1; }
.cart-mini-name a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--dark); display: block; margin-bottom: 4px; }
.cart-mini-price { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.cart-mini-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 24px; height: 24px; border: 1px solid var(--gray-light); border-radius: 4px; background: transparent; cursor: pointer; font-size: 14px; }
.cart-mini-total { padding: 12px 0; font-size: 15px; font-weight: 700; text-align: right; border-top: 1px solid var(--gray-light); margin-top: 8px; }
.cart-mini-empty { text-align: center; padding: 40px; }
.cart-mini-empty p { color: var(--gray); margin: 12px 0; }

/* Toast — yagona definition yuqorida (1476-band). Bu joydagi dublikat olib tashlandi. */

/* ===== BUTTONS ===== */
.btn-primary { display: inline-block; background: var(--primary); color: white; border: none; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background 0.2s; text-align: center; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-secondary { display: inline-block; background: transparent; color: var(--dark); border: 1px solid var(--gray-light); border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; text-align: center; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline { display: inline-block; background: transparent; color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; text-align: center; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 14px 32px; font-size: 17px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.bc-sep { color: rgba(255,255,255,0.5); }
.bc-current { color: white; }

/* Messages */
.messages-block { margin-bottom: 24px; }
.page-hero-sm { padding: 24px 0; }
.page-hero-sm .page-hero-inner { padding: 0 24px; }
.page-hero-sm h1 { font-size: 28px; }

/* ===== RESPONSIVE NEW ===== */
@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }

  /* Cart item — mobil'da 4 qatorli kompakt layout:
     1: rasm | nom+SKU+badge
     2: narx (alohida qator — overlap bo'lmaydi)
     3: miqdor stepper | subtotal
     4: o'chirish */
  .cart-item {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "img info"
      "price price"
      "qty subtotal"
      "remove remove";
    gap: 10px 14px;
    padding: 14px;
  }
  .cart-item-img { grid-area: img; width: 72px; height: 72px; }
  .cart-item-info { grid-area: info; min-width: 0; }
  .cart-item-name { white-space: normal; overflow-wrap: anywhere; }
  .cart-item-avail { width: fit-content; max-width: 100%; }
  .cart-item-price-col { grid-area: price; align-self: start; }
  .cart-item-unit-price { font-size: 14px; margin-top: 0; }
  .cart-item-qty-col { grid-area: qty; justify-self: start; }
  .cart-item-subtotal-col { grid-area: subtotal; justify-self: end; align-self: center; }
  .cart-item-remove-col { grid-area: remove; justify-self: stretch; padding-top: 4px; }
  .cart-item-remove-col .cart-remove-btn { width: 100%; justify-content: center; }

  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; display: flex; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-2col { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .cart-sidebar-panel { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════
   QULAY MAKON — BOSH SAHIFA (zamonaviy, #0D47A1, mobil birinchi)
   ═══════════════════════════════════════════════════════════ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-hero {
  position: relative;
  min-height: clamp(440px, 78vh, 760px);
  display: flex;
  align-items: center;
  padding: 48px var(--side-padding) 56px;
  color: #fff;
  background-color: #082C66;
  background-image:
    linear-gradient(
      110deg,
      rgba(10, 35, 80, 0.94) 0%,
      rgba(26, 115, 232, 0.78) 48%,
      rgba(66, 133, 244, 0.55) 100%
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%23ffffff' stroke-opacity='0.06'/%3E%3C/svg%3E");
  background-size: cover, 60px 60px;
  background-position: center, center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

/* Ikki ustun: matn + karta panellari (qulay_muhit_v2.html ga mos) */
.home-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 1024px) {
  .home-hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px 52px;
  }
}

.home-hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 1023px) {
  .home-hero__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

.home-hero-card {
  display: block;
  text-align: left;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.home-hero-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.home-hero-card__icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 10px;
}
.home-hero-card__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.25;
}
.home-hero-card__text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin: 0;
}

/* Asosiy CTA — yashil aksent (maket bo‘yicha) */
.home-hero .home-btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(0, 201, 167, 0.35);
}
.home-hero .home-btn--primary:hover {
  background: #00a88d;
  color: #fff;
  box-shadow: 0 12px 36px rgba(0, 201, 167, 0.4);
}

.home-hero__content {
  max-width: 640px;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
}

.home-hero__badge-icon { font-size: 1.1em; }

.home-hero__title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.home-hero__title-accent {
  display: block;
  color: #aecbfa;
  margin-top: 4px;
}

.home-hero__desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
}

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

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.home-btn--primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.home-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.home-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

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

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 36px);
}

.home-hero__stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
}

.home-hero__stat span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Ishonch paneli */
.home-trust {
  background: #fff;
  border-bottom: 1px solid var(--gray-light);
  padding: 28px 24px;
}

.home-trust__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px 28px;
  align-items: start;
}

.home-trust__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.home-trust__icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.home-trust__title {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.home-trust__sub {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.45;
  margin: 0;
}

.home-partners.partners-band {
  background: #f8fafc;
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100% !important;
  }
}

/* Kategoriya kartochkalari */
.home-cats-grid .cat-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-cats-grid .cat-card__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 6px;
}

.home-cats-grid .cat-card__hint {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
  margin: 0;
}

.home-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray);
  padding: 24px;
  font-size: 15px;
}

.home-empty--center {
  max-width: 480px;
  margin: 0 auto;
}

/* Karusel (mahsulotlar, sharhlar) */
.home-featured,
.home-reviews {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.home-carousel__viewport {
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.home-carousel__track {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 8px 4px 16px;
}

.home-carousel__slide {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
}

.home-carousel--reviews .home-carousel__slide {
  flex: 0 0 min(360px, 88vw);
}

.home-carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--gray-light);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  transition: background 0.2s, border-color 0.2s;
}

.home-carousel__btn:hover {
  background: rgba(26, 115, 232, 0.08);
  border-color: var(--primary);
}

.home-carousel__btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.home-carousel__btn--prev::after { content: '‹'; line-height: 1; }
.home-carousel__btn--next::after { content: '›'; line-height: 1; }

@media (max-width: 640px) {
  .home-carousel__btn {
    display: none;
  }
}

/* Mahsulot kartasi (bosh sahifa) */
.home-product-card {
  height: 100%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.28s ease;
  will-change: transform;
}

.home-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(15, 23, 42, 0.08);
}

.home-product-card__media img {
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.home-product-card:hover .home-product-card__media img {
  transform: scale(1.03);
}

.home-product-card__link {
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-product-card__media {
  position: relative;
  height: 200px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.home-product-card__media img {
  width: 100%;
  height: 100%;
  /* contain — mahsulot to'liq ko'rinishi uchun (kesilmaydi) */
  object-fit: contain;
  object-position: center;
}

.home-product-card__placeholder {
  font-size: 56px;
  opacity: 0.35;
}

.home-product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}

.home-product-card__badge {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}

.home-product-card__badge--hit {
  background: var(--accent2);
}

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

.home-product-card__sku {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.home-product-card__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
  margin: 0 0 auto;
  padding-bottom: 12px;
}

.home-product-card__meta {
  margin-top: auto;
}

.home-product-card__price {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
}

.home-product-card__price--req {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.home-product-card__cta {
  margin: 0 18px 16px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.home-product-card__cta:hover {
  background: var(--primary-dark);
}

.home-product-card__cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Sharh kartasi */
.home-review-card {
  margin: 0;
  height: 100%;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.home-review-card__stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.home-review-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
  margin: 0 0 16px;
}

.home-review-card__footer {
  border-top: 1px solid var(--gray-light);
  padding-top: 14px;
}

.home-review-card__name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.home-review-card__product {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.home-review-card__product:hover {
  text-decoration: underline;
}

/* CTA banner — bosh sahifa */
.home-cta.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
}

/* Xarita */
.home-map {
  background: #fff;
  padding: 56px 24px 72px;
  border-top: 1px solid var(--gray-light);
}

.home-map__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.2fr);
  gap: 36px;
  align-items: stretch;
}

.home-map__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.home-map__addr {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 20px;
}

.home-map__contacts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.home-map__contacts li {
  margin-bottom: 8px;
}

.home-map__contacts a {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.home-map__contacts a:hover {
  text-decoration: underline;
}

.home-map__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.home-map__social a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  border: 1px solid var(--gray-light);
  color: var(--dark);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.home-map__social a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.home-map__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.home-map__link:hover {
  text-decoration: underline;
}

.home-map__frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--gray-light);
  box-shadow: var(--card-shadow);
}

.home-map__iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .home-map__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-carousel__viewport {
    scroll-behavior: auto;
  }
  .home-btn--primary:hover,
  .home-product-card:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   KATALOG SAHIFASI — product_list, AJAX filtrlar, cat-pcard
   ═══════════════════════════════════════════════════════════ */

.catalog-page-wrap {
  position: relative;
  padding: 32px 0 64px;
}

.catalog-mobile-toggle {
  display: none;
  width: calc(100% - 48px);
  max-width: 400px;
  margin: 0 auto 16px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.catalog-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.45);
  z-index: 850;
}

.catalog-mobile-backdrop[hidden] {
  display: none !important;
}

.catalog-mobile-backdrop:not([hidden]) {
  display: block;
}

.catalog-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.catalog-sidebar-search {
  padding: 12px 16px 16px;
}

.catalog-search-input {
  width: 100%;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.catalog-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.catalog-price-hint {
  font-size: 11px;
  color: var(--gray);
  margin: 8px 0 10px;
}

.catalog-reset-filters {
  width: calc(100% - 32px);
  margin: 8px 16px 16px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.catalog-reset-filters:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.catalog-toolbar--top {
  flex-wrap: wrap;
}

#catalogResults[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s;
}

.catalog-seo {
  margin-top: 48px;
}

/* Mahsulot kartasi — katalog (brand_redesign_categories.md, Faza D: AliExpress compact) */
.catalog-products.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.catalog-products.products-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--color-border, #E2E8F0);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  font-size: 14px;
}

.cat-pcard:hover {
  border-color: var(--color-primary, #023E8A);
  box-shadow: 0 4px 12px rgba(2, 62, 138, 0.08);
  transform: translateY(-2px);
}

.cat-pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-soft, #F7F9FC);
  overflow: hidden;
}

.cat-pcard__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.cat-pcard:hover .cat-pcard__img { transform: scale(1.05); }

.cat-pcard__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  opacity: 0.35;
}

.cat-pcard__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
}

.cat-pcard__badge--new { background: var(--primary); }
.cat-pcard__badge--hit { background: var(--accent2); }
.cat-pcard__badge--sale { background: #16a34a; }

.cat-pcard__body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.cat-pcard__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text, #1A2332);
  text-decoration: none;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.cat-pcard__title:hover {
  color: var(--primary);
}

.cat-pcard__brand {
  font-size: 11px;
  color: var(--gray);
  margin: 0;
  font-weight: 500;
}

.cat-pcard__sku {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.cat-pcard__price-block {
  margin-top: 2px;
}

.cat-pcard__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary, #023E8A);
}

.cat-pcard__price-old {
  display: block;
  font-size: 12px;
  color: var(--gray);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.cat-pcard__price--request {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.cat-pcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.cat-pcard__btn {
  flex: 1;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

/* Mobile compact — actions yashir, faqat name+price ko'rinadi */
@media (max-width: 640px) {
  .cat-pcard__actions { display: none; }
  .cat-pcard__body { padding: 6px 8px 8px; }
  .cat-pcard__title { font-size: 12px; }
  .cat-pcard__price { font-size: 14px; }
}

.cat-pcard__btn--cart {
  background: var(--primary);
  color: #fff;
}

.cat-pcard__btn--cart:hover {
  background: var(--primary-dark);
}

.cat-pcard__btn--secondary {
  background: var(--bg);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cat-pcard__btn--compare {
  flex: 0 0 auto;
  background: #fff;
  color: var(--dark);
  border: 2px solid var(--gray-light);
}

.cat-pcard__btn--compare:hover,
.cat-pcard__btn--compare.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 115, 232, 0.06);
}

.cat-pcard__btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Ro‘yxat ko‘rinishi */
.products-list .cat-pcard {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
}

.products-list .cat-pcard__media {
  width: 160px;
  min-height: 140px;
  height: auto;
  flex-shrink: 0;
}

.products-list .cat-pcard__body {
  flex: 1;
  min-width: 200px;
  padding: 16px 18px;
}

.products-list .cat-pcard__actions {
  width: 100%;
  flex-basis: 100%;
  padding: 0 18px 16px;
  margin-top: 0;
  border-top: 1px solid var(--gray-light);
  padding-top: 12px;
}

@media (min-width: 640px) {
  .products-list .cat-pcard {
    flex-wrap: nowrap;
  }
  .products-list .cat-pcard__actions {
    width: auto;
    flex-basis: auto;
    flex-direction: column;
    justify-content: center;
    border-top: none;
    border-left: 1px solid var(--gray-light);
    padding: 16px 18px;
    margin-top: 0;
    min-width: 160px;
  }
  .products-list .cat-pcard__btn {
    flex: none;
    width: 100%;
  }
}

.catalog-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg);
  border-radius: var(--radius);
}

.catalog-empty__icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.catalog-empty__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.catalog-empty__text {
  color: var(--gray);
  margin-bottom: 20px;
}

.catalog-pagination {
  margin-top: 28px;
}

.catalog-pagination .page-btn {
  font-family: inherit;
  cursor: pointer;
}

.catalog-pagination .page-btn:disabled {
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .catalog-mobile-toggle {
    display: flex;
  }

  .catalog-sidebar-box {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 92vw);
    max-width: 100%;
    background: #fff;
    z-index: 900;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  }

  .catalog-sidebar-box.is-open {
    transform: translateX(0);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   MAHSULOT SAHIFASI (product.html) — katalog bilan mos
   ═══════════════════════════════════════════════════════════ */

.pd-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.pd-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .pd-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.pd-gallery__main {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-gallery__img {
  width: 100%;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
}

.pd-gallery__placeholder {
  font-size: 120px;
  opacity: 0.25;
  padding: 60px;
}

.pd-gallery__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 28px);
}

.pd-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
}

.pd-badge--hit { background: var(--accent2); }
.pd-badge--new { background: var(--primary); }
.pd-badge--sale { background: #16a34a; }

.pd-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pd-thumb {
  padding: 0;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  flex: 0 0 auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
}

.pd-thumb:hover,
.pd-thumb:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.pd-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.pd-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-sku {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-rating__stars {
  color: #f5a623;
  letter-spacing: 2px;
}

.pd-rating__num {
  font-weight: 800;
}

.pd-rating__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.pd-rating__link:hover {
  text-decoration: underline;
}

.pd-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
  margin: 0;
}

.pd-lead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
  margin: 0;
}

.pd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(26, 115, 232, 0.08);
  color: var(--primary);
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.pd-availability {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 0;
}

.pd-availability--in_stock { color: #0d9488; }
.pd-availability--on_order { color: #d97706; }
.pd-availability--out_of_stock { color: #dc2626; }

.pd-price-box {
  padding: 20px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.pd-price--request {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.pd-price-note {
  font-size: 13px;
  color: var(--gray);
  margin: 8px 0 0;
}

.pd-price-old {
  font-size: 16px;
  color: var(--gray);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.pd-price-current {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.pd-price-currency {
  font-size: 1rem;
  font-weight: 700;
}

.pd-price-vat {
  font-size: 13px;
  color: var(--gray);
  margin: 6px 0 0;
}

.pd-discount-pill {
  display: inline-block;
  margin-top: 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
}

.pd-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
}

.pd-qty__btn {
  width: 44px;
  height: 48px;
  border: none;
  background: var(--bg);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.pd-qty__btn:hover {
  background: rgba(26, 115, 232, 0.08);
}

.pd-qty__input {
  width: 52px;
  height: 48px;
  border: none;
  border-left: 1px solid var(--gray-light);
  border-right: 1px solid var(--gray-light);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

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

.pd-btn--primary:hover {
  background: var(--primary-dark);
}

.pd-btn--outline {
  background: #fff;
  border-color: var(--gray-light);
  color: var(--dark);
}

.pd-btn--outline:hover,
.pd-btn--outline.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 115, 232, 0.06);
}

.pd-stock-msg {
  font-size: 14px;
  color: var(--gray);
  margin: 0;
}

.pd-files {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}

.pd-files__title {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
}

.pd-files__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pd-file-link {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--gray-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.pd-file-link:hover {
  border-color: var(--primary);
}

.pd-section {
  margin-bottom: 48px;
}

.pd-section__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.pd-section__count {
  font-weight: 600;
  color: var(--gray);
}

.pd-prose {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.pd-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.pd-muted {
  color: var(--gray);
  font-size: 15px;
}

.pd-brand__card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.pd-brand__logo {
  max-width: 140px;
  max-height: 80px;
  object-fit: contain;
}

.pd-brand__name {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.pd-brand__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0 0 10px;
}

.pd-brand__web,
.pd-brand__more {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-right: 16px;
  margin-top: 6px;
}

.pd-brand__web:hover,
.pd-brand__more:hover {
  text-decoration: underline;
}

.pd-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
}

.pd-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pd-specs-table th,
.pd-specs-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.pd-specs-table th {
  width: 38%;
  font-weight: 700;
  color: var(--gray);
  background: var(--bg);
}

.pd-specs-table tr:last-child th,
.pd-specs-table tr:last-child td {
  border-bottom: none;
}

.pd-review-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-review {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
}

.pd-review__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pd-review__name {
  font-size: 15px;
}

.pd-review__stars {
  color: #f5a623;
  letter-spacing: 2px;
}

.pd-review__date {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray);
}

.pd-review__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.pd-review-form-wrap {
  max-width: 520px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
}

.pd-review-form__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 18px;
}

.pd-form-row {
  margin-bottom: 14px;
}

.pd-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pd-review-form .form-control,
.pd-review-form input,
.pd-review-form select,
.pd-review-form textarea {
  width: 100%;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.pd-review-form .form-control:focus,
.pd-review-form input:focus,
.pd-review-form select:focus,
.pd-review-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.pd-form-note {
  font-size: 12px;
  color: var(--gray);
  margin-top: 10px;
}

.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.pd-related-card .cat-pcard__actions {
  margin-top: 12px;
}

.bc-current {
  word-break: break-word;
  max-width: 100%;
}

/* ── Category images ── */
.nav-cat-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}
.mega-col__head .nav-cat-icon {
  width: 28px;
  height: 28px;
  padding: 2px;
  background: #e3f2fd;
  border-radius: 7px;
}
.sidebar-cat-img {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  margin-right: 6px;
  flex-shrink: 0;
}
.sidebar-cat-placeholder {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #e3f2fd;
  color: #0D47A1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
  margin-right: 6px;
}
.cat-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.cat-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0D47A1 0%, #082C66 100%);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
}
.cat-hero-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}
.cat-hero-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e3f2fd;
  color: #0D47A1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.cat-panel-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}
.dash-cat-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.dash-cat-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 18px;
}
.cat-big-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.cat-big-card-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #0D47A1 0%, #082C66 100%);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
}
.cat-full-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.cat-full-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0D47A1 0%, #082C66 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dash-cat-img-preview {
  max-width: 200px;
  max-height: 150px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  margin-bottom: 12px;
}

/* ── Home: Katalog bo'limlari section ── */
.home-catalog-sections {
  padding: 64px 0;
  background: #f8fafc;
}
.home-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .home-catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .home-catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .home-catalog-sections { padding: 40px 0; }
}
@media (max-width: 480px) {
  .home-catalog-grid { grid-template-columns: 1fr; }
}
.home-catalog-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.home-catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.home-catalog-card__media {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0D47A1, #082C66);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-catalog-card__letter {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}
.home-catalog-card__body {
  flex: 1;
  min-width: 0;
}
.home-catalog-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: var(--dark);
}
.home-catalog-card__count {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
  display: block;
}
.home-catalog-card__arrow {
  font-size: 18px;
  color: var(--gray-light);
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.home-catalog-card:hover .home-catalog-card__arrow {
  color: var(--primary);
  transform: translateX(3px);
}
.home-catalog-cta {
  text-align: center;
  margin-top: 32px;
}
.home-catalog-cta__btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.home-catalog-cta__btn:hover {
  background: var(--primary-dark, #082C66);
  transform: translateY(-1px);
}

/* ── Category Index Page ── */
.catidx-section {
  padding: 48px 0 64px;
}
.catidx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .catidx-grid { grid-template-columns: 1fr; }
  .catidx-section { padding: 32px 0 48px; }
}
.catidx-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
  transition: box-shadow .2s;
}
.catidx-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.catidx-card__main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.catidx-card__main:hover {
  background: #f8fafc;
}
.catidx-card__media {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0D47A1, #082C66);
  display: flex;
  align-items: center;
  justify-content: center;
}
.catidx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catidx-card__letter {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}
.catidx-card__body {
  flex: 1;
  min-width: 0;
}
.catidx-card__name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--dark);
}
.catidx-card__desc {
  font-size: 13px;
  color: var(--gray);
  margin: 0 0 6px;
  line-height: 1.4;
}
.catidx-card__count {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}
.catidx-card__arrow {
  font-size: 22px;
  color: var(--gray-light);
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.catidx-card__main:hover .catidx-card__arrow {
  color: var(--primary);
  transform: translateX(4px);
}
.catidx-children {
  border-top: 1px solid #f1f5f9;
  padding: 12px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catidx-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.catidx-child:hover {
  background: #e3f2fd;
  color: var(--primary);
}
.catidx-child__img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}
.catidx-child__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  opacity: .5;
  flex-shrink: 0;
}
.catidx-child__name {
  white-space: nowrap;
}
.catidx-child__count {
  font-size: 11px;
  color: var(--gray);
  font-weight: 400;
}
.catidx-footer {
  text-align: center;
  margin-top: 40px;
}
.catidx-footer__btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.catidx-footer__btn:hover {
  background: var(--primary-dark, #082C66);
  transform: translateY(-1px);
}
/* ═══════════════════════════════════════════════════════════════════════════
   QULAY MAKON — RESPONSIVE SYSTEM (v8)
   Breakpoints: 320–480 | 481–640 | 641–900 | 901–1200 | 1201–1440 | 1441–1920 | 1921+
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
  max-width: min(var(--max-width), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

/* ════════════════════════════════════════════════
   TOPBAR — yordamchi yuqori panel (ish vaqti / 24-7 / kontakt)
   ════════════════════════════════════════════════ */
.topbar {
  background: #023E8A;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}
.topbar__info-group,
.topbar__contact-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.2;
}
.topbar__info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.topbar__info-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.topbar__divider {
  opacity: 0.45;
  user-select: none;
}
.topbar__online {
  font-weight: 600;
  color: #fff;
}
.topbar__phone,
.topbar__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}
.topbar__phone:hover,
.topbar__email:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.topbar__phone svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Mobile fallback — joyni saqlash uchun ish vaqti yashiriladi */
@media (max-width: 768px) {
  .topbar__inner { gap: 8px; min-height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 12px; }
  .topbar__hours { display: none; }
  .topbar__divider { display: none; }
  .topbar__email { display: none; }
}
@media (max-width: 480px) {
  .topbar__online { font-size: 11.5px; }
  .topbar__phone { font-size: 12px; }
}

/* Eski class'lar uchun lang switcher — saqlanadi */
.topbar-lang-btn.is-active {
  background: transparent !important;
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Header shell & header ── */
.site-header-shell {
  transition: box-shadow var(--transition), min-height var(--transition);
}
.site-header-shell.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header.scrolled {
  box-shadow: none;
}
.header-inner {
  max-width: min(1320px, 100%);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
  min-height: 56px;
  height: auto;
  justify-content: space-between;
}
@media (min-width: 641px) {
  .header-inner {
    min-height: 72px;
  }
}
.logo-img {
  width: 40px;
  height: 40px;
}
@media (min-width: 641px) {
  .logo-img {
    width: 44px;
    height: 44px;
  }
}
.header-brand-name {
  font-size: clamp(0.85rem, 2vw, 1rem);
}
.header-icon-btn {
  min-width: 44px;
  min-height: 44px;
}

/* ── Nav ── */
.nav-inner {
  max-width: var(--max-width);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}
.nav-links--desktop {
  gap: clamp(16px, 2.5vw, 32px);
}
.nav-link {
  position: relative;
  padding: 10px 0;
  transition: color var(--transition);
}
.nav-item--mega:hover .nav-link,
.nav-item:hover > .nav-link,
.nav-links--desktop .nav-item > .nav-link:hover {
  background: transparent;
}
.nav-links--desktop .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity var(--transition), transform var(--transition);
}
.nav-item:hover > .nav-link::after,
.nav-item--mega:hover .nav-link::after {
  opacity: 1;
  transform: scaleX(1);
}
.mega-menu {
  animation: megaFade 0.25s ease;
}
@keyframes megaFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .mega-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}
.nav-mobile-drawer {
  max-width: min(400px, 92vw);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Hero (home) — typography only (min-height from .home-hero block below) ── */
.home-hero__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-title,
.home-hero__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
}
.home-hero__desc,
.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  max-width: 560px;
  line-height: 1.65;
}
.home-hero__actions {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
@media (min-width: 481px) {
  .home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
.home-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
}
@media (max-width: 480px) {
  .home-btn {
    width: 100%;
    justify-content: center;
  }
}
.home-hero__layout {
  gap: clamp(20px, 4vw, 48px);
}
.home-hero__cards {
  grid-template-columns: 1fr;
}
@media (min-width: 641px) {
  .home-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 901px) {
  .home-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Partners (cheksiz marquee — HTML da ikki marta takrorlangan blok, -50% keyframes) ── */
.partners-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  width: max-content;
  padding: 8px 0;
  animation: scroll-partners 36s linear infinite;
}
.partners-track:hover {
  animation-play-state: paused;
}

/* Static variant — 4 dan kam partner: marquee yo'q, markazlashtirilgan,
   dublikatsiya HTML'da render qilinmaydi */
.partners-band--static .partners-track-wrap {
  mask-image: none;
}
.partners-band--static .partners-track,
.partners-track[data-marquee="false"] {
  animation: none !important;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
.partner-item {
  flex: 0 0 auto;
  flex-shrink: 0;
}
.partner-item img {
  max-height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter var(--transition), opacity var(--transition), transform var(--transition);
}
.partner-item:hover img {
  filter: none;
  opacity: 1;
}

/* ── Category grids ── */
.cat-grid,
.home-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
@media (max-width: 900px) {
  .cat-grid,
  .home-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cat-grid,
  .home-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.home-catalog-card {
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-catalog-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.home-catalog-card__name {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Product cards (global + home) ── */
.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.product-card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}
.product-card__name {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--blue);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 901px) {
  .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}
.service-card .service-btn {
  margin-top: auto;
  min-height: 44px;
}
.service-icon {
  font-size: 48px;
  line-height: 1;
}

/* ── About stats ── */
.about-stats,
.home-hero__stats {
  display: grid;
  gap: 16px;
}
.about-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 901px) {
  .about-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.astat strong,
.home-hero__stat strong {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--blue);
}

/* ── Reviews carousel ── */
.home-carousel--reviews .home-carousel__slide {
  flex: 0 0 100%;
}
@media (min-width: 641px) {
  .home-carousel--reviews .home-carousel__slide {
    flex: 0 0 calc(50% - 10px);
  }
}
@media (min-width: 901px) {
  .home-carousel--reviews .home-carousel__slide {
    flex: 0 0 calc(33.333% - 14px);
  }
}
.home-review-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── CTA ── */
.cta-inner {
  max-width: var(--max-width);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
  flex-direction: column;
  text-align: center;
  gap: 24px;
}
@media (min-width: 641px) {
  .cta-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-form {
  width: 100%;
  max-width: 520px;
  justify-content: center;
}
.cta-input {
  flex: 1 1 200px;
  min-width: 0;
  width: auto;
}
.cta-submit {
  min-height: 44px;
}

/* ── Footer accordion ── */
.footer-accordion {
  border: none;
  padding: 0;
  margin: 0;
}
/* Desktopda doim ochiq — accordion faqat mobilda ishlaydi */
@media (min-width: 641px) {
  .footer-accordion .footer-accordion__body {
    display: block !important;
  }
  .footer-accordion__summary {
    pointer-events: none;
  }
}
.footer-accordion__summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 14px;
  padding: 8px 0;
  position: relative;
}
.footer-accordion__summary::-webkit-details-marker {
  display: none;
}
.footer-accordion__summary::after {
  content: "";
  display: none;
}
@media (max-width: 640px) {
  .footer-accordion__summary::after {
    display: inline-block;
    float: right;
    content: "+";
    font-weight: 400;
    opacity: 0.7;
  }
  .footer-accordion[open] .footer-accordion__summary::after {
    content: "−";
  }
}
.footer-accordion__body a {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-accordion__body a:hover {
  color: #FFFFFF;
}
footer.site-footer .site-footer__grid {
  grid-template-columns: 1.35fr 1fr 1fr 1fr minmax(200px, 1.05fr);
}
@media (max-width: 1100px) {
  footer.site-footer .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__newsletter {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  footer.site-footer .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-footer__brand {
    padding-bottom: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}
.site-footer__social-btn {
  min-width: 36px;
  min-height: 36px;
}
.footer-bottom-inner {
  max-width: var(--max-width);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
  justify-content: center;
  text-align: center;
}
@media (min-width: 641px) {
  .footer-bottom-inner {
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Catalog page (toolbar sticky; sidebar overlay rules exist above) ── */
.catalog-page-wrap {
  max-width: min(1400px, 100%);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}
@media (max-width: 900px) {
  .catalog-sidebar-box {
    z-index: 900;
  }
}

/* Mobile: katalog grid header search bilan AYNI kenglik (12px padding) */
@media (max-width: 768px) {
  .catalog-page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}
.catalog-mobile-toggle {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 55;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .catalog-mobile-toggle {
    display: flex;
  }
}
.catalog-toolbar--sticky {
  position: sticky;
  top: calc(var(--header-sticky-offset, 0px) + 8px);
  z-index: 40;
  background: rgba(244, 247, 251, 0.92);
  backdrop-filter: blur(10px);
  /* Avval: margin: 0 calc(-1 * var(--side-padding)) 16px; — kategoriyaning ustiga chiqib turardi.
     Hozir: faqat pastki gap, gorizontal margin yo'q — to'liq catalog-main ichida qoladi. */
  margin: 0 0 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

/* ── Product detail ── */
@media (max-width: 900px) {
  .pd-top {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .pd-gallery__thumbs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .pd-gallery__thumbs::-webkit-scrollbar {
    display: none;
  }
  .pd-thumb {
    scroll-snap-align: start;
  }
}
.pd-buy-track {
  min-height: 0;
}
@media (max-width: 640px) {
  .pd-page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .pd-buy-track {
    min-height: 72px;
  }
  .pd-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    margin: 0 !important;
    padding: 12px var(--side-padding) calc(12px + env(safe-area-inset-bottom)) !important;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .pd-btn {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    padding: 0 12px;
  }
}

/* ── Scroll animations ── */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lazy images: subtle fade */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.35s ease;
}
img[loading="lazy"].img-loaded {
  opacity: 1;
}
img[loading="eager"],
img:not([loading]) {
  opacity: 1;
}

/* Ultrawide: contain content */
@media (min-width: 1921px) {
  body {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--bg) 120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  img[loading="lazy"] {
    opacity: 1;
  }
}

html:not(.js) [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Catalog sidebar: redesigned (brand_redesign_categories.md, Faza E) ──
   - Header: to'q ko'k bg
   - Chevron faqat subkategoriyali parent uchun
   - Toggle: smooth max-height animation
   - Active: brand light highlight
   - Indent sub items + bg-soft tint
*/

/* Sidebar card "Kategoriyalar" — kompakt, oq fonli (avval qiz-ko'k tab edi, "chiqib turgan" effektni olib tashlash) */
.catalog-sidebar-inner .sidebar-card:first-of-type {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.catalog-sidebar-inner .sidebar-card:first-of-type .sidebar-card-head {
  background: #F9FAFB;
  color: #1F2937;
  border-bottom: 1px solid #E5E7EB;
  border-radius: 0;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  position: static;
  transform: none;
  box-shadow: none;
}

.sidebar-cat-group {
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border, #E2E8F0);
}
.sidebar-cat-group:last-child { border-bottom: none; }

.sidebar-cat-parent {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  transition: background 0.15s;
}
.sidebar-cat-parent:hover {
  background: var(--color-bg-soft, #F7F9FC);
}

/* Category link row — full width */
.sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--color-text, #1A2332);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.sidebar-cat-link:hover {
  color: var(--color-primary, #023E8A);
}
.sidebar-cat-link.active {
  color: var(--color-primary, #023E8A);
  font-weight: 600;
  background: var(--color-primary-light, #E5EBF5);
}
.sidebar-cat-link .cat-name { flex: 1; line-height: 1.35; }
.sidebar-cat-link .cat-cnt {
  font-size: 12px;
  color: var(--color-text-subtle, #718096);
  margin-left: 8px;
}

/* Toggle button — chevron faqat children bo'lsa, o'ngda */
.sidebar-cat-toggle {
  background: none;
  border: none;
  padding: 0 12px;
  min-width: 36px;
  min-height: 38px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 2;
  color: var(--color-text-subtle, #718096);
  transition: color 0.2s;
}
.sidebar-cat-toggle:hover { color: var(--color-primary, #023E8A); }
.sidebar-cat-toggle:focus-visible {
  outline: 2px solid var(--color-primary, #023E8A);
  outline-offset: -2px;
  border-radius: 4px;
}

/* Chevron arrow — 90° aylanadi ochilganda */
.toggle-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 14px;
  width: auto;
  text-align: center;
  line-height: 1;
}
.sidebar-cat-group.is-open .toggle-arrow {
  transform: rotate(90deg);
  color: var(--color-primary, #023E8A);
}

/* Children container — smooth open/close */
.sidebar-cat-group .sidebar-cat-children {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
  background: var(--color-bg-soft, #F7F9FC);
}
.sidebar-cat-group .sidebar-cat-children > * {
  overflow: hidden;
}
.sidebar-cat-group.is-open .sidebar-cat-children {
  grid-template-rows: 1fr;
}
/* Fallback for older browsers — keep basic display behavior */
@supports not (grid-template-rows: 0fr) {
  .sidebar-cat-group .sidebar-cat-children { display: none; padding-left: 0; }
  .sidebar-cat-group.is-open .sidebar-cat-children { display: block; }
}

.sidebar-cat-child-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 8px 32px;
  color: var(--color-text-secondary, #4A5568);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(2, 62, 138, 0.04);
}
.sidebar-cat-child-link:last-child { border-bottom: none; }
.sidebar-cat-child-link:hover {
  background: var(--color-primary-light, #E5EBF5);
  color: var(--color-primary, #023E8A);
}
.sidebar-cat-child-link.active {
  background: var(--color-primary-light, #E5EBF5);
  color: var(--color-primary, #023E8A);
  font-weight: 600;
}
.sidebar-cat-child-link .cat-cnt {
  font-size: 11px;
  color: var(--color-text-subtle, #718096);
  margin-left: auto;
}

/* ════════════════════════════════════════════════════════════
   CATALOG SIDEBAR — clean text rows (2026-05-08)
   - Avatar (rasm/harf) olib tashlandi: ajratish uchun divider + bo'sh joy.
   - Subkategoriya animatsiyasi grid-trick'idan oddiy display toggle'ga
     o'tkazildi: avval ko'p bola element bitta grid hujayrada ustma-ust
     to'planib qolayotgan edi (mobil'da matnlar bir-birining ustiga chiqib
     ko'rinmasdi).
   ════════════════════════════════════════════════════════════ */
.sidebar-cat-link .sidebar-cat-img,
.sidebar-cat-link .sidebar-cat-placeholder,
.sidebar-cat-child-link .sidebar-cat-img,
.sidebar-cat-child-link .sidebar-cat-placeholder {
  display: none !important;
}

/* Asosiy kategoriya satri — kengroq tap-target, aniq divider */
.sidebar-cat-link {
  padding: 14px 16px;
  min-height: 48px;
}

/* Subkategoriyalar — oddiy block toggle (overlap bug fix) */
.sidebar-cat-group .sidebar-cat-children {
  display: none;
  grid-template-rows: none;
  background: var(--color-bg-soft, #F7F9FC);
  transition: none;
}
.sidebar-cat-group .sidebar-cat-children > * {
  overflow: visible;
}
.sidebar-cat-group.is-open .sidebar-cat-children {
  display: block;
  grid-template-rows: none;
}
@supports not (grid-template-rows: 0fr) {
  .sidebar-cat-group .sidebar-cat-children { display: none; padding-left: 0; }
  .sidebar-cat-group.is-open .sidebar-cat-children { display: block; }
}

/* Subkategoriya satri — har biri alohida qator, yetarli line-height */
.sidebar-cat-child-link {
  padding: 12px 16px 12px 28px;
  min-height: 44px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(2, 62, 138, 0.06);
}
.sidebar-cat-child-link .cat-name {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Mobil — kategoriyalar orasi yanada keng, aniq separator */
@media (max-width: 768px) {
  .sidebar-cat-link {
    padding: 16px 16px;
    min-height: 52px;
    font-size: 15px;
  }
  .sidebar-cat-child-link {
    padding: 14px 16px 14px 28px;
    min-height: 48px;
    font-size: 14px;
  }
  .sidebar-cat-group {
    border-bottom: 1px solid var(--color-border, #E2E8F0);
  }
}

/* Home: catalog CTA right below featured products carousel */
.home-featured__footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.home-catalog-cta-wrap {
  text-align: center;
  margin: 24px 0 8px;
  padding: 0;
}
.btn-catalog-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 48px;
  min-width: 260px;
  background: linear-gradient(165deg, #1565C0 0%, #0D47A1 42%, #0D47A1 100%);
  color: #fff;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 6px rgba(13, 71, 161, 0.12),
    0 12px 32px rgba(26, 115, 232, 0.38);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.btn-catalog-link:hover {
  background: linear-gradient(165deg, #1565C0 0%, #0D47A1 45%, #082C66 100%);
  box-shadow:
    0 8px 16px rgba(13, 71, 161, 0.18),
    0 20px 44px rgba(26, 115, 232, 0.48);
  transform: translateY(-3px);
  filter: brightness(1.03);
}
.btn-catalog-link:active {
  transform: translateY(-1px);
  box-shadow:
    0 3px 8px rgba(13, 71, 161, 0.2),
    0 8px 20px rgba(26, 115, 232, 0.35);
}
.btn-catalog-link:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.55);
  outline-offset: 4px;
}
@media (max-width: 480px) {
  .home-featured__footer {
    margin-top: 20px;
    padding: 0 16px;
  }
  .home-catalog-cta-wrap {
    margin: 20px 0 8px;
    padding: 0 16px;
  }
  .btn-catalog-link {
    width: 100%;
    max-width: 360px;
    min-width: 0;
    padding: 16px 28px;
    font-size: 16px;
  }
}


/* ═══════════════════════════════════════════════════════════
   MOBIL OPTIMIZATSIYA — QULAY MAKON
   ═══════════════════════════════════════════════════════════ */

/* ── Topbar: mobilda yashirish ── */
@media (max-width: 768px) {
  .topbar.site-topbar {
    display: none;
  }
}

/* ── Header: mobilda kompakt ── */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }
  .logo-img,
  .logo-icon {
    width: 36px;
    height: 36px;
  }
  .header-brand-name {
    font-size: 14px;
  }
  .header-brand-tag {
    font-size: 10px;
  }
  .header-logo {
    gap: 8px;
  }
  .header-right {
    gap: 6px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .header-icon-btn__glyph {
    font-size: 16px;
  }
  .header-icon-btn__badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    top: 2px;
    right: 2px;
  }
  .header-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    gap: 4px;
    padding: 0 9px;
  }
  .header-search-open {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
  }
  /* Til tugmasini kichikroq qilish */
  #qmLangBtn {
    padding: 4px 8px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 52px;
    padding: 0 10px;
  }
  .header-brand {
    display: none;
  }
  .logo-img,
  .logo-icon {
    width: 34px;
    height: 34px;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
  }
  .header-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .header-search-open {
    width: 36px;
    height: 36px;
  }
  /* Solishtirish tugmasini yashirish */
  .header-icon-btn--compare {
    display: none;
  }
}

/* ── Nav bar: mobilda yashirish ── */
@media (max-width: 1024px) {
  nav.site-nav,
  .site-nav {
    padding: 0;
  }
  .nav-inner {
    display: none;
  }
}

/* ── Hero section: mobil optimizatsiya ── */
@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
    padding: 32px var(--side-padding) 36px;
  }
  .home-hero__inner {
    padding-left: 0;
    padding-right: 0;
  }
  .home-hero__layout {
    gap: 24px;
  }
  .home-hero__content {
    max-width: 100%;
  }
  .home-hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 12px;
  }
  .home-hero__desc {
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .home-hero__badge {
    font-size: 11px;
    padding: 6px 12px;
    gap: 6px;
    margin-bottom: 14px;
  }
  .home-hero__actions {
    margin-bottom: 24px;
  }
  .home-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 10px;
  }
  .home-hero__stats {
    gap: 20px;
  }
  .home-hero__stat strong {
    font-size: 1.3rem;
  }
  .home-hero__stat span {
    font-size: 11px;
  }
  /* Kartalar 2x2 grid */
  .home-hero__cards {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 10px;
  }
  .home-hero-card {
    padding: 14px 12px;
    border-radius: 14px;
  }
  .home-hero-card__icon {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .home-hero-card__title {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .home-hero-card__text {
    font-size: 11px;
    line-height: 1.35;
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 24px 16px 28px;
  }
  .home-hero__title {
    font-size: 1.4rem;
  }
  .home-hero__desc {
    font-size: 13px;
  }
  .home-hero__actions {
    flex-direction: column;
    margin-bottom: 20px;
  }
  .home-hero__actions .home-btn {
    width: 100%;
    justify-content: center;
  }
  .home-hero__stats {
    justify-content: space-between;
    gap: 12px;
  }
  .home-hero__cards {
    gap: 8px;
  }
  .home-hero-card {
    padding: 12px 10px;
  }
  .home-hero-card__title {
    font-size: 12px;
  }
  .home-hero-card__text {
    font-size: 10px;
  }
}

/* ── Eski hero (page-hero) ── */
@media (max-width: 768px) {
  .hero {
    padding: 36px 16px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 14px;
  }
  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-stats {
    gap: 16px;
  }
  .hero-stat strong {
    font-size: 22px;
  }
}

/* ── Trust band: mobilda kompakt ── */
@media (max-width: 768px) {
  .home-trust {
    padding: 20px 16px;
  }
  .home-trust__inner {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .home-trust__icon {
    font-size: 22px;
  }
  .home-trust__title {
    font-size: 13px;
  }
  .home-trust__sub {
    font-size: 11px;
  }
}
@media (max-width: 480px) {
  .home-trust__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-trust__item {
    gap: 10px;
  }
}

/* ── Section sarlavhalari: mobilda kichikroq ── */
@media (max-width: 768px) {
  section {
    padding: 36px var(--side-padding);
  }
  .section-title {
    font-size: 22px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  section {
    padding: 28px var(--side-padding);
  }
  .section-title {
    font-size: 20px;
  }
}

/* ── Partners carousel: mobilda kichikroq ── */
@media (max-width: 768px) {
  .partners-band {
    padding: 18px 0;
  }
  .partner-item {
    padding: 0 20px;
  }
  .partner-item img {
    height: 28px;
  }
  .partners-band::before,
  .partners-band::after {
    width: 60px;
  }
}

/* ── Checkout/Cart: mobilda yaxshiroq ── */
@media (max-width: 640px) {
  .checkout-wrap {
    padding: 16px;
  }
  .checkout-section h3 {
    font-size: 16px;
  }
  .checkout-submit-btn {
    width: 100%;
    font-size: 15px;
  }
  .checkout-summary-card {
    padding: 16px;
  }
}

/* ── Success page: mobilda yaxshiroq ── */
@media (max-width: 640px) {
  .success-page-wrap {
    padding: 40px 16px;
  }
  .success-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .success-icon {
    font-size: 48px;
    margin-bottom: 12px;
  }
  .success-card h1 {
    font-size: 22px;
  }
  .success-actions {
    flex-direction: column;
  }
  .success-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .btn-telegram {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* ── Auth sahifalari: mobilda yaxshiroq ── */
@media (max-width: 640px) {
  .auth-page-wrap {
    padding: 24px 16px;
  }
  .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .auth-card h1 {
    font-size: 22px;
  }
}

/* ── Blog: mobilda yaxshiroq ── */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Page hero: mobilda kompakt ── */
@media (max-width: 768px) {
  .page-hero {
    padding: 28px 16px;
  }
  .page-hero h1 {
    font-size: 22px;
  }
  .page-hero-sm {
    padding: 20px 16px;
  }
  .breadcrumb {
    font-size: 12px;
  }
}

/* ── Mobile drawer yaxshilash ── */
@media (max-width: 1024px) {
  .nav-mobile-drawer {
    width: min(320px, 85vw);
  }
  .nav-mobile-drawer__head {
    padding: 16px 20px;
  }
  .nav-mobile-drawer__body {
    padding: 8px 20px 24px;
  }
  .nav-mobile-link {
    padding: 12px 0;
    font-size: 15px;
  }
  .nav-mobile-auth {
    padding: 12px 0 16px;
  }
  .nav-mobile-auth__link {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
  .nav-mobile-cat-btn {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 10px;
  }
}

/* ── Contact page: mobilda yaxshiroq ── */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── About page: mobilda yaxshiroq ── */
@media (max-width: 768px) {
  .about-grid,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Safe area: iPhone notch/home bar ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .nav-mobile-drawer__body {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ── Touch target minimum 44px ── */
@media (max-width: 768px) {
  .nav-mobile-link,
  .nav-mobile-auth__link,
  .dropdown a,
  .mega-col__list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── Smooth scroll mobilda ── */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px;
  }
}

/* ═══════════════════════════════════════════════════
   CURRENCY SWITCHER
   ═══════════════════════════════════════════════════ */
.currency-switcher {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}
.currency-btn {
  background: transparent;
  border: none;
  color: #b8d4f8;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.06em;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background .15s, color .15s;
}
.currency-btn:last-child {
  border-right: none;
}
.currency-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.currency-btn.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
@media (max-width: 480px) {
  .currency-switcher { font-size: 10px; }
  .currency-btn { padding: 4px 7px; font-size: 10px; }
}

/* ═══════════════════════════════════════════════════
   CATALOG INDEX — dostupnayastrana.ru style
   ═══════════════════════════════════════════════════ */
.catidx-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .catidx-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catidx-grid { grid-template-columns: 1fr; }
}
.catidx-card__media {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  background: #f0f7ff;
  border: 2px solid #e3f2fd;
}
.catidx-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.catidx-card__letter {
  color: var(--primary);
  font-size: 2rem;
}
.catidx-children {
  gap: 6px 8px;
}
.catidx-child {
  font-size: 12.5px;
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.catidx-child:hover {
  border-color: var(--primary);
  background: #e3f2fd;
}

/* ═══════════════════════════════════════════════════
   REDIRECT PROGRESS BAR (success page)
   ═══════════════════════════════════════════════════ */
.telegram-redirect-note {
  font-size: 14px;
  color: var(--gray);
  margin-top: 16px;
}
#countdownNum {
  font-weight: 700;
  color: var(--primary);
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════
   PRODUCT CARD HOVER — rasm kattalashtirish
   ═══════════════════════════════════════════════════ */
.cat-pcard__media {
  overflow: hidden;
}
.cat-pcard__img {
  transition: transform .35s ease;
}
.cat-pcard:hover .cat-pcard__img {
  transform: scale(1.08);
}
.cat-pcard {
  transition: box-shadow .25s ease, transform .25s ease;
}
.cat-pcard:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}

/* Product card in category.html (old style) */
.product-card {
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.product-card-img {
  overflow: hidden;
}
.product-card-img img {
  transition: transform .35s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════
   PRODUCT DETAIL — new sections
   ═══════════════════════════════════════════════════ */
.pd-color {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 4px;
}
.pd-color strong {
  color: var(--dark);
}

/* Quick buy button */
.pd-btn--quickbuy {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 20px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  text-align: center;
}
.pd-btn--quickbuy:hover {
  background: var(--primary);
  color: #fff;
}

/* Passport file link highlight */
.pd-file-link--passport {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}
.pd-file-link--passport:hover {
  background: #f59e0b;
  color: #fff;
}

/* Video grid */
.pd-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.pd-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0d1b2a;
}
.pd-video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.pd-video-title {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

/* Bundle / compatible products */
.pd-bundle-subtitle {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}
.pd-bundle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pd-bundle-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pd-bundle-item:last-child {
  border-bottom: none;
}
.pd-bundle-item__img {
  width: 64px; height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.pd-bundle-item__img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 4px;
}
.pd-bundle-item__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 24px;
}
.pd-bundle-item__info {
  flex: 1;
  min-width: 0;
}
.pd-bundle-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  line-height: 1.3;
}
.pd-bundle-item__name:hover {
  color: var(--primary);
}
.pd-bundle-item__desc {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}
.pd-bundle-item__sku {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
.pd-bundle-item__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.pd-bundle-item__request {
  font-size: 12px;
  color: var(--gray);
}
.pd-bundle-item__action {
  flex-shrink: 0;
}
.pd-btn--sm {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.pd-btn--sm:hover {
  background: var(--primary-dark, #082C66);
}

@media (max-width: 640px) {
  .pd-bundle-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pd-bundle-item__price { width: auto; }
  .pd-videos-grid { grid-template-columns: 1fr; }
}

/* === Cookie Consent Banner (sayt brand uslubida) === */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  color: var(--text, #1E2B3C);
  border-radius: 16px;
  padding: 18px 22px;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(2, 62, 138, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(2, 62, 138, 0.12);
  font-size: 14px;
}
.cookie-consent[hidden] { display: none !important; }

.cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cookie-consent__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: linear-gradient(135deg, #E6EFFB, #F4F7FB);
  border-radius: 12px;
}

.cookie-consent__text {
  flex: 1;
  min-width: 220px;
}
.cookie-consent__text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #1E2B3C);
}
.cookie-consent__text p {
  margin: 0;
  color: #64748B;
  line-height: 1.5;
  font-size: 13px;
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-consent .btn {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-consent .btn-primary {
  background: var(--primary, #023E8A);
  color: #fff;
  border-color: var(--primary, #023E8A);
}
.cookie-consent .btn-primary:hover {
  background: var(--primary-dark, #03306E);
  border-color: var(--primary-dark, #03306E);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 62, 138, 0.25);
}
.cookie-consent .btn-secondary {
  background: #ffffff;
  color: var(--text, #1E2B3C);
  border-color: #E2E8F0;
}
.cookie-consent .btn-secondary:hover {
  border-color: var(--primary, #023E8A);
  color: var(--primary, #023E8A);
  background: #F8FAFC;
}

@media (max-width: 640px) {
  .cookie-consent {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
    border-radius: 14px;
  }
  .cookie-consent__inner { gap: 12px; }
  .cookie-consent__icon { width: 40px; height: 40px; font-size: 22px; }
  .cookie-consent__actions {
    width: 100%;
    flex-direction: column;
  }
  .cookie-consent__actions .btn { width: 100%; padding: 11px; }
  .cookie-consent .btn-secondary { order: 2; }
  .cookie-consent .btn-primary { order: 1; }
}


/* =====================================================
   About cover + gallery + extra content
   Spek: qulaymakon_mobile_ui_prompt.md (3-bosqich)
   ===================================================== */
.about-cover {
  padding: 24px 16px 0;
}
.about-cover .about-page-inner { max-width: 1200px; margin: 0 auto; }
.about-cover__frame {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #f4f7fb;
  border: 1px solid #e5e9f0;
}
.about-cover__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-page--extra {
  background: #fff;
}
.about-page__rich {
  font-size: 15.5px;
  line-height: 1.7;
  color: #1E2B3C;
  max-width: 820px;
  margin: 0 auto;
}
.about-page__rich p { margin: 0 0 14px; }
.about-page__rich ul,
.about-page__rich ol { margin: 0 0 14px 22px; padding: 0; }
.about-page__rich li { margin-bottom: 6px; }
.about-page__rich a {
  color: var(--primary, #023E8A);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-page__rich strong { color: #0F172A; }
.about-page__rich h2,
.about-page__rich h3 {
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

.about-page--gallery {
  background: #FAFBFC;
}
.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.about-gallery-card {
  margin: 0;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.about-gallery-card:hover {
  border-color: var(--primary, #023E8A);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 62, 138, 0.08);
}
.about-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.about-gallery-card figcaption {
  padding: 10px 14px;
  font-size: 13.5px;
  color: #4b5563;
  border-top: 1px solid #f0f3f7;
}

@media (max-width: 1024px) {
  .about-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .about-gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-cover { padding-top: 16px; }
  .about-cover__frame { border-radius: 14px; }
}

/* ════════════════════════════════════════════════
   PHONE INPUT — region (country) picker dropdown
   phone-prefix.js tomonidan yaratiladi.
   Har qanday <input type="tel"> avtomatik wrapper olinadi.
   ════════════════════════════════════════════════ */
.tel-input {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tel-input:hover { border-color: #D1D5DB; }
.tel-input:focus-within {
  border-color: #023E8A;
  box-shadow: 0 0 0 3px rgba(2, 62, 138, 0.15);
}
.tel-input input[type="tel"] {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 10px 12px;
  font-size: 16px;
  color: #1F2937;
  font-family: inherit;
  border-radius: 0 8px 8px 0;
}
.tel-input__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #F8FAFC;
  border: 0;
  border-right: 1px solid #E5E7EB;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #1F2937;
  white-space: nowrap;
  transition: background 150ms ease;
}
.tel-input__trigger:hover { background: #F1F5F9; }
.tel-input__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* flag-icons (.fi) — universal SVG bayroq, hamma OS'da ishlaydi */
.tel-input__flag .fi {
  display: inline-block;
  width: 22px;
  height: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.tel-input__dial { font-weight: 600; }
.tel-input__chev { color: #94A3B8; font-size: 10px; }

.tel-input__dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 300px;
  max-width: 380px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  padding: 4px;
  display: flex;
  flex-direction: column;
  max-height: 360px;
}
.tel-input__dd[hidden] { display: none; }
.tel-input__search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 4px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #1F2937;
  background: #F9FAFB;
  outline: none;
  box-sizing: border-box;
}
.tel-input__search:focus {
  border-color: #023E8A;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(2, 62, 138, 0.12);
}
.tel-input__list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.tel-input__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #1F2937;
  text-align: left;
  transition: background 120ms ease;
}
.tel-input__opt:hover { background: #F1F5F9; }
.tel-input__opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-input__opt-dial { color: #6B7280; font-size: 13px; font-weight: 500; flex-shrink: 0; }

/* Mobile — kengroq toggle */
@media (max-width: 480px) {
  .tel-input__trigger { padding: 0 10px; gap: 4px; font-size: 13px; }
  .tel-input__dial { font-size: 13px; }
  .tel-input__dd {
    min-width: 260px;
    max-width: calc(100vw - 32px);
  }
}

/* Header rang override'idan himoya — dropdown ichidagi linklar uchun */
body .tel-input__opt,
body.layout-body .tel-input__opt {
  color: #1F2937 !important;
}
