/* ============================================== */
/* STYLES INSPIRÉS DE MAISON FAUVE               */
/* ============================================== */

.product-page-fauve {
    background: #f9f9f7;
    min-height: 100vh;
}

/* Fil d'Ariane */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

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

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

.breadcrumb .separator {
    color: #999;
    margin: 0 8px;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Grille produit */
.product-detail-grid-fauve {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Galerie d'images */
.product-gallery-column {
    position: sticky;
    top: 30px;
    align-self: start;
}

.main-image-container {
    position: relative;
    margin-bottom: 20px;
}

.main-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    background: #fff;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.zoom-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.zoom-btn:hover {
    background: #fff;
    border-color: #d4a574;
    color: #d4a574;
    transform: scale(1.1);
}

/* Badges */
.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #4CAF50;
    color: white;
}

.badge-featured {
    background: #FF9800;
    color: white;
}

.badge-low-stock {
    background: #F44336;
    color: white;
}

/* Galerie miniatures */
.image-gallery-fauve {
    margin-top: 20px;
}

.gallery-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-prev, .gallery-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.gallery-prev:hover, .gallery-next:hover {
    border-color: #d4a574;
    color: #d4a574;
}

.gallery-thumbnails-wrapper {
    flex: 1;
    overflow: hidden;
}

.gallery-thumbnails-fauve {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.thumbnail-item-fauve {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-item-fauve.active {
    border-color: #d4a574;
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.3);
}

.thumbnail-item-fauve:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thumbnail-item-fauve img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-counter {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* Partage social */
.social-share {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-share span {
    color: #666;
    font-size: 0.9rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon.facebook { background: #3b5998; }
.social-icon.pinterest { background: #BD081C; }
.social-icon.twitter { background: #1DA1F2; }
.social-icon.email { background: #666; }

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

/* Colonne info produit */
.product-info-column {
    padding: 20px 0;
}

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

.product-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.product-meta-header {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
}

.product-category {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
}

.product-category:hover {
    text-decoration: underline;
}

/* Prix et disponibilité */
.price-availability {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.product-price-fauve {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

.compare-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #FF5252;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-status {
    font-size: 0.95rem;
    font-weight: 500;
}

.in-stock {
    color: #4CAF50;
}

.out-of-stock {
    color: #F44336;
}

.stock-status i {
    margin-right: 8px;
}

/* Options produit */
.product-options {
    margin-bottom: 30px;
}

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

.option-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-value {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-value:hover {
    border-color: #b3b3b3;
}

.option-value.selected {
    border-color: #d4a574;
    background: rgba(212, 165, 116, 0.1);
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

/* Formulaire panier */
.quantity-and-add {
    margin-bottom: 25px;
}

.quantity-selector-fauve {
    margin-bottom: 20px;
}

.quantity-selector-fauve label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.quantity-controls-fauve {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn-fauve {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.quantity-btn-fauve:hover {
    background: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

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

.add-to-cart-actions {
    display: flex;
    gap: 15px;
}

.btn-add-to-cart-fauve {
    flex: 1;
    height: 55px;
    background: #d4a574;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-add-to-cart-fauve:hover:not(.disabled) {
    background: #c29564;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.btn-add-to-cart-fauve.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-wishlist-fauve {
    width: 55px;
    height: 55px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #666;
}

.btn-wishlist-fauve:hover {
    border-color: #d4a574;
    color: #d4a574;
}

/* Paiement sécurisé */
.secure-payment {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

.secure-payment i.fa-lock {
    color: #4CAF50;
    font-size: 1.2rem;
}

.payment-icons {
    margin-left: auto;
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
}

.payment-icons i {
    color: #666;
}

/* Livraison et retours */
.shipping-returns {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #d4a574;
    font-size: 1.2rem;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.info-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Description détaillée */
.product-description-fauve {
    margin: 40px 0;
}

.description-toggle {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.toggle-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    position: relative;
    transition: color 0.3s;
}

.toggle-btn.active {
    color: #333;
}

.toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4a574;
}

.toggle-btn:hover {
    color: #333;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.details-list {
    list-style: none;
    padding: 0;
}

.details-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.details-list strong {
    display: inline-block;
    width: 120px;
    color: #333;
}

/* Produits associés */
.related-products-placeholder {
    margin: 50px 0;
    text-align: center;
}

.related-products-placeholder h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
}

.related-products-loader {
    color: #666;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Avis clients */
.customer-reviews {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.reviews-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.stars .filled {
    color: #FFD700;
}

.rating-count {
    color: #666;
}

.btn-write-review {
    padding: 12px 24px;
    background: white;
    border: 2px solid #d4a574;
    color: #d4a574;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-write-review:hover {
    background: #d4a574;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid-fauve {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery-column {
        position: static;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .add-to-cart-actions {
        flex-direction: column;
    }
    
    .btn-wishlist-fauve {
        width: 100%;
    }
    
    .description-toggle {
        flex-direction: column;
    }
    
    .toggle-btn {
        text-align: left;
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Animation pour le zoom */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    cursor: zoom-out;
}

.zoom-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.zoom-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
/* ============================================
   STYLES POUR LA DESCRIPTION AVEC ASCENSEUR
   ============================================ */
.product-description-fauve {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin: 20px 0;
    border: 1px solid #eee;
    overflow: hidden;
}

.description-toggle {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 12px 12px 0 0;
}

.toggle-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.toggle-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.toggle-btn.active {
    color: #D4AF37;
    font-weight: 600;
}

.toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #D4AF37;
}

.description-content {
    position: relative;
    max-height: 400px; /* Hauteur maximale fixe */
    overflow-y: auto; /* Ascenseur vertical */
    padding: 0;
}

/* Style de la barre de défilement */
.description-content::-webkit-scrollbar {
    width: 8px;
}

.description-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.description-content::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

.description-content::-webkit-scrollbar-thumb:hover {
    background: #c19a53;
}

.content-section {
    padding: 20px;
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Styles pour le contenu de description */
#description.active {
    display: block;
    white-space: pre-line; /* Conserve les sauts de ligne */
    line-height: 1.6;
    font-size: 0.95rem;
    color: #333;
}

#description.active h1, 
#description.active h2, 
#description.active h3, 
#description.active h4 {
    margin: 1.5em 0 0.5em 0;
    color: #222;
    font-weight: 600;
}

#description.active h1 { font-size: 1.5rem; }
#description.active h2 { font-size: 1.3rem; }
#description.active h3 { font-size: 1.2rem; }
#description.active h4 { font-size: 1.1rem; }

#description.active p {
    margin: 1em 0;
}

#description.active ul, 
#description.active ol {
    margin: 1em 0;
    padding-left: 2em;
}

#description.active li {
    margin: 0.5em 0;
}

#description.active strong {
    font-weight: 600;
    color: #222;
}

#description.active em {
    font-style: italic;
}

#description.active a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.3s ease;
}

#description.active a:hover {
    color: #c19a53;
    text-decoration: underline;
}

#description.active img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#description.active blockquote {
    border-left: 3px solid #D4AF37;
    padding-left: 1em;
    margin: 1em 0;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 0 8px 8px 0;
}

#description.active code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

#description.active pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
    border-left: 3px solid #D4AF37;
}

/* Styles pour les détails */
#details.active ul.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#details.active ul.details-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#details.active ul.details-list li:last-child {
    border-bottom: none;
}

#details.active ul.details-list li strong {
    min-width: 120px;
    color: #333;
}

/* Styles pour la livraison */
#shipping.active h4 {
    margin-top: 0;
    color: #333;
    font-size: 1.1rem;
}

#shipping.active ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

#shipping.active ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#shipping.active ul li strong {
    color: #333;
}

#shipping.active .shipping-note {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    font-style: italic;
    color: #666;
    border-left: 3px solid #D4AF37;
}

/* Indicateur visuel qu'il y a plus de contenu à scroller */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: #D4AF37;
    font-size: 0.8rem;
    opacity: 0.8;
    pointer-events: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Version responsive */
@media (max-width: 768px) {
    .product-description-fauve {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .toggle-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .description-content {
        max-height: 300px;
    }
    
    #description.active {
        font-size: 0.9rem;
    }
    
    #description.active h1 { font-size: 1.3rem; }
    #description.active h2 { font-size: 1.2rem; }
    #description.active h3 { font-size: 1.1rem; }
    #description.active h4 { font-size: 1rem; }
    
    .content-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .description-toggle {
        flex-direction: column;
    }
    
    .toggle-btn {
        border-bottom: 1px solid #eee;
    }
    
    .toggle-btn:last-child {
        border-bottom: none;
    }
    
    .toggle-btn.active::after {
        height: 100%;
        width: 4px;
        left: 0;
        bottom: 0;
    }
    
    .description-content {
        max-height: 250px;
    }
}