
  :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; }
  .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; }

  /* ===== 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; }
}
