/* ==============================================================
   PRODUCTS PAGE SCI-FI STYLING
   This file ensures index.html is completely untouched.
   ============================================================== */

/* Page Header Override */
.products-header {
  padding: 10rem 5% 4rem;
  text-align: center;
  position: relative;
  z-index: 10;
}
.products-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.products-header p {
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}
}

/* Smart Search Box */
.mockup-search-container {
  position: relative;
  z-index: 10;
  margin-bottom: -1rem;
}

.mockup-search-box {
  display: flex;
  align-items: center;
  background: rgba(30, 35, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  width: 100%;
  max-width: 500px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.mockup-search-box:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  background: rgba(40, 45, 55, 0.9);
}

.mockup-search-box svg {
  color: #6b7280;
  margin-right: 0.8rem;
  transition: color 0.3s ease;
}

.mockup-search-box:focus-within svg {
  color: var(--primary-blue);
}

.mockup-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
}

.mockup-search-box input::placeholder {
  color: #6b7280;
}

/* Sci-Fi Filter Buttons */
#category-filters, #subcategory-filters, #tertiary-filters {
  position: relative;
  z-index: 10;
}

.filter-btn, .btn-sub {
  background: rgba(30, 35, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.filter-btn:hover, .btn-sub:hover {
  background: rgba(40, 45, 55, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-btn.active, .btn-sub.active {
  background: linear-gradient(145deg, rgba(30, 35, 45, 0.9), rgba(10, 15, 25, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.6);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 0 10px rgba(59, 130, 246, 0.2);
}

.btn-sub {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* Product Grid Layout */
.products-section {
  position: relative;
  z-index: 10;
  padding-bottom: 6rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 5%;
}

/* Make product cards fill the track */
.mockup-product-card {
  width: 100% !important; 
}

/* Handle JPEG White Backgrounds */
/* We create a 'studio podium' effect so the white JPEG background blends into a nice rounded white box */
.products-section .card-img-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.products-section .card-img-wrapper img {
  mix-blend-mode: normal; /* Override any global blend modes */
  max-height: 140px;
  width: auto;
  object-fit: contain;
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .products-header {
    padding: 8rem 5% 4rem 5% !important;
  }
  .products-header h1 {
    font-size: 2.5rem !important;
  }
  .filter-btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    flex-grow: 1;
    text-align: center;
  }
  #category-filters {
    gap: 0.5rem !important;
  }
}
