/* CSS Reset & Base Styles */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   line-height: 1.8;
   color: #1a1a1a;
   background-color: #fafafa;
   font-size: clamp(1rem, 2vw, 1.1rem);
}

.container {
   max-width: 1440px;
   margin: 0 auto;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
   width: 100%;
}

/* ========== Notifications ========== */
.notification {
   position: fixed;
   top: clamp(1rem, 3vw, 2rem);
   right: clamp(1rem, 3vw, 2rem);
   z-index: 10000;
   animation: slideInRight 0.3s ease;
}

.notification-content {
   background: linear-gradient(135deg, #4CAF50, #45a049);
   color: white;
   padding: clamp(1rem, 2.5vw, 1.6rem) clamp(1.5rem, 3vw, 2.4rem);
   border-radius: clamp(0.8rem, 2vw, 1.2rem);
   box-shadow: 0 8px 32px rgba(0,0,0,0.12);
   display: flex;
   align-items: center;
   gap: clamp(0.8rem, 2vw, 1.2rem);
   max-width: min(400px, 90vw);
   backdrop-filter: blur(10px);
}

.notification-content i.fa-check-circle {
   font-size: clamp(1.1rem, 2.5vw, 1.8rem);
   color: #fff;
}

.close-btn {
   cursor: pointer;
   padding: clamp(0.3rem, 1vw, 0.4rem);
   border-radius: 50%;
   transition: background-color 0.2s;
}

.close-btn:hover {
   background-color: rgba(255,255,255,0.2);
}

/* ========== Section Headers ========== */
.section-header,
.filter-header {
   text-align: center;
   margin-bottom: clamp(2rem, 6vw, 5rem);
   max-width: 1440px;
   margin-left: auto;
   margin-right: auto;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.section-header h2,
.filter-header h2 {
   font-size: clamp(2rem, 5vw, 2.8rem);
   font-weight: 700;
   color: #1a1a1a;
   margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
}

.section-header p,
.filter-header p {
   font-size: clamp(1.05rem, 2.5vw, 1.15rem);
   color: #666;
   max-width: 600px;
   margin: 0 auto;
}

/* ========== Hero Section ========== */
.hero-section {
   position: relative;
   height: clamp(30rem, 70vh, 50rem);
   min-height: 300px;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #f8fafc;
   max-width: 1440px;
   margin: 0 auto clamp(2rem, 4vw, 4rem) auto;
   border-radius: 0 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}

.hero-container {
   width: 100%;
   height: 100%;
}

.hero-slider {
   height: 100%;
}

.hero-slide {
   position: relative;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
}

.slide-background {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #f8fafc;
   overflow: hidden;
}

.slide-background img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   will-change: transform, opacity;
   animation: heroCoverZoom 16s ease-in-out infinite alternate;
}

@keyframes heroCoverZoom {
   0% { transform: scale(1.05); opacity: 0.98; }
   50% { transform: scale(1.02); opacity: 0.99; }
   100% { transform: scale(1.00); opacity: 1; }
}

.slide-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
   z-index: 2;
}

.slide-content {
   position: relative;
   z-index: 3;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.content-wrapper {
   max-width: 1440px;
   margin: 0 auto;
   color: white;
   text-align: center;
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

.featured-badge {
   display: inline-block;
   background: #E74C3C;
   padding: clamp(0.4rem, 1.5vw, 0.5rem) clamp(0.8rem, 2vw, 1rem);
   border-radius: clamp(1.5rem, 4vw, 2.5rem);
   font-size: clamp(0.65rem, 2vw, 0.875rem);
   font-weight: 600;
   margin-bottom: clamp(0.8rem, 2vw, 1rem);
   text-transform: uppercase;
   letter-spacing: clamp(0.5px, 1.5vw, 1px);
   color: white;
}

.source-badge {
   display: inline-block;
   padding: clamp(0.35rem, 1.2vw, 0.45rem) clamp(0.8rem, 2vw, 1rem);
   border-radius: clamp(1.5rem, 4vw, 2.5rem);
   font-size: clamp(0.6rem, 1.8vw, 0.8rem);
   font-weight: 700;
   margin-bottom: clamp(0.8rem, 2vw, 1rem);
   text-transform: uppercase;
   letter-spacing: clamp(0.4px, 1.2vw, 0.8px);
   color: white;
}
.source-top-month { background: #E74C3C; }
.source-top-30d { background: #FF8C00; }
.source-popular { background: #4CAF50; }
.source-new { background: #1E90FF; }

.slide-content h1 {
   font-size: clamp(1.8rem, 5vw, 4rem);
   font-weight: 800;
   margin-bottom: clamp(0.8rem, 2vw, 1rem);
   line-height: 1.2;
   text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-description {
   font-size: clamp(0.9rem, 2.8vw, 1.2rem);
   margin-bottom: clamp(1.5rem, 3vw, 2rem);
   opacity: 0.9;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
   text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-actions {
   display: flex;
   gap: clamp(0.8rem, 2vw, 1rem);
   flex-wrap: wrap;
   justify-content: center;
}

.btn-primary {
   background: linear-gradient(135deg, #667eea, #764ba2);
   color: white;
   padding: clamp(0.7rem, 2vw, 0.8rem) clamp(1.5rem, 3vw, 1.8rem);
   border-radius: clamp(2rem, 5vw, 5rem);
   text-decoration: none;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: clamp(0.4rem, 1.5vw, 0.5rem);
   transition: all 0.3s ease;
   box-shadow: 0 8px 25px rgba(102,126,234,0.3);
   font-size: clamp(0.8rem, 2.2vw, 1rem);
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 12px 35px rgba(102,126,234,0.4);
}

.btn-secondary {
   background: rgba(255,255,255,0.15);
   color: white;
   padding: clamp(0.7rem, 2vw, 0.8rem) clamp(1.5rem, 3vw, 1.8rem);
   border-radius: clamp(2rem, 5vw, 5rem);
   text-decoration: none;
   font-weight: 600;
   display: flex;
   align-items: center;
   gap: clamp(0.4rem, 1.5vw, 0.5rem);
   backdrop-filter: blur(10px);
   border: 1px solid rgba(255,255,255,0.2);
   transition: all 0.3s ease;
   font-size: clamp(0.8rem, 2.2vw, 1rem);
}

.btn-secondary:hover {
   background: rgba(255,255,255,0.25);
   transform: translateY(-2px);
}

/* Hero Navigation */
.hero-navigation {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   width: 100%;
   display: flex;
   justify-content: space-between;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
   z-index: 4;
   pointer-events: none;
   max-width: 1440px;
   left: 50%;
   transform: translateX(-50%) translateY(-50%);
}

.hero-button-prev,
.hero-button-next {
   width: clamp(2.5rem, 6vw, 3.5rem);
   height: clamp(2.5rem, 6vw, 3.5rem);
   background: rgba(255,255,255,0.2);
   backdrop-filter: blur(10px);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   cursor: pointer;
   transition: all 0.3s ease;
   pointer-events: all;
   font-size: clamp(1rem, 3vw, 1.2rem);
}

.hero-button-prev:hover,
.hero-button-next:hover {
   background: rgba(255,255,255,0.3);
   transform: scale(1.1);
}

.hero-pagination {
   position: absolute;
   bottom: clamp(1.5rem, 4vw, 3rem);
   left: 50%;
   transform: translateX(-50%);
   z-index: 4;
   max-width: 1440px;
   width: 100%;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ========== Categories ========== */
.categories-section,
.categories-filter-section {
   padding: clamp(3rem, 6vw, 6rem) 0;
   background: white;
   max-width: 1440px;
   margin: 0 auto clamp(2rem, 4vw, 4rem) auto;
}

.principal-categories-container {
   width: 100%;
   max-width: 1440px;
   margin: 0 auto;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.principal-category-item {
   margin-bottom: clamp(0.4rem, 1vw, 0.6rem);
   border: 1px solid #e0e0e0;
   border-radius: clamp(0.8rem, 2vw, 1.2rem);
   overflow: hidden;
   transition: all 0.3s ease;
}

.principal-category-item:hover {
   border-color: #667eea;
   box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.principal-category-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: clamp(1.5rem, 3vw, 2rem);
   background: #f8fafc;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

.principal-category-header:hover {
   background: #eef2f7;
}

.principal-category-header h3 {
   font-size: clamp(1.1rem, 3vw, 1.4rem);
   font-weight: 600;
   color: #1a1a1a;
   margin: 0;
}

.toggle-icon {
   transition: transform 0.3s ease;
}

.sub-categories-container {
   padding: 0;
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.5s ease, padding 0.3s ease;
}

.sub-categories-container.open {
   padding: clamp(1.5rem, 3vw, 2rem);
   max-height: 2000px;
}

.categories-filter-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(clamp(8rem, 20vw, 14rem), 1fr));
   gap: clamp(1rem, 2vw, 1.5rem);
   max-width: 1440px;
   margin: 0 auto;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.filter-category {
   background: white;
   border: 2px solid #f0f0f0;
   border-radius: clamp(0.8rem, 2vw, 1.2rem);
   padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.8rem, 2vw, 1rem);
   text-decoration: none;
   color: #666;
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: clamp(0.8rem, 2vw, 1.2rem);
   text-align: center;
   position: relative;
   overflow: hidden;
   height: clamp(8rem, 25vw, 12rem);
   justify-content: center;
}

.filter-category::before {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(102,126,234,0.1), transparent);
   transition: left 0.5s ease;
}

.filter-category:hover::before {
   left: 100%;
}

.filter-category:hover,
.filter-category.active {
   border-color: #667eea;
   color: #667eea;
   transform: translateY(-5px);
   box-shadow: 0 10px 25px rgba(102,126,234,0.15);
}

.filter-category.active {
   background: linear-gradient(135deg, #667eea, #764ba2);
   color: white;
   border-color: #667eea;
}

.category-icon {
   width: clamp(3rem, 8vw, 4.5rem);
   height: clamp(3rem, 8vw, 4.5rem);
   background: #f8fafc;
   border-radius: clamp(0.8rem, 2vw, 1.2rem);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: clamp(1.2rem, 3vw, 2rem);
   transition: all 0.3s ease;
}

.filter-category:hover .category-icon,
.filter-category.active .category-icon {
   background: rgba(255,255,255,0.2);
   color: inherit;
}

.subcategory-name {
   font-weight: 700;
   font-size: clamp(0.8rem, 2.5vw, 1rem);
   line-height: 1.2;
   max-width: 100%;
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   text-shadow: 0 1px 2px rgba(0,0,0,0.1);
   color: #333;
   transition: all 0.3s ease;
}

.filter-category:hover .subcategory-name,
.filter-category.active .subcategory-name {
   color: inherit;
   text-shadow: 0 2px 4px rgba(0,0,0,0.15);
   font-weight: 800;
}

.filter-category.active .subcategory-name {
   color: white;
}

.product-count {
   position: absolute;
   top: clamp(0.5rem, 1.5vw, 0.8rem);
   right: clamp(0.5rem, 1.5vw, 0.8rem);
   background: #667eea;
   color: white;
   font-size: clamp(0.6rem, 1.5vw, 0.7rem);
   padding: clamp(0.1rem, 0.5vw, 0.2rem) clamp(0.4rem, 1.5vw, 0.6rem);
   border-radius: clamp(0.8rem, 2vw, 1rem);
   font-weight: 600;
}

/* ========== Nouveautés du mois ========== */
.featured-products {
   padding: clamp(3rem, 6vw, 6rem) 0;
   max-width: 1440px;
   margin: 0 auto clamp(2rem, 4vw, 4rem) auto;
   background: #f8fafc;
}

/* ========== Sections Produits Standards ========== */
.all-products,
.products-section {
   padding: clamp(3rem, 6vw, 6rem) 0;
   max-width: 1440px;
   margin: 0 auto clamp(2rem, 4vw, 4rem) auto;
   background: white;
}

/* ========== GRILLE DE PRODUITS DYNAMIQUE ========== */
.products-grid {
   display: grid;
   gap: clamp(0.25rem, 2vw, 1.5rem);
   max-width: 1440px;
   margin: 0 auto;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
   width: 100%;
}

/* 5 colonnes pour écrans larges (≥1600px) - GAP RÉDUIT */
@media (min-width: 1600px) {
   .products-grid {
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 0.8rem; /* Réduit de clamp(1rem, 2vw, 1.5rem) à 0.8rem */
   }
}

/* 4 colonnes pour écrans desktop (≥1200px) - GAP RÉDUIT */
@media (min-width: 1200px) and (max-width: 1599px) {
   .products-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.8rem; /* Réduit de clamp(1rem, 2vw, 1.5rem) à 0.8rem */
   }
}

/* 3 colonnes pour tablettes paysage (≥1024px) - GAP CONSERVÉ */
@media (min-width: 1024px) and (max-width: 1199px) {
   .products-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(1rem, 2vw, 1.2rem);
   }
}

/* 3 colonnes pour tablettes portrait (≥768px) - GAP CONSERVÉ */
@media (min-width: 768px) and (max-width: 1023px) {
   .products-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(0.8rem, 2vw, 1rem);
   }
}

/* 2 colonnes pour mobiles paysage (≥550px) - GAP CONSERVÉ */
@media (min-width: 550px) and (max-width: 767px) {
   .products-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(0.8rem, 2vw, 1rem);
   }
}

/* 1 colonne pour petits mobiles (<550px) - GAP CONSERVÉ */
@media (max-width: 549px) {
   .products-grid {
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: clamp(0.8rem, 2vw, 1rem);
   }
}

/* Styles communs pour toutes les cartes produits */
.product-card {
   background: white;
   border-radius: clamp(0.8rem, 2vw, 1.2rem);
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   position: relative;
   box-shadow: 0 4px 20px rgba(0,0,0,0.08);
   display: flex;
   flex-direction: column;
   height: 100%;
   margin: 0;
   min-width: 0; /* Important pour le responsive */
}

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

.products-grid .product-card {
   padding: 0 !important;
}

/* ========== BADGES & ACTIONS ========== */
.product-badges .product-badge:not(.variant-badge):not(.variants-badge),
.product-actions {
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-card:hover .product-badges .product-badge:not(.variant-badge):not(.variants-badge),
.product-card:hover .product-actions,
.product-card:focus-within .product-badges .product-badge:not(.variant-badge):not(.variants-badge),
.product-card:focus-within .product-actions {
   opacity: 1;
   visibility: visible;
}

@media (hover: none), (max-width: 768px) {
   .product-actions {
      opacity: 1 !important;
      visibility: visible !important;
   }
}

.product-badge.variant-badge,
.product-badge.variants-badge,
.product-badge.promo-badge,
.condition-badge,
.product-brand {
   opacity: 1 !important;
   visibility: visible !important;
}

/* Status badges for stock states */
.status,
.status-tag {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: clamp(0.4rem, 1.2vw, 0.55rem) clamp(0.7rem, 1.8vw, 0.95rem);
   border-radius: 999px;
   font-size: clamp(1.05rem, 2.2vw, 1.15rem);
   font-weight: 700;
   line-height: 1;
   letter-spacing: 0.2px;
   text-align: center;
   width: fit-content;
}
.status.coming-soon,
.status-tag.coming-soon,
.coming-soon { background-color:#fef3c7; color:#92400e; border:1px solid #f59e0b; }
.in-stock { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.out-of-stock { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.variants-info { background:#f0f9ff; color:#0369a1; border:1px solid #bae6fd; }
.status-with-variants { display:flex; flex-direction:column; gap:6px; }

.product-badges {
   position: absolute;
   top: clamp(0.8rem, 2vw, 1.2rem);
   left: clamp(0.8rem, 2vw, 1.2rem);
   display: flex;
   flex-direction: column;
   gap: clamp(0.4rem, 1.2vw, 0.6rem);
   z-index: 3;
}

.similar-product-card .status {
   display: block;
   margin: clamp(0.2rem, 0.8vw, 0.3rem) auto;
}

.product-image {
   position: relative;
}

.image-badges-row {
   position: absolute;
   left: clamp(0.6rem, 1.8vw, 1rem);
   right: clamp(0.6rem, 1.8vw, 1rem);
   bottom: clamp(0.6rem, 1.8vw, 1rem);
   display: flex;
   justify-content: space-between;
   align-items: center;
   z-index: 3;
}

.product-brand-image {
   position: absolute;
   left: clamp(0.6rem, 1.8vw, 1rem);
   bottom: clamp(0.6rem, 1.8vw, 1rem);
   z-index: 3;
}

.image-badges-row .product-brand-image,
.image-badges-row .photo-count-badge {
   position: static;
   bottom: auto;
   left: auto;
   right: auto;
}

.image-badges-row .product-brand {
   margin: 0;
}

.photo-count-badge {
   position: absolute;
   right: clamp(0.6rem, 1.8vw, 1rem);
   bottom: clamp(0.6rem, 1.8vw, 1rem);
   z-index: 3;
   background: rgba(0,0,0,0.6);
   color: #fff;
   padding: clamp(0.2rem, 1vw, 0.4rem) clamp(0.6rem, 1.5vw, 0.8rem);
   border-radius: clamp(0.6rem, 1.5vw, 0.8rem);
   font-size: clamp(0.75rem, 2vw, 0.85rem);
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   gap: clamp(0.3rem, 1.2vw, 0.5rem);
   border: 1px solid rgba(255,255,255,0.35);
   backdrop-filter: blur(4px);
}

.product-badge {
   padding: clamp(0.3rem, 1.2vw, 0.5rem) clamp(0.6rem, 1.8vw, 1rem);
   border-radius: clamp(0.6rem, 1.5vw, 0.8rem);
   font-size: clamp(0.65rem, 1.8vw, 0.75rem);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: clamp(0.3px, 0.8vw, 0.5px);
   color: white;
}

.product-badge.promo-badge {
   background: #E74C3C;
}

.product-badge.new-badge {
   background: #34C759;
}

.product-badge.low-stock-badge {
   background: #FF9500;
}

.product-badge.out-of-stock-badge {
   background: #E74C3C;
}

.product-badge.variant-badge,
.product-badge.variants-badge {
   background: #3498db;
}

.product-actions {
   position: absolute;
   top: clamp(0.8rem, 2vw, 1.2rem);
   right: clamp(0.8rem, 2vw, 1.2rem);
   display: flex;
   flex-direction: column;
   gap: clamp(0.4rem, 1.2vw, 0.6rem);
   z-index: 3;
}

.action-btn {
   width: clamp(2.5rem, 7vw, 3.5rem);
   height: clamp(2.5rem, 7vw, 3.5rem);
   background: rgba(255,255,255,0.9);
   backdrop-filter: blur(10px);
   border: none;
   border-radius: clamp(0.6rem, 1.5vw, 0.8rem);
   display: flex;
   align-items: center;
   justify-content: center;
   color: #666;
   cursor: pointer;
   transition: all 0.3s ease;
   text-decoration: none;
   font-size: clamp(0.9rem, 2.5vw, 1.4rem);
}

.action-btn:hover {
   background: white;
   color: #667eea;
   transform: scale(1.1);
   box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-actions .share-btn {
   opacity: 0.85;
}

.product-actions .share-btn:hover {
   opacity: 1;
}

.wishlist-btn:hover {
   color: #FF6B6B;
}

/* ========== Product Image & Details ========== */
.product-image {
   aspect-ratio: 1 / 1;
   width: 100%;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
   background: transparent;
   padding: 0;
}

.product-image a {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 100%;
}

.product-image img {
   width: 100%;
   height: 100%;
   object-fit: cover; /* ou "contain" */
   object-position: center;
   transition: transform 0.4s ease;
   border: none;
   box-shadow: none;
   background: transparent;
}
 
.product-card:hover .product-image img {
   transform: scale(1.05);
}

.product-details {
   padding: clamp(0.8rem, 2vw, 1rem);
   flex-grow: 1;
   display: flex;
   flex-direction: column;
   gap: clamp(0.5rem, 1.5vw, 0.8rem);
}

.product-name {
   font-size: clamp(0.9rem, 2.5vw, 1.1rem);
   font-weight: 700;
   color: #1a1a1a;
   line-height: 1.4;
   white-space: normal;
   overflow: visible;
}

.product-name a {
   color: inherit;
   text-decoration: none;
}

.product-name a:hover {
   color: #667eea;
   text-decoration: underline;
}

/* ========== Badges condition/marque ========== */
.stock-indicator {
   display: flex;
   justify-content: center !important;
   align-items: center;
   gap: clamp(0.3rem, 1.2vw, 0.5rem);
   flex-wrap: wrap;
}

.stock-badge {
   display: none !important;
}

.condition-badge,
.product-brand {
   background: #e3f2fd;
   color: #1565c0;
   border: 1px solid #2196f3;
   padding: clamp(0.3rem, 1.2vw, 0.4rem) clamp(0.6rem, 1.8vw, 0.8rem);
   border-radius: clamp(1.2rem, 3vw, 1.5rem);
   font-size: clamp(0.65rem, 1.8vw, 0.75rem);
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: clamp(0.3px, 0.8vw, 0.5px);
   display: inline-flex;
   align-items: center;
   gap: clamp(0.3rem, 1.2vw, 0.5rem);
}

/* ========== Product Price ========== */
.product-price {
   margin-bottom: clamp(0.2rem, 0.8vw, 0.3rem);
   padding: clamp(0.2rem, 0.8vw, 0.3rem) 0;
}

.original-price {
   display: flex;
   align-items: baseline;
   gap: clamp(0.4rem, 1.2vw, 0.6rem);
   margin-bottom: clamp(0.2rem, 0.8vw, 0.3rem);
   text-decoration: line-through;
   color: var(--primary-color);
   font-size: clamp(0.9rem, 2.4vw, 1rem);
}

.current-price {
   display: flex;
   align-items: baseline;
   gap: clamp(0.6rem, 1.8vw, 0.8rem);
   margin-bottom: clamp(0.1rem, 0.8vw, 0.2rem);
}

.currency {
   font-size: clamp(0.75rem, 2.2vw, 0.85rem);
   color: #666;
   font-weight: 500;
}

.amount {
   font-size: clamp(1.1rem, 3.5vw, 1.4rem);
   font-weight: 700;
   color: #667eea;
}

.discount-percent {
   background: #E74C3C;
   color: white;
   padding: clamp(0.15rem, 0.8vw, 0.2rem) clamp(0.4rem, 1.2vw, 0.6rem);
   border-radius: clamp(0.5rem, 1.2vw, 0.6rem);
   font-size: clamp(0.6rem, 1.8vw, 0.7rem);
   font-weight: 600;
}

/* ========== SUPPRESSION TOTALE : Quantité + Boutons ========== */
.featured-products .product-controls,
.all-products .product-controls,
.products-section .product-controls {
   display: none !important;
}

/* ========== BOUTON AJOUTER AU PANIER HARMONISÉ ========== */
.add-to-cart-btn {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white;
    border: none;
    padding: clamp(0.7rem, 2vw, 0.9rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 9999px;
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    position: relative;
    overflow: hidden;
    min-width: clamp(10rem, 22vw, 12rem);
    margin-top: auto;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.4)}
.btn-primary:focus-visible,.btn-secondary:focus-visible,.action-btn:focus-visible,.visual-category-card:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.4)}
.mask-horizontal{-webkit-mask-image:linear-gradient(to right, transparent, black 8%, black 92%, transparent);mask-image:linear-gradient(to right, transparent, black 8%, black 92%, transparent)}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca, #3730a3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.add-to-cart-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn:disabled:hover {
    background: #6b7280;
    transform: none;
    box-shadow: none;
}

.add-to-cart-btn i {
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover i {
    transform: scale(1.1);
}

/* Animation de confirmation */
.add-to-cart-btn.added {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========== PAGINATION HARMONISÉE - TOUJOURS HORIZONTALE ET CENTRÉE ========== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: clamp(3rem, 6vw, 5rem);
    max-width: 1440px;
    margin: clamp(3rem, 6vw, 5rem) auto 0;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.pagination {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1.2vw, 0.6rem);
    flex-wrap: nowrap;
    justify-content: center;
    background: white;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    min-width: min-content;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    padding: clamp(0.7rem, 1.8vw, 0.9rem) clamp(1rem, 2.5vw, 1.2rem);
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    min-width: clamp(2.5rem, 7vw, 3.5rem);
    justify-content: center;
    white-space: nowrap;
}

.pagination-btn:hover:not(.disabled) {
    background: #4f46e5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    border-color: #4f46e5;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: clamp(0.2rem, 0.8vw, 0.4rem);
    flex-wrap: nowrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(2.2rem, 6vw, 3rem);
    height: clamp(2.2rem, 6vw, 3rem);
    padding: 0 clamp(0.4rem, 1.2vw, 0.6rem);
    border-radius: 12px;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    white-space: nowrap;
}

.pagination-link:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pagination-link.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pagination-ellipsis {
    padding: 0 clamp(0.4rem, 1.2vw, 0.6rem);
    color: #6b7280;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive pour la pagination - MAINTENANT TOUJOURS HORIZONTALE ET CENTRÉE */
@media (max-width: 768px) {
    .pagination {
        padding: clamp(0.6rem, 1.8vw, 0.8rem);
        gap: clamp(0.2rem, 0.8vw, 0.4rem);
    }
    
    .pagination-btn {
        padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(0.8rem, 2vw, 1rem);
        min-width: auto;
    }
    
    .pagination-link {
        min-width: clamp(2rem, 5vw, 2.5rem);
        height: clamp(2rem, 5vw, 2.5rem);
    }
}

/* Pour les très petits écrans, on permet le défilement horizontal mais reste centré */
@media (max-width: 480px) {
    .pagination {
        overflow-x: auto;
        justify-content: center;
        padding: 0.6rem;
    }
    
    .pagination-container {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .pagination {
        gap: 0.2rem;
        padding: 0.5rem;
    }
    
    .pagination-link {
        min-width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* ========== Empty State ========== */
.empty-state {
   text-align: center;
   padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 2rem);
   color: #666;
   font-size: clamp(1rem, 2.5vw, 1.1rem);
   max-width: 1600px;
   margin: 0 auto;
   padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.empty-icon {
   width: clamp(8rem, 20vw, 12rem);
   height: clamp(8rem, 20vw, 12rem);
   background: linear-gradient(135deg, #f8fafc, #e2e8f0);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto clamp(2rem, 4vw, 3.2rem);
   font-size: clamp(3rem, 8vw, 4.8rem);
   color: #cbd5e0;
}

.empty-state h3 {
   font-size: clamp(1.5rem, 4vw, 1.8rem);
   font-weight: 700;
   color: #1a1a1a;
   margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
}

.empty-state p {
   font-size: clamp(1rem, 2.5vw, 1.1rem);
   color: #666;
   margin-bottom: clamp(2rem, 4vw, 3.2rem);
   max-width: 400px;
   margin-left: auto;
   margin-right: auto;
}

/* ========== Animations ========== */
@keyframes slideInRight {
   from {
      transform: translateX(100%);
      opacity: 0;
   }
   to {
      transform: translateX(0);
      opacity: 1;
   }
}

@keyframes fadeInUp {
   from {
      transform: translateY(30px);
      opacity: 0;
   }
   to {
      transform: translateY(0);
      opacity: 1;
   }
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
   .container {
      padding: 0 clamp(1.5rem, 4vw, 3rem);
   }
   
   .hero-section {
      height: clamp(25rem, 60vh, 40rem);
   }
   
   .categories-filter-grid {
      grid-template-columns: repeat(auto-fit, minmax(clamp(10rem, 25vw, 13rem), 1fr));
      gap: clamp(1rem, 2vw, 1.2rem);
   }
}

@media (max-width: 768px) {
   .container {
      padding: 0 clamp(1rem, 3vw, 2rem);
   }
   
   .hero-section {
      height: clamp(20rem, 50vh, 35rem);
   }
   
   .slide-content {
      padding: 0 clamp(1rem, 3vw, 2rem);
   }
   
   .content-wrapper {
      justify-content: center;
      padding-top: clamp(1rem, 3vw, 2rem);
      padding-bottom: clamp(1rem, 3vw, 2rem);
   }
   
   .slide-actions {
      flex-direction: column;
      align-items: center;
      gap: clamp(0.8rem, 2vw, 1rem);
   }
   
   .categories-filter-grid {
      grid-template-columns: repeat(auto-fit, minmax(clamp(8rem, 20vw, 11rem), 1fr));
      gap: clamp(0.8rem, 2vw, 1rem);
   }
   
   .filter-category {
      padding: clamp(0.8rem, 2vw, 1rem) clamp(0.6rem, 1.5vw, 0.8rem);
      height: clamp(7rem, 22vw, 10rem);
      gap: clamp(0.6rem, 1.5vw, 0.8rem);
   }
   
   .category-icon {
      width: clamp(2.5rem, 8vw, 4rem);
      height: clamp(2.5rem, 8vw, 4rem);
      font-size: clamp(1rem, 3vw, 1.8rem);
   }
   
   .subcategory-name {
      font-size: clamp(0.75rem, 2.5vw, 0.9rem);
   }
   
   .hero-navigation {
      display: none;
   }
}

@media (max-width: 550px) {
   .container {
      padding: 0 clamp(0.8rem, 2vw, 1.6rem);
   }
   
   .hero-section {
      height: clamp(18rem, 45vh, 30rem);
   }
   
   .categories-filter-grid {
      grid-template-columns: repeat(auto-fit, minmax(clamp(7rem, 18vw, 9rem), 1fr));
   }
   
   .filter-category {
      padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.5rem, 1.2vw, 0.6rem);
      height: clamp(6rem, 20vw, 8rem);
      gap: clamp(0.5rem, 1.2vw, 0.6rem);
   }
   
   .category-icon {
      width: clamp(2rem, 7vw, 3.5rem);
      height: clamp(2rem, 7vw, 3.5rem);
      font-size: clamp(0.9rem, 2.5vw, 1.6rem);
   }
}

@media (max-width: 360px) {
   .container {
      padding: 0 clamp(0.5rem, 1.5vw, 1rem);
   }
}
.content-readable { max-width: none; margin: 0; }
.content-readable p { line-height: 1.75; }
.section-header p, .filter-header p { max-width: none; }
/* Hide wishlist across devices */
.wishlist-btn,
.similar-wishlist-btn,
button[name="add_to_wishlist"],
.icon-wishlist,
a[title="Favoris"],
a[href$="/wishlist.php"],
button.wishlist-btn {
  display: none !important;
}
.product-rating-summary { display:flex; align-items:center; gap:6px; margin-top:4px; color:#6b7280; }
.product-rating-summary .stars i { color:#f59e0b; }
.product-rating-summary .count { font-size:.9rem; }
.review-photos { display:flex; gap:6px; margin-top:6px; }
.review-photos img { width:64px; height:64px; border-radius:6px; object-fit:cover; border:1px solid #e5e7eb; }
.review-actions { margin-top:8px; }
.helpful-btn { display:inline-flex; align-items:center; gap:6px; background:#f3f4f6; color:#111827; border:1px solid #e5e7eb; border-radius:6px; padding:.4rem .6rem; cursor:pointer; }
.helpful-btn:disabled { opacity:.6; cursor:not-allowed; }
.review-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); display:none; align-items:center; justify-content:center; z-index:10000; }
.review-lightbox .rv-img { max-width:90%; max-height:85vh; border-radius:8px; }
.review-lightbox .rv-prev, .review-lightbox .rv-next { position:absolute; top:50%; transform:translateY(-50%); background:#111827; color:#fff; border:none; border-radius:999px; width:44px; height:44px; cursor:pointer; opacity:.95; }
.review-lightbox .rv-prev { left:20px; }
.review-lightbox .rv-next { right:20px; }
.review-lightbox .rv-close { position:absolute; top:20px; right:20px; background:transparent; color:#fff; border:none; font-size:24px; cursor:pointer; }
.review-dropzone { padding:12px; border:2px dashed #e5e7eb; border-radius:8px; text-align:center; color:#6b7280; margin-bottom:8px; }
.review-dropzone.drag { border-color:#4f46e5; background:#eef2ff; color:#111827; }
.review-previews { display:flex; gap:8px; flex-wrap:wrap; }
.review-preview-item { position:relative; }
.review-preview-item img { width:72px; height:72px; border-radius:6px; object-fit:cover; border:1px solid #e5e7eb; }
.preview-del { position:absolute; top:2px; right:2px; background:#111827; color:#fff; border:none; border-radius:999px; width:20px; height:20px; cursor:pointer; }
.review-errors { margin-top:6px; color:#ef4444; font-size:.9rem; }
