/* ========================================
   BIZOMAX TILES — Products Page
   ======================================== */

.products-layout {
  display: flex;
  gap: 30px;
  padding: 40px 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: linear-gradient(135deg, #0f0f2d, #1a1a40);
}

/* ── Filter Sidebar ── */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;

  /* 🔥 CHANGE START */
  background: linear-gradient(135deg, #0f0f2d, #1a1a40);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.1);
  /* 🔥 CHANGE END */

  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filter-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.clear-all {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: color 0.2s;
}

.filter-option:hover {
  color: var(--accent);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--accent);
}

.filter-option.active {
  color: var(--accent);
  font-weight: 600;
}

/* Color dots */
.color-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-gray);
  cursor: pointer;
  transition: all 0.2s;
}

.color-dot:hover,
.color-dot.active {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(201,168,76,0.3);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.active-filter-tag:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Products Content ── */
.products-content {
  flex-grow: 1;
}

.products-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: var(--accent);
  outline: none;
}

.sort-select {
  padding: 10px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
}

.product-count {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product-card-img {
  display: block;
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.product-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.1);
}

.product-card-img .quick-view {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  background: rgba(26,26,46,0.9);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: bottom 0.3s;
  z-index: 2;
}

.product-card:hover .product-card-img .quick-view {
  bottom: 0;
}

.badge-category {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gvt { background: #3498db; }
.badge-pgvt { background: #9b59b6; }
.badge-matt { background: #7f8c8d; }
.badge-highgloss { background: #f1c40f; color: #333; }
.badge-carving { background: #e67e22; }
.badge-wooden { background: #8B4513; }
.badge-outdoor { background: #27ae60; }
.badge-designer { background: #2c3e50; }

.badge-finish {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  z-index: 2;
}

.badge-morbi {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(201,168,76,0.9);
  color: var(--white);
  text-align: center;
  padding: 4px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 2;
}

.product-card-body {
  padding: 15px;
}

.product-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card-body h3 a:hover {
  color: var(--accent);
}

.product-size {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-quote {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.btn-quote:hover {
  background: var(--accent);
}

/* ── Mobile Filter Toggle ── */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  margin-bottom: 16px;
  transition: background 0.3s;
}
.mobile-filter-toggle:hover { background: var(--accent); }
.mobile-filter-toggle span { margin-right: 8px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .products-layout {
    flex-direction: column;
  }
  .mobile-filter-toggle { display: block; }
  .filter-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-gray);
    display: none;
  }
  .filter-sidebar.mobile-open { display: block; }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card-body { padding: 10px; }
  .product-card-body h3 { font-size: 13px; }
  .product-size { font-size: 11px; margin-bottom: 8px; }
  .btn-quote { padding: 8px; font-size: 12px; }
  .product-card-img .badge-category { font-size: 9px; padding: 3px 8px; }
  .product-card-img .badge-finish { font-size: 9px; padding: 3px 8px; }
  .product-card-img .badge-morbi { font-size: 8px; padding: 3px 6px; }
  .product-card-img .quick-view { font-size: 12px; }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  /* 🔥 MAIN FIX — header remove grey */
header {
  background: linear-gradient(135deg, #0f0f2d, #1a1a40) !important;
  border-bottom: none !important;
}

/* navbar same */
.navbar {
  background: linear-gradient(135deg, #0f0f2d, #1a1a40) !important;
}

/* hero merge */
.products-hero {
  margin-top: 0;
  background: linear-gradient(135deg, #0f0f2d, #1a1a40);
}
/* कुछ themes में wrapper भी होता है */
.header-wrapper,
.top-header {
  background: linear-gradient(135deg, #0f0f2d, #1a1a40) !important;
}
/* ===== FORCE NAVBAR FIX (FINAL) ===== */
.navbar,
.navbar.scrolled,
header .navbar,
body .navbar {
  background: linear-gradient(135deg, #0f0f2d, #1a1a40) !important;
}

/* remove any white parent */
header {
  background: linear-gradient(135deg, #0f0f2d, #1a1a40) !important;
}

/* safety */
html, body {
  background: #0f0f2d !important;
}
}
