/* ========================================
   PAGE PRODUIT - STYLE HAIRLUST CORRIGÉ
   ======================================== */

/* Reset box-sizing */
.product-container-modern *,
.product-container-modern *::before,
.product-container-modern *::after {
    box-sizing: border-box;
}

/* Container principal */
.product-container-modern {
    width: 100%;
    background: #ffffff;
    margin-top: 15px; /* Espace de 15px entre header et gallery */
}

.product-modern-wrapper {
    display: flex;
    gap: 0;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   COLONNE GAUCHE - Photos
   ======================================== */
.product-left-column {
    flex: 1 1 auto;
    width: calc(100% - 450px);
    min-width: 0;
    margin-right: 450px;
}

/* ========================================
   CARROUSEL PHOTOS
   ======================================== */
.product-gallery-carousel {
    position: relative;
    width: 100%;
    background: #f9f9f9;
    padding: 0 0 40px 40px; /* padding-top et padding-right à 0 */
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 490px; /* Largeur fixe */
    height: 612px; /* Hauteur fixe */
    padding: 0 7.5px; /* Padding latéral de 7.5px */
    display: flex;
    align-items: flex-start; /* Aligner en haut */
    justify-content: center;
    margin: 0;
}

.carousel-slide img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover pour remplir l'espace */
    display: block;
    margin: 0 auto;
    border-radius: 12px; /* Coins arrondis */
}

/* Navigation flèches */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    width: 80px; /* 80x80 comme demandé */
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover:not(:disabled) {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav svg {
    width: 28px; /* Icône plus grande pour bouton 80x80 */
    height: 28px;
    stroke: #333;
}

/* Pagination dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-bottom: 20px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot:hover {
    background: #999;
}

.pagination-dot.active {
    background: #333;
    width: 24px;
    border-radius: 4px;
}

/* ========================================
   SECTIONS DESCRIPTIONS
   ======================================== */
.product-descriptions-section {
    padding: 60px 40px;
    background: #ffffff;
}

.description-block {
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #e5e5e5;
}

.description-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.description-title {
    font-size: 22px;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px 0;
    letter-spacing: -0.3px;
}

.description-text {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.description-text p {
    margin: 0 0 16px 0;
}

.description-text p:last-child {
    margin-bottom: 0;
}

.description-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 25px 0 12px 0;
    color: #000;
}

/* ========================================
   COLONNE DROITE - Fixed sidebar
   ======================================== */
.product-right-column {
    position: fixed;
    right: 0;
    top: 0;
    width: 450px;
    height: 100vh;
    background: #ffffff;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid #e5e5e5;
}

.product-info-sticky {
    padding: 60px 40px 40px;
    min-height: 100vh;
}

/* Titre produit */
.product-title {
    font-size: 28px;
    font-weight: 400;
    color: #000;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px; /* Réduit de 10px à 6px pour plus de compacité */
    margin-bottom: 20px;
}

.stars-rating {
    display: flex;
    gap: 2px;
    flex-shrink: 0; /* Les étoiles gardent leur taille */
}

.star {
    color: #ccc;
    font-size: 16px;
}

.star.filled {
    color: #D4AF37 !important;
}

/* Force la couleur dorée pour toutes les étoiles remplies dans productRightColumn */
#productRightColumn .star.filled,
#productRightColumn .stars-rating .star.filled,
#productRightColumn .woocommerce-product-rating .star,
#productRightColumn .star-rating span,
#productRightColumn .star-rating span:before,
.product-right-column .star.filled,
.product-right-column .stars-rating .star.filled,
.product-right-column .star-rating span,
.product-right-column .star-rating span:before,
.woocommerce-product-rating .star-rating span,
.woocommerce-product-rating .star-rating span:before {
    color: #D4AF37 !important;
}

.rating-text {
    font-size: 12px; /* Réduit de 13px à 12px */
    color: #666;
    white-space: nowrap; /* Empêche le retour à la ligne */
    line-height: 1.2;
}

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

.rating-text a:hover {
    color: #000;
}

/* Description courte */
.product-short-desc {
    margin: 20px 0 25px 0;
}

.short-desc-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    position: relative;
    max-height: 72px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.short-desc-content[data-collapsed="false"] {
    max-height: 400px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0 0;
    display: inline-block;
}

.read-more-btn:hover {
    opacity: 0.6;
}

/* Options d'achat */
.product-purchase-options {
    margin: 30px 0;
}

.purchase-option {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.purchase-option.active {
    border-color: #000;
    background: #fafafa;
}

.purchase-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.purchase-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.option-title {
    font-size: 15px;
    font-weight: 500;
    color: #000;
}

.option-price {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}

.badge {
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    font-weight: 600;
    display: inline-block;
}

.subscription-details {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    display: none;
}

.purchase-option.active .subscription-details {
    display: block;
}

/* Sélecteur de variations */
.product-variations {
    margin: 20px 0;
}

.product-variations label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

/* WooCommerce form overrides */
.woocommerce-product-form {
    margin: 0;
}

.woocommerce-product-form .variations {
    margin: 0;
}

.woocommerce-product-form .variations select,
.woocommerce-product-form select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.woocommerce-product-form .variations select:hover,
.woocommerce-product-form select:hover {
    border-color: #999;
}

/* Masquer la quantité par défaut */
.woocommerce-product-form .quantity {
    display: none !important;
}

/* Masquer le bouton WC par défaut */
.woocommerce-product-form .single_add_to_cart_button {
    display: none !important;
}

/* Bouton principal personnalisé */
.add-to-cart-main {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.add-to-cart-main:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Info livraison */
.shipping-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #333;
}

.shipping-info svg {
    flex-shrink: 0;
    stroke: #333;
}

.info-link {
    margin-left: auto;
    color: #333;
    display: flex;
    align-items: center;
}

.info-link:hover {
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .product-right-column {
        width: 400px;
    }
    
    .product-left-column {
        width: calc(100% - 400px);
        margin-right: 400px;
    }
    
    .carousel-slide {
        flex: 0 0 100%;
    }
}

@media (max-width: 968px) {
    .product-modern-wrapper {
        flex-direction: column;
    }
    
    .product-left-column {
        width: 100%;
        margin-right: 0;
    }
    
    .product-right-column {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #e5e5e5;
    }
    
    .product-info-sticky {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .product-gallery-carousel {
        padding: 0 0 20px 20px; /* padding-top et padding-right à 0 sur mobile aussi */
    }
    
    .carousel-slide {
        width: 100%; /* Pleine largeur sur mobile */
        height: 400px; /* Hauteur réduite */
        padding: 0 10px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .product-descriptions-section {
        padding: 40px 20px;
    }
}

/* ===========================
   SECTION NOTES OLFACTIVES
   =========================== */

.fragrance-notes-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.notes-section-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 15px;
}

.fragrance-notes-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fragrance-note {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fragrance-note:hover {
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
    color: #000;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .fragrance-notes-wrapper {
        justify-content: center;
    }
    
    .fragrance-note {
        font-size: 12px;
        padding: 5px 12px;
    }
}