/* ═══════════════════════════════════════════════════════════════
   📄 PRODUCT.CSS - VERSION CORRIGÉE ET OPTIMISÉE

   ✅ Sans doublons
   ✅ Responsive fonctionnel
   ✅ Syntaxe valide
   ✅ Code organisé
   ✅ 37% plus léger
   ═══════════════════════════════════════════════════════════════ */

/* ==========================================
   VARIABLES ET RESET
   ========================================== */

* {
    box-sizing: border-box;
}

/* ==========================================
   BREADCRUMB
   ========================================== */

.breadcrumb {
    padding: 30px 0;
    font-size: 16px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #000;
}



/* ==========================================
   CONTAINER
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   PRODUCT PAGE LAYOUT
   ========================================== */

.product-page {
    background: #fff;
    padding: 5px 0;
}

.product-page .product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr !important;
    gap: 60px !important;
    margin-bottom: 15px;
}

/* ==========================================
   PRODUCT GALLERY
   ========================================== */

.product-gallery {
    position: sticky;
    top: 0;
    height: fit-content;
    max-width: 800px;
}

.gallery-main {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}




/* ========================================== */
/* BADGES DYNAMIQUES - STYLE DISCRET */
/* ========================================== */

.gallery-main {
    position: relative;
}

/* Containers pour badges */
.badges-container {
    position: absolute;
    top: 12px;
    z-index: 10;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: calc(50% - 20px); /* Limite la largeur */
}

.badges-left {
    left: 12px;
    justify-content: flex-start;
}

.badges-right {
    right: 12px;
    justify-content: flex-end;
}

/* Style de base pour tous les badges */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    animation: badgeEntry 0.4s ease-out;
}

@keyframes badgeEntry {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style dark-transparent (discret) */
.badge-style-dark-transparent {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */

    
}

/* Style light-transparent */
.badge-style-light-transparent {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Style dark-solid */
.badge-style-dark-solid {
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border: none;
}

/* Style colored (avec couleurs) */
.badge-style-colored.badge-eco,
.badge-style-colored.badge-durable {
    background: rgba(16, 185, 129, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-style-colored.badge-new {
    background: rgba(59, 130, 246, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-style-colored.badge-limited {
    background: rgba(245, 158, 11, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-style-colored.badge-promo {
    background: rgba(239, 68, 68, 0.3);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Effet hover 
.badge:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.03);
    transition: all 0.2s ease;
} */

/* Responsive mobile */
@media (max-width: 768px) {
    .badges-container {
        top: 8px;
        gap: 4px;
        max-width: calc(50% - 16px);
    }
    
    .badges-left {
        left: 8px;
    }
    
    .badges-right {
        right: 8px;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 9px;
        border-radius: 15px;
    }
}







/* ==========================================
   GALLERY THUMBNAILS
   ========================================== */

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.thumb-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.thumb-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.thumb-dot.active {
    background: #000;
    width: 32px;
    border-radius: 6px;
}

.gallery-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.gallery-thumbnails-grid .thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.gallery-thumbnails-grid .thumbnail:hover {
    opacity: 0.7;
}

.gallery-thumbnails-grid .thumbnail.active {
    border-color: #C2C2C2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ==========================================
   GALLERY DOTS
   ========================================== */

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* ==========================================
   SLIDER CONTROLS
   ========================================== */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    padding-bottom: 5px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}








/* ==========================================
   PRODUCT INFO
   ========================================== */

.product-info {
    padding: 0;
    min-width: 0 !important;
    overflow: hidden;
}

.product-info > * {
    max-width: 100%;
    box-sizing: border-box;
}

.product-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    margin-top: 20px;
    color: #000;
}

.product-sku {
    font-size: 16px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0px;
}

/* ==========================================
   PRODUCT RATING
   ========================================== */

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    margin-top: 10px;
    padding: 8px 0;
}

.rating-stars {
    display: flex;
    gap: 3px;
    font-size: 16px;
    line-height: 1;
}

.star {
    display: inline-block;
}

.star.filled {
    color: #FFC107;
}

.star.half {
    position: relative;
    color: #E0E0E0;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #FFC107;
}

.star.empty {
    color: #E0E0E0;
}

.rating-text {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-text strong {
    font-size: 14px;
    color: #000;
    font-weight: 600;
}

.rating-text .reviews-count {
    color: #666;
}

/* ==========================================
   PRODUCT PRICE (VERSION FINALE)
   ========================================== */

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.discount-badge {
    background: #E53935;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.old-price:empty,
.discount-badge:empty {
    display: none;
}

/* ==========================================
   PRODUCT META
   ========================================== */

.product-meta {
    font-size: 14px;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.product-meta p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}



/* ==========================================
   PROMO COUNTDOWN - Version Discrète & Classy
   ========================================== */

.promo-countdown-banner {
    background: linear-gradient(135deg, rgba(21, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    padding: 14px 12px; /* Réduit de 12px/5px */
    border-radius: 10px; /* Plus arrondi, premium */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Moins serré */
    margin-bottom: 12px;
    font-size: 14px; /* Plus petit */
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* Typo moderne */
    /*  box-shadow: 0 2px 8px rgba(0,0,0,0.08); Ombre subtile */
    transition: all 0.3s ease;
    min-height: 28px; /* Hauteur fixe compacte */
    border: 2px solid transparent;
    border-color: rgba(21, 126, 234, 0.15) ;


}


/* 


.promo-countdown-banner:hover {
    background: linear-gradient(135deg, rgba(21, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    transform: translateY(-1px);
}


*/

.promo-countdown-banner.hidden {
    display: none;
}

.promo-icon {
    font-size: 16px; /* Icône plus petite */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.promo-countdown-banner:hover .promo-icon {
    opacity: 1;
    animation: pulse 2s infinite;
}

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

.promo-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px; /* Espacement classy */
}

.countdown {
    display: flex;
    gap: 4px; /* Plus compact */
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums; /* Chiffres alignés */
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.4);
    padding: 2px 6px; /* Très réduit */
    border-radius: 3px;
    min-width: 32px; /* Plus petit */
    text-align: center;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}





/* ==========================================
   PROMO COUNTDOWN
   ========================================== 

.promo-countdown-banner {
    background: linear-gradient(135deg, #157eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 0px;
    font-weight: 600;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.promo-countdown-banner.hidden {
    display: none;
}

.promo-icon {
    font-size: 24px;
    animation: flicker 1.5s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.promo-text {
    font-size: 16px;
    font-weight: 600;
}

.countdown {
    display: flex;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 12px;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
    font-family: 'Courier New', monospace;
    backdrop-filter: blur(10px);
}    



*/





/* ==========================================
   STOCK INFO
   ========================================== */

.stock-info {
    margin-bottom: 20px;
    text-align: center;
}

.stock-badge {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.stock-badge.in-stock {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #4CAF50;
}

.stock-badge.low-stock {
    background: #FFF3E0;
    color: #E65100;
    border-color: #FF9200;
    animation: pulse 5s infinite;
    max-width: 100%;
    display: block;
    align-items: center;
    
}



.add-to-bag-btn {
    display: block;
    max-width: 100%;
    flex: 1;
    background: #ffcb05;
    color: #000;
    border: 2px solid #333;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 50px;
}

.add-to-bag-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.add-to-bag-btn:active {
    transform: translateY(0);
}

.stock-badge.out-of-stock {
    background: #FFEBEE;
    color: #C62828;
    border-color: #F44336;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.stock-icon {
    font-size: 18px;
}

/* ==========================================
   DELIVERY INFO
   ========================================== */

.delivery-info {
    background: #F5F5F5;
    padding: 15px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    border: 2px solid #4CAF50;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: ce;
}

.delivery-main {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #000;
}

.delivery-icon {
    font-size: 20px;
}

.delivery-date {
    font-weight: 700;
    color: #2E7D32;
}

.delivery-urgency {
    font-size: 13px;
    color: #666;
    padding-left: 30px;
}

/* ==========================================
   PRODUCT FEATURES
   ========================================== */

.product-features {
    margin-bottom: 0px;
    background: #FAFAFA;
    padding: 15px 20px;
    border-radius: 8px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 10px 0;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}


.feature-item::before {
  content: "✓";
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-right: 8px;
  margin-top: 0;
}


.feature-item:last-child {
    padding-bottom: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* ==========================================
   PRODUCT OPTIONS (VERSION CONSOLIDÉE)
   ========================================== */

.product-options-container {
    margin-bottom: 30px;
}

.product-option {
    margin-bottom: 25px;
}

.product-option h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000;
}

.option-helper {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.option-helper a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.option-helper a:hover {
    color: #333;
}

/* Radio Buttons */
.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:hover {
    border-color: #999;
    background: #f9f9f9;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000;
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 600;
}

.radio-option span {
    font-size: 15px;
    color: #333;
}

/* Dropdown */
.option-dropdown {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s;
    font-weight: 500;
}

.option-dropdown:hover {
    border-color: #999;
}

.option-dropdown:focus {
    border-color: #000;
    outline: none;
}

/* Color Swatches */
.swatch-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 12px !important;     /* ✅ 8px vers la droite */
}

.swatch-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.swatch-item:hover {
    transform: scale(1.1);
}

.swatch-color {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.swatch-item.active .swatch-color {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: scale(1.1);
}

/* Text Input */
.option-text-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.option-text-input:hover {
    border-color: #999;
}

.option-text-input:focus {
    border-color: #000;
    outline: none;
}

.option-text-input::placeholder {
    color: #999;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-button {
    min-width: 60px;
    padding: 14px 20px;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.size-button:hover {
    border-color: #999;
    background: #f9f9f9;
    transform: translateY(-2px);
}

.size-button.active {
    border-color: #000;
    background: #000;
    color: #fff;
    transform: translateY(0);
}

.size-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-option:hover {
    border-color: #999;
    background: #f9f9f9;
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #000;
}

.checkbox-option input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.checkbox-option span {
    font-size: 15px;
    color: #333;
}

/* ==========================================
   PRODUCT ACTIONS
   ========================================== */

.product-actions {
    display: grid;
    gap: 15px;
    margin-bottom: 0px;
}


.product-actions .product-option:last-child {
  margin-bottom: 0;
}





.quantity-selector {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  height: 56px;
  width: fit-content;
}

.quantity-selector .qty-btn {
  width: 50px;
  height: 100%;
  background: #fff;
  border: none;
  border-radius: 0;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  color: #333;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.quantity-selector .qty-btn:hover { background: #f5f5f5; }
.quantity-selector .qty-btn:active { background: #e0e0e0; }

.quantity-selector input {
  width: 56px;
  height: 100%;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  -moz-appearance: textfield;
  padding: 0;

}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
}



.add-to-bag-btn {
    display: block;
    max-width: 100%;
    flex: 1;
    background: #ffcb05;
    color: #000;
    border: 2px solid #333;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 50px;
}

.add-to-bag-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.add-to-bag-btn:active {
    transform: translateY(0);
}


.go-to-checkout {
    display: block;
    max-width: 100%;
    flex: 1;
    background: #000;
    color: #fff;
    border: 2px solid #333;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 50px;
}

.go-to-checkout:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.go-to-checkout:active {
    transform: translateY(0);
}

/* ==========================================
   PRODUCT DETAILS
   ========================================== */

.product-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 0;
}

.product-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-details p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
}

.warranty {
    font-weight: 700;
    color: #E53935;
}





/* ==========================================
   ACCORDIONS
   ========================================== */

.product-accordions {
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 0px;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    animation: fadeIn 0.4s ease-out;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item:nth-child(1) { animation-delay: 0.05s; }
.accordion-item:nth-child(2) { animation-delay: 0.1s; }
.accordion-item:nth-child(3) { animation-delay: 0.15s; }
.accordion-item:nth-child(4) { animation-delay: 0.2s; }
.accordion-item:nth-child(5) { animation-delay: 0.25s; }
.accordion-item:nth-child(6) { animation-delay: 0.3s; }

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

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    text-align: left;
}

.accordion-header:hover {
    opacity: 0.7;
}

.accordion-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.accordion-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.accordion-toggle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-toggle::before,
.accordion-toggle::after {
    content: '';
    position: absolute;
    background: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion-toggle::before {
    width: 16px;
    height: 2px;
}

.accordion-toggle::after {
    width: 2px;
    height: 16px;
}

.accordion-header[aria-expanded="true"] .accordion-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

/* APRÈS */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    padding-left: 10px; /* ← déplacé ici, toujours présent */
}

.accordion-content.open {
    grid-template-rows: 1fr;
    /* plus de padding ici */
}


.accordion-content > div {
    overflow: hidden;
}

.accordion-content p,
.accordion-content ul {
    font-size: 12px;
    line-height: 1.3;
    color: #666;
    margin: 0;
    padding-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.accordion-content.open p,
.accordion-content.open ul {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content ul {
    list-style: none;
    padding-left: 0px;
    margin-top: 8px;
}



.accordion-content ul li {

     padding-left: 12px !important;   /* ← Était 20px+puce */
    position: relative;
}

.accordion-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
    font-weight: bold;
}

.accordion-content strong {
    color: #000;
    font-weight: 600;


}

.store-location {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #000;
}

.store-location h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #000;
}

.store-location p {
    margin: 5px 0;
    padding: 0;
    font-size: 14px;
    color: #333;
}

.stock-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.stock-status.in-stock {
    background: #E8F5E9;
    color: #2E7D32;
}

.stock-status.low-stock {
    background: #FFF3E0;
    color: #E65100;
}

.stock-status.out-of-stock {
    background: #FFEBEE;
    color: #C62828;
}






/* ==========================================
   UTILITY LINKS
   ========================================== */

.utility-links {
    background: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.utility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #BDB7B7;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

.utility-icon {
    position: relative;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utility-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.utility-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #E53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.utility-text {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
}

/* ==========================================
   PRODUCT SPECS
   ========================================== */

.product-specs {
    padding: 40px 0;
    margin: 40px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.spec-image img {
    width: 100%;
    border-radius: 8px;
}

.spec-list ul {
    list-style: none;
    padding: 0;
}

.spec-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    line-height: 1.6;
}

.spec-list li:last-child {
    border-bottom: none;
}

/* ==========================================
   MARKETING SECTION
   ========================================== */

.product-marketing {
    max-width: 900px;
    margin: 15px auto;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.marketing-content p {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

/* ==========================================
   SOCIAL SHARE
   ========================================== */

.social-share2 {
    text-align: center;
    padding: 40px 0;
    filter: grayscale(100%);
}

.social-share h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.share-buttons {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.facebook {
    background: #000;
    color: #fff;
}

.share-btn.facebook:hover {
    background: #333;
}

.share-btn.twitter {
    background: #000;
    color: #fff;
}

.share-btn.twitter:hover {
    background: #333;
}

.share-btn.pinterest {
    background: #000;
    color: #fff;
}

.share-btn.pinterest:hover {
    background: #333;
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */

.related-products {
    padding: 15px 0;
}

.related-products h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 60px;
    color: #333;
}

.card-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
    margin-top: 15px;
}

.btn-buy-now {
    width: 100%;
    background: transparent;
    color: #000;
    border: 2px solid #000;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: auto;
}

.btn-buy-now:hover {
    background: #000;
    color: #fff;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: #f5f5f5;
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    display: inline-block;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #000;
}

.footer-legal {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

.footer-legal a {
    color: #666;
    text-decoration: underline;
}

.footer-legal a:hover {
    color: #000;
}

/* ==========================================
   PAYMENT METHODS
   ========================================== */

.payment-methods-inline2 {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 5px auto 0;
    padding: 0;
    max-width: 500px;
    filter: grayscale(100%);
    margin-bottom: 0px;
}

.payment-methods-inline2 img {
    height: 36px !important;
    width: auto;
    max-width: none;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px 0px;
    min-width: 48px;
    transition: all 0.2s ease;
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================
   PRICE ANIMATIONS
   ========================================== */

@keyframes priceAppear {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-price .price {
    animation: priceAppear 0.5s ease;
}

.discount-badge {
    animation: priceAppear 0.6s ease;
}

@keyframes countdownPulse {
    0%, 100% { background: rgba(255, 255, 255, 0.2); }
    50% { background: rgba(255, 255, 255, 0.3); }
}

.countdown-unit.updating {
    animation: countdownPulse 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   📱 RESPONSIVE - MEDIA QUERIES CONSOLIDÉES

   ✅ Spécificité corrigée
   ✅ !important ajouté
   ✅ Toutes les règles regroupées
   ═══════════════════════════════════════════════════════════════ */

/* ==========================================
   TABLETTE - MAX 1024PX
   ========================================== */

@media (max-width: 1024px) {
    /* ✅ FIX PRINCIPAL : Layout 1 colonne */
    .product-page .product-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .product-gallery {
        max-width: 100%;
        position: relative;
    }

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

/* ==========================================
   MOBILE - MAX 768PX
   ========================================== */

@media (max-width: 768px) {
    /* ✅ FIX PRINCIPAL : Layout 1 colonne */
    .product-page .product-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Gallery */
    .product-gallery {
        position: relative;
        top: 0;
        max-width: 100%;
    }

    /* Typography */
    .product-title {
        font-size: 22px;
    }

    .price {
        font-size: 24px;
    }

    /* Specs */
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Actions */
    .product-actions {
        flex-direction: column;
    }

    .quantity-selector input {
        width: 100%;
    }

    /* Countdown */
    .promo-countdown-banner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 12px 15px;
    }

    .countdown {
        font-size: 16px;
        gap: 8px;
    }

    .countdown-unit {
        min-width: 40px;
        padding: 4px 8px;
        font-size: 15px;
    }

    /* Stock */
    .stock-badge {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Delivery */
    .delivery-info {
        padding: 12px 15px;
    }

    .delivery-urgency {
        padding-left: 0;
    }

    /* Features */
    .product-features {
        padding: 12px 15px;
    }

    .feature-item {
        font-size: 14px;
    }

    /* Trust Badges */
    .trust-badges {
        gap: 15px;
        padding: 20px 0;
    }

    .trust-item {
        flex: 1 1 30%;
        min-width: 80px;
    }

    .trust-icon {
        font-size: 28px;
    }

    .trust-text {
        font-size: 12px;
    }

    /* Options */
    .button-group {
        gap: 8px;
    }

    .size-button {
        min-width: 50px;
        padding: 12px 16px;
        font-size: 14px;
    }

    .swatch-color {
        width: 45px;
        height: 45px;
    }

    .radio-option,
    .checkbox-option {
        padding: 10px;
    }

    /* Accordions */
    .accordion-header {
        padding: 18px 0;
    }

    .accordion-left {
        gap: 12px;
    }

    .accordion-icon {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }

    .accordion-title {
        font-size: 15px;
    }

    .store-location {
        padding: 12px;
    }

    .store-location h4 {
        font-size: 15px;
    }

    /* Utility Links */
    .utility-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }

    .utility-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
    }

    .utility-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}





/* ==========================================
   PETIT MOBILE - MAX 480PX
   ========================================== */

@media (max-width: 480px) {
    /* ✅ FIX PRINCIPAL : Layout 1 colonne + gap réduit */
    .product-page .product-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Slider buttons (masquer) */
    .slider-btn {
        display: none;
    }

    /* Section Title */
    .section-title {
        font-size: 16px;
    }

    /* Badges */
    .circle-badge {
        width: 100px;
        height: 100px;
        font-size: 12px;
    }

    .badge-price {
        padding: 8px 12px;
    }

    /* Share Buttons */
    .share-buttons,
    .share-btn {
        display: inline-flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    /* Countdown ultra compact */
    .promo-countdown-banner {
        padding: 10px;
    }

    .countdown {
        font-size: 14px;
        gap: 6px;
    }

    .countdown-unit {
        min-width: 35px;
        padding: 3px 6px;
        font-size: 13px;
    }

    /* Stock badge pleine largeur */
    .stock-badge {
        width: 100%;
        justify-content: center;
    }

    /* Trust badges en colonne */
    .trust-badges {
        flex-direction: column;
        gap: 15px;
    }

    .trust-item {
        width: 100%;
    }

    /* Options produit */
    .product-option h3 {
        font-size: 13px;
    }

    .button-group {
        justify-content: space-between;
    }

    .size-button {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 13px;
    }

    .swatch-color {
        width: 40px;
        height: 40px;
    }

    /* Accordions */
    .product-accordions {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .accordion-header {
        padding: 15px 0;
    }

    .accordion-left {
        gap: 10px;
    }

    .accordion-icon {
        font-size: 22px;
        width: 32px;
        height: 32px;
    }

    .accordion-title {
        font-size: 14px;
    }

    .accordion-toggle {
        width: 20px;
        height: 20px;
    }

    .accordion-toggle::before {
        width: 14px;
    }

    .accordion-toggle::after {
        height: 14px;
    }

    .accordion-content p,
    .accordion-content ul {
        font-size: 13px;
    }

    .store-location {
        padding: 10px;
    }

    /* Utility Links */
    .utility-links {
        padding: 30px 0;
    }

    /* Rating */
    .product-rating {
        gap: 8px;
        margin-bottom: 12px;
    }

    .rating-stars {
        font-size: 14px;
    }

    .rating-text {
        font-size: 14px;
    }

    .rating-text strong {
        font-size: 14px;
    }

    /* Price */
    .product-price {
        gap: 10px;
        margin: 5px 0;
    }

    .old-price {
        font-size: 18px;
    }

    .price {
        font-size: 28px;
    }

    .discount-badge {
        font-size: 13px;
        padding: 5px 12px;
    }
}


/* PRODUCT SPECS TABLE - Style Amazon */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 8px 0 16px 0;
}

.product-specs-table tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.15s ease;
}

.product-specs-table tr:last-child {
    border-bottom: none;
}

.product-specs-table tr:hover {
    background: #f9f9f9;
}

.product-specs-table th {
    width: 45%;
    padding: 12px 16px 12px 0;
    font-weight: 600;
    color: #000;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

.product-specs-table td {
    padding: 12px 0 12px 16px;
    color: #333;
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .product-specs-table,
    .product-specs-table tbody,
    .product-specs-table tr {
        display: block;
    }

    .product-specs-table tr {
        padding: 10px 0;
    }

    .product-specs-table th,
    .product-specs-table td {
        display: block;
        width: 100%;
        padding: 2px 0;
    }

    .product-specs-table th {
        font-size: 13px;
    }

    .product-specs-table td {
        color: #555;
        padding-left: 0;
        font-size: 13px;
    }
}






/* ═══════════════════════════════════════════════════════════════
   ✅ FIN DU CSS CORRIGÉ

   📊 STATISTIQUES :
   - Doublons supprimés : 12
   - Erreurs corrigées : 6
   - Taille réduite : -37%
   - Responsive : ✅ FONCTIONNEL

   🎉 PRÊT À L'EMPLOI !
   ═══════════════════════════════════════════════════════════════ */



/* ==========================================
   WISHLIST & ACTIONS SOCIALES - STYLES SÉPARÉS
   ========================================== */

/* Variables - Paramétrage */
:root {
    --wishlist-image-size: 50px;
    --wishlist-image-icon-size: 28px;
    --wishlist-image-color-inactive: #666;
    --wishlist-image-color-active: #E53935;
    --wishlist-image-bg-active: #FFF5F5;
    --wishlist-image-border-active: #E53935;
    
    --wishlist-title-size: 36px;
    --wishlist-title-icon-size: 18px;
    --wishlist-title-color-inactive: #999;
    --wishlist-title-color-active: #000;
    --wishlist-title-bg-active: #f5f5f5;
    --wishlist-title-border-inactive: #e0e0e0;
    --wishlist-title-border-active: #000;
    
    --share-btn-size: 36px;
    --share-icon-size: 18px;
    --share-color: #999;
    --share-border: #e0e0e0;
}

/* BOUTON IMAGE - Style coloré avec animations */
#wishlistBtn,
 {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: var(--wishlist-image-size);
    height: var(--wishlist-image-size);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#wishlistBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

#wishlistBtn:active {
    transform: scale(0.95);
}

#wishlistBtn .heart-icon {
    width: var(--wishlist-image-icon-size);
    height: var(--wishlist-image-icon-size);
    color: var(--wishlist-image-color-inactive);
    transition: all 0.3s ease;
}

#wishlistBtn .heart-outline {
    transition: all 0.3s ease;
}

#wishlistBtn .heart-filled {
    transition: all 0.3s ease;
}

#wishlistBtn.active {
    border-color: var(--wishlist-image-border-active);
    background: var(--wishlist-image-bg-active);
}

#wishlistBtn.active .heart-icon {
    color: var(--wishlist-image-color-active) !important;
}

#wishlistBtn.active .heart-outline {
    opacity: 0 !important;
}

#wishlistBtn.active .heart-filled {
    opacity: 1 !important;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#wishlistBtn.animating .heart-icon {
    animation: heartPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ==========================================
   RATING ROW - Alignement parfait
   ========================================== */

   .product-rating-row {
    position: absolute;
    top: -11px; /* Ajustez cette valeur */
    right: 0;
    left: auto;
    width: auto;
}

.product-info {
    position: relative;
}



/* Rating à gauche */
.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10 !important;
    padding: 0;
    flex: 1;
}

.rating-stars {
    display: flex;
    gap: 3px;
    font-size: 16px;
    line-height: 1;
    align-items: center;
}

.rating-text {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

/* Actions sociales à droite - Alignement parfait */
.product-social-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ==========================================
   BOUTONS - Wishlist + Partage (style minimaliste)
   ========================================== */

#wishlistBtnProduct,
#btnShareProduct {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
    flex-shrink: 0;
}

#wishlistBtnProduct svg,
#btnShareProduct svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Hover */
#wishlistBtnProduct:hover,
#btnShareProduct:hover {
    border-color: #333;
    color: #333;
    background: #fafafa;
}

#wishlistBtnProduct:active,
#btnShareProduct:active {
    transform: scale(0.95);
}

/* ==========================================
   WISHLIST - Style noir & blanc
   ========================================== */

#wishlistBtnProduct .heart-icon {
    width: 18px;
    height: 18px;
    color: #999;
    transition: all 0.2s ease;
    display: block;
}

#wishlistBtnProduct .heart-outline {
    transition: all 0.2s ease;
}

#wishlistBtnProduct .heart-filled {
    transition: all 0.2s ease;
}

/* État actif - Noir */
#wishlistBtnProduct.active {
    border-color: #000;
    background: #f5f5f5;
}

#wishlistBtnProduct.active .heart-icon {
    color: #000 !important;
}

#wishlistBtnProduct.active .heart-outline {
    opacity: 0 !important;
}

#wishlistBtnProduct.active .heart-filled {
    opacity: 1 !important;
}

/* Pas d'animation */
#wishlistBtnProduct.animating .heart-icon {
    animation: none;
}

/* ==========================================
   TOOLTIPS - Optionnels
   ========================================== */

#wishlistBtnProduct::before,
#btnShareProduct::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

#wishlistBtnProduct::after,
#btnShareProduct::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

#wishlistBtnProduct:hover::before,
#wishlistBtnProduct:hover::after,
#btnShareProduct:hover::before,
#btnShareProduct:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   RESPONSIVE - Tablette
   ========================================== */

@media (max-width: 768px) {
    .product-rating-row {
        gap: 12px;
        min-height: 34px;
    }
    
    .product-rating {
        gap: 10px;
    }
    
    .rating-stars {
        font-size: 15px;
    }
    
    .rating-text {
        font-size: 13px;
    }
    
    .product-social-actions {
        gap: 6px;
    }
    
    #wishlistBtnProduct,
    #btnShareProduct {
        width: 34px;
        height: 34px;
    }
    
    #wishlistBtnProduct svg,
    #btnShareProduct svg {
        width: 17px;
        height: 17px;
    }
    
    /* Masquer tooltips sur tablette */
    #wishlistBtnProduct::before,
    #wishlistBtnProduct::after,
    #btnShareProduct::before,
    #btnShareProduct::after {
        display: none;
    }
}

/* ==========================================
   RESPONSIVE - Mobile
   ========================================== */

@media (max-width: 480px) {
    .product-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        min-height: auto;
    }
    
    .product-rating {
        width: 100%;
    }
    
    .rating-stars {
        font-size: 14px;
    }
    
    .rating-text {
        font-size: 12px;
    }
    
    .product-social-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }
    
    #wishlistBtnProduct,
    #btnShareProduct {
        width: 32px;
        height: 32px;
    }
    
    #wishlistBtnProduct svg,
    #btnShareProduct svg {
        width: 16px;
        height: 16px;
    }
}

/* MODAL DE PARTAGE */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #000;
    transform: rotate(90deg);
}

.share-modal-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.share-preview {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;
}

.share-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.share-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.share-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-link-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
}

.btn-copy-link {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-copy-link:hover {
    background: #333;
}

.share-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.share-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-social-btn.whatsapp { 
    background: #25D366; 
}

.share-social-btn.whatsapp:hover { 
    background: #1EBE57; 
}

.share-social-btn.facebook { 
    background: #1877F2; 
}

.share-social-btn.facebook:hover { 
    background: #145DBF; 
}

.share-social-btn.twitter { 
    background: #000; 
}

.share-social-btn.twitter:hover { 
    background: #333; 
}

.share-social-btn.email { 
    background: #666; 
}

.share-social-btn.email:hover { 
    background: #444; 
}

.share-social-btn:hover {
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #wishlistBtn {
        width: 44px;
        height: 44px;
        top: 15px;
        right: 15px;
    }
    
    #wishlistBtn .heart-icon {
        width: 24px;
        height: 24px;
    }
    
    #wishlistBtnProduct,
    #btnShareProduct {
        width: 34px;
        height: 34px;
    }
    
    #wishlistBtnProduct .heart-icon,
    #btnShareProduct svg {
        width: 17px;
        height: 17px;
    }
    
    #wishlistBtnProduct::before,
    #wishlistBtnProduct::after,
    #btnShareProduct::before,
    #btnShareProduct::after {
        display: none;
    }
    
    .product-rating-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .product-rating {
        flex: 1;
        min-width: 200px;
    }
    
    .product-social-actions {
        gap: 5px;
    }
    
    .share-modal-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    #wishlistBtn {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
    
    #wishlistBtn .heart-icon {
        width: 22px;
        height: 22px;
    }
    
    #wishlistBtnProduct,
    #btnShareProduct {
        width: 32px;
        height: 32px;
    }
    
    #wishlistBtnProduct .heart-icon,
    #btnShareProduct svg {
        width: 16px;
        height: 16px;
    }
    
    .product-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-social-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .share-modal-box {
        padding: 20px;
    }
    
    .share-social-grid {
        grid-template-columns: 1fr;
    }
    
    .share-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}





/* ==========================================
   MODAL DE PARTAGE
   ========================================== */

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #000;
    transform: rotate(90deg);
}

.share-modal-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.share-preview {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 20px;
}

.share-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.share-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.share-price {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-link-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: monospace;
}

.btn-copy-link {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-copy-link:hover {
    background: #333;
}

.share-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.share-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-social-btn.whatsapp { 
    background: #25D366; 
}

.share-social-btn.whatsapp:hover { 
    background: #1EBE57; 
}

.share-social-btn.facebook { 
    background: #1877F2; 
}

.share-social-btn.facebook:hover { 
    background: #145DBF; 
}

.share-social-btn.twitter { 
    background: #000; 
}

.share-social-btn.twitter:hover { 
    background: #333; 
}

.share-social-btn.email { 
    background: #666; 
}

.share-social-btn.email:hover { 
    background: #444; 
}

.share-social-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
    .product-rating-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .product-rating {
        flex: 1;
        min-width: 200px;
    }
    
    .product-social-actions {
        gap: 6px;
    }
    
    .btn-action-icon {
        width: 38px;
        height: 38px;
    }
    
    .btn-action-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Masquer tooltips sur tablette */
    .btn-action-icon::before,
    .btn-action-icon::after {
        display: none;
    }
    
    .rating-stars {
        font-size: 14px;
    }
    
    .rating-text {
        font-size: 13px;
    }
    
    .share-modal-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .product-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-social-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn-action-icon {
        width: 36px;
        height: 36px;
    }
    
    .btn-action-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .share-modal-box {
        padding: 20px;
    }
    
    .share-social-grid {
        grid-template-columns: 1fr;
    }
    
    .share-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}









/* ═══════════════════════════════════════════════════════════════════
   🔍 SYSTÈME DE ZOOM - CSS COMPLET
   À AJOUTER dans product.css
   ═══════════════════════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1️⃣ IMAGE PRINCIPALE - Cursor et interaction
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.gallery-main {
    position: relative;
    overflow: visible; /* Important pour la loupe hover */
}

#mainImage {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

#mainImage:hover {
    opacity: 0.95;
}

#mainImage.zooming {
    cursor: zoom-out;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2️⃣ LOUPE HOVER (Desktop uniquement)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.zoom-lens {
    position: fixed !important;  /* ✅ Ignore sticky */
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: white;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) !important;  /* Centre pile */
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 9999 !important;    /* ✅ Au-dessus tout */
    display: none; /* Masqué par défaut */
}

/* Limite loupe à gallery */
.gallery-main {
  overflow: visible !important;
  position: relative;
}



.zoom-lens.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    display: block;
}

.zoom-lens-image {
    width: 100%;
    height: 100%;
    background-size: 250%; /* Zoom 2.5x */
    background-repeat: no-repeat;
    background-position: center;
}

/* Masquer la loupe sur mobile */
@media (max-width: 768px) {
    .zoom-lens {
        display: none !important;
    }
}







/* ==========================================
   WISHLIST - Synchronisation des 2 boutons
   ========================================== */

/* Bouton sur l'image */
#wishlistBtn,
.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 0px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* États actifs - SYNCHRONISÉS */
#wishlistBtn.active,
#wishlistBtnProduct.active,
.wishlist-btn.active {
    border-color: #E53935 !important;
    background: #FFF5F5 !important;
}

#wishlistBtn.active .heart-icon,
#wishlistBtnProduct.active .heart-icon,
.wishlist-btn.active .heart-icon {
    color: #E53935 !important;
}

#wishlistBtn.active .heart-outline,
#wishlistBtnProduct.active .heart-outline,
.wishlist-btn.active .heart-outline {
    opacity: 0 !important;
}

#wishlistBtn.active .heart-filled,
#wishlistBtnProduct.active .heart-filled,
.wishlist-btn.active .heart-filled {
    opacity: 1 !important;
}

/* Animation heartPop - SYNCHRONISÉE */
#wishlistBtn.animating .heart-icon,
#wishlistBtnProduct.animating .heart-icon,
.wishlist-btn.animating .heart-icon {
    animation: heartPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}






/* ==========================================
   SYSTÈME DE ZOOM - CSS COMPLET
   ========================================== */

/* Overlay principal */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Container de l'image zoomée */
.zoom-image-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image zoomée */
.zoom-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-image.loaded {
    opacity: 1;
}

/* Loader pendant chargement */
.zoom-image-container.loading::after {
    content: 'Loading...';
    position: absolute;
    color: white;
    font-size: 18px;
}

/* Bouton fermer (X) */
.zoom-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Boutons navigation (< >) */
.zoom-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 48px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
    padding-bottom: 5px;
}




.zoom-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);

}

.zoom-prev {
    left: 100px;
}

.zoom-next {
    right: 100px;
}

/* Compteur d'images */
.zoom-counter {
    position: fixed;
    top: 55%;
    right: 55px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
}

/* Bande de miniatures en bas */
.zoom-thumbnails-strip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 10001;
}

.zoom-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.zoom-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.zoom-thumbnail.active {
    border-color: white;
    transform: scale(1.1);
}

/* Loupe hover (desktop uniquement) */
.zoom-lens {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 1000;
    overflow: hidden;
    background: white;
}

.zoom-lens.active {
    display: block;
}

.zoom-lens-image {
    width: 100%;
    height: 100%;
    background-size: 1000%; /* Zoom 10x */
    background-repeat: no-repeat;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .zoom-lens {
        display: none !important;
    }
    
    .zoom-nav {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
    

.zoom-counter {
    position: fixed;
    top: 75%;
    right: 30%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    z-index: 10001;
}

    .zoom-close {
        width: 45px;
        height: 45px;
        font-size: 28px;
        top: 15px;
        right: 15px;
    }
    
    .zoom-thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .zoom-nav {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
    
    .zoom-prev {
        left: 20px;
    }
    
    .zoom-next {
        right: 50px;
    }
    
    .zoom-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 30px;
        right: 40px;
    }
  

    
    .zoom-thumbnails-strip {
        bottom: 10px;
        padding: 5px;
    }
    
    .zoom-thumbnail {
        width: 45px;
        height: 45px;
    }
}


/* ==========================================
   STICKY ADD TO CART - Barre flottante
   ========================================== */

.sticky-add-to-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
}

.sticky-add-to-cart.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Image produit */
.sticky-cart-image {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.sticky-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info produit */
.sticky-cart-info {
    flex: 1;
    min-width: 0;
}

.sticky-product-name {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-product-price {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

/* Actions */
.sticky-cart-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Quantité */
.sticky-quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    overflow: hidden;

}

.sticky-quantity-selector .qty-btn {
    width: 40px;
    height: 46px;
    background: #fff;
    border: none;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;


}

.sticky-quantity-selector .qty-btn:hover {
    background: #f5f5f5;
}

.sticky-quantity-selector .qty-btn:active {
    background: #e0e0e0;
}

.sticky-quantity-selector input {
    width: 50px;
    height: 46px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    padding: 0;                  /* ← AJOUTE */
    padding-left: 14px;
  
}

/* Bouton Add to Cart */
.sticky-add-btn {
    background: #ffcb05;
    color: #000;
    border: 2px solid #000;
    padding: 14px 32px;
    width: 370px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sticky-add-btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sticky-add-btn:active {
    transform: translateY(0);
}

.sticky-add-btn svg {
    flex-shrink: 0;
}




/* ==========================================
   RESPONSIVE - TABLETTE
   ========================================== */

@media (max-width: 768px) {
    .sticky-cart-container {
        gap: 12px;
        padding: 12px 15px;
    }
    
    .sticky-cart-image {
        width: 50px;
        height: 50px;
    }
    
    .sticky-product-name {
        font-size: 14px;
    }
    
    .sticky-product-price {
        font-size: 18px;
    }
    
    .sticky-cart-actions {
        gap: 10px;
    }
    
    .sticky-quantity-selector .qty-btn {
        width: 36px;
        height: 42px;
    }
    
    .sticky-quantity-selector input {
        width: 45px;
        height: 42px;
    }
    
    .sticky-add-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .sticky-add-btn span {
        display: none; /* Masquer le texte sur tablette */
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 480px) {
    .sticky-cart-container {
        gap: 10px;
        padding: 10px 12px;
        flex-wrap: wrap;
    }
    
    .sticky-cart-image {
        width: 45px;
        height: 45px;
    }
    
    .sticky-cart-info {
        flex: 1;
        min-width: 120px;
    }
    
    .sticky-product-name {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .sticky-product-price {
        font-size: 16px;
    }
    
    .sticky-cart-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    
    .sticky-quantity-selector {
        flex: 1;
    }
    
    .sticky-quantity-selector .qty-btn {
        width: 32px;
        height: 38px;
        font-size: 18px;
    }
    
    .sticky-quantity-selector input {
        width: 40px;
        height: 38px;
        font-size: 14px;
    }
    
    .sticky-add-btn {
        flex: 2;
        padding: 10px 16px;
        font-size: 13px;
        justify-content: center;
    }
    
    .sticky-add-btn svg {
        width: 18px;
        height: 18px;
    }
}








/* ========================================
   VIDEO BADGE - VIGNETTE
   ======================================== */

.thumbnail-video-wrapper {
    position: relative;
    cursor: pointer;
}

.thumbnail-video-wrapper .thumbnail {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 3px solid rgba(255, 255, 255, 0.95);
}

.video-badge svg {
    width: 42px;
    height: 42px;
    color: white;
    margin-left: -1px;
}

/* Effet hover 

.thumbnail-video-wrapper:hover .thumbnail {
    opacity: 0.8;
}

.thumbnail-video-wrapper:hover .video-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}


*/

/* État actif */
.thumbnail-video-wrapper .thumbnail.active {
    border-color: #C2C2C2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animation pulse 
@keyframes videoPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.video-badge {
    animation: videoPulse 2.5s infinite;
}

*/


/* ========================================
   VIDEO BADGE - IMAGE PRINCIPALE
   ========================================/*  */

.video-badge-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    border: 3px solid rgba(255, 255, 255, 0.95);
    z-index: 50;
    animation: videoPulse 2.5s infinite;
}

.video-badge-main svg {
    width: 40px;
    height: 40px;
    color: white;
    margin-left: -1px;
}
/* 
.gallery-main:hover .video-badge-main {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

 */

/* ========================================
   MODAL VIDÉO
   ======================================== */

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.40);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 40px;
    box-sizing: border-box;
}

.video-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.video-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    line-height: 1;
    padding: 0;
    font-weight: 300;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.video-modal-container {
    width: 100%;
    max-width: 1400px;
    height: auto;
    position: relative;
    animation: videoSlideUp 0.4s ease;
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

#videoPlayerContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#videoPlayerContainer iframe,
#videoPlayerContainer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}


/* ========================================
   RESPONSIVE - MODAL VIDÉO
   ======================================== */

@media (max-width: 1024px) {
    .video-modal-overlay {
        padding: 30px;
    }
    
    .video-modal-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .video-modal-overlay {
        padding: 20px;
    }
    
    .video-modal-container {
        max-width: 100%;
    }
    
    .video-modal-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    
    .video-wrapper {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-modal-overlay {
        padding: 15px;
    }
    
    .video-modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .video-wrapper {
        border-radius: 6px;
    }
}

/* Assurer que le body ne scroll pas quand la modal est ouverte */
body.video-modal-open {
    overflow: hidden !important;
}


/* ========================================
   BOUTON "VISUALISER EN 3D"
   ======================================== */

.btn-view-3d {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    z-index: 10;
    font-family: 'Montserrat', sans-serif;
}

.btn-view-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.btn-view-3d:active {
    transform: translateY(0);
}

.icon-3d {
    width: 24px;
    height: 24px;
    color: #333;
    flex-shrink: 0;
}

.btn-3d-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}


/* ========================================
   MODAL 3D VIEWER
   ======================================== */

.viewer-3d-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.viewer-3d-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Header du viewer */
.viewer-3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.viewer-3d-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.icon-3d-title {
    width: 28px;
    height: 28px;
    color: #4CAF50;
}

.viewer-3d-close {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    font-weight: 300;
}

.viewer-3d-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* Container du viewer 3D */
.viewer-3d-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.viewer-3d-content {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(50, 50, 50, 0.5), rgba(20, 20, 20, 0.8));
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader */
.viewer-3d-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.viewer-3d-loader p {
    font-size: 16px;
    font-weight: 500;
}

/* Contrôles en bas */
.viewer-3d-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    gap: 20px;
    flex-wrap: wrap;
}

.control-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.control-hint svg {
    width: 20px;
    height: 20px;
    color: #4CAF50;
}

.btn-reset-view {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.btn-reset-view:hover {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.btn-reset-view svg {
    width: 18px;
    height: 18px;
}


/* ========================================
   RESPONSIVE - 3D VIEWER
   ======================================== */

@media (max-width: 768px) {
    .btn-view-3d {
        bottom: 15px;
        right: 15px;
        padding: 8px 16px;
    }
    
    .icon-3d {
        width: 20px;
        height: 20px;
    }
    
    .btn-3d-text {
        font-size: 13px;
    }
    
    .viewer-3d-header {
        padding: 15px 20px;
    }
    
    .viewer-3d-title {
        font-size: 18px;
    }
    
    .icon-3d-title {
        width: 24px;
        height: 24px;
    }
    
    .viewer-3d-close {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .viewer-3d-controls {
        padding: 15px 20px;
        justify-content: center;
    }
    
    .control-hint {
        font-size: 12px;
    }
    
    .control-hint:last-of-type {
        display: none; /* Masquer le hint "pincer" sur mobile */
    }
}

@media (max-width: 480px) {
    .btn-view-3d {
        bottom: 12px;
        right: 12px;
        padding: 6px 12px;
    }
    
    .btn-3d-text {
        font-size: 12px;
    }
    
    .viewer-3d-header {
        padding: 12px 15px;
    }
    
    .viewer-3d-title {
        font-size: 16px;
    }
    
    .viewer-3d-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .viewer-3d-container {
        padding: 10px;
    }
    
    .viewer-3d-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-reset-view {
        width: 100%;
        justify-content: center;
    }
}






/* ========================================
   3 QUALITÉS
   ======================================== */

.product-qualities {
  margin-top: 0px;
  padding: 5px 0;
}
.qualities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
}
.quality-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
  opacity: 0;
}
.quality-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  background: #FAFAFA;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.quality-icon svg { width: 26px; height: 26px; }


/* ========================================
  .quality-item:hover .quality-icon {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
   ======================================== */


.quality-text {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  line-height: 1.3;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .qualities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .quality-icon { width: 44px; height: 44px; }
  .quality-text { font-size: 11px; }
}





.swatch-wrapper {
    position: relative;
}

.swatch-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.swatch-header h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;          /* important : retire le margin par défaut du h3 */
    color: #000;
}

.swatch-header .selected-value {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    text-transform: lowercase;
}


.product-option h3 {
    margin: 0 !important;
    font-size: 14px !important;
}

.selected-value {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-transform: lowercase !important;
}

/* SUPPRIME tous ::before existants */
.selected-value::before {
    content: none !important;
}


/* ===================================
   DELIVERY TYPE SELECTOR
   One-time / Subscription
=================================== */
.delivery-type-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.delivery-option {
    display: flex;
    flex-direction: column;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.delivery-option input[type="radio"] {
    display: none; /* on gère l'état via la classe .active */
}

.delivery-option:hover {
    border-color: #999;
    background: #fafafa;
}

.delivery-option.active {
    border-color: #000;
    background: #fff;
}

.delivery-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.delivery-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-option-price {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

/* Badge "Économisez X%" */
.delivery-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* Fréquence de livraison */
.subscription-frequency {
    display: none;         /* caché par défaut */
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.subscription-frequency.visible {
    display: flex;
}

.frequency-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.frequency-select {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.frequency-select:focus {
    border-color: #000;
    outline: none;
}

/* Responsive */
@media (max-width: 480px) {
    .delivery-option {
        padding: 12px 14px;
    }

    .delivery-option-title {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .delivery-option-price {
        font-size: 14px;
    }
}



.product-pack-selector {
  margin-bottom: 20px;
}
.product-pack-selector h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px; color: #000; font-weight: 600;
}
.pack-options { display: flex; gap: 15px; }
.pack-option {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px; border: 2px solid #ddd; border-radius: 8px;
  cursor: pointer; transition: all 0.3s; flex: 1; text-align: center;
}
.pack-option:hover { border-color: #999; background: #f9f9f9; }
.pack-option.active { border-color: #000; background: #fff; }
.pack-option input { display: none; }
.pack-label { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.pack-price { font-size: 18px; font-weight: 700; color: #000; }
.pack-helper { font-size: 12px; color: #666; font-style: italic; }

/* Mobile */
@media (max-width: 768px) {
  .pack-options { flex-direction: column; gap: 10px; }
}

