/* CATALOGUE - Page catalogue Hexagone */

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
  padding: 120px 0 40px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ========================================
   CATALOGUE
   ======================================== */
.catalogue-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 60px 0;
}

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: relative;
  top: 100px;
}

.sidebar h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 4px;
}

.category-list a {
  color: var(--text-muted);
  font-size: 14px;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.category-list a:hover,
.category-list a.active {
  background: var(--primary-glow);
  color: var(--primary);
}

/* ========================================
   CATALOGUE - Category Navigation
   ======================================== */
.category-nav {
  position: relative;
  z-index: 9999;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: relative;
  top: auto;
  z-index: 100;
}

.category-nav-scroll {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.category-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-nav-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-dark);
}

.category-nav-btn svg {
  transition: transform 0.2s;
}

.category-nav-dropdown {
  position: relative;
}

.category-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 200;
  box-shadow: var(--shadow);
}

.category-nav-dropdown.open .category-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-nav-dropdown.open .category-nav-btn svg {
  transform: rotate(180deg);
}

.category-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.category-dropdown-menu a:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

/* ========================================
   CATALOGUE - Filters Bar
   ======================================== */
.filters-bar {
  position: relative;
  z-index: 1;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filters-desktop {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.filter-group select,
.filter-group input {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  min-width: 140px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-group select:hover,
.filter-group input:hover {
  border-color: var(--border-light);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.filter-group select option {
  background: var(--bg-card);
  color: var(--text);
}

.filter-price .price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price input {
  width: 80px;
  min-width: auto;
}

.filter-price span {
  color: var(--text-dim);
}

.filter-search input {
  min-width: 180px;
}

/* Active Filters Tags */
.active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: 100px;
  font-size: 13px;
  color: var(--primary);
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.filter-tag button:hover {
  opacity: 1;
}

.filter-reset-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 12px;
  transition: var(--transition);
}

.filter-reset-btn:hover {
  color: var(--primary);
}

/* Mobile Filters */
.filters-mobile {
  display: none;
  gap: 12px;
  width: 100%;
}

.btn-filters-mobile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-filters-mobile:hover {
  border-color: var(--primary);
}

#filter-count-badge {
  color: var(--primary);
  font-weight: 600;
}

.mobile-sort {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

/* ========================================
   CATALOGUE - Results Header
   ======================================== */
.results-header {
  background: var(--bg-dark);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.results-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-info {
  color: var(--text-muted);
  font-size: 14px;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.results-sort label {
  color: var(--text-dim);
  font-size: 14px;
}

.results-sort select {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

/* ========================================
   CATALOGUE - Products Grid Enhancement
   ======================================== */
.catalogue-section {
  padding-top: 32px;
  padding-bottom: 80px;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results svg {
  color: var(--text-dim);
  margin-bottom: 24px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.load-more {
  display: block;
  margin: 40px auto 0;
}

/* ========================================
   CATALOGUE - Mobile Filters Modal
   ======================================== */
.filters-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.filters-modal.open {
  opacity: 1;
  visibility: visible;
}

.filters-modal-content {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.filters-modal.open .filters-modal-content {
  transform: translateX(0);
}

.filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.filters-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.filters-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
}

.filters-modal-close:hover {
  color: var(--text);
}

.filters-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.filter-section {
  margin-bottom: 32px;
}

.filter-section h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.filter-radio,
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-muted);
}

.filter-radio:hover,
.filter-checkbox:hover {
  border-color: var(--border-light);
}

.filter-radio input,
.filter-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.filter-radio:has(input:checked),
.filter-checkbox:has(input:checked) {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-range-inputs input {
  flex: 1;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}

.price-range-inputs input:focus {
  outline: none;
  border-color: var(--primary);
}

.price-separator {
  color: var(--text-dim);
}

.filters-modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.filters-modal-footer .btn {
  flex: 1;
  justify-content: center;
}

/* ========================================
   CATALOGUE - Responsive
   ======================================== */
@media (max-width: 1024px) {
  .filters-desktop {
    flex-wrap: wrap;
  }

  .filter-group {
    flex: 1;
    min-width: 120px;
  }

  .filter-search {
    flex: 100%;
  }
}

@media (max-width: 768px) {
  .category-nav {
    top: auto;
  }

  .category-nav-scroll {
  flex-wrap: wrap;
    padding: 12px 0;
  }

  .category-nav-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .filters-desktop {
    display: none;
  }

  .filters-mobile {
    display: flex;
  }

  .results-sort {
    display: none;
  }

  .filters-modal-content {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-price {
  /* Prix en gris au lieu de bleu - demande client */
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .category-nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .category-nav-btn svg {
    display: none;
  }

  .products-grid {
    gap: 12px;
  }

  .product-card {
    padding: 8px;
  }

  .product-info {
    padding: 8px 0 0;
  }

  .product-info h3 {
    font-size: 12px;
  }

  .product-ref {
    display: none;
  }
}

/* ========================================
   CATALOGUE - FORCE 3 COLUMNS + PAGINATION
   ======================================== */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Load More Button */
.load-more-container {
  text-align: center;
  padding: 40px 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.load-more-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Infinite scroll sentinel */
#scroll-sentinel {
  height: 1px;
  visibility: hidden;
}
/* ========================================
   PRIX EN GRIS - Catalogue
   ======================================== */

.price-current {
  display: none !important;
}

/* Masquer les filtres de prix */
.filter-price,
.filter-group:has(#filter-price-min),
.filter-group:has(#filter-price-max) {
  display: none !important;
}

/* ========================================
   CATÉGORIE SUR CARTES PRODUIT
   ======================================== */

.product-category {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-reference {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}


/* ========================================
   CATALOGUE - DESIGN AMÉLIORÉ
   ======================================== */

/* Cartes produits - Style moderne */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.product-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image wrapper */
.product-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Tags sur image */
.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-tag {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #374151;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Info produit */
.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-category {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #111827 !important;
}

/* Grille produits améliorée */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
}

@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .product-card {
    border-radius: 12px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-info h3 {
    font-size: 13px;
  }
  
  .product-price {
    font-size: 14px;
  }
  
  .product-image {
    padding: 12px;
  }
}

/* Page header amélioré */
.page-header {
  padding: 140px 0 50px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: none;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
}

/* Section catalogue */
.catalogue-section {
  padding: 50px 0 80px;
  background: #fafafa;
}

/* Résultats header */
.results-header {
  background: transparent;
  padding: 20px 0;
}

.results-info {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Navigation catégories améliorée */
.category-nav {
  position: relative;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.category-nav-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-nav-btn:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #111827;
}

.category-nav-btn.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

/* Filtres */
.filters-bar {
  position: relative;
  z-index: 1;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results svg {
  color: #d1d5db;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.no-results p {
  color: #6b7280;
  margin-bottom: 24px;
}

/* Skeleton loading amélioré */
.skeleton-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1280px) {
  .skeleton-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .skeleton-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skeleton-product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.skeleton-image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 14px;
  margin: 12px 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text.medium {
  width: 70%;
}

.skeleton-text.short {
  width: 40%;
}

.skeleton-price {
  height: 18px;
  width: 30%;
  margin: 12px 16px 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Pagination améliorée */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  padding: 20px 0;
}

.pagination button {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination button:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.pagination button.active {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   FORCE LIGHT MODE - Filtres
   ======================================== */
.filters-bar select,
.filters-bar input,
.filter-group select,
.filter-group input,
#filter-application,
#filter-power,
#filter-colortemp,
#filter-ip,
#filter-dimmable,
#filter-voltage,
#filter-price-min,
#filter-price-max,
#filter-search,
#mobile-sort {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}

.filters-bar select:focus,
.filters-bar input:focus,
.filter-group select:focus,
.filter-group input:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
}

.filters-bar select option {
  background: #ffffff !important;
  color: #1f2937 !important;
}

.filter-group label {
  color: #6b7280 !important;
}

/* Active filter tags */
.active-filters .filter-tag {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}

.active-filters .filter-tag:hover {
  background: #e5e7eb !important;
}

/* Recherche input */
#filter-search::placeholder {
  color: #9ca3af !important;
}

/* ========================================
   FIX DROPDOWN Z-INDEX
   ======================================== */
.category-nav {
  position: relative;
  z-index: 9999;
  position: relative;
  z-index: 200;
}

.category-nav-dropdown {
  position: relative;
  z-index: 201;
}

.category-dropdown-menu {
  z-index: 300 !important;
  position: absolute !important;
}

.filters-bar {
  position: relative;
  z-index: 1;
  position: relative;
  z-index: 100;
}

.catalogue-sticky-wrapper {
  position: relative;
  z-index: 150;
}

/* ========================================
   FIX DROPDOWN Z-INDEX - FORCE
   ======================================== */
.category-nav {
  position: relative;
  z-index: 9999;
  position: relative !important;
  z-index: 500 !important;
}

.category-nav-scroll {
  flex-wrap: wrap;
  position: relative;
  z-index: 501;
}

.category-nav-dropdown {
  position: relative !important;
  z-index: 502 !important;
}

.category-dropdown-menu,
.category-mega-menu {
  z-index: 9999 !important;
  position: absolute !important;
}

.filters-bar {
  position: relative;
  z-index: 1;
  position: relative !important;
  z-index: 50 !important;
}

.results-header {
  position: relative;
  z-index: 40;
}

/* FORCE OVERFLOW VISIBLE FOR DROPDOWNS */
.category-nav,
.category-nav .container,
.category-nav-scroll {
  flex-wrap: wrap;
  overflow: visible !important;
}

/* ========================================
   FIX: Category Nav - Click-based dropdown
   ======================================== */
.category-nav {
  position: relative;
  z-index: 100;
}

.category-nav-scroll {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.category-nav-dropdown {
  position: relative;
  z-index: 101;
}

.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.category-nav-dropdown.open .category-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #374151;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.category-dropdown-menu a:hover {
  background: #f0f5ff;
  color: #091A50;
}

/* Close dropdown when clicking outside */
.category-nav-dropdown .category-nav-btn {
  cursor: pointer;
  user-select: none;
}

.category-nav-dropdown .category-nav-btn svg {
  transition: transform 0.2s;
}

.category-nav-dropdown.open .category-nav-btn svg {
  transform: rotate(180deg);
}

/* ========================================
   PRODUCT CARDS - PRIX + SOUS-CATÉGORIE
   ======================================== */
.product-card .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  gap: 8px;
}
.product-card .product-subcategory {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}
.product-card .product-price {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}
.product-card .product-category {
  display: none; /* Remplacé par product-subcategory */
}

/* ========================================
   PRODUCT CARDS - HOVER + POLISH
   ======================================== */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 10px;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(9, 26, 80, 0.12);
}
.product-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #091A50;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.product-card .product-tags {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}
.product-card .product-tag {
  background: rgba(9, 26, 80, 0.08);
  color: #091A50;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.product-card .product-image-wrapper {
  position: relative;
  background: #f8f9fb;
}

/* Mobile cards */
@media (max-width: 768px) {
  .product-card h3 { font-size: 13px; }
  .product-card .product-price { font-size: 12px; }
  .product-card .product-subcategory { font-size: 10px; }
}
