/* ============================================
   CATEGORY HEADER (Dynamic)
   ============================================ */
.category-header {
  padding: var(--space-8) 0 var(--space-12) 0;
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: var(--space-8);
}

.category-header-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

 .subcategories-title {
   font-family: var(--font-heading);
   font-size: clamp(1.75rem, 3vw, 2.25rem);
   font-weight: 700;
   color: var(--color-primary);
   margin-bottom: var(--space-4);
   text-transform: uppercase;
   letter-spacing: -0.02em;
   line-height: 1.2;
   /* Hide the title text */
   font-size: 0;
   line-height: 0;
   height: 0;
   margin: 0;
   padding: 0;
   overflow: hidden;
 }

.category-header-description {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-gray-600);
  max-width: 800px;
  margin: 0;
}

@media (max-width: 768px) {
  .category-header {
    padding: var(--space-6) 0 var(--space-8) 0;
  }
  
  .category-header-title {
    font-size: 1.5rem;
  }
  
  .category-header-description {
    font-size: var(--text-base);
  }
}

/* ============================================
   PRODUCT LIST - LIJST WEERGAVE (ZOALS SCREENSHOT)
   Brede kaarten onder elkaar met scheidingslijn
   ============================================ */

/* Products Container */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 0; /* Geen gap, we gebruiken padding en borders */
}

/* Product Card - Brede horizontale kaart */
.product-card-horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding: 36px 0;
  background: transparent;
  border-bottom: 1px solid #e5e7eb; /* De scheidingslijn */
  transition: opacity 0.2s ease;
  align-items: center;
}

/* Laatste item geen border */
.product-card-horizontal:last-child {
  border-bottom: none;
}

.product-card-horizontal:hover {
  background-color: transparent; /* Geen background change, clean houden */
  transform: none; /* Geen beweging */
}

/* Image Section - Links */
.product-card-horizontal .product-image {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  margin: 0;
  box-shadow: none;
}

.product-card-horizontal .product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(3px 6px 8px rgba(0, 0, 0, 0.2));
}

.product-card-horizontal:hover .product-image img {
  transform: scale(1.05);
  filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.3));
}

/* Content Section - Rechts */
.product-card-horizontal .product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  gap: 14px;
}

/* Title Styling */
.product-card-horizontal .product-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.product-card-horizontal .product-title a {
  color: inherit;
  text-decoration: none;
  background: none;
}

.product-card-horizontal .product-title a:hover {
  color: var(--color-primary);
}

/* Specs Lijst - Zoals in screenshot (Label: Waarde) */
.product-specs {
  display: grid;
  grid-template-columns: 180px 1fr; /* Bredere labels */
  gap: 12px 0;
  margin: 0;
  opacity: 1;
}

.product-specs dt {
  display: block;
  font-weight: 700;
  color: var(--color-gray-900);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-specs dd {
  display: block;
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.95rem;
  font-weight: 400;
}

.product-specs dd::before {
  content: none;
}

/* Price & Actions Container */
.product-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Price */
.product-price-display {
  text-align: left;
  margin: 0;
}

.product-price-amount {
  font-size: 1.5rem;
  color: var(--color-gray-900);
  font-weight: 700;
}

/* Compact Price Display for Product Grid */
.product-price-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.product-price-compact .product-price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.product-price-compact .product-price-vat {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  font-weight: 400;
}

/* Price Section Loading State */
.product-price-section .loading-price {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  font-style: italic;
}

/* Hide price section completely - not relevant */
.product-price-section {
  display: none !important;
}

/* Buttons */
.product-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: auto;
}

/* Meer info knop (Tekst pijl style zoals screenshot) */
.btn-more-info-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-gray-900);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--color-gray-900);
  padding-bottom: 2px;
}

.btn-more-info-text:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  gap: 12px;
}

.btn-more-info-text svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* Tags verbergen */
.product-tags {
  display: none; 
}

/* Responsive */
@media (max-width: 768px) {
  .product-card-horizontal {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .product-card-horizontal .product-image {
    height: auto;
    min-height: 280px;
    width: 100%;
    justify-content: center;
  }

  .product-card-horizontal .product-image img {
    max-width: 90%;
    max-height: 320px;
  }
  
  .product-specs {
    grid-template-columns: 140px 1fr;
  }
}

/* ============================================
   PRODUCTS PAGE SPECIFIC STYLES
   ============================================ */

/* Subcategories Section (Integrated) */
#subcategories-section {
  width: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subcategories-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-gray-900);
  text-align: center;
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
  width: 100%;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  width: 100%;
  margin-bottom: var(--space-6);
}

.subcategory-card {
  position: relative;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background-color: var(--color-gray-50);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.subcategory-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.subcategory-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.subcategory-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease, filter 0.3s ease;
  filter: none;
  padding: 12px;
  background: white;
}

.subcategory-card:hover .subcategory-image img {
  transform: scale(1.08);
}

.subcategory-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, 
    rgba(35, 103, 115, 0.95) 0%, 
    rgba(35, 103, 115, 0.6) 60%, 
    rgba(35, 103, 115, 0) 100%);
  transition: height 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

.subcategory-card:hover .subcategory-overlay {
  height: 60%;
}

.subcategory-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: var(--space-3);
}

.subcategory-content h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.subcategory-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 2px;
}

.subcategory-count svg {
  width: 14px;
  height: 14px;
}

/* Hide link text to make it cleaner */
.subcategory-link-text {
  display: none;
}

@media (max-width: 768px) {
  .subcategories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  
  .subcategory-card {
    height: 120px;
  }
  
  .subcategory-content {
    padding: var(--space-2);
  }
  
  .subcategory-content h3 {
    font-size: 0.75rem;
  }
  
  .subcategory-count {
    font-size: 0.65rem;
  }
}

/* ============================================
   ALL PRODUCTS PAGE HEADER
   ============================================ */
.products-header {
  margin-bottom: 32px;
}

.products-count {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  margin-top: 8px;
}

/* Filter Bar */
.products-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.products-sort select {
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--color-gray-700);
  background: white;
  cursor: pointer;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.products-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.products-empty {
  text-align: center;
  padding: 60px 20px;
}

.products-empty h3 {
  font-size: 1.5rem;
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.products-empty p {
  color: var(--color-gray-500);
  margin-bottom: 24px;
}
