/* ========================================
   PRODUCT PAGE - STYLES
======================================== */

/* --- LAYOUT PRINCIPAL (La Grille) --- */
.product-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1200px;
    margin: 150px auto 50px;
    padding: 0 20px;
    gap: 60px;
}

/* COLONNE GAUCHE (50%) */
.gallery-section { 
    flex: 1; 
    width: 50%;
}

/* COLONNE DROITE (50%) */
.info-section { 
    flex: 1; 
    width: 50%;
    padding-top: 10px;
}

/* --- STYLE DES IMAGES --- */
.main-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
    border-radius: 3px;
}

.thumb:hover,
.thumb.active {
    box-shadow: 0 0 0 2px #000000;
    opacity: 1;
}

/* --- STYLE DU TEXTE --- */
.breadcrumb { 
    color: #888; 
    font-size: 0.75rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

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

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

.info-section h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.5rem; 
    margin: 10px 0 20px 0; 
    line-height: 1.2;
}

.price { 
    font-size: 1.5rem; 
    font-weight: 500; 
    color: #000000; 
    margin-bottom: 15px; 
}

/* --- STOCK BADGE --- */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.stock-badge i {
    font-size: 18px;
}

.stock-badge.stock-unique {
    background: linear-gradient(135deg, rgba(211, 175, 192, 0.15), rgba(196, 154, 173, 0.2));
    color: #9c6b8a;
    border: 1px solid rgba(211, 175, 192, 0.3);
}

.stock-badge.stock-unique i {
    color: #D3AFC0;
}

.stock-badge.stock-low {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.15));
    color: #d35400;
    border: 1px solid rgba(230, 126, 34, 0.25);
}

.stock-badge.stock-low i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stock-badge.stock-available {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.15));
    color: #1e8449;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.description-intro { 
    line-height: 1.6; 
    color: #555; 
    margin-bottom: 30px; 
}

.tag-unique {
    display: inline-block;
    background-color: #D3AFC0;
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- BOUTON D'ACTION --- */
.add-cart-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-bottom: 30px;
    border-radius: 50px;
}

.add-cart-btn:hover { 
    background: #333; 
}

/* --- BADGES DE CONFIANCE --- */
.trust-badges {
    display: flex;
    justify-content: space-around;
    background: #fafafa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.badge-item { 
    text-align: center; 
}

.badge-icon { 
    display: block; 
    font-size: 1.5rem; 
    margin-bottom: 5px; 
}

.badge-text { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    font-weight: 600; 
    color: #555; 
}

/* --- ACCORDÉONS --- */
details { 
    border-top: 1px solid #eee; 
}

details:last-of-type { 
    border-bottom: 1px solid #eee; 
}

summary {
    padding: 15px 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

summary::-webkit-details-marker { 
    display: none; 
}

summary::after { 
    content: '+'; 
    font-size: 1.2rem; 
    font-weight: 300; 
}

details[open] summary::after { 
    content: '-'; 
}

details p {
    padding-bottom: 15px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* MOBILE UNIQUEMENT */
@media (max-width: 768px) {
    .product-container { 
        flex-direction: column; 
        gap: 30px; 
        margin-top: 120px;
    }
    
    .gallery-section, 
    .info-section { 
        width: 100%; 
    }
    
    .info-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .product-container {
        margin-top: 90px;
        padding: 0 15px;
        gap: 20px;
    }

    .info-section h1 {
        font-size: 1.6rem;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }

    .add-to-cart-btn {
        width: 100%;
        padding: 16px;
        font-size: 0.9rem;
    }
}

/* =============================================
   BOUTONS DE PARTAGE
============================================= */
.share-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 25px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.share-label i { font-size: 1rem; color: #D3AFC0; }

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    color: white;
}

.share-fb  { background: #1877F2; }
.share-ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-pin { background: #E60023; }
.share-copy { background: #555; color: white; }

.share-btn:hover { transform: translateY(-3px) scale(1.1); opacity: 0.9; }

/* =============================================
   SECTIONS EXTRAS (Similaires + Récents)
============================================= */
#product-extras {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.extras-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.extras-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.extras-title i {
    color: #D3AFC0;
    font-size: 1.6rem;
}

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.reco-card {
    display: block;
    text-decoration: none;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.reco-card:hover {
    transform: translateY(-4px);
}

.reco-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.reco-info {
    padding: 14px 16px;
}

.reco-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.reco-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #D3AFC0;
}

@media (max-width: 600px) {
    .reco-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .extras-title { font-size: 1.4rem; }
    .share-section { gap: 10px; }
}

