
  :root {
    --red: #e30613;
    --red-dark: #b5040f;
    --red-light: #ff1a2a;
    --white: #ffffff;
    --gray-50: #f8f8f8;
    --gray-100: #f2f2f2;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-500: #737373;
    --gray-700: #404040;
    --gray-900: #171717;
    --yellow: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
    --radius: 4px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Barlow', sans-serif; background: var(--white); color: var(--gray-900); font-size: 15px; }

  /* ===== TOP BAR ===== */
  .topbar {
    background: var(--gray-900);
    color: #ccc;
    font-size: 12.5px;
    padding: 7px 0;
  }

  /* ===== PRODUCTS SLIDER ===== */
.products-slider-wrap {
  overflow: hidden;
  position: relative;
}
.products-slider {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 14px;
  transition: transform 0.35s ease;
  will-change: transform;
  grid-template-columns: unset !important;
}
.products-slider .product-card {
  flex: 0 0 calc(16.666% - 12px);
  min-width: 0;
}
@media (max-width: 1200px) {
  .products-slider .product-card { flex: 0 0 calc(20% - 12px); }
}
@media (max-width: 992px) {
  .products-slider .product-card { flex: 0 0 calc(25% - 11px); }
}
@media (max-width: 768px) {
  .products-slider .product-card { flex: 0 0 calc(50% - 7px); }
  .products-slider { gap: 10px; }
}

  
  .topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .topbar-left { display: flex; gap: 20px; align-items: center; }
  .topbar-right { display: flex; gap: 16px; align-items: center; }
  .topbar a { color: #ccc; text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
  .topbar a:hover { color: var(--red); }
  .topbar svg { width: 14px; height: 14px; }
  .lang-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #ccc;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 0.5px;
  }
  .lang-btn:hover { background: var(--red); color: white; }

  /* ===== HEADER ===== */
  .header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
  }
  .header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
  .logo-main {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.5px;
  }
  .logo-main span:first-child { color: var(--red); }
  .logo-main span:last-child { color: var(--gray-900); }
  .logo-sub { font-size: 10px; color: var(--gray-500); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
  .header-info {
    display: flex;
    gap: 28px;
    margin-left: auto;
    align-items: center;
  }
  .info-item { display: flex; align-items: center; gap: 10px; }
  .info-icon {
    width: 38px; height: 38px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .info-icon svg { width: 18px; height: 18px; color: var(--red); }
  .info-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.8px; }
  .info-value { font-size: 14px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
  .info-value small { font-size: 11px; font-weight: 400; color: var(--gray-500); display: block; }

  /* ===== NAVBAR ===== */
  .navbar {
    background: var(--red);
    position: sticky;
    top: 67px;
    z-index: 99;
  }
  .navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch;
    gap: 0;
  }
  .catalog-btn {
    background: var(--red-dark);
    color: white;
    border: none;
    padding: 0 22px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    white-space: nowrap;
    transition: background 0.2s;
  }
  .catalog-btn:hover { background: #8a0208; }
  .catalog-btn svg { width: 18px; height: 18px; }
  .nav-links { display: flex; align-items: center; }
  .nav-links a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 0 18px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }
  .nav-links a:hover, .nav-links a.active { background: rgba(0,0,0,0.18); color: white; }
  .nav-home svg { width: 18px; height: 18px; }
  .navbar-search {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  .search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0 16px;
    height: 48px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
  }
  .search-btn:hover { background: rgba(0,0,0,0.18); }
  .search-btn svg { width: 20px; height: 20px; }

  /* ===== SEARCH OVERLAY ===== */
  .search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
  }
  .search-overlay.open { display: flex; }
  .search-box {
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    width: 600px;
    max-width: 90vw;
    box-shadow: var(--shadow-lg);
  }
  .search-box input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 16px;
    font-family: 'Barlow', sans-serif;
    outline: none;
  }
  .search-box button {
    background: var(--red);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
  }

  /* ===== CATALOG DROPDOWN ===== */
  .catalog-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    background: white;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    width: 280px;
    display: none;
    z-index: 150;
  }
  .catalog-dropdown.open { display: block; }
  .catalog-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 13.5px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s, color 0.15s;
  }
  .catalog-dropdown a:hover { background: var(--gray-50); color: var(--red); }
  .catalog-dropdown a svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }
  .catalog-dropdown a span { flex: 1; }
  .catalog-dropdown a .arrow { color: var(--gray-300); }

  /* ===== HERO SECTION ===== */
  .hero {
    background: var(--gray-50);
    padding: 0;
  }
  .hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 16px;
    align-items: start;
  }
  .hero-main {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
  }
  .hero-slide {
    display: none;
    width: 100%;
    padding: 40px 48px;
    gap: 32px;
    align-items: center;
  }
  .hero-slide.active { display: flex; }
  .hero-text { flex: 1; }
  .hero-tag {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
  }
  .hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 14px;
  }
  .hero-desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 24px; max-width: 380px; }
  .btn-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: 'Barlow', sans-serif;
  }
  .btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
  .btn-red svg { width: 16px; height: 16px; }
  .hero-image {
    flex-shrink: 0;
    width: 280px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .hero-img-placeholder {
    width: 220px;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
  }
  .hero-img-placeholder svg { width: 64px; height: 64px; color: var(--gray-300); }
  .hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
  }
  .hero-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
  }
  .hero-dot.active { background: var(--red); }
  .hero-arrows {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .hero-arrows button {
    width: 32px; height: 32px;
    background: var(--red);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .hero-arrows button:hover { background: var(--red-dark); }
  .hero-arrows svg { width: 16px; height: 16px; }

  /* Hero sidebar banners */
  .hero-sidebar { display: flex; flex-direction: column; gap: 12px; }
  .sidebar-banner {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  .sidebar-banner:hover { border-color: var(--red); box-shadow: var(--shadow-md); }
  .sidebar-banner-img {
    width: 70px; height: 60px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sidebar-banner-img svg { width: 36px; height: 36px; color: var(--gray-400); }
  .sidebar-banner-title { font-weight: 700; font-size: 14px; color: var(--gray-900); }
  .btn-red-sm {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: white;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
  }
  .btn-red-sm:hover { background: var(--red-dark); }

  /* ===== FEATURES ===== */
  .features {
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }
  .features-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px;
    border-right: 1px solid var(--gray-200);
  }
  .feature-item:last-child { border-right: none; }
  .feature-icon {
    width: 42px; height: 42px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .feature-icon svg { width: 22px; height: 22px; color: var(--red); }
  .feature-title { font-weight: 700; font-size: 13.5px; color: var(--gray-900); }
  .feature-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

  /* ===== SECTION ===== */
  .section { padding: 40px 0; }
  .section-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
  .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.3px;
  }
  .section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--red);
    margin-top: 6px;
    border-radius: 2px;
  }
  .nav-arrows { display: flex; gap: 6px; }
  .nav-arrow {
    width: 34px; height: 34px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    color: var(--gray-500);
  }
  .nav-arrow:hover { border-color: var(--red); background: var(--red); color: white; }
  .nav-arrow.red { background: var(--red); border-color: var(--red); color: white; }
  .nav-arrow svg { width: 16px; height: 16px; }

  /* ===== PRODUCT CARDS ===== */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .products-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
    position: relative;
  }
  .product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
    transform: translateY(-2px);
  }
  .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    z-index: 2;
  }
  .product-img {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 16px;
    overflow: hidden;
  }
  .product-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
  .product-card:hover .product-img img { transform: scale(1.05); }
  .product-img-ph {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-300);
  }
  .product-img-ph svg { width: 60px; height: 60px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 12.5px; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin-bottom: 6px; min-height: 36px; }
  .stars { display: flex; gap: 2px; margin-bottom: 4px; }
  .star { color: var(--yellow); font-size: 12px; }
  .star.empty { color: var(--gray-300); }
  .reviews { font-size: 11px; color: var(--gray-500); margin-left: 4px; }
  .product-price { font-size: 15px; font-weight: 800; color: var(--red); margin-top: 6px; }
  .product-price-na { font-size: 13px; color: var(--gray-500); margin-top: 6px; }

  /* ===== RECENT PRODUCTS (list style) ===== */
  .recent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .recent-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
  }
  .recent-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
  .recent-img {
    width: 80px; height: 70px;
    background: var(--gray-50);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
  }
  .recent-img svg { width: 44px; height: 44px; color: var(--gray-300); }
  .recent-info { flex: 1; min-width: 0; }
  .recent-name { font-size: 13px; font-weight: 600; color: var(--gray-900); line-height: 1.3; margin-bottom: 4px; }
  .recent-price { font-size: 15px; font-weight: 800; color: var(--red); }
  .recent-actions { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
  .btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Barlow', sans-serif;
  }
  .btn-detail:hover { background: var(--red); border-color: var(--red); color: white; }
  .btn-wish {
    width: 30px; height: 30px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 3px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    color: var(--gray-400);
  }
  .btn-wish:hover { color: var(--red); border-color: var(--red); }
  .btn-wish svg { width: 15px; height: 15px; }

  /* ===== TAB BUTTONS ===== */
  .tab-btns { display: flex; gap: 6px; }
  .tab-btn {
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 3px;
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Barlow', sans-serif;
  }
  .tab-btn.active, .tab-btn:hover { background: var(--red); border-color: var(--red); color: white; }

  /* ===== CATALOG PAGE ===== */
  .catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }
  .sidebar { }
  .sidebar-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
  }
  .sidebar-section-title {
    background: var(--gray-900);
    color: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .best-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s;
  }
  .best-item:hover { background: var(--gray-50); }
  .best-item-img {
    width: 48px; height: 44px;
    background: var(--gray-100);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .best-item-img svg { width: 30px; height: 30px; color: var(--gray-400); }
  .best-item-name { font-size: 12px; font-weight: 600; color: var(--gray-800); line-height: 1.3; }
  .best-item-price { font-size: 13px; font-weight: 800; color: var(--red); margin-top: 2px; }

  .tags-section { padding: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
  .tag {
    padding: 4px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 11px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s;
  }
  .tag:hover { background: var(--red); border-color: var(--red); color: white; }

  .catalog-content {}
  .breadcrumb {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .breadcrumb a { color: var(--gray-500); text-decoration: none; }
  .breadcrumb a:hover { color: var(--red); }
  .breadcrumb span { color: var(--gray-300); }

  .sort-bar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
  }
  .sort-bar-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
  .view-btns { display: flex; gap: 4px; }
  .view-btn {
    width: 32px; height: 32px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 3px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500);
    transition: all 0.2s;
  }
  .view-btn.active, .view-btn:hover { background: var(--red); border-color: var(--red); color: white; }
  .view-btn svg { width: 15px; height: 15px; }
  .sort-links { display: flex; gap: 16px; margin-left: auto; }
  /* Saralash — <button> (GET forma); brauzer standart ko'rinishi olib tashlanadi.
     :where() — specificity 0, mobil/planshet qoidalaridagi ramka va fon ustun qolsin */
  :where(button.sort-link) { font: inherit; background: none; border: 0; padding: 0; margin: 0; line-height: inherit; }
  .sort-link { font-size: 12.5px; color: var(--gray-500); cursor: pointer; transition: color 0.2s; text-decoration: none; }
  .sort-link:hover, .sort-link.active { color: var(--red); }
  .sort-link.active { font-weight: 700; }

  .catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .catalog-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
  }
  .catalog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

  /* ===== PAGINATION ===== */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 28px;
  }
 .page-btn, a.page-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s;
    font-family: 'Barlow', sans-serif;
  }
  .page-btn:hover, .page-btn.active { background: var(--red); border-color: var(--red); color: white; }
  /* sahifalash havolalari <a> (Google kuzatishi uchun) — tugma bilan bir xil ko'rinish */
  a.page-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }

  /* ===== PRODUCT DETAIL ===== */
  .detail-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
  .detail-main {}
  .detail-top {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    align-items: start;
  }
  .detail-gallery {}
  .detail-main-img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .detail-main-img svg { width: 140px; height: 140px; color: var(--gray-200); }
  .detail-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
  }
  .detail-info {}
  .detail-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
  .detail-price { font-size: 28px; font-weight: 900; color: var(--red); margin-bottom: 6px; }
  .in-stock { display: flex; align-items: center; gap: 5px; color: #16a34a; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
  .in-stock svg { width: 16px; height: 16px; }
  .detail-short-desc { font-size: 13.5px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
  .detail-specs { list-style: none; margin-bottom: 20px; }
  .detail-specs li {
    font-size: 13px;
    color: var(--gray-700);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
  }
  .detail-specs li::before { content: '•'; position: absolute; left: 0; color: var(--red); }

  .detail-tabs { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
  .detail-tab-btns { display: flex; border-bottom: 2px solid var(--gray-200); }
  .detail-tab-btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Barlow', sans-serif;
  }
  .detail-tab-btn.active { color: var(--red); border-bottom-color: var(--red); }
  .detail-tab-content { padding: 24px; }
  .spec-table { width: 100%; border-collapse: collapse; }
  .spec-table tr:nth-child(even) td { background: var(--gray-50); }
  .spec-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
  }
  .spec-table td:first-child { font-weight: 600; color: var(--gray-700); width: 40%; }
  .spec-table td:last-child { color: var(--gray-600); }

  /* ===== RELATED PRODUCTS ===== */
  .related-section { margin-top: 20px; }
  .related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .related-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
  }

  /* ===== CONTACT PAGE ===== */
  .contact-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
  .contact-main {}
  .contact-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
  }
  .contact-notice {
    background: #1d4ed8;
    color: white;
    padding: 18px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 13.5px;
    line-height: 1.6;
  }
  .contact-notice strong { font-size: 15px; display: block; margin-bottom: 6px; }
  .contact-form { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
  .form-group { margin-bottom: 14px; }
  .form-input, .form-textarea {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s;
    background: white;
  }
  .form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
  .form-input:focus, .form-textarea:focus { border-color: var(--red); }
  .form-textarea { min-height: 150px; resize: vertical; }

  /* ===== FOOTER ===== */
  .footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 44px 0 0;
    margin-top: 60px;
  }
  .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
  }
  .footer-brand {}
  .footer-logo { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 14px; }
  .footer-logo span:first-child { color: var(--red); }
  .footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }
  .footer-contact svg { width: 20px; height: 20px; color: var(--red); }
  .footer-contact-label { font-size: 12px; color: var(--gray-500); }
  .footer-contact-value { font-weight: 700; font-size: 18px; color: var(--gray-900); }
  .footer-address { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-top: 12px; margin-bottom: 16px; }
  .footer-social { display: flex; gap: 8px; }
  .social-btn {
    width: 36px; height: 36px;
    background: var(--yellow);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    color: white;
    text-decoration: none;
  }
  .social-btn:hover { background: var(--red); transform: translateY(-2px); }
  .social-btn svg { width: 18px; height: 18px; }
  .footer-col-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
  }
  .footer-links { list-style: none; }
  .footer-links li { margin-bottom: 8px; }
  .footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
  }
  .footer-links a::before { content: '→'; color: var(--red); font-size: 12px; }
  .footer-links a:hover { color: var(--red); }
  .footer-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 16px 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--gray-500);
  }


  /* ===== MEGA MENU ===== */
  .mega-trigger {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
  }
  .mega-link {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    padding: 0 18px;
    height: 48px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
  }
  .mega-link:hover { background: rgba(0,0,0,0.18); color: white; }
  .mega-menu {
    display: none;
    position: fixed;
    left: 0; right: 0;
    top: auto;
    background: white;
    border-top: 3px solid var(--red);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 300;
  }
  .mega-menu.open { display: block; }
  .mega-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .mega-col {
    padding: 0 28px 0 0;
    border-right: 1px solid var(--gray-100);
    margin-right: 28px;
  }
  .mega-col:last-child { border-right: none; margin-right: 0; padding-right: 0; }
  .mega-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-900);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
  }
  .mega-col-title svg { width: 15px; height: 15px; color: var(--red); }
  .mega-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13.5px;
    border-bottom: 1px solid var(--gray-50);
    transition: color 0.15s, padding-left 0.15s;
  }
  .mega-item::before { content: '→'; color: var(--red); font-size: 11px; opacity: 0; transition: opacity 0.15s; }
  .mega-item:hover { color: var(--red); padding-left: 6px; }
  .mega-item:hover::before { opacity: 1; }

  /* ===== FILTER SIDEBAR ===== */
  .filter-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
  }
  .filter-title {
    background: white;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 13px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-100);
    user-select: none;
  }
  .filter-title svg { width: 14px; height: 14px; color: var(--gray-400); transition: transform 0.2s; }
  .filter-title.open svg { transform: rotate(180deg); }
  .filter-body { padding: 14px 16px; }
  .filter-input {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s;
    background: white;
    margin-bottom: 8px;
  }
  .filter-input:focus { border-color: var(--red); }
  .filter-input::placeholder { color: var(--gray-400); }
  .filter-select {
    width: 100%;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23737373'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 32px;
    margin-bottom: 8px;
  }
  .filter-select:focus { border-color: var(--red); }
  .price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    transition: color 0.15s;
  }
  .filter-checkbox-item:hover { color: var(--red); }
  .filter-checkbox-item input[type=checkbox] {
    accent-color: var(--red);
    width: 15px; height: 15px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .filter-range {
    width: 100%;
    accent-color: var(--red);
    margin: 6px 0;
  }
  .range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-500); margin-top: 4px; }
  .btn-clear {
    width: 100%;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 4px;
  }
  .btn-clear:hover { border-color: var(--red); color: var(--red); background: #fff5f5; }
  .btn-clear svg { width: 14px; height: 14px; }
  .btn-apply {
    width: 100%;
    background: var(--red);
    border: none;
    border-radius: var(--radius);
    padding: 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    margin-top: 8px;
  }
  .btn-apply:hover { background: var(--red-dark); }
  .btn-apply svg { width: 14px; height: 14px; }
  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  .active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff0f0;
    border: 1px solid #fecaca;
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .active-filter-tag:hover { background: #fee2e2; }
  .active-filter-tag svg { width: 12px; height: 12px; }


  /* ===== CATALOG MEGA DROPDOWN ===== */
  /* Mega mobile head — default yashirin (desktop) */
  .mega-mobile-head { display: none; }

  .lang-btn--active {
    background: rgba(255,255,255,0.2);
    color: red;
  }

  .catalog-mega-wrap {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
  }
  .catalog-mega-drop {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    width: 780px;
    background: white;
    border-top: 3px solid var(--red);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    z-index: 400;
  }
  .catalog-mega-drop.open { display: block; }
  .catalog-mega-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 24px 0 20px;
  }
  .catalog-mega-col {
    padding: 0 24px;
    border-right: 1px solid var(--gray-100);
  }
  .catalog-mega-col:last-child { border-right: none; }
  .catalog-mega-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-900);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
  }
  .catalog-mega-head svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
  a.cmi {
    display: block;
    padding: 6px 0 6px 12px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-50);
    transition: color 0.15s, padding-left 0.15s, background 0.15s;
    position: relative;
  }
  a.cmi::before {
    content: '›';
    position: absolute;
    left: 2px;
    color: var(--red);
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 14px;
    font-weight: 700;
  }
  a.cmi:hover { color: var(--red); padding-left: 16px; background: #fff5f5; }
  a.cmi:hover::before { opacity: 1; }


  /* ===== WISHLIST ===== */
  .wish-btn-float {
    position: relative;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    padding: 0 14px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
  }
  .wish-btn-float:hover { background: rgba(0,0,0,0.18); color: white; }
  .wish-btn-float svg { width: 20px; height: 20px; }
  .wish-count-badge {
    position: absolute;
    top: 8px; right: 6px;
    background: white;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    display: none;
  }
  .wish-count-badge.visible { display: flex; }

  /* Wishlist page */
  .wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
  }
  .wishlist-empty svg { width: 72px; height: 72px; margin-bottom: 16px; color: var(--gray-200); }
  .wishlist-empty h3 { font-size: 20px; font-weight: 700; color: var(--gray-500); margin-bottom: 8px; }
  .wishlist-empty p { font-size: 14px; }
  .wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .wishlist-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .wishlist-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .wish-remove-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-400);
    transition: all 0.2s;
    z-index: 2;
  }
  .wish-remove-btn:hover { background: var(--red); border-color: var(--red); color: white; }
  .wish-remove-btn svg { width: 14px; height: 14px; }
  .wishlist-card .product-img { aspect-ratio: 1; background: var(--gray-50); padding: 16px; display: flex; align-items: center; justify-content: center; }
  .wishlist-card .product-img img { max-width: 100%; max-height: 120px; object-fit: contain; }
  .wishlist-card .product-info { padding: 12px; }
  .wish-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    font-family: "Barlow", sans-serif;
  }
  .wish-clear-btn:hover { border-color: var(--red); color: var(--red); }
  .wish-clear-btn svg { width: 14px; height: 14px; }

  /* Product card wish toggle */
  .card-wish-btn {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-300);
    transition: all 0.2s;
    z-index: 3;
    box-shadow: var(--shadow-sm);
  }
  .card-wish-btn:hover, .card-wish-btn.active { color: var(--red); border-color: var(--red); background: #fff5f5; }
  .card-wish-btn.active svg { fill: var(--red); }
  .card-wish-btn svg { width: 15px; height: 15px; }


  /* ===== DISCOUNT / SKIDKA ===== */
  .discount-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    z-index: 4;
    line-height: 1.4;
  }
  .discount-badge.green { background: #16a34a; }
  .discount-badge.orange { background: #ea580c; }

  .price-block { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
  .price-old {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1;
  }
  .price-new {
    font-size: 15px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
  }
  .price-row-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
  }
  .price-row-inline .price-new { font-size: 15px; }
  .price-row-inline .price-old { font-size: 12px; }
  .price-saving {
    font-size: 11px;
    color: #16a34a;
    font-weight: 700;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 3px;
    padding: 2px 6px;
  }

  /* Detail page discount */
  .detail-price-block { margin-bottom: 16px; }
  .detail-price-old {
    font-size: 16px;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .detail-discount-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
  }


  /* ===== REVIEWS ===== */
  .reviews-wrap { display: flex; flex-direction: column; gap: 24px; }

  .review-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px 24px;
  }
  .review-avg-score {
    text-align: center;
    flex-shrink: 0;
  }
  .review-avg-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1;
  }
  .review-avg-stars { display: flex; gap: 3px; justify-content: center; margin: 6px 0 4px; }
  .review-avg-stars svg { width: 18px; height: 18px; }
  .review-avg-count { font-size: 12px; color: var(--gray-500); }
  .review-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
  .review-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray-600); }
  .review-bar-row span:first-child { width: 32px; text-align: right; flex-shrink: 0; }
  .review-bar-track { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
  .review-bar-fill { height: 100%; background: var(--yellow); border-radius: 3px; transition: width 0.4s; }
  .review-bar-count { width: 20px; flex-shrink: 0; }

  .review-list { display: flex; flex-direction: column; gap: 14px; }
  .review-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 16px 20px;
  }
  .review-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
  .review-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
  }
  .review-author { font-weight: 700; font-size: 14px; color: var(--gray-900); }
  .review-date { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
  .review-stars { display: flex; gap: 2px; margin-left: auto; }
  .review-stars svg { width: 14px; height: 14px; }
  .review-text { font-size: 13.5px; color: var(--gray-700); line-height: 1.6; }
  .review-helpful { margin-top: 8px; font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 8px; }
  .review-helpful button {
    background: none; border: 1px solid var(--gray-200); border-radius: 3px;
    padding: 2px 8px; font-size: 11px; cursor: pointer; color: var(--gray-500);
    font-family: "Barlow", sans-serif; transition: all 0.2s;
  }
  .review-helpful button:hover { border-color: var(--red); color: var(--red); }

  /* Review form */
  .review-form-wrap {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 24px;
  }
  .review-form-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
  }
  .review-form-title svg { width: 18px; height: 18px; color: var(--red); }
  .star-picker { display: flex; gap: 6px; margin-bottom: 16px; }
  .star-pick {
    width: 36px; height: 36px;
    cursor: pointer;
    color: var(--gray-300);
    transition: color 0.15s, transform 0.15s;
    background: none; border: none; padding: 0;
  }
  .star-pick:hover, .star-pick.active { color: var(--yellow); transform: scale(1.2); }
  .star-pick svg { width: 32px; height: 32px; }
  .review-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .review-form-group { margin-bottom: 12px; }
  .review-form-label { font-size: 12px; font-weight: 700; color: var(--gray-700); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
  .review-submitted {
    text-align: center;
    padding: 20px;
    color: #16a34a;
    font-weight: 700;
    font-size: 15px;
    display: none;
  }
  .review-submitted svg { width: 40px; height: 40px; display: block; margin: 0 auto 10px; }


  /* ===== TOP FILTER BAR ===== */
  .top-filter-bar {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  }
  .top-filter-bar-head {
    background: var(--gray-900);
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .top-filter-bar-head svg { width: 16px; height: 16px; color: var(--red); }
  .top-filter-bar-head span {
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .top-filter-body {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    border-bottom: 1px solid var(--gray-100);
  }
  .top-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 130px;
  }
  .top-filter-group label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .top-filter-group label svg { width: 12px; height: 12px; color: var(--red); }
  .top-filter-group .filter-select,
  .top-filter-group .filter-input {
    margin-bottom: 0;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 6px;
    border: 1.5px solid var(--gray-200);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .top-filter-group .filter-select:focus,
  .top-filter-group .filter-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227,6,19,0.08);
  }
  .top-filter-group .filter-select { padding-right: 32px; }
  .top-filter-price-row { display: flex; gap: 6px; align-items: center; }
  .top-filter-price-row .filter-input { min-width: 0; width: 100%; }
  .top-filter-sep { color: var(--gray-400); font-size: 14px; font-weight: 700; flex-shrink: 0; }
  .top-filter-footer {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
  }
  .top-filter-result-hint {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .top-filter-result-hint svg { width: 13px; height: 13px; color: var(--red); }
  .top-filter-actions { display: flex; gap: 8px; align-items: center; }
  .top-filter-apply {
    height: 38px;
    background: var(--red);
    border: none;
    border-radius: 6px;
    padding: 0 20px;
    font-family: "Barlow", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    display: flex; align-items: center; gap: 7px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(227,6,19,0.25);
  }
  .top-filter-apply:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(227,6,19,0.35); }
  .top-filter-apply svg { width: 14px; height: 14px; }
  .top-filter-clear {
    height: 38px;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    padding: 0 16px;
    font-family: "Barlow", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s;
  }
  .top-filter-clear:hover { border-color: var(--red); color: var(--red); background: #fff5f5; }
  .top-filter-clear svg { width: 13px; height: 13px; }

  /* Active filter chips */
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff0f0;
    border: 1px solid #fecaca;
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.15s;
  }
  .filter-chip:hover { background: #fee2e2; }
  .filter-chip svg { width: 11px; height: 11px; }

  /* Active filter chips under top bar */
  .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff0f0;
    border: 1px solid #fecaca;
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    cursor: pointer;
  }
  .filter-chip:hover { background: #fee2e2; }
  .filter-chip svg { width: 11px; height: 11px; }

  /* Sidebar best sellers only */
  .sidebar-best { }


  /* ===== ERROR PAGES ===== */
  .error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--gray-50);
  }
  .error-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 52px 48px;
    text-align: center;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
  }
  .error-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--error-color, var(--red));
  }
  .error-code-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
  }
  .error-code {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    color: var(--error-color, var(--red));
    opacity: 0.08;
    user-select: none;
    letter-spacing: -4px;
  }
  .error-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background: var(--error-color, var(--red));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
  .error-icon svg { width: 36px; height: 36px; color: white; }
  .error-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.2;
  }
  .error-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 28px;
  }
  .error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .error-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--error-color, var(--red));
    color: white;
    border: none;
    border-radius: 6px;
    padding: 11px 22px;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    text-decoration: none;
  }
  .error-btn-primary:hover { filter: brightness(0.88); transform: translateY(-1px); }
  .error-btn-primary svg { width: 15px; height: 15px; }
  .error-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    padding: 11px 22px;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
  }
  .error-btn-secondary:hover { border-color: var(--error-color, var(--red)); color: var(--error-color, var(--red)); }
  .error-btn-secondary svg { width: 15px; height: 15px; }
  .error-details {
    margin-top: 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    color: var(--gray-500);
    font-family: monospace;
  }
  .error-details span { color: var(--gray-400); }
  .error-quick-links {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .error-quick-links a {
    font-size: 12.5px;
    color: var(--gray-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
  }
  .error-quick-links a:hover { color: var(--error-color, var(--red)); }
  .error-quick-links a svg { width: 13px; height: 13px; }
  /* error page nav link in navbar */
  .error-nav-demo {
    display: flex; gap: 8px; margin-top: 12px; justify-content: center; flex-wrap: wrap;
  }
  .error-nav-demo button {
    font-size: 11px; padding: 4px 12px;
    background: var(--gray-100); border: 1px solid var(--gray-200);
    border-radius: 50px; cursor: pointer; font-family: "Barlow", sans-serif;
    color: var(--gray-600); transition: all 0.2s;
  }
  .error-nav-demo button:hover { background: var(--red); border-color: var(--red); color: white; }


  /* ===== PORTFOLIO PAGE ===== */
  .portfolio-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
    padding: 56px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .portfolio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(227,6,19,0.12) 0%, transparent 60%),
                radial-gradient(circle at 70% 50%, rgba(227,6,19,0.08) 0%, transparent 60%);
  }
  .portfolio-hero-inner { position: relative; z-index: 1; }
  .portfolio-hero-tag {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
  }
  .portfolio-hero h1 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 14px;
  }
  .portfolio-hero h1 span { color: var(--red); }
  .portfolio-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
  }
  .portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
  }
  .portfolio-stat { text-align: center; }
  .portfolio-stat-num {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: white;
    line-height: 1;
  }
  .portfolio-stat-num span { color: var(--red); }
  .portfolio-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.8px; }

  /* Filter tabs */
  .portfolio-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    justify-content: center;
  }
  .ptab {
    padding: 8px 20px;
    border: 1.5px solid var(--gray-200);
    background: white;
    border-radius: 50px;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
  }
  .ptab:hover, .ptab.active {
    background: var(--red);
    border-color: var(--red);
    color: white;
    box-shadow: 0 4px 12px rgba(227,6,19,0.25);
  }

  /* Project cards */
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .project-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
  }
  .project-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-3px); }
  .project-card-img {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
  }
  .project-card-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    transition: transform 0.3s;
  }
  .project-card:hover .project-card-img-inner { transform: scale(1.05); }
  .project-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
  }
  .project-card-body { padding: 20px; }
  .project-card-title {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.2;
  }
  .project-card-loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 10px;
  }
  .project-card-loc svg { width: 13px; height: 13px; color: var(--red); }
  .project-card-desc { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
  .project-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
  .project-card-tag {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
  }
  .project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
  }
  .project-card-year { font-size: 12px; color: var(--gray-400); font-weight: 600; }
  .project-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Barlow", sans-serif;
  }
  .project-card-btn:hover { background: var(--red-dark); }
  .project-card-btn svg { width: 13px; height: 13px; }

  /* CTA section */
  .portfolio-cta {
    background: var(--gray-900);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
  }
  .portfolio-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(227,6,19,0.15) 0%, transparent 70%);
  }
  .portfolio-cta-inner { position: relative; z-index: 1; }
  .portfolio-cta h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
  }
  .portfolio-cta h2 span { color: var(--red); }
  .portfolio-cta p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
  .portfolio-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

  /* Testimonials */
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
  }
  .testimonial-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 22px;
    position: relative;
  }
  .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 14px; right: 18px;
    font-size: 56px;
    color: var(--gray-100);
    font-family: Georgia, serif;
    line-height: 1;
  }
  .testimonial-stars { display: flex; gap: 2px; margin-bottom: 10px; }
  .testimonial-stars svg { width: 14px; height: 14px; color: var(--yellow); }
  .testimonial-text { font-size: 13.5px; color: var(--gray-700); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
  .testimonial-author { display: flex; align-items: center; gap: 10px; }
  .testimonial-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--red);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0;
  }
  .testimonial-name { font-weight: 700; font-size: 13px; color: var(--gray-900); }
  .testimonial-role { font-size: 11px; color: var(--gray-500); }




  /* ===== PRODUCT GALLERY ===== */
  .detail-gallery { display: flex; flex-direction: column; gap: 10px; }

  .gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gallery-main img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.25s ease;
  }
  .gallery-main img.zoom { transform: scale(1.08); }

  .gallery-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 3;
  }

  /* Zoom overlay */
  .gallery-zoom-btn {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 34px; height: 34px;
    background: rgba(0,0,0,0.45);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: white;
    transition: background 0.2s;
    z-index: 3;
  }
  .gallery-zoom-btn:hover { background: rgba(0,0,0,0.7); }
  .gallery-zoom-btn svg { width: 17px; height: 17px; }

  /* Prev/Next arrows */
  .gallery-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    z-index: 3;
    opacity: 0;
  }
  .gallery-main:hover .gallery-arrow { opacity: 1; }
  .gallery-arrow:hover { background: var(--red); border-color: var(--red); color: white; }
  .gallery-arrow.prev { left: 10px; }
  .gallery-arrow.next { right: 10px; }
  .gallery-arrow svg { width: 15px; height: 15px; }

  /* Thumbnails */
  .gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .gallery-thumb {
    width: 68px; height: 68px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
  }
  .gallery-thumb:hover { border-color: var(--gray-400); }
  .gallery-thumb.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227,6,19,0.15); }
  .gallery-thumb img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
  }

  /* Lightbox */
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }
  .lightbox.open { display: flex; }
  .lightbox-img-wrap {
    max-width: 85vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .lightbox-img-wrap img {
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  }
  .lightbox-close {
    position: fixed;
    top: 20px; right: 24px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .lightbox-close:hover { background: var(--red); }
  .lightbox-close svg { width: 20px; height: 20px; }
  .lightbox-arrow {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
  }
  .lightbox-arrow:hover { background: var(--red); }
  .lightbox-arrow.prev { left: 20px; }
  .lightbox-arrow.next { right: 20px; }
  .lightbox-arrow svg { width: 22px; height: 22px; }
  .lightbox-counter {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 600;
  }
  .lightbox-thumbs {
    display: flex;
    gap: 8px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px 0;
  }
  .lightbox-thumb {
    width: 56px; height: 56px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s;
  }
  .lightbox-thumb.active { border-color: var(--red); }
  .lightbox-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }


  /* ===== LIST VIEW ===== */
  #catalogGrid.list-view {
    grid-template-columns: 1fr !important;
  }
  #catalogGrid.list-view .catalog-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 140px;
  }
  #catalogGrid.list-view .product-img {
    aspect-ratio: unset;
    height: 140px;
    border-right: 1px solid var(--gray-100);
  }
  #catalogGrid.list-view .product-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #catalogGrid.list-view .product-name {
    font-size: 15px;
    min-height: unset;
    margin-bottom: 8px;
  }
  #catalogGrid.list-view .price-row-inline,
  #catalogGrid.list-view .product-price,
  #catalogGrid.list-view .product-price-na {
    font-size: 18px;
  }
  #catalogGrid.list-view .stars { margin-bottom: 6px; }
  #catalogGrid.list-view .discount-badge {
    top: 10px; left: 10px;
  }
  #catalogGrid.list-view .card-wish-btn {
    top: 10px; right: 10px;
  }


  /* ===== DETAIL WISH BUTTON ===== */
  .detail-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
  }
  .detail-wish-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 11px 18px;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .detail-wish-btn svg { width: 18px; height: 18px; transition: all 0.2s; }
  .detail-wish-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: #fff5f5;
  }
  .detail-wish-btn.active {
    border-color: var(--red);
    color: var(--red);
    background: #fff5f5;
  }
  .detail-wish-btn.active svg { fill: var(--red); }
  .detail-wish-btn .wish-label { transition: all 0.2s; }

  /* ===== PAGE SYSTEM ===== */
  .page { display: none; }
  .page.active { display: block; }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .page.active .section-inner,
  .page.active .hero-inner,
  .page.active .catalog-layout,
  .page.active .detail-layout,
  .page.active .contact-layout {
    animation: fadeUp 0.4s ease forwards;
  }

  /* Sticky catalog nav */
  .navbar-wrapper { position: relative; }

  /* Mobile: navbar sticky */
  @media (max-width: 768px) {
    .navbar-wrapper {
      position: sticky;
      top: 0;
      z-index: 500;
    }
  }

/* ============================================================
   RESPONSIVE CSS — to'liq, muammosiz
   ============================================================ */

/* ─── GLOBAL MOBILE ELEMENTS (default yashirin) ─── */
.mobile-menu-btn   { display: none; }
.header-mobile-info { display: none; }
.mega-mobile-head  { display: none; }
.sidebar-toggle-btn { display: none; }
.nav-overlay       { display: none; }
.mega-overlay      { display: none; }
.sidebar-overlay   { display: none; }

/* ─── MEGA MENU: mobile yopish tugmasi ─── */
.mega-mobile-head {
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--red);
  color: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mega-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-close-btn svg { width: 16px; height: 16px; }

/* ─── MOBILE MENU BTN ─── */
.mobile-menu-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 8px;
  height: 48px;
  align-items: center;
  flex-shrink: 0;
}
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* ─── SIDEBAR TOGGLE ─── */
.sidebar-toggle-btn {
  width: 100%;
  background: var(--gray-900);
  color: white;
  border: none;
  padding: 10px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
  margin-bottom: 12px;
  align-items: center;
  gap: 8px;
}
.sidebar-toggle-btn svg { width: 15px; height: 15px; }

/* ─── OVERLAY ─── */
.nav-overlay, .mega-overlay, .sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9990;
}
.nav-overlay.open,
.mega-overlay.open,
.sidebar-overlay.open { display: block; }

/* ─── NESTED MEGA MENU (desktop) ─── */
.catalog-mega-col-inner {
  padding-left: 12px;
  border-left: 2px solid var(--gray-100);
  margin: 4px 0 4px 8px;
}
.catalog-mega-subhead {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 0 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
a.cmi-l2 {
  padding-left: 20px;
  font-size: 12px;
  color: var(--gray-500);
}
a.cmi-l2:hover { color: var(--red); padding-left: 24px; }
a.cmi-l3 {
  padding-left: 32px;
  font-size: 11px;
  color: var(--gray-400);
}
a.cmi-l3:hover { color: var(--red); }
.col-arrow { display: none; }

/* Desktop: cmi-list ko'rinadi */
.cmi-list { display: block; }

/* ══════════════════════════════════════
   1024px — Notebook
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .header-info .info-item:nth-child(2) { display: none; }
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .catalog-grid  { grid-template-columns: repeat(4, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-mega-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════
   768px — Tablet / Mobile
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Topbar ── */
  .topbar-inner {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px;
  }
  .topbar-left { flex-wrap: wrap; gap: 10px; }

  /* ── Header ── */
  .header-inner {
    padding: 10px 12px;
    justify-content: space-between;
  }
  .header-info { display: none; }
  .logo-main   { font-size: 22px; }
  .logo-sub    { font-size: 9px; }

  /* Mobile header info qatori */
  .header-mobile-info {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 12px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 11px;
    color: var(--gray-600);
  }
  .header-mobile-info a {
    color: var(--gray-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .header-mobile-info a:hover { color: var(--red); }

  /* ── Navbar ── */
  .navbar-inner { padding: 0 8px; }
  .catalog-btn  { padding: 0 10px; font-size: 11px; letter-spacing: 0; gap: 5px; }

  /* Hamburger ko'rinadi */
  .mobile-menu-btn { display: flex !important; }

  /* Nav links — o'ngdan chiqadigan drawer */
  .nav-links {
    position: fixed !important;
    top: 0; right: 0;
    width: 260px;
    height: 100vh;
    background: var(--gray-900);
    flex-direction: column !important;
    z-index: 9995;
    padding: 56px 0 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    overflow-y: auto;
    display: none !important;
  }
  .nav-links.open { display: flex !important; }

  /* Nav yopish tugmasi */
  .nav-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .nav-close-btn svg { width: 16px; height: 16px; }

  /* Nav overlay */
  .nav-overlay { z-index: 9994; }

  /* Nav link stillari */
  .nav-links a {
    height: auto !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.85) !important;
    background: none !important;
  }
  .nav-links a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: white !important;
  }
  .nav-links .nav-home { padding: 14px 24px !important; }

  /* Sevimlilar matni yashirinadi */
  .wish-text { display: none !important; }

  /* ── MEGA MENU — mobile drawer ── */
  .catalog-mega-drop {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(320px, 88vw) !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 0 !important;
    border-top: none !important;
    box-shadow: 4px 0 32px rgba(0,0,0,0.3) !important;
    z-index: 10000 !important;
    background: white !important;
  }
  .catalog-mega-drop.open { display: block !important; }

  /* mega-mobile-head — yopish tugmasi */
  .mega-mobile-head {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    min-height: 40px !important;
  }

  /* Mega col head — bosiladigan */
  .catalog-mega-head {
    cursor: pointer;
    padding: 14px 16px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--gray-100) !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
  }

  /* Mobile mega head ko'rinadi */
  .mega-mobile-head {
    display: flex !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
  }

  /* Grid → block */
  .catalog-mega-inner {
    display: block !important;
    padding: 0 !important;
  }
  .catalog-mega-col {
    border-right: none !important;
    border-bottom: 1px solid var(--gray-100);
    padding: 0 !important;
    cursor: pointer;
  }

  /* Head accordion style */
  .catalog-mega-head {
    padding: 13px 16px;
    margin-bottom: 0 !important;
    border-bottom: none !important;
    font-size: 13px !important;
    background: white;
    cursor: pointer;
    border-top: none;
  }
  .catalog-mega-col.open > .catalog-mega-head {
    background: var(--gray-50);
    color: var(--red);
  }
  .col-arrow { display: block !important; }

  /* cmi-list accordion */
  .catalog-mega-col > .cmi-list {
    display: none !important;
    background: var(--gray-50);
    padding: 4px 0 8px;
    border-top: 1px solid var(--gray-100);
  }
  .catalog-mega-col.open > .cmi-list { display: block !important; }

  /* cmi stillari mobile */
  a.cmi {
    padding: 10px 16px 10px 28px !important;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
  }
  a.cmi::before { display: none !important; }
  a.cmi:hover { padding-left: 28px !important; }

  /* Nested desktop stillari o'chiriladi */
  .catalog-mega-col-inner {
    border-left: 2px solid var(--gray-200);
    margin: 4px 0 4px 28px;
    padding-left: 0;
  }
  .catalog-mega-subhead { padding: 6px 12px 3px; font-size: 10px; }
  a.cmi-l2 { padding-left: 40px !important; font-size: 12px; }
  a.cmi-l3 { padding-left: 52px !important; font-size: 11px; }

  /* ── Hero ── */
  .hero-inner    { grid-template-columns: 1fr; padding: 0; }
  .hero-sidebar  { display: none; }
  .hero-slide    {
    padding: 24px 16px 16px;
    flex-direction: column-reverse;
    gap: 0;
    min-height: auto;
    position: relative;
  }
  .hero-text     { position: relative; z-index: 2; width: 100%; }
  .hero-image    {
    width: 160px;
    height: 140px;
    position: absolute;
    right: 12px;
    top: 16px;
    z-index: 1;
    opacity: 0.25;
  }
  .hero-tag      { margin-bottom: 8px; font-size: 10px; }
  .hero-title    { font-size: 20px; margin-bottom: 6px; line-height: 1.2; }
  .hero-desc     { font-size: 12px; margin-bottom: 14px; }
  .hero-arrows   { display: none; }
  .btn-red       { padding: 10px 16px; font-size: 11px; z-index: 2; position: relative; }

  /* ── Features ── */
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-item   { padding: 12px 10px; border-right: none; }
  .feature-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .feature-title  { font-size: 12px; }
  .feature-desc   { font-size: 11px; }

  /* ── Section ── */
  .section       { padding: 24px 0; }
  .section-inner { padding: 0 12px; }
  .section-title { font-size: 20px; }

  /* ── Products ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .catalog-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-name  { font-size: 11.5px; min-height: unset; }
  .product-price, .price-new { font-size: 13px; }
  .product-info  { padding: 8px; }
  .recent-grid   { grid-template-columns: 1fr; }
  .tab-btns      { flex-wrap: wrap; gap: 4px; }
  .tab-btn       { font-size: 11px; padding: 5px 12px; }

  /* ── Catalog sahifa ── */
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: min(300px, 85vw);
    height: 100vh;
    overflow-y: auto;
    background: white;
    z-index: 9991;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    padding: 16px;
  }
  .sidebar.open   { display: block; }
  .sidebar-overlay { z-index: 9990; }
  .sidebar-toggle-btn { display: flex !important; }

  /* Sort bar */
  .sort-bar    { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .sort-links  { flex-wrap: wrap; gap: 6px; }
  .sort-link   { font-size: 11px; }

  /* Top filter */
  .top-filter-body      { flex-direction: column; gap: 8px; padding: 12px; }
  .top-filter-group     { min-width: 100% !important; flex: 1 1 100% !important; }
  .top-filter-price-row .filter-input { flex: 1; }
  .top-filter-footer    { flex-direction: column-reverse; gap: 8px; padding: 10px 12px; }
  .top-filter-actions   { width: 100%; display: flex; gap: 8px; }
  .top-filter-apply,
  .top-filter-clear     { flex: 1; justify-content: center; }
  .top-filter-result-hint { display: none; }

  /* ── Detail sahifa ── */
  .detail-layout  { grid-template-columns: 1fr; }
  .detail-top     { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .gallery-main   { max-height: 280px; }
  .gallery-thumb  { width: 52px; height: 52px; }
  .detail-title   { font-size: 18px; }
  .detail-price   { font-size: 22px; }
  .detail-tab-btn { padding: 10px 12px; font-size: 12px; }
  .spec-table td  { padding: 7px 10px; font-size: 12px; }
  .detail-action-row { flex-wrap: wrap; }
  .detail-wish-btn,
  .detail-action-row .btn-red { flex: 1; justify-content: center; }

  /* ── Contact ── */
  .contact-layout { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .contact-form   { padding: 16px; }

  /* ── Wishlist ── */
  .wishlist-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ── Portfolio ── */
  .portfolio-hero h1  { font-size: 26px; }
  .portfolio-stats    { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .portfolio-stat-num { font-size: 26px; }
  .portfolio-grid     { grid-template-columns: 1fr; gap: 14px; }
  .project-card-img   { height: 180px; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .portfolio-cta      { padding: 28px 16px; }
  .portfolio-cta h2   { font-size: 22px; }
  .portfolio-filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; justify-content: flex-start; }
  .ptab               { white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 6px 12px; }

  /* ── Footer ── */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px 12px; }

  /* ── Error pages ── */
  .error-card     { padding: 28px 16px; margin: 0 12px; }
  .error-code     { font-size: 80px; }
  .error-icon     { width: 54px; height: 54px; }
  .error-title    { font-size: 20px; }
  .error-actions  { flex-direction: column; gap: 8px; }
  .error-btn-primary,
  .error-btn-secondary { width: 100%; justify-content: center; }
  .error-quick-links { gap: 12px; }

  /* ── Pagination ── */
  .page-btn { width: 30px; height: 30px; font-size: 11px; }

  /* ── Lightbox ── */
  .lightbox-arrow.prev { left: 6px; }
  .lightbox-arrow.next { right: 6px; }
}

/* ══════════════════════════════════════
   576px — Kichik mobil
══════════════════════════════════════ */
@media (max-width: 576px) {
  .topbar         { display: none; }
  .logo-main      { font-size: 20px; }
  .catalog-btn    { font-size: 10px; padding: 0 8px; gap: 4px; }
  .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .catalog-grid   { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero-title     { font-size: 18px; }
  .hero-slide     { padding: 14px 12px; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-main   { max-height: 240px; }
  .footer-bottom  { font-size: 11px; padding: 12px; flex-direction: column; gap: 6px; }
}

/* ══════════════════════════════════════
   400px — Juda kichik mobil
══════════════════════════════════════ */
@media (max-width: 400px) {
  .logo-main      { font-size: 17px; }
  .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .catalog-grid   { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .hero-title     { font-size: 16px; }
  .error-code     { font-size: 60px; }
}

  /* Sidebar mobile head */
  .sidebar-mobile-head {
    display: none;
  }
  @media (max-width: 768px) {
    .sidebar-mobile-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0 16px;
      margin-bottom: 8px;
      border-bottom: 2px solid var(--red);
      font-family: 'Barlow Condensed', sans-serif;
      font-size: 14px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: var(--gray-900);
    }
    .sidebar-close-btn {
      background: var(--gray-100);
      border: none;
      width: 30px; height: 30px;
      border-radius: 50%;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      color: var(--gray-600);
    }
    .sidebar-close-btn:hover { background: var(--red); color: white; }
    .sidebar-close-btn svg { width: 15px; height: 15px; }
  }

/* ===== FILTER DRAWER ===== */
.filter-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: min(340px, 92vw);
  height: 100dvh;
  background: white;
  z-index: 10001;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.2);
}
.filter-drawer.open { display: block; }

.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--gray-900);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
}
.filter-drawer-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.filter-drawer-close svg { width: 16px; height: 16px; }
.filter-drawer-close:hover { background: var(--red); }

/* Filter drawer ichidagi top-filter-bar stillari override */
.filter-drawer .top-filter-bar {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.filter-drawer .top-filter-bar-head { display: none; }
.filter-drawer .top-filter-body {
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}
.filter-drawer .top-filter-group { min-width: 100% !important; flex: 1 1 100%; }
.filter-drawer .top-filter-footer {
  padding: 12px 16px;
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  flex-direction: row;
  gap: 8px;
}
.filter-drawer .top-filter-apply,
.filter-drawer .top-filter-clear { flex: 1; justify-content: center; }
.filter-drawer .top-filter-result-hint { display: none; }

.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
}
.filter-drawer-overlay.open { display: block; }

/* Desktop da filter-drawer ko'rsatilmaydi, top-filter-bar ko'rinadi */
@media (min-width: 769px) {
  .filter-drawer { display: none !important; }
  .filter-drawer-overlay { display: none !important; }
  .sidebar-toggle-btn { display: none !important; }
}

/* Mobile da top-filter-bar catalog-content dan yashiriladi (drawer ichida) */
@media (max-width: 768px) {
  .catalog-content > .top-filter-bar { display: none !important; }
}

/* ===== RELATED PRODUCTS GRID ===== */
.related-products-grid {
  grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 768px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}
@media (max-width: 576px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===== RELATED SLIDER ===== */
.related-slider-wrap {
  overflow: hidden;
  position: relative;
}
.related-slider {
  display: flex;
  gap: 14px;
  transition: transform 0.35s ease;
  will-change: transform;
}
.related-slider .product-card {
  flex: 0 0 calc(20% - 12px);
  min-width: 0;
}
@media (max-width: 1024px) {
  .related-slider .product-card { flex: 0 0 calc(25% - 11px); }
}
@media (max-width: 768px) {
  .related-slider .product-card { flex: 0 0 calc(50% - 7px); }
  .related-slider { gap: 10px; }
}
@media (max-width: 480px) {
  .related-slider .product-card { flex: 0 0 calc(50% - 5px); }
  .related-slider { gap: 8px; }
}

/* ── Katalog sarlavhasi (H1) va kategoriya tavsifi — SEO ── */
.catalog-head { margin: 4px 0 16px; }
.catalog-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin: 0;
}
.catalog-desc {
  margin-top: 8px;
  max-width: 900px;
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
}
.catalog-desc p { margin: 0 0 6px; }
@media (max-width: 768px) {
  .catalog-title { font-size: 20px; }
}

/* ── Xususiyatlar: guruh sarlavhasi va datasheet havolasi ── */
.spec-table tr.spec-group th {
  text-align: left;
  padding: 12px 10px 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-900);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}
.spec-datasheet {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px; padding: 8px 14px;
  border: 1px solid var(--gray-200); border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  text-decoration: none; background: #fff;
}
.spec-datasheet:hover { border-color: var(--red); color: var(--red); }

/* ══════════════════════════════════════════════════════════════
   MOBIL SAYQAL (2026-10) — yuqoridagi responsive qoidalar ustidan
   yoziladi. Desktopga ta'sir qiladigan qismi faqat shu blok boshidagi
   umumiy tuzatishlar.
══════════════════════════════════════════════════════════════ */

/* Faqat mobilda ko'rinadigan elementlar */
.header-actions   { display: none; }
.nav-drawer-extra { display: none; }
.mobile-cta       { display: none; }

/* "So'nggi qo'shilganlar": yurak tugmasi "Batafsil" yonida turadi.
   .recent-card position:relative emas — absolute tugmalar bo'lim
   burchagiga bir-birining ustiga yig'ilib qolardi. */
.recent-actions .card-wish-btn { position: static; box-shadow: none; flex-shrink: 0; }

/* Grid bolasi uzun matn (nowrap tugma, model nomi) bilan kengayib,
   sahifani ekrandan chiqarib yubormasin */
.detail-layout > *, .detail-top > *, .catalog-layout > * { min-width: 0; }

.footer-logo { text-decoration: none; display: inline-block; }
.footer-contact-value, .btn-detail { text-decoration: none; }
.footer-bottom a { color: var(--gray-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }

/* Mahsulot sahifasi: model qatori va ishonch belgilari (desktop ham) */
.detail-model { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.detail-trust {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--gray-200);
}
.detail-trust li {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-700);
}
.detail-trust svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* Katalog: ichki kategoriya "chip"lari (desktop ham) */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: -4px 0 18px;
}
.cat-chip {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
  text-decoration: none; white-space: nowrap;
  transition: all 0.15s;
}
.cat-chip:hover { border-color: var(--red); color: var(--red); }
.cat-chip.active { background: var(--gray-900); border-color: var(--gray-900); color: white; }
.catalog-desc-more { display: none; }
.catalog-empty-reset {
  display: inline-block; margin-top: 14px;
  padding: 9px 20px; border-radius: 50px;
  background: var(--red); color: white;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.sidebar-toggle-btn { position: relative; }
.filter-dot {
  position: absolute; top: 6px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 2px white;
}

/* Kontakt: aloqa kartochkalari va tezkor tugmalar (desktop ham) */
.contact-cards {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.contact-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-200); border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.contact-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.contact-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff1f2; color: var(--red);
}
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card-icon--tg { background: #e8f4fd; color: #229ed9; }
.contact-card-body  { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card-label { font-size: 12px; color: var(--gray-500); }
.contact-card-value { font-weight: 700; font-size: 15px; color: var(--gray-900); line-height: 1.35; overflow-wrap: anywhere; }

.contact-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-quick-btn {
  flex: 1 1 180px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 16px;
  background: white;
  border: 1.5px solid var(--red); border-radius: 10px;
  color: var(--red);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.contact-quick-btn svg { width: 18px; height: 18px; }
.contact-quick-btn--tg { border-color: #229ed9; color: #229ed9; }
.contact-form .btn-red svg { transform: rotate(90deg); }

/* Sevimlilar sahifasi (desktop ham) */
.wish-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.wish-total:not(:empty) { margin-left: 8px; vertical-align: middle; }
.wish-total:not(:empty) {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px;
  border-radius: 50px;
  background: var(--red); color: white;
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700;
}
.wishlist-card .product-img img { max-width: 100%; max-height: 120px; object-fit: contain; }
.wishlist-card a.product-name { display: block; font-size: 13px; font-weight: 600; color: var(--gray-900); text-decoration: none; }
.wishlist-card a.product-name:hover { color: var(--red); }
.wishlist-card .product-price { font-size: 15px; }
.wishlist-actions { display: flex; gap: 6px; margin-top: 10px; }
.wishlist-actions .btn-red { padding: 8px 12px; font-size: 11px; text-decoration: none; }
.wishlist-actions .btn-detail { text-decoration: none; }

/* Yetkazib berish va qaytarish sahifasi (templates/delivery/delivery.html) */
.policy-card {
  background: #fff;
  border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 32px; max-width: 860px;
}
.policy-card h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px; font-weight: 800; line-height: 1.15;
  margin: 0 0 8px;
}
.policy-lead { color: var(--gray-500); margin: 0 0 22px; line-height: 1.6; }
.policy-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.policy-fact {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: 10px;
}
.policy-fact b { display: block; font-size: 15px; color: var(--gray-900); margin-bottom: 2px; }
.policy-fact span:not(.policy-fact-icon) { font-size: 12.5px; color: var(--gray-500); line-height: 1.4; }
.policy-fact-icon, .policy-h-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff1f2; color: var(--red);
}
.policy-fact-icon svg, .policy-h-icon svg { width: 18px; height: 18px; }
.policy-section { margin-top: 28px; }
.policy-section h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800;
  margin: 0 0 14px;
}
.policy-list { list-style: none; margin: 0; padding: 0; }
.policy-list li {
  position: relative;
  padding: 0 0 0 22px; margin-bottom: 10px;
  line-height: 1.65; color: var(--gray-700);
}
.policy-list li::before {
  content: ''; position: absolute; left: 4px; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}
.policy-list strong { color: var(--gray-900); }
.policy-note {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  color: #9a3412; font-weight: 700; font-size: 14px;
}
.policy-note svg { width: 20px; height: 20px; flex-shrink: 0; }
.policy-contacts { padding-top: 24px; border-top: 1px solid var(--gray-200); }
.policy-contacts .contact-cards { margin-top: 0; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* Blog (templates/blog/) — klasslar faqat shu yerda, mobil/planshet ham shu blokda */
.blog-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px; font-weight: 800; line-height: 1.15;
  margin: 0 0 8px; color: var(--gray-900);
}
.blog-lead { color: var(--gray-500); margin: 0 0 24px; line-height: 1.6; max-width: 760px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.blog-card-img {
  aspect-ratio: 16 / 9; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img svg { width: 48px; height: 48px; color: var(--gray-300); }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; color: var(--gray-900); }
.blog-card:hover .blog-card-title { color: var(--red); }
.blog-card-excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--gray-500); }
.blog-card-more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--red); }
.blog-date { font-size: 12.5px; color: var(--gray-400); }
.blog-empty { padding: 48px 16px; text-align: center; color: var(--gray-500); background: #fff; border-radius: 12px; }

.blog-article {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 32px; max-width: 860px;
}
.blog-cover { display: block; width: 100%; height: auto; border-radius: 10px; margin: 18px 0 4px; }
.blog-content { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--gray-700); overflow-wrap: anywhere; }
.blog-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1.2;
  margin: 32px 0 12px; color: var(--gray-900);
}
.blog-content h3 { font-size: 19px; font-weight: 700; margin: 24px 0 10px; color: var(--gray-900); }
.blog-content p { margin: 0 0 14px; }
.blog-content ul, .blog-content ol { margin: 0 0 16px; padding-left: 22px; }
.blog-content li { margin-bottom: 6px; }
.blog-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.blog-content img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; display: block; overflow-x: auto; }
.blog-content th, .blog-content td { border: 1px solid var(--gray-200); padding: 8px 10px; text-align: left; overflow-wrap: normal; }
.blog-content th { background: var(--gray-50); }
.blog-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 28px; padding: 18px 20px;
  background: #fff1f2; border-radius: 10px;
  font-weight: 600; color: var(--gray-900);
}
.blog-cta .btn-red { flex-shrink: 0; text-decoration: none; }
.blog-section { margin-top: 36px; }
.blog-products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
a.blog-product { text-decoration: none; color: inherit; }

/* Maqola / ro'yxat + yon panel (faqat desktop, templates/blog/_aside.html). Panel bloklari katalogdagi .sidebar-section /
   .best-item stilida; oxirgi blok (.blog-aside-help) sticky — header ~71px, top: 88px. */
.blog-aside { display: none; }
@media (min-width: 993px) {
  .blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .blog-layout > * { min-width: 0; }
  .blog-layout .blog-article { max-width: none; }
  .blog-layout .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* ro'yxat: panel yonida 2 ustun */
  .blog-aside { display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
  .blog-aside .sidebar-section { margin: 0; }
  .blog-aside-help { position: sticky; top: 88px; }
}
a.best-item { text-decoration: none; color: inherit; }
/* Mahsulot sahifasidagi "Foydali maqolalar" (templates/product/detail.html) */
.product-blog .blog-grid { gap: 14px; }
.product-blog .blog-card-body { padding: 12px 14px 14px; }
.product-blog .blog-card-title { font-size: 15px; }
.product-blog-all { font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; white-space: nowrap; }
.product-blog-all:hover { text-decoration: underline; }
@media (max-width: 599px) {
  /* mobilda ixcham qator: chapda kichik muqova, o'ngda sarlavha */
  .product-blog .blog-grid { gap: 10px; }
  .product-blog .blog-card { flex-direction: row; align-items: center; }
  .product-blog .blog-card-img { width: 128px; flex-shrink: 0; align-self: stretch; aspect-ratio: auto; min-height: 72px; }
  .product-blog .blog-card-body { padding: 10px 12px; gap: 4px; }
  .product-blog .blog-card-title { font-size: 14px; }
  .product-blog .blog-date { font-size: 11.5px; }
}
.blog-promo-card {
  position: relative;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--gray-100);
}
.blog-promo-card:first-of-type { border-top: 0; }
.blog-promo-card .discount-badge { top: 14px; left: 16px; }
.blog-promo-img {
  display: flex; align-items: center; justify-content: center;
  height: 150px; margin-bottom: 10px;
  background: var(--gray-50); border-radius: 10px;
}
.blog-promo-img img { max-width: 85%; max-height: 130px; object-fit: contain; }
.blog-promo-name {
  display: block; margin-bottom: 4px;
  font-size: 14px; font-weight: 700; line-height: 1.3;
  color: var(--gray-900); text-decoration: none;
}
.blog-promo-name:hover { color: var(--red); }
.blog-promo-actions { display: flex; gap: 8px; margin-top: 12px; }
.blog-promo-actions .btn-red { flex: 1; justify-content: center; padding: 9px 12px; font-size: 12px; text-decoration: none; }
.blog-promo-actions .btn-detail { padding: 9px 12px; }
.blog-aside-help {
  padding: 18px;
  background: #fff1f2; border: 1px solid #fecdd3; border-radius: 12px;
}
.blog-aside-help-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--gray-900);
}
.blog-aside-help p { margin: 6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--gray-700); }
.blog-aside-help .btn-red { display: flex; justify-content: center; text-decoration: none; }
.blog-aside-tg {
  display: block; margin-top: 10px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--gray-700); text-decoration: none;
}
.blog-aside-tg:hover { color: var(--red); }

@media (max-width: 1199px) {
  .blog-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .blog-title { font-size: 26px; }
  .blog-article { padding: 20px 16px; border-radius: 12px; }
  .blog-content { font-size: 15.5px; }
  .blog-content h2 { font-size: 22px; }
  .blog-content table { font-size: 13px; }
  .blog-content th, .blog-content td { padding: 6px 8px; }
  .blog-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .blog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 599px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* 404: qidiruv va kategoriyalar (desktop ham) */
.error-search {
  display: flex; gap: 0;
  margin: 0 0 16px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  overflow: hidden; background: white;
}
.error-search:focus-within { border-color: var(--red); }
.error-search input {
  flex: 1; min-width: 0;
  border: none; outline: none;
  padding: 12px 14px;
  font-family: 'Barlow', sans-serif; font-size: 14px;
}
.error-search button {
  width: 48px; flex-shrink: 0;
  border: none; background: var(--red); color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.error-search button svg { width: 18px; height: 18px; }
.error-cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}
.error-cats .cat-chip { font-size: 12.5px; padding: 7px 12px; }

/* Bo'lim oxiridagi "Barchasini ko'rish" (desktop ham) */
.section-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: max-content; margin: 20px auto 0;
  padding: 11px 26px;
  background: white;
  border: 1.5px solid var(--gray-200); border-radius: 50px;
  color: var(--gray-900); font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: all 0.15s;
}
.section-more:hover { border-color: var(--red); color: var(--red); }
.section-more svg { width: 16px; height: 16px; }

/* Header/footer qo'shimchalari (desktop ham) */
.catalog-label-short { display: none; }
.nav-search-pill { display: none; }
.footer-hours {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 13px; color: var(--gray-600);
}
.footer-hours svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }
.footer-bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 20px; }

/* Mahsulot sahifasi: brend/kategoriya, asosiy xususiyatlar (desktop + mobil) */
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin-bottom: 12px;
  font-size: 13px; color: var(--gray-500);
}
.detail-meta b { color: var(--gray-900); font-weight: 700; }
.detail-meta a { color: var(--red); font-weight: 600; text-decoration: none; }
.detail-meta a:hover { text-decoration: underline; }
.gallery-thumbs:has(> .gallery-thumb:only-child) { display: none; }
.gallery-zoom-btn { background: rgba(255,255,255,0.92) !important; color: var(--gray-700) !important; border-radius: 50% !important; box-shadow: var(--shadow-sm); }
.gallery-zoom-btn:hover { color: var(--red) !important; }

.detail-keyspecs {
  margin-top: 18px;
  border: 1px solid var(--gray-200); border-radius: 12px;
  overflow: hidden;
}
.detail-keyspecs-title {
  padding: 11px 14px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase;
}
.detail-keyspecs dl { margin: 0; }
.detail-keyspecs dl > div {
  display: grid; grid-template-columns: 44% 1fr; gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px; line-height: 1.4;
}
.detail-keyspecs dt { color: var(--gray-500); }
.detail-keyspecs dd { margin: 0; color: var(--gray-900); font-weight: 600; overflow-wrap: anywhere; }
.detail-keyspecs-more {
  width: 100%;
  padding: 11px 14px;
  background: none; border: none;
  color: var(--red); font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700;
  text-align: left; cursor: pointer;
}
.detail-keyspecs-more:hover { background: #fff5f5; }

/* Mahsulot sahifasi — faqat desktop */
@media (min-width: 769px) {
  /* header desktopda sticky (~71px) — undan pastda yopishadi */
  .detail-layout > .sidebar { position: sticky; top: 88px; align-self: start; }
  .detail-top { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 36px; padding: 28px; border-radius: 14px; }
  .gallery-main { border: none; border-radius: 12px; }
  .gallery-main img { mix-blend-mode: multiply; }
  .detail-gallery { position: sticky; top: 88px; }
  .gallery-thumb { border-radius: 8px; }
  .detail-title { font-size: 32px; line-height: 1.1; margin-bottom: 8px; }
  .detail-short-desc { font-size: 14px; font-weight: 500; color: var(--gray-500); line-height: 1.5; margin-bottom: 12px; }
  .detail-rating { margin-bottom: 16px; }
  .detail-buy-box {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100); border-radius: 12px;
    padding: 16px 18px; margin-bottom: 16px;
  }
  .detail-buy-box .detail-price-block { margin: 0; }
  .detail-buy-box .detail-price { font-size: 32px; line-height: 1.1; margin: 0; }
  .detail-buy-box .in-stock {
    margin: 0; padding: 6px 12px;
    border-radius: 50px; background: #dcfce7;
    font-size: 12.5px; white-space: nowrap;
  }
  .detail-buy-box .in-stock.out-of-stock { background: var(--gray-100); color: var(--gray-500); }
  .detail-action-row { flex-wrap: nowrap; }
  .detail-action-row .btn-red { flex: 1; justify-content: center; padding: 15px 20px; border-radius: 10px; font-size: 13.5px; }
  .detail-wish-btn { padding: 13px 18px; border-radius: 10px; }
  .detail-tabs { border-radius: 14px; }
  .detail-tab-btn { padding: 16px 26px; font-size: 14.5px; }
  .detail-tab-content { padding: 28px; }
  #tab-data > div { font-size: 15px !important; line-height: 1.75 !important; max-width: 78ch; }
  #tab-data p { margin-bottom: 12px; }
  .spec-table { max-width: 900px; }
  .related-slider .product-card { border-radius: 10px; }
}

/* Katalog — faqat desktop: filtr chap ustunda, ixcham kartochkalar */
@media (min-width: 769px) {
  .catalog-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
  .catalog-layout > .sidebar .sidebar-section { border-radius: 12px; }
  .catalog-layout > .sidebar .best-item:nth-child(n+7) { display: none; }  /* 5 ta yetarli */

  .sidebar .top-filter-bar { margin: 0 0 16px; border-radius: 12px; overflow: hidden; }
  .sidebar .top-filter-body { flex-direction: column; gap: 14px; padding: 16px; }
  .sidebar .top-filter-group { min-width: 0 !important; flex: none !important; width: 100%; }
  .sidebar .top-filter-footer { flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px 16px; border-top: none; background: none; }
  .sidebar .top-filter-result-hint { display: none; }
  .sidebar .top-filter-actions { flex-direction: column-reverse; width: 100%; gap: 8px; }
  .sidebar .top-filter-apply,
  .sidebar .top-filter-clear { width: 100%; justify-content: center; padding: 11px; border-radius: 8px; }
  .sidebar .top-filter-clear { text-decoration: none; }

  .sort-bar { border-radius: 12px; padding: 10px 14px !important; }
  .sort-links { gap: 6px; }
  .sort-link {
    padding: 6px 14px;
    border: 1px solid var(--gray-200); border-radius: 50px;
    background: white; font-size: 12.5px;
  }
  .sort-link:hover { border-color: var(--red); }
  .sort-link.active { background: var(--red); border-color: var(--red); color: white; }

  .catalog-grid { gap: 14px; }
  .catalog-card { border-radius: 12px; }
  .catalog-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.10); border-color: var(--gray-300); }
  .catalog-card .product-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em; margin-bottom: 8px;
  }
  .catalog-card .product-price { font-size: 16px; }

  .pagination { gap: 6px; margin-top: 32px; }
  .page-btn, a.page-btn { width: 40px; height: 40px; border-radius: 10px; }
  .page-btn:disabled { opacity: 0.4; cursor: default; }
}
/* Reytingi yo'q kartochkada "0 fikr" qatori ko'rsatilmaydi (desktop ham) */
.stars--none { display: none; }

/* Bosh sahifa — faqat desktop */
@media (min-width: 769px) {
  .hero-inner { gap: 18px; padding: 24px 20px 6px; align-items: stretch; }
  .hero-main {
    min-height: 380px;
    border: none; border-radius: 16px;
    background: linear-gradient(110deg, #ffffff 0%, #ffffff 48%, #fff1f2 100%);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  }
  .hero-slide { padding: 48px 56px 64px; }
  .hero-tag { border-radius: 50px; padding: 5px 12px; }
  .hero-title { font-size: 48px; line-height: 1.05; margin-bottom: 16px; }
  .hero-desc { font-size: 15px; max-width: 430px; }
  .hero-main .btn-red { padding: 14px 28px; border-radius: 10px; }
  .hero-image { width: 400px; height: 300px; }
  .hero-image img { max-width: 100% !important; max-height: 300px !important; mix-blend-mode: multiply; filter: none !important; }
  .hero-dots { left: 56px; bottom: 26px; transform: none; }
  .hero-dot { transition: width 0.25s, background 0.2s; }
  .hero-dot.active { width: 26px; border-radius: 4px; }
  .hero-arrows { top: auto; bottom: 18px; right: 20px; transform: none; flex-direction: row; gap: 8px; }
  .hero-arrows button {
    width: 40px; height: 40px; border-radius: 50%;
    background: white; color: var(--gray-700);
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  }
  .hero-arrows button:hover { background: var(--red); border-color: var(--red); color: white; }
  .hero-arrows svg { transform: rotate(-90deg); }

  /* O'ng bannerlar — hero balandligiga teng, takroriy qizil tugmalarsiz */
  .hero-sidebar { gap: 14px; }
  .sidebar-banner {
    flex: 1;
    gap: 16px; padding: 14px 18px;
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .sidebar-banner:hover { transform: translateY(-2px); }
  .sidebar-banner-img { width: 84px; height: 72px; border-radius: 10px; background: var(--gray-50); }
  .sidebar-banner-img img { width: 72px !important; height: 62px !important; mix-blend-mode: multiply; }
  .sidebar-banner-title { font-size: 16px; }
  .sidebar-banner .btn-red-sm {
    margin-top: 4px; padding: 0;
    background: none; color: var(--red);
    font-size: 13px; letter-spacing: 0.2px; text-transform: none;
  }
  .sidebar-banner .btn-red-sm:hover { background: none; text-decoration: underline; }

  /* Afzalliklar — alohida kartochkalar */
  .features { background: var(--gray-50); border: none; }
  .features-inner { gap: 14px; padding: 12px 20px 8px; }
  .feature-item, .feature-item:last-child {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px;
  }
  .feature-icon { width: 48px; height: 48px; background: #fff1f2; }

  /* So'nggi qo'shilganlar */
  .recent-card { border-radius: 12px; }
  .recent-card .btn-detail { background: white; border-radius: 6px; }
  .recent-card .btn-detail:hover { background: var(--red); color: white; }
  .products-slider .product-card { border-radius: 12px; }
  .section-header .tab-btn { border-radius: 50px; padding: 8px 18px; }
}
/* Slayder kartochkasi kengligi: N ta kartochka + (N-1) ta 14px oraliq = 100%.
   Avvalgi calc(16.666% - 12px) 6-kartochkani o'ng chetda kesib qo'yardi. */
@media (min-width: 769px) { .products-grid.products-slider { gap: 14px; } } /* .products-grid gap:12px ni bosadi; topSlide() ham 14px deb hisoblaydi */
@media (min-width: 1201px) { .products-slider .product-card { flex: 0 0 calc((100% - 5 * 14px) / 6); } }
@media (min-width: 993px) and (max-width: 1200px) { .products-slider .product-card { flex: 0 0 calc((100% - 4 * 14px) / 5); } }
@media (min-width: 769px) and (max-width: 992px) { .products-slider .product-card { flex: 0 0 calc((100% - 3 * 14px) / 4); } }
/* Sahifa bo'limlari o'z foniga ega — footer oldidagi oq bo'shliq kerak emas */
.footer { margin-top: 0; }

/* Kontakt — xabar bloki brend uslubida (desktop + mobil) */
.contact-notice {
  background: white; color: var(--gray-700);
  border: 1px solid var(--gray-200); border-left: 4px solid var(--red);
  border-radius: 10px;
}
.contact-notice strong { display: block; color: var(--gray-900); margin-bottom: 2px; }

/* Kontakt — faqat desktop: chapda forma, o'ngda aloqa / tanlangan mahsulot */
@media (min-width: 769px) {
  .contact-title { font-size: 34px; margin-bottom: 18px; }
  .contact-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px; align-items: start;
  }
  .contact-notice { padding: 16px 20px; margin-bottom: 18px; }
  .contact-form { padding: 28px; border-radius: 14px; }
  .contact-form .form-group { margin-bottom: 14px; }
  .contact-form .form-input { height: 52px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
  .contact-form .form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,0.08); outline: none; }
  .contact-form .btn-red { width: 100%; justify-content: center; padding: 16px; border-radius: 10px; font-size: 13.5px; margin-top: 6px; }

  .contact-col-aside .contact-cards { margin-top: 0; grid-template-columns: 1fr; gap: 12px; }
  .contact-col-aside .contact-card { border-radius: 14px; padding: 16px 18px; align-items: center; }

  /* Tanlangan mahsulot — vertikal kartochka */
  .contact-col-aside .price-request-card {
    flex-direction: column; align-items: stretch; text-align: center;
    gap: 14px; padding: 18px;
    background: white; border-radius: 14px;
    margin-bottom: 14px;
  }
  .contact-col-aside .price-request-card img,
  .contact-col-aside .price-request-card .no-img {
    width: 100%; height: 200px; padding: 14px;
    background: var(--gray-50); border: none; border-radius: 10px;
  }
  .contact-col-aside .price-request-card .product-title { font-size: 18px; }
  .contact-col-aside .price-request-badge { align-self: center; }
  .contact-col-aside .contact-quick { flex-direction: column; margin-top: 0; }
  .contact-col-aside .contact-quick-btn { flex: none; }
}
/* Mobilda ustunlar "eriydi": mahsulot kartasi formadan oldin, tugmalar keyin */
@media (max-width: 768px) {
  .contact-grid { display: flex; flex-direction: column; }
  .contact-col-main, .contact-col-aside { display: contents; }
  .contact-grid .price-request-card { order: -1; }
  .contact-grid .contact-quick, .contact-grid .contact-cards { order: 1; }
}

/* Sevimlilar — faqat desktop */
@media (min-width: 769px) {
  .wish-head { margin-bottom: 20px; }
  .wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .wishlist-card { display: flex; flex-direction: column; border-radius: 14px; }
  .wishlist-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.10); transform: translateY(-3px); }
  .wishlist-card .product-img { aspect-ratio: 4 / 3; padding: 18px; }
  .wishlist-card .product-img img { max-height: 150px; mix-blend-mode: multiply; }
  .wishlist-card .product-info { flex: 1; display: flex; flex-direction: column; padding: 14px; }
  .wishlist-card a.product-name {
    font-size: 14px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
  }
  .wishlist-card .product-price { font-size: 17px; margin-top: 6px; }
  .wishlist-actions { margin-top: auto; padding-top: 12px; }
  .wishlist-actions .btn-red,
  .wishlist-actions .btn-detail { flex: 1; justify-content: center; height: 38px; padding: 0 10px; border-radius: 8px; white-space: nowrap; }
  .wishlist-actions .btn-detail { background: white; }
  .wish-remove-btn { width: 32px; height: 32px; }
  .wish-remove-btn:hover { background: var(--red); border-color: var(--red); color: white; }

  .wishlist-empty {
    background: white;
    border: 1px solid var(--gray-200); border-radius: 16px;
    padding: 56px 20px;
  }
  .wishlist-empty svg {
    width: 96px; height: 96px; padding: 22px;
    border-radius: 50%; background: #fff1f2; color: var(--red);
  }
  .wishlist-empty h3 { color: var(--gray-900); font-size: 22px; }
  .wishlist-empty .btn-red { padding: 14px 28px; border-radius: 10px; }

  .wish-suggest { margin-top: 36px; }
  .wish-suggest .related-slider .product-card { border-radius: 12px; }
}
.wish-suggest { margin-top: 28px; }

/* Yetkazib berish — faqat desktop: matn chapda, aloqa o'ng ustunda (sticky).
   article bolalari: h1, .policy-lead, .policy-facts, 2× .policy-section, .policy-contacts */
@media (min-width: 993px) {
  .policy-card {
    max-width: none;
    display: grid; grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 40px; align-items: start;
    padding: 36px 40px 40px; border-radius: 16px;
  }
  .policy-card > h1, .policy-lead, .policy-facts { grid-column: 1 / -1; }
  .policy-card h1 { font-size: 36px; }
  .policy-lead { font-size: 15px; }
  .policy-facts { gap: 14px; margin-bottom: 4px; }
  .policy-fact { padding: 18px; border-radius: 12px; }
  .policy-fact-icon { width: 44px; height: 44px; }
  .policy-fact b { font-size: 16px; }
  .policy-section { grid-column: 1; }
  .policy-list li { font-size: 15px; }
  .policy-contacts {
    grid-column: 2; grid-row: 4 / span 2;
    position: sticky; top: 88px;
    margin-top: 28px; padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100); border-radius: 14px;
  }
  .policy-contacts h2 { font-size: 20px; }
  .policy-contacts .contact-cards { grid-template-columns: 1fr; gap: 10px; }
  .policy-contacts .contact-card { padding: 14px; border-radius: 12px; }
}

/* Xato sahifalari — tavsiyalar (404) va desktop ko'rinishi */
.error-page { flex-direction: column; gap: 36px; }
.error-suggest { width: 100%; max-width: 1240px; }
.error-suggest .section-title { margin-bottom: 18px; }
.error-suggest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.error-suggest .product-card { border-radius: 12px; }
@media (max-width: 1024px) { .error-suggest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .error-page { gap: 24px; }
  .error-suggest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .error-suggest-grid > :nth-child(n+5) { display: none; }
}
@media (min-width: 769px) {
  .error-page { padding: 44px 20px 56px; }
  .error-card { max-width: 640px; padding: 44px 56px 32px; border-radius: 18px; }
  .error-code {
    font-size: 150px; opacity: 1; letter-spacing: -6px;
    color: var(--error-color, var(--red));
    text-shadow: 0 10px 30px rgba(227,6,19,0.18);
  }
  .error-icon { display: none; }
  .error-title { font-size: 32px; margin-bottom: 10px; }
  .error-desc { font-size: 15px; margin-bottom: 24px; }
  .error-search { margin-bottom: 18px; border-radius: 12px; }
  .error-search input { padding: 15px 18px; font-size: 15px; }
  .error-search button { width: 58px; }
  .error-btn-primary, .error-btn-secondary { padding: 13px 24px; border-radius: 10px; }
  .error-details {
    margin-top: 18px; padding: 0;
    background: none; border: none;
    font-family: 'Barlow', sans-serif; font-size: 12px; color: var(--gray-400);
  }
}

/* ── Header / footer — desktop ── */
.lang-btn--active { background: var(--red); color: white; font-weight: 700; }
.header-search { display: none; }
.social-btn { background: white; border: 1px solid var(--gray-200); color: var(--gray-700); border-radius: 50%; }
.social-btn:hover { background: var(--red); border-color: var(--red); color: white; }

@media (min-width: 769px) {
  /* mobil drawer'ning yopish tugmasi desktopda 4×19px oq chiziq bo'lib ko'rinardi */
  .nav-close-btn { display: none; }
  .nav-links a { position: relative; }
  .nav-links a.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
    height: 3px; border-radius: 3px 3px 0 0; background: white;
  }
  .nav-links a.nav-home.active::after { left: 10px; right: 10px; }

  /* Footer */
  .footer { padding-top: 52px; }
  .footer-col-title { position: relative; padding-bottom: 10px; margin-bottom: 16px; }
  .footer-col-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 3px; border-radius: 2px; background: var(--red);
  }
  /* 3- va 4-ustun ikkalasi "Bo'limlar" — ikkinchisining sarlavhasi takrorlanmasin */
  .footer-inner > :nth-child(4) .footer-col-title { visibility: hidden; }
  .footer-links li { margin-bottom: 10px; }
  .footer-links a { transition: color 0.2s, transform 0.2s; }
  .footer-links a:hover { transform: translateX(3px); }
  .footer-contact-value { font-size: 22px; text-decoration: none; }
  .footer-bottom {
    justify-content: space-between;
    padding: 18px max(20px, calc((100% - 1240px) / 2));
  }
}
@media (min-width: 1025px) {
  .header-inner { gap: 28px; }
  .header-search {
    display: flex; align-items: center;
    flex: 1; max-width: 560px; height: 48px;
    padding: 0 4px 0 16px;
    background: white;
    border: 2px solid var(--gray-200); border-radius: 50px;
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .header-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,0.08); }
  .header-search svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
  .header-search input {
    flex: 1; min-width: 0; height: 100%;
    border: none; outline: none; background: none;
    padding: 0 12px;
    font-family: 'Barlow', sans-serif; font-size: 14px; color: var(--gray-900);
  }
  .header-search button {
    height: 38px; padding: 0 22px;
    background: var(--red); color: white;
    border: none; border-radius: 50px;
    font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background 0.2s;
  }
  .header-search button:hover { background: var(--red-dark); }
  .header-info { gap: 22px; }
  .header-info .info-item:nth-child(2) { display: none; }  /* manzil — footer/kontaktda bor */
  .navbar-search .search-btn { display: none; }             /* qidiruv header'da */
}

/* Sevimlilar soni — yurak ikonkasiga bog'langan (avval tugmaning o'ng chetida
   turib, "Sevimlilar" matnini yopardi). Ikonka: padding-left 14px + 20px. */
.wish-count-badge { right: auto; left: 28px; top: 6px; box-shadow: 0 0 0 2px var(--red); }
@media (max-width: 768px) { .wish-count-badge { left: 24px; top: 8px; } }

@keyframes mSlideLeft  { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes mSlideRight { from { transform: translateX(100%); }  to { transform: none; } }
@keyframes mFade       { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 768px) {
  body { overflow-x: clip; -webkit-text-size-adjust: 100%; }
  body:has(.mobile-cta) { padding-bottom: 72px; }

  /* ── Header: logo + qo'ng'iroq tugmasi ── */
  .header-inner { padding: 10px 14px; gap: 10px; }
  .logo-main    { font-size: 24px; }
  .logo-sub     { font-size: 8.5px; letter-spacing: 1.2px; }
  .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .header-action {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; min-width: 38px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px; font-weight: 700;
    white-space: nowrap;
  }
  .header-action svg { width: 18px; height: 18px; flex-shrink: 0; }
  .header-action--tg   { background: #e8f4fd; color: #229ed9; }
  .header-action--call {
    background: var(--red); color: white;
    padding: 0 14px 0 12px;
    box-shadow: 0 4px 12px rgba(227,6,19,0.25);
  }
  .header-action--call:active { background: var(--red-dark); }

  /* ── Navbar ── */
  .navbar-wrapper { box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
  .catalog-btn    { font-size: 12px; padding: 0 14px; letter-spacing: 0.3px; }

  /* ── O'ng drawer (menyu) — oq, chapga tekislangan ── */
  .nav-links {
    width: min(300px, 84vw) !important;
    height: 100dvh !important;
    background: white !important;
    align-items: stretch !important;
    padding: 64px 0 24px !important;
    box-shadow: -8px 0 32px rgba(0,0,0,0.2) !important;
  }
  .nav-links.open { animation: mSlideRight 0.25s ease-out; }
  .nav-close-btn { background: var(--gray-100); color: var(--gray-700); width: 36px; height: 36px; top: 14px; right: 14px; }
  .nav-close-btn:active { background: var(--red); color: white; }
  .nav-links a {
    justify-content: flex-start;
    padding: 15px 22px !important;
    font-size: 15px !important;
    font-weight: 600;
    color: var(--gray-900) !important;
    border-bottom: 1px solid var(--gray-100) !important;
  }
  .nav-links a:hover, .nav-links a:active { background: var(--gray-50) !important; color: var(--red) !important; }
  .nav-links .nav-home { padding: 15px 22px !important; }
  .nav-links a.active { color: var(--red) !important; background: #fff5f5 !important; }
  .nav-links .nav-home svg { width: 22px; height: 22px; }

  .nav-drawer-extra { display: block; padding: 20px 22px 0; }
  .nav-drawer-label {
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--gray-500);
    margin-bottom: 8px;
  }
  .nav-drawer-langs { display: flex; gap: 8px; margin-bottom: 20px; }
  .nav-drawer-lang {
    flex: 1; height: 40px;
    border: 1.5px solid var(--gray-200); border-radius: 8px;
    background: white; color: var(--gray-700);
    font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer;
  }
  .nav-drawer-lang.active { background: var(--red); border-color: var(--red); color: white; }
  .nav-drawer-contact,
  .nav-links a.nav-drawer-contact {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0 !important;
    border: none !important;
    font-size: 13.5px !important; font-weight: 500;
    color: var(--gray-700) !important;
    line-height: 1.4;
    text-decoration: none;
  }
  .nav-links a.nav-drawer-contact { font-weight: 700; color: var(--gray-900) !important; }
  .nav-drawer-contact svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 1px; }

  /* ── Chap drawer (katalog) ── */
  .catalog-mega-drop.open { animation: mSlideLeft 0.25s ease-out; }
  .mega-overlay  { z-index: 9999; }
  .nav-overlay.open, .mega-overlay.open { animation: mFade 0.2s ease-out; }
  .mega-mobile-head { padding: 12px 16px !important; font-size: 14px !important; min-height: 52px !important; }
  .catalog-mega-head { padding: 15px 16px !important; font-size: 13.5px !important; }
  a.cmi { font-size: 14px; }

  /* ── Hero: matn chapda, rasm o'ngda ── */
  .hero-inner { padding: 12px 14px 0; }
  .hero-main  { min-height: 0; border-radius: 12px; background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%); }
  .hero-slide { flex-direction: row; align-items: center; gap: 10px; padding: 20px 16px 34px; }
  .hero-text  { flex: 1; min-width: 0; width: auto; }
  .hero-image {
    position: static;
    width: 38%; height: 150px;
    opacity: 1;
    flex-shrink: 0;
  }
  .hero-image img { max-width: 100% !important; max-height: 150px !important; }
  .hero-img-placeholder { width: 100%; height: 130px; }
  .hero-tag   { font-size: 10px; padding: 4px 10px; border-radius: 50px; }
  .hero-title { font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
  .hero-desc  {
    font-size: 12.5px; line-height: 1.5; margin-bottom: 14px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hero-main .btn-red { padding: 10px 16px; font-size: 11.5px; border-radius: 8px; }
  .hero-dots { bottom: 12px; }

  /* ── Afzalliklar: 2×2 kartochkalar ── */
  .features { background: var(--gray-50); border: none; }
  .features-inner { gap: 8px; padding: 12px 14px; }
  .feature-item,
  .feature-item:nth-child(odd) {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 10px;
    gap: 10px;
    align-items: flex-start;
  }
  .feature-icon { width: 36px; height: 36px; }
  .feature-icon svg { width: 18px; height: 18px; }
  .feature-title { font-size: 12.5px; line-height: 1.25; }
  .feature-desc  { font-size: 11px; line-height: 1.35; }

  /* ── Bo'lim sarlavhasi ── */
  .section       { padding: 28px 0; }
  .section-inner { padding: 0 14px; }
  .section-header { flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
  .section-title  { font-size: 22px; }
  .section-header .tab-btns {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }
  .section-header .tab-btns::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; white-space: nowrap; padding: 7px 14px; border-radius: 50px; font-size: 11.5px; }
  .nav-arrow { width: 36px; height: 36px; border-radius: 8px; }

  /* ── Mahsulot kartochkalari ── */
  .products-grid, .catalog-grid { gap: 10px; }
  .product-card  { border-radius: 10px; }
  .product-img   { padding: 12px; }
  .product-info  { padding: 10px; }
  .product-name  {
    font-size: 12.5px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
    overflow-wrap: anywhere;
  }
  .product-price, .price-new { font-size: 14px; }
  .product-badge  { font-size: 9.5px; top: 8px; left: 8px; }
  .card-wish-btn  { width: 32px; height: 32px; }

  /* "So'nggi qo'shilganlar" ro'yxati */
  .recent-card   { border-radius: 10px; padding: 12px; gap: 12px; }
  .recent-img    { width: 76px; height: 68px; border-radius: 8px; }
  .recent-name   { font-size: 13px; overflow-wrap: anywhere; }
  .recent-actions .btn-detail { padding: 7px 12px; border-radius: 6px; }

  /* ── Breadcrumb: bitta qator, yonga suriladi ── */
  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    margin-bottom: 12px;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }

  /* ── Katalog: saralash "pill"lari ── */
  .sort-bar   { border-radius: 10px; padding: 10px; }
  .sort-links {
    width: 100%; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto;
    gap: 6px; scrollbar-width: none;
  }
  .sort-links::-webkit-scrollbar { display: none; }
  .sort-link {
    flex-shrink: 0; white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid var(--gray-200); border-radius: 50px;
    font-size: 12px; background: white;
  }
  .sort-link.active { background: var(--red); border-color: var(--red); color: white; }
  /* Toolbar: [Filter] [N ta mahsulot] [grid|list] / saralash pill'lari */
  .sort-bar { flex-wrap: wrap; gap: 10px; }
  .sort-bar .sidebar-toggle-btn {
    order: 0;
    width: auto; margin: 0;
    height: 36px; padding: 0 16px;
    border-radius: 50px;
    font-size: 13.5px;
    justify-content: center;
  }
  .sort-bar .sort-count { order: 1; flex: 1; margin-left: 0 !important; font-size: 12.5px !important; white-space: nowrap; }
  .sort-bar .view-btns  { order: 2; }
  .sort-bar .sort-links { order: 3; }
  .view-btn { width: 36px; height: 36px; border-radius: 8px; }

  /* Kategoriya tavsifi — 3 qator + "Batafsil" */
  .catalog-head { margin-bottom: 12px; }
  .catalog-title { font-size: 24px; }
  .catalog-desc:not(.open) {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .catalog-desc { font-size: 13px; line-height: 1.55; }
  .catalog-desc p { margin: 0; }
  .catalog-desc-more {
    display: inline-block;
    margin-top: 4px; padding: 0;
    background: none; border: none;
    color: var(--red); font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700;
    cursor: pointer;
  }

  /* Chip'lar — bitta qator, yonga suriladi (ekran chetigacha) */
  .cat-chips {
    flex-wrap: nowrap; overflow-x: auto;
    margin: 0 -14px 12px; padding: 0 14px 2px;
    scrollbar-width: none;
  }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chip { flex-shrink: 0; padding: 8px 14px; }

  /* Kartochka: reytingi yo'q bo'lsa "0 fikr" qatori yashiriladi */
  .catalog-card { border-radius: 10px; }
  .stars--none { display: none; }
  .catalog-card .product-name { margin-bottom: 6px; }
  .catalog-card .product-img img { max-height: none !important; max-height: 100% !important; }
  #catalogGrid.list-view .catalog-card { border-radius: 10px; }
  .pagination { flex-wrap: wrap; }
  .page-btn, a.page-btn { width: 38px; height: 38px; font-size: 13px; border-radius: 8px; }

  /* ── Mahsulot sahifasi ── */
  input, select, textarea { font-size: 16px !important; } /* iOS fokusda zoom qilmasin */

  .detail-top { padding: 0; gap: 0; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
  .detail-gallery { padding: 10px 10px 0; }
  .gallery-main {
    max-height: 340px;
    border: none; border-radius: 10px;
    background: var(--gray-50);
  }
  .gallery-main img { mix-blend-mode: multiply; }
  .gallery-zoom-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); color: var(--gray-700); box-shadow: var(--shadow-sm); }
  .gallery-badge { top: 10px; left: 10px; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumbs:has(> .gallery-thumb:only-child) { display: none; }
  .gallery-thumb { width: 60px; height: 60px; flex-shrink: 0; border-radius: 8px; }

  .detail-info  { padding: 16px; }
  .detail-title { font-size: 24px; line-height: 1.15; margin-bottom: 6px; overflow-wrap: anywhere; }
  .detail-model { margin-bottom: 6px; }
  .detail-short-desc {
    font-size: 13.5px; font-weight: 500; line-height: 1.45;
    color: var(--gray-500);
    margin-bottom: 10px;
    overflow-wrap: anywhere;
  }
  .detail-rating { margin-bottom: 14px; font-size: 13px; }

  .detail-buy-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 6px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
  }
  .detail-buy-box .detail-price-block { margin: 0; min-width: 0; }
  .detail-price { font-size: 26px; line-height: 1.1; margin: 0; }
  .detail-price-old { font-size: 14px; margin-bottom: 2px; }
  .detail-buy-box .in-stock {
    margin: 0;
    padding: 5px 10px;
    border-radius: 50px;
    background: #dcfce7;
    font-size: 12px;
    white-space: nowrap;
  }
  .detail-buy-box .in-stock.out-of-stock { background: var(--gray-100); color: var(--gray-500); }
  .detail-buy-box .in-stock svg { width: 14px; height: 14px; }

  .detail-action-row { flex-wrap: nowrap; }
  .detail-action-row .btn-red { flex: 1; min-width: 0; justify-content: center; padding: 15px 16px; border-radius: 10px; font-size: 13px; }
  .detail-wish-btn { flex: 0 0 52px; height: 52px; padding: 0; justify-content: center; border-radius: 10px; }
  .detail-wish-btn .wish-label { display: none; }

  .detail-trust { justify-content: space-between; gap: 6px; margin-top: 14px; padding-top: 14px; }
  .detail-trust li {
    flex: 1; flex-direction: column; text-align: center;
    gap: 5px; font-size: 11px; line-height: 1.25;
  }
  .detail-trust svg {
    width: 34px; height: 34px; padding: 8px;
    background: #fff1f2; border-radius: 50%;
  }

  /* Tablar — teng kenglikdagi segmentlar */
  .detail-tabs { border-radius: 14px; overflow: hidden; }
  .detail-tab-btns { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .detail-tab-btns::-webkit-scrollbar { display: none; }
  .detail-tab-btn  { flex: 1 0 auto; white-space: nowrap; padding: 14px 10px; font-size: 13.5px; text-align: center; }
  .detail-tab-content { padding: 16px; overflow-wrap: anywhere; }
  #tab-data > div { font-size: 14.5px !important; line-height: 1.7 !important; }
  #tab-data p { margin-bottom: 10px; }

  /* Xususiyatlar — nom ustida, qiymat ostida (tor ustunlar o'rniga) */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td, .spec-table th { display: block; width: auto !important; }
  .spec-table tr { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); }
  .spec-table tr:nth-child(even) { background: var(--gray-50); }
  .spec-table tr:nth-child(even) td { background: none; }
  .spec-table td { padding: 0; border: none; font-size: 14px; word-break: break-word; }
  .spec-table td:first-child { font-size: 12px; font-weight: 600; color: var(--gray-500); margin-bottom: 3px; }
  .spec-table td:last-child  { color: var(--gray-900); line-height: 1.45; }
  .spec-table tr.spec-group { padding: 0; background: none; border: none; }
  .spec-table tr.spec-group th { padding: 16px 12px 8px; border-radius: 8px 8px 0 0; }
  .spec-table tr.spec-group:first-child th { padding-top: 10px; }
  .spec-datasheet { width: 100%; justify-content: center; padding: 12px; border-radius: 10px; }

  /* Fikrlar */
  .review-summary { gap: 16px; padding: 16px; border-radius: 12px; }
  .review-avg-num { font-size: 40px; }
  .review-form-wrap { padding: 16px; border-radius: 12px; }
  .review-form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .review-form-row > div { margin-bottom: 12px; }
  .review-form-wrap .form-input { border-radius: 8px; }
  .star-picker { gap: 4px; }
  .star-pick { width: 42px; height: 42px; }
  .review-form-wrap .btn-red { width: 100%; justify-content: center; padding: 14px; border-radius: 10px; }

  /* Pastki "Narx so'rash" paneli */
  .mobile-cta {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta-call {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--red); border-radius: 10px;
    color: var(--red);
  }
  .mobile-cta-call svg { width: 20px; height: 20px; }
  .mobile-cta-price {
    flex: 1; min-width: 0;
    font-size: 16px; font-weight: 800; color: var(--red);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-cta-btn {
    height: 46px; padding: 0 18px;
    display: flex; align-items: center;
    background: var(--red); color: white;
    border-radius: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
  }
  .mobile-cta-btn:active { background: var(--red-dark); }


  /* ── Kontakt ── */
  .contact-title  { font-size: 26px; margin-bottom: 14px; }
  .contact-notice {
    background: white; color: var(--gray-700);
    border: 1px solid var(--gray-200); border-left: 4px solid var(--red);
    border-radius: 10px;
    padding: 14px 16px; margin-bottom: 16px;
    font-size: 13.5px;
  }
  .contact-notice strong { display: block; color: var(--gray-900); margin-bottom: 2px; }
  .contact-form { padding: 18px 16px; border-radius: 14px; }
  .contact-form .form-group { margin-bottom: 12px; }
  .contact-form .form-input { height: 52px; padding: 0 16px; border-radius: 10px; }
  .contact-form .btn-red { width: 100%; justify-content: center; padding: 16px; border-radius: 10px; font-size: 13px; margin-top: 4px; }
  .contact-cards { margin-top: 18px; grid-template-columns: 1fr; gap: 10px; }
  .contact-card  { padding: 14px; border-radius: 12px; align-items: center; }
  a.contact-card { position: relative; padding-right: 36px; }
  a.contact-card::after {
    content: ''; position: absolute; right: 16px; top: 50%;
    width: 8px; height: 8px;
    border-top: 2px solid var(--gray-300); border-right: 2px solid var(--gray-300);
    transform: translateY(-50%) rotate(45deg);
  }
  .contact-card-value { font-size: 14.5px; }

  /* "Narx so'rash" mahsulot kartasi */
  .price-request-card { gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 14px; background: white; }
  .price-request-card img, .price-request-card .no-img { width: 64px; height: 64px; }
  .price-request-card .product-title { font-size: 15px; overflow-wrap: anywhere; }
  .price-request-badge { display: none; }

  /* ── Sevimlilar: ro'yxat ko'rinishi ── */
  .wish-head { margin-bottom: 16px; }
  .wish-title { font-size: 24px; }
  .wish-clear-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; flex-shrink: 0; }
  .wish-clear-btn .wish-clear-label { display: none; }
  .wish-clear-btn svg { width: 18px; height: 18px; }
  .wishlist-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .wishlist-card {
    display: flex; align-items: stretch;
    border-radius: 12px;
  }
  .wishlist-card:hover { transform: none; }
  .wishlist-card .product-img {
    width: 112px; flex-shrink: 0;
    aspect-ratio: auto;
    padding: 10px;
    border-right: 1px solid var(--gray-100);
  }
  .wishlist-card .product-img img { max-height: 92px; }
  .wishlist-card .product-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    padding: 12px 44px 12px 14px;
  }
  .wishlist-card a.product-name { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; min-height: 0; }
  .wishlist-card .product-price { font-size: 16px; margin-top: 4px; }
  .wishlist-actions { margin-top: auto; padding-top: 10px; margin-right: -30px; }
  .wishlist-actions .btn-red,
  .wishlist-actions .btn-detail {
    flex: 1; justify-content: center;
    height: 38px; padding: 0 10px;
    border-radius: 8px;
    font-size: 11.5px; white-space: nowrap;
  }
  .wish-remove-btn { top: 10px; right: 10px; width: 32px; height: 32px; }
  .wishlist-empty { padding: 48px 16px; }
  .wishlist-empty svg {
    width: 88px; height: 88px; padding: 20px;
    border-radius: 50%; background: white; color: var(--red);
    box-shadow: var(--shadow-sm);
  }
  .wishlist-empty .btn-red { padding: 14px 24px; border-radius: 10px; }

  /* Toast — pastki panel ustida, ekran kengligida */
  #wishToast { left: 14px !important; right: 14px !important; bottom: 86px !important; max-width: none !important; justify-content: center; border-radius: 10px !important; }

  /* ── Yetkazib berish sahifasi ── */
  .policy-card { padding: 20px 16px; border-radius: 14px; }
  .policy-card h1 { font-size: 26px; }
  .policy-lead { font-size: 14px; margin-bottom: 16px; }
  .policy-facts { grid-template-columns: 1fr; gap: 8px; }
  .policy-fact { align-items: center; padding: 12px; }
  .policy-section { margin-top: 24px; }
  .policy-section h2 { font-size: 21px; }
  .policy-list li { font-size: 14.5px; }
  .policy-contacts .contact-cards { grid-template-columns: 1fr; gap: 10px; }

  /* ── Xato sahifalari (400/403/404/500) ── */
  .error-page { min-height: 0; padding: 20px 14px 32px; align-items: flex-start; }
  .error-card { margin: 0; padding: 28px 18px 22px; border-radius: 16px; }
  .error-code-wrap { margin-bottom: 4px; }
  .error-code { font-size: 96px; opacity: 1; letter-spacing: -2px; }
  .error-icon { display: none; }
  .error-title { font-size: 24px; margin-bottom: 8px; }
  .error-desc  { font-size: 14px; margin-bottom: 18px; }
  .error-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .error-btn-primary, .error-btn-secondary { flex: 1 1 auto; width: auto; padding: 13px 14px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
  .error-cats { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 20px -18px 0; padding: 18px 18px 2px; scrollbar-width: none; }
  .error-cats::-webkit-scrollbar { display: none; }
  .error-cats .cat-chip { flex-shrink: 0; }
  .error-details {
    margin-top: 18px; padding: 0;
    background: none; border: none;
    font-family: 'Barlow', sans-serif; font-size: 11px; color: var(--gray-400);
    overflow-wrap: anywhere;
  }

  /* ── Bosh sahifa ── */
  /* Sidebar bannerlari — hero ostida yonga suriladigan qator */
  .hero-sidebar {
    display: flex; flex-direction: row; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    margin: 0 -14px; padding: 0 14px 2px;
  }
  .hero-sidebar::-webkit-scrollbar { display: none; }
  .sidebar-banner {
    flex: 0 0 auto;
    padding: 8px 16px 8px 8px; gap: 10px;
    border-radius: 12px;
  }
  .sidebar-banner-img { width: 48px; height: 44px; border-radius: 8px; background: var(--gray-50); }
  .sidebar-banner-img img { width: 40px !important; height: 36px !important; }
  .sidebar-banner-title { font-size: 13.5px; white-space: nowrap; }
  .sidebar-banner .btn-red-sm { display: none; }
  .hero-inner { gap: 10px; }

  /* Mahsulot slayderlari — barmoq bilan suriladi, keyingisi chetdan ko'rinadi */
  .products-slider-wrap, .related-slider-wrap {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 14px;
    scrollbar-width: none;
    margin: 0 -14px; padding: 0 14px 4px;
  }
  .products-slider-wrap::-webkit-scrollbar, .related-slider-wrap::-webkit-scrollbar { display: none; }
  .products-slider, .related-slider { transform: none !important; transition: none; }
  .products-slider .product-card, .related-slider .product-card {
    flex: 0 0 44% !important;
    scroll-snap-align: start;
  }
  .products-slider::after, .related-slider::after { content: ''; flex: 0 0 4px; }
  .product-card:hover { transform: none; }

  /* "So'nggi qo'shilganlar" — ixcham qator, yurak o'ngda */
  .recent-card { position: relative; padding: 10px 56px 10px 10px; gap: 12px; }
  .recent-img  { width: 68px; height: 60px; }
  .recent-img img { width: 64px !important; height: 56px !important; }
  .recent-actions { margin: 0; }
  .recent-actions .btn-detail { display: none; }
  .recent-actions .card-wish-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
  .recent-name { margin-bottom: 2px; }
  .section-more { width: 100%; padding: 13px; border-radius: 10px; }

  /* ── Navbar: [Katalog] [Qidirish… ] [♥] [≡] ── */
  .navbar-inner   { padding: 0 6px 0 0; align-items: center; }
  .catalog-btn    { height: 52px; padding: 0 12px 0 14px; font-size: 13px; letter-spacing: 0.3px; }
  .catalog-label  { display: none; }
  .catalog-label-short { display: inline; }
  #catalogArrow   { margin-left: 4px !important; }
  .nav-search-pill {
    display: flex; align-items: center; gap: 8px;
    flex: 1; min-width: 0;
    height: 36px; margin: 0 4px 0 10px; padding: 0 14px;
    background: white; color: var(--gray-500);
    border: none; border-radius: 50px;
    font-family: 'Barlow', sans-serif; font-size: 14px;
    cursor: pointer; text-align: left;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
  }
  .nav-search-pill svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; }
  .nav-search-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .navbar-search  { margin-left: 0; order: 5; }
  .navbar-search .search-btn { display: none; }
  .wish-btn-float { padding: 0 10px; height: 52px; }
  .mobile-menu-btn { order: 10; height: 52px; padding: 0 8px; }

  /* Qidiruv oynasi — navbar ustida, ekran kengligida */
  .search-overlay { z-index: 10020; padding: 12px; align-items: flex-start; }
  .search-overlay.open { animation: mFade 0.15s ease-out; }
  .search-box { width: 100%; max-width: none; padding: 6px; border-radius: 12px; }
  .search-box input { min-width: 0; padding: 10px 12px; font-size: 16px; }
  .search-box button { border-radius: 8px; padding: 0 14px; white-space: nowrap; }

  /* ── Footer ── */
  .footer-brand {
    background: white;
    border: 1px solid var(--gray-200); border-radius: 14px;
    padding: 18px 16px;
  }
  .footer-logo { font-size: 24px; margin-bottom: 12px; }
  .footer-contact-value { font-size: 20px; }
  .footer-hours { margin-top: 12px; }
  .footer-address { margin: 6px 0 14px; padding-left: 24px; position: relative; }
  .footer-address::before {
    content: ''; position: absolute; left: 4px; top: 4px;
    width: 8px; height: 8px; border-radius: 50%;
    border: 2px solid var(--red);
  }
  .footer-social { gap: 10px; }
  .social-btn { width: 42px; height: 42px; border-radius: 50%; }
  .footer-col-title { font-size: 15px; margin-bottom: 10px; }
  .footer-links li { margin-bottom: 0; }
  .footer-links a { padding: 6px 0; font-size: 14px; }
  .footer-bottom { flex-direction: column; gap: 4px; padding: 14px 14px 18px; font-size: 12.5px; }

  /* ── Footer: brend to'liq qator, havolalar 2 ustun ── */
  .footer { margin-top: 0; padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 28px 14px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-inner > :nth-child(2) { grid-row: span 2; }
  .footer-inner > :nth-child(4) { grid-column: 2; margin-top: -12px; }
  .footer-inner > :nth-child(4) .footer-col-title { display: none; }
}

/* Telefon raqami sig'masa — Telegram tugmasi yashiriladi */
@media (max-width: 420px) {
  .header-action--tg { display: none; }
  .logo-main { font-size: 22px; }
}
@media (max-width: 360px) {
  .header-action--call span { display: none; }
  .header-action--call { padding: 0; width: 38px; }
  .hero-title { font-size: 19px; }
  .hero-image { width: 34%; }
}

/* ── Planshet: fayl oxirida — mobil (≤768px) qoidalaridan keyin turishi shart ── */
/* Sevimlilar — planshet (600–991px): 2 ustunli gorizontal kartochkalar */
@media (min-width: 600px) and (max-width: 991px) {
  .wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
  .wishlist-card { flex-direction: row; align-items: stretch; border-radius: 14px; }
  .wishlist-card:hover { transform: none; }
  .wishlist-card .product-img {
    width: 38%; flex-shrink: 0; aspect-ratio: auto;
    padding: 14px; border-right: 1px solid var(--gray-100);
  }
  .wishlist-card .product-img img { max-height: 120px; }
  .wishlist-card .product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 46px 14px 14px; }
  .wishlist-card a.product-name { min-height: 0; font-size: 14px; }
  .wishlist-card .product-price { font-size: 17px; margin-top: 4px; }
  .wishlist-actions { margin-top: auto; padding-top: 12px; margin-right: -32px; flex-wrap: wrap; }
  .wishlist-actions .btn-red,
  .wishlist-actions .btn-detail { flex: 1 1 auto; justify-content: center; height: 38px; padding: 0 12px; border-radius: 8px; white-space: nowrap; }
  .wish-remove-btn { top: 10px; right: 10px; }
  .wish-clear-btn { width: auto; height: auto; padding: 9px 16px; border-radius: 50px; }
  .wish-clear-btn .wish-clear-label { display: inline; }
  .wishlist-empty { background: white; border: 1px solid var(--gray-200); border-radius: 16px; padding: 48px 20px; }
}
/* 600–768px: tavsiya slayderida 3 ta kartochka (mobildagi 44% juda katta) */
@media (min-width: 600px) and (max-width: 768px) {
  .related-slider .product-card, .products-slider .product-card { flex: 0 0 31% !important; }
}

/* Katalog — planshet (600–991px): 3 ustun */
@media (min-width: 600px) and (max-width: 991px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px; }
  .catalog-card { border-radius: 12px; }
  .catalog-card .product-img { padding: 14px; aspect-ratio: 4 / 3 !important; }  /* shablonda inline 1:1 */
  #catalogGrid.list-view .catalog-card .product-img { aspect-ratio: auto !important; }
  .catalog-card .product-img img { max-height: 100% !important; }
  .catalog-card .product-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
  }
}
/* 769–991px: filtr ustuni sig'maydi (kartochkalar ~110px bo'lib qolardi) —
   mobildagidek "Filter" tugmasi + drawer, toolbar ikki qatorda */
@media (min-width: 769px) and (max-width: 991px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .catalog-layout > .sidebar { display: none; }
  .filter-drawer.open { display: block !important; }
  .filter-drawer-overlay.open { display: block !important; }
  .sort-bar { flex-wrap: wrap; gap: 10px; }
  .sort-bar .sidebar-toggle-btn {
    display: flex !important; order: 0;
    width: auto; margin: 0; height: 38px; padding: 0 18px;
    border-radius: 50px; justify-content: center; font-size: 14px;
  }
  .sort-bar .sort-count { order: 1; flex: 1; margin-left: 0 !important; white-space: nowrap; }
  .sort-bar .view-btns  { order: 2; }
  .sort-bar .sort-links { order: 3; width: 100%; margin-left: 0 !important; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sort-bar .sort-links::-webkit-scrollbar { display: none; }
  .sort-link { flex-shrink: 0; white-space: nowrap; }
}

/* Mahsulot sahifasi — planshet (769–1199px). Desktop qoidalari (sidebar 260px +
   galereya 440px) bu kenglikka sig'masdi: 820px da sahifa 1091px, 1024px da 1129px
   bo'lib, ma'lumot ustuni ~50px gacha qisilardi. */
@media (min-width: 769px) and (max-width: 1199px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .detail-layout > .sidebar { display: none; }
  .detail-top { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 28px; padding: 24px; }
  .detail-gallery { top: 88px; }
  .detail-title { font-size: 28px; }
  .detail-buy-box { flex-wrap: wrap; padding: 14px 16px; }
  .detail-buy-box .detail-price { font-size: 28px; }
  .detail-action-row .btn-red { min-width: 0; }
  .detail-wish-btn { flex: 0 0 52px; height: 52px; padding: 0; justify-content: center; }
  .detail-wish-btn .wish-label { display: none; }
  .detail-trust { gap: 8px 16px; }
  .detail-keyspecs dl > div { grid-template-columns: 42% 1fr; }
}
/* 600–768px (iPad mini): mobil blok ustidan — galereya va ma'lumot yonma-yon */
@media (min-width: 600px) and (max-width: 768px) {
  /* overflow: hidden (mobil blokdan) sticky uchun scroll-konteyner yaratib, galereyani
     doimiy 64px pastga surardi — clip burchaklarni kesadi, konteyner yaratmaydi */
  .detail-top { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 0; align-items: start; overflow: clip; }
  .detail-gallery { padding: 14px 0 14px 14px; position: sticky; top: 64px; }
  .gallery-main { max-height: none; }
  .detail-info { padding: 16px 16px 18px 20px; }
  .detail-title { font-size: 24px; }
  .detail-trust li { font-size: 10.5px; }
}

/* Bosh sahifa — planshet (769–1199px): 260px'lik banner ustuni hero'ni siqib,
   rasm hero'dan chiqib kesilardi — bannerlar hero ostiga, 3 ta teng kartochka */
@media (min-width: 769px) and (max-width: 1199px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-main { min-height: 340px; }
  .hero-slide { padding: 40px 44px 60px; gap: 24px; }
  .hero-title { font-size: 40px; }
  .hero-image { width: 42%; height: 280px; flex-shrink: 0; }
  .hero-image img { max-height: 280px !important; }
  .hero-dots { left: 44px; }
  .hero-sidebar { flex-direction: row; gap: 14px; }
  .sidebar-banner { flex: 1 1 0; min-width: 0; padding: 12px 14px; }
  .sidebar-banner-img { width: 64px; height: 56px; }
  .sidebar-banner-img img { width: 56px !important; height: 48px !important; }
  .sidebar-banner-title { font-size: 15px; }
}
@media (min-width: 769px) and (max-width: 991px) {
  .features-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 600–768px (iPad mini): mobil blok ustidan */
@media (min-width: 600px) and (max-width: 768px) {
  .hero-slide { padding: 28px 28px 40px; }
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 14px; -webkit-line-clamp: 4; }
  .hero-image { width: 40%; height: 220px; }
  .hero-image img { max-height: 220px !important; }
  .hero-sidebar { overflow: visible; margin: 0; padding: 0; }
  .sidebar-banner { flex: 1 1 0; min-width: 0; }
  .sidebar-banner-title { white-space: normal; }
  .recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-more { width: max-content; padding: 12px 28px; border-radius: 50px; }
}
/* Hero rasmi: inline drop-shadow oq fonli rasm atrofida quti chizardi (barcha o'lchamlarda).
   z-index: auto — mobil blokdagi z-index:1 flex bolada stacking context yaratib,
   mix-blend-mode'ni o'chirib qo'yardi (rasm foni oq quti bo'lib qolardi). */
.hero-image { z-index: auto !important; }
.hero-image img { filter: none !important; mix-blend-mode: multiply; }

/* Kontakt — planshet (769–1199px): sidebar 260px + o'ng ustun 340px orasida forma
   ~100px ga qisilardi (820px da input'larga "Ismin" sig'ardi) — sidebar yashirin */
@media (min-width: 769px) and (max-width: 1199px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .contact-layout > .sidebar { display: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
}
/* 600–768px: aloqa kartochkalari 2×2, tezkor tugmalar yonma-yon */
@media (min-width: 600px) and (max-width: 768px) {
  .contact-grid .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid .contact-quick { flex-direction: row; }
  .contact-grid .contact-quick-btn { flex: 1 1 0; }
  .contact-title { font-size: 30px; }
}

/* Yetkazib berish — 600–768px (iPad mini): mobil blokda kartochkalar ustma-ust,
   butun kenglikka cho'zilgan edi — 3 ta fakt bir qatorda, aloqa 2×2 */
@media (min-width: 600px) and (max-width: 768px) {
  .policy-card { padding: 28px 26px; }
  .policy-card h1 { font-size: 30px; }
  .policy-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .policy-fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .policy-contacts .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 404 — planshet. 768px da kartochka chapga yopishgan (mobil blokdagi
   align-items: flex-start), tavsiyalar 2 ta ulkan ustunda edi */
@media (min-width: 600px) and (max-width: 768px) {
  .error-page { align-items: center; padding: 32px 20px 44px; }
  .error-card { max-width: 600px; padding: 36px 40px 26px; }
  .error-code { font-size: 120px; }
  .error-title { font-size: 28px; }
  .error-cats { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 20px 0 0; padding: 18px 0 0; }
  .error-suggest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .error-suggest-grid > :nth-child(n+5) { display: block; }
}
@media (min-width: 600px) and (max-width: 991px) {
  .error-suggest .product-img { aspect-ratio: 4 / 3; padding: 12px; }
  .error-suggest .product-img img { max-height: 100% !important; }
  .error-suggest .product-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .error-suggest-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
}

/* ── Header / footer — planshet ── */
/* ≤768px: topbar (600px da 2 qatorga bo'linardi) yashirin — telefon/Telegram
   header'da, til va kontaktlar ≡ drawer'da */
@media (max-width: 768px) { .topbar { display: none; } }

/* 769–1024px: header o'rtasida qidiruv (ish vaqti o'rnida), navbar ikonkasi yashirin */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner { gap: 20px; }
  .header-search {
    display: flex; align-items: center;
    flex: 1; height: 46px;
    padding: 0 4px 0 14px;
    background: white;
    border: 2px solid var(--gray-200); border-radius: 50px;
  }
  .header-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,6,19,0.08); }
  .header-search svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
  .header-search input {
    flex: 1; min-width: 0; height: 100%;
    border: none; outline: none; background: none; padding: 0 10px;
    font-family: 'Barlow', sans-serif; font-size: 14px;
  }
  .header-search button {
    height: 36px; padding: 0 18px;
    background: var(--red); color: white; border: none; border-radius: 50px;
    font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .header-info .info-item:nth-child(1),
  .header-info .info-item:nth-child(2) { display: none; }
  .navbar-search .search-btn { display: none; }
}

/* Footer 769–1199px: desktopdagidek bitta qatorda brend + 3 ustun
   (1024px qoidasi 1fr 1fr qilib, "Bo'limlar"ni ikkinchi qatorga tushirardi) */
@media (min-width: 769px) and (max-width: 1199px) {
  .footer-inner { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer-links a { font-size: 13px; }
}
/* Footer 600–768px: brend kartochkasi to'liq qator, ostida 3 ta ustun */
@media (min-width: 600px) and (max-width: 768px) {
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
  .footer-brand {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: 20px;
  }
  .footer-brand > * { grid-column: 1; }
  .footer-brand .footer-social { grid-column: 2; grid-row: 1 / span 4; }
  .footer-inner > :nth-child(2) { grid-row: auto; }
  .footer-inner > :nth-child(4) { grid-column: auto; margin-top: 0; }
  .footer-inner > :nth-child(4) .footer-col-title { display: block; visibility: hidden; }
  .footer-links a { font-size: 13.5px; }
}

/* Sevimlilar: "Hammasiga narx so'rash" paneli (barcha o'lchamlar; desktopda o'ng ustunda) */
.wish-request {
  margin-top: 20px;
  background: white;
  border: 1px solid var(--gray-200); border-top: 4px solid var(--red);
  border-radius: 14px;
  padding: 20px;
}
.wish-request[hidden] { display: none; }
.wish-request-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 800; color: var(--gray-900); }
.wish-request-desc { margin: 4px 0 14px; font-size: 13px; color: var(--gray-500); line-height: 1.5; }
.wish-request-list {
  list-style: none; margin: 0 0 16px; padding: 0;
  max-height: 240px; overflow-y: auto;
  border-top: 1px solid var(--gray-100);
}
.wish-request-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 13px; color: var(--gray-700);
}
.wish-request-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-request-list li b { flex-shrink: 0; color: var(--red); font-weight: 700; }
#wishRequestForm { display: flex; flex-direction: column; gap: 10px; }
#wishRequestForm .form-input { height: 48px; padding: 0 16px; border-radius: 10px; }
#wishRequestForm .form-input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(227,6,19,0.08); }
#wishRequestForm .btn-red { justify-content: center; padding: 15px; border-radius: 10px; }
.wish-request-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 10px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  color: var(--gray-900); font-weight: 700; font-size: 14px; text-decoration: none;
}
.wish-request-call:hover { border-color: var(--red); color: var(--red); }
.wish-request-call svg { width: 17px; height: 17px; color: var(--red); }

@media (min-width: 992px) {
  .wish-layout:has(.wish-request:not([hidden])) {
    display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start;
  }
  .wish-layout .wish-request { margin-top: 0; position: sticky; top: 88px; }
  .wish-layout .wishlist-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Sevimlilar: serverdan yangilangan eski narx / nofaol mahsulot (refreshWishlist) */
.wish-old-price { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--gray-400); }
.wish-old-price span { padding: 1px 6px; border-radius: 4px; background: #dcfce7; color: #16a34a; font-weight: 700; }
.wish-unavailable { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--gray-500); }
.wishlist-card.is-inactive .product-img img { opacity: 0.4; filter: grayscale(1); }
.wishlist-card.is-inactive a.product-name { color: var(--gray-500); }

/* Tor kartochkada (o'ng panel bilan) ruscha "Подробнее" kesilardi — sig'masa 2 qator */
.wishlist-actions { flex-wrap: wrap; }
.wishlist-actions .btn-red, .wishlist-actions .btn-detail { flex: 1 1 auto; }

/* Sevimlilar — planshet (600–991px): narx so'rash paneli ikki ustunda
   (butun kenglikda input'lar ~700px bo'lib cho'zilardi) */
@media (min-width: 600px) and (max-width: 991px) {
  .wish-request {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    column-gap: 28px; align-items: start;
    padding: 22px 24px;
  }
  .wish-request[hidden] { display: none; }
  .wish-request > .wish-request-title,
  .wish-request > .wish-request-desc,
  .wish-request > .wish-request-list { grid-column: 1; }
  .wish-request > .wish-request-list { margin-bottom: 0; max-height: 200px; }
  .wish-request > #wishRequestForm { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .wish-request > .wish-request-call { grid-column: 2; }
  .wishlist-actions .btn-detail { background: white; }
}
.wish-request > #wishRequestForm { align-self: end; }
.wish-request > .wish-request-call { grid-row: 4; }
@media (min-width: 600px) and (max-width: 768px) {
  .wish-request { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
}

/* "YANGI" va chegirma belgisi ikkalasi chap yuqori burchakda — chegirma bo'lsa
   "YANGI" pastga (avval biri ikkinchisini yopardi; barcha kartochkalar) */
.product-card:has(.discount-badge) .product-badge,
.catalog-card:has(.discount-badge) .product-badge { top: 36px; }
/* Aloqa paneli matndan baland bo'lsa, ortiqcha joy bo'limlar orasiga emas,
   oxirgi qatorga (ikkinchi bo'lim ostiga) tushsin */
@media (min-width: 993px) {
  .policy-card { grid-template-rows: auto auto auto auto 1fr; }
}

/* Chegirmali narx: yangi narx doim alohida qatorda, ostida eski narx + belgi
   (avval narx uzunligiga qarab goh yonma-yon, goh 2 qatorda — kartochkalar notekis) */
.price-row-inline { gap: 3px 8px; }
.price-row-inline .price-new { flex-basis: 100%; }

/* 404 desktop: kategoriya tugmalari bir qatorga sig'sin ("Kontakt" yolg'iz qolardi) */
@media (min-width: 1200px) {
  .error-card { max-width: 740px; }
}

/* Katalog mega-menyu — desktop (≥1025px): har bir asosiy kategoriya o'z ustunida.
   Avval qat'iy repeat(3) edi — 4-kategoriya ("Boshqalar") 1-ustun ostiga
   ajratgichsiz tushardi. Ustun soni nav_categories soniga moslashadi. */
@media (min-width: 1025px) {
  .catalog-mega-drop { width: auto; min-width: 780px; max-width: calc(100vw - 40px); border-radius: 0 0 12px 12px; }
  .catalog-mega-inner { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 230px; }
  /* "IP Kameralar" havolasi ostida yana "IP KAMERALAR" sarlavhasi takrorlanardi */
  .catalog-mega-subhead { display: none; }
  .catalog-mega-col-inner { margin-top: 0; }
}

/* Mahsulot: fikr yo'q holati (yulduzlar o'rnida tugma, bo'sh blok) */
.detail-review-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; background: none; border: none; cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600; color: var(--gray-500);
}
.detail-review-cta svg { width: 16px; height: 16px; color: var(--yellow); }
.detail-review-cta:hover { color: var(--red); }
.review-empty {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; margin-bottom: 20px;
  background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: 12px;
  font-size: 14px; color: var(--gray-600);
}
.review-empty svg { width: 26px; height: 26px; color: var(--red); flex-shrink: 0; }

/* Xususiyatlar: guruh sarlavhasi qatorlardan ajralib tursin (desktop) */
@media (min-width: 769px) {
  .spec-table tr.spec-group th {
    background: white; border-bottom: 2px solid var(--red);
    padding: 22px 14px 8px; font-size: 16px;
  }
  .spec-table tr.spec-group:first-child th { padding-top: 6px; }
  .spec-table td { padding: 11px 14px; }
  .spec-table td:first-child { color: var(--gray-500); font-weight: 500; width: 36%; }
  .spec-table td:last-child { color: var(--gray-900); font-weight: 500; }
}

/* Katalog ro'yxat ko'rinishi (≡): qisqa tavsif + tugmalar — faqat desktop/planshet.
   Avval qatorda faqat nom va narx bo'lib, ~70% bo'sh qolardi. */
.card-list-extra { display: none; }
@media (min-width: 769px) {
  #catalogGrid.list-view .catalog-card { grid-template-columns: 200px minmax(0, 1fr); min-height: 0; }
  #catalogGrid.list-view .product-img { height: auto; min-height: 150px; }
  #catalogGrid.list-view .product-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-areas: "name price" "stars price" "desc actions";
    column-gap: 28px; align-content: center;
    padding: 18px 56px 18px 22px;
  }
  #catalogGrid.list-view .product-name { grid-area: name; -webkit-line-clamp: 2; min-height: 0; margin-bottom: 4px; }
  #catalogGrid.list-view .stars { grid-area: stars; }
  #catalogGrid.list-view .price-row-inline,
  #catalogGrid.list-view .product-price,
  #catalogGrid.list-view .product-price-na { grid-area: price; margin: 0; align-self: start; text-align: right; justify-content: flex-end; }
  #catalogGrid.list-view .price-row-inline .price-new { text-align: right; }
  #catalogGrid.list-view .card-list-extra { display: contents; }
  #catalogGrid.list-view .card-list-desc {
    grid-area: desc; margin: 0;
    font-size: 13px; line-height: 1.5; color: var(--gray-500);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  #catalogGrid.list-view .card-list-actions { grid-area: actions; display: flex; gap: 8px; align-self: end; margin-top: 12px; }
  #catalogGrid.list-view .card-list-actions a {
    flex: 1; display: flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 10px; border-radius: 8px;
    font-size: 11.5px; white-space: nowrap; text-decoration: none;
  }
  #catalogGrid.list-view .card-list-actions .btn-detail { background: white; }
}
@media (min-width: 769px) {
  /* shablondagi inline aspect-ratio:1 qatorni 200px baland qilardi */
  #catalogGrid.list-view .catalog-card .product-img { aspect-ratio: auto !important; height: 150px; min-height: 0; padding: 14px; }
  #catalogGrid.list-view .catalog-card .product-img img { max-height: 100% !important; }
}

/* Header qidiruvi — doim qizil ramka + sekin "nafas oluvchi" nur (ko'zga tashlansin).
   Bosilganda nur to'xtaydi; prefers-reduced-motion'da faqat ramka. */
@keyframes searchGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(227,6,19,0.10); }
  50%      { box-shadow: 0 0 0 6px rgba(227,6,19,0.22); }
}
.header-search { border-color: var(--red) !important; animation: searchGlow 2.4s ease-in-out infinite; }
.header-search:focus-within { animation: none; box-shadow: 0 0 0 4px rgba(227,6,19,0.18) !important; }
.header-search svg { color: var(--red) !important; }
@media (prefers-reduced-motion: reduce) {
  .header-search { animation: none; box-shadow: 0 0 0 3px rgba(227,6,19,0.12); }
}

/* Oq fonli "Batafsil" tugmalari: hover'da fon oqligicha qolib, matn ham oq bo'lib
   ko'rinmay qolardi (asosiy .btn-detail:hover dan kuchliroq background: white) */
.wishlist-actions .btn-detail:hover,
.wishlist-actions .btn-detail:focus-visible,
#catalogGrid.list-view .card-list-actions .btn-detail:hover,
#catalogGrid.list-view .card-list-actions .btn-detail:focus-visible {
  background: var(--red); border-color: var(--red); color: white;
}

/* Galereyada rasm bitta bo'lsa o'q tugmalari kerak emas */
.detail-gallery:has(.gallery-thumb:only-child) .gallery-arrow { display: none; }

/* Mega-menyu: ichki kategoriyasiz bosh kategoriyalar (HDD, Kabel...) bitta
   guruh ustunida ustma-ust (navbar.html → .catalog-mega-group) */
.catalog-mega-group:not(:has(.catalog-mega-col)) { display: none; }
@media (min-width: 769px) {
  .catalog-mega-group { padding: 0 24px; }
  .catalog-mega-group .catalog-mega-col { padding: 0; border-right: none; }
  .catalog-mega-col--flat { margin-bottom: 14px; }
  .catalog-mega-col--flat .catalog-mega-head { margin-bottom: 0; }
  .catalog-mega-col--flat .catalog-mega-head a:hover { color: var(--red) !important; }
  .catalog-mega-col--flat .cmi-list { display: none !important; }
}
@media (max-width: 768px) {
  .catalog-mega-group { display: contents; }
}
@media (max-width: 768px) {
  /* ichida faqat "Barchasini ko'rish" — accordion o'qi kerak emas, havola o'zi yetarli */
  .catalog-mega-col--flat .col-arrow { display: none !important; }
}
/* Mega-menyu planshetda (769–1024px, 2 ustun): qatorlar orasida joy, ekranga
   sig'masa ichida suriladi (avval 714px bo'lib pastki qismi ko'rinmasdi) */
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-mega-inner { row-gap: 22px; }
  .catalog-mega-drop.open { max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; }
  .catalog-mega-subhead { display: none; }
}

/* ── Kategoriya SEO matni (templates/_partials/category_seo.html) — mahsulotlar ostida,
   faqat 1-sahifada. Search Console 2026-11-09: kategoriya sahifalari 35–63-o'rinda edi. ── */
.category-seo {
    margin-top: 28px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    color: var(--gray-700);
    font-size: 14.5px;
    line-height: 1.65;
}
.category-seo__h2 {
    margin: 18px 0 8px;
    font-size: 18px;
    line-height: 1.3;
    color: #1a1a1a;
}
.category-seo__h2:first-child { margin-top: 0; }
.category-seo p { margin: 0 0 10px; }
.category-seo__list { margin: 0 0 10px; padding-left: 20px; }
.category-seo__list li { margin-bottom: 5px; }
.category-seo__faq { display: flex; flex-direction: column; gap: 8px; }
.category-seo__qa {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 10px 14px;
    background: #fafafa;
}
.category-seo__qa summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a1a1a;
    list-style: none;
}
.category-seo__qa summary::-webkit-details-marker { display: none; }
.category-seo__qa summary::before {
    content: "+";
    display: inline-block;
    width: 18px;
    color: var(--red);
    font-weight: 700;
}
.category-seo__qa[open] summary::before { content: "−"; }
.category-seo__qa p { margin: 8px 0 0 18px; }
@media (max-width: 768px) {
    .category-seo { padding: 16px; font-size: 14px; margin-top: 20px; }
    .category-seo__h2 { font-size: 16px; }
}

/* ── Hamkorlar bloki (innoline.uz, hrcontrol.uz) — footer TEPASIDA, sahifa kontentidan keyin ── */
.footer-partners-row {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 20px 40px;
}
.footer-partners-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
    margin-bottom: 14px;
}
.footer-partners-title {
    font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--gray-900);
}
.footer-partners-sub { font-size: 13px; color: var(--gray-500); }
.partner-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.partner-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.partner-card:hover,
.partner-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, .35);
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .35);
    outline: none;
}
.partner-logo {
    flex: 0 0 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5fb;
    border-radius: 12px;
}
.partner-logo img { max-width: 48px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.partner-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.partner-name { font-size: 16px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.partner-desc { font-size: 13px; line-height: 1.45; color: var(--gray-500); }
.partner-domain { font-size: 12px; font-weight: 600; color: var(--red); margin-top: 2px; }
.partner-arrow {
    flex: 0 0 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    transition: background .2s ease, color .2s ease;
}
.partner-arrow svg { width: 16px; height: 16px; }
.partner-card:hover .partner-arrow,
.partner-card:focus-visible .partner-arrow { background: var(--red); color: #fff; }
@media (max-width: 768px) {
    .footer-partners-row { padding: 24px 14px 28px; }
    .partner-cards { grid-template-columns: 1fr; gap: 10px; }
    .partner-card { padding: 14px; gap: 12px; }
    .partner-logo { flex-basis: 52px; height: 52px; }
    .partner-logo img { max-width: 40px; max-height: 36px; }
    .partner-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .partner-card { transition: none; }
    .partner-card:hover { transform: none; }
}

/* Kategoriya/brend sahifasidagi "Foydali maqolalar" (2026-11-10) — mahsulotlar ostida, SEO matndan oldin */
.category-blog { margin-top: 28px; }
.category-blog .related-title { margin: 0; }

/* Mahsulot sahifasidagi savol-javob (2026-11-10, apps/product/product_faq.py) — "Ma'lumotlar" tabida, tavsif ostida */
.product-faq { margin-top: 22px; font-size: 13.5px; color: var(--gray-700); line-height: 1.6; }
.product-faq__title { font-size: 16px; font-weight: 800; color: var(--gray-900); margin: 0 0 4px; }

/* Bosh sahifa: brendlar (2026-11-10) — brend sahifalariga ichki havola */
.home-brands h2.section-title { margin: 0; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 14px;
  border: 1px solid var(--gray-200); border-radius: 12px; background: var(--white);
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-card:hover { border-color: var(--red); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-2px); }
.brand-card-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--gray-900); letter-spacing: .3px; }
.brand-card:hover .brand-card-name { color: var(--red); }
.brand-card-count { font-size: 12.5px; color: var(--gray-500); }
@media (max-width: 599px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-card { padding: 12px; }
  .brand-card-name { font-size: 17px; }
}
