/* ========================================
   DETAIL.CSS - Page Détails Produit
   ======================================== */

/* Product Detail Section */
.product-detail-container {
    max-width: 1512px;
    margin: 0 auto;
    padding: 75px 75px 0;
    display: flex;
    gap: 50px;
}

/* ========================================
   IMAGE GALLERY
   ======================================== */

.image-gallery {
    width: 566px;
    flex-shrink: 0;
    position: relative;
}

.slider-container {
    width: 100%;
    height: 698px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.slider-container.special-supplier {
    background: #FFFFFF;
}

.slider-track {
    position: relative;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.slider-container.special-supplier .slider-slide img {
    object-fit: contain;
    padding: 20px;
}

/* BADGE SUR L'IMAGE PRINCIPALE */
.slider-container .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 20;
    border-radius: 0;
    color: #FFFFFF;
}

.slider-container .product-badge.badge-promotion {
    background-color: #7DCB8F;
}

.slider-container .product-badge.badge-destockage {
    background-color: #FF6B6B;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-nav i {
    font-size: 16px;
    color: var(--text-dark);
}

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

/* Hide arrows if single slide */
.slider-container.single-slide .slider-nav {
    display: none;
}

/* Slider Dots - MASQUÉS */
.slider-dots {
    display: none;
}

.slider-dot {
    display: none;
}

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

.product-info {
    flex: 1;
    max-width: 646px;
}

.product-supplier {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 25px;
}

/* BADGE AU-DESSUS DU TITRE */
.product-badge-detail {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 0;
    color: #FFFFFF;
    display: inline-block;
    margin-bottom: 15px;
}

.product-badge-detail.badge-promotion {
    background-color: #7DCB8F;
}

.product-badge-detail.badge-destockage {
    background-color: #FF6B6B;
}

.product-title {
    font-size: 96px;
    line-height: 1;
    margin-bottom: 42px;
    font-weight: 400;
}

.product-price {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 50px;
}

/* PRIX PROMOTION DETAIL PAGE */
.price-container-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.price-promo-detail {
    background-color: var(--accent-yellow);
    padding: 6px 14px;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-block;
    width: fit-content;
}

/* Color Selection */
.color-section {
    margin-bottom: 50px;
}

.color-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 10px;
}

.color-label {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-label strong {
    font-size: 16px;
    font-weight: 700;
}

.color-name {
    font-size: 16px;
    font-weight: 400;
}

.stock-info {
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 800;
}

.color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #e0dcd5;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--accent-yellow);
}

.color-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 25px 0;
}

/* Specs Section */
.specs-section {
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 10px;
}

.spec-label {
    font-size: 16px;
    font-weight: 700;
}

.spec-value {
    font-size: 16px;
    font-weight: 400;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.quantity-control {
    background: white;
    border: 1px solid rgba(25, 25, 25, 0.3);
    padding: 0;
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    overflow: hidden;
}

.quantity-btn {
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dark);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: var(--bg-gray);
}

.quantity-btn:active {
    background: rgba(25, 25, 25, 0.15);
}

.quantity-value {
    font-size: 18px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    border: none;
    background: transparent;
    pointer-events: none;
    border-left: 1px solid rgba(25, 25, 25, 0.3);
    border-right: 1px solid rgba(25, 25, 25, 0.3);
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 20px;
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

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

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Description */
.product-description {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    padding: 100px;
    max-width: 1512px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.feature-card {
    background: var(--bg-gray);
    padding: 25px;
    width: 216px;
    height: 165px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.feature-icon {
    width: 42px;
    height: 42px;
}

.feature-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

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

.related-products-section {
    padding: 0 100px 100px;
    max-width: 1512px;
    margin: 0 auto;
}

.related-products-title {
    font-size: 56px;
    margin-bottom: 35px;
    font-weight: 400;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.related-product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    position: relative;
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-image {
    width: 100%;
    height: 364px;
    background: transparent;
    overflow: hidden;
    position: relative;
}

/* BADGES PROMOTION / DESTOCKAGE sur images related products */
.related-product-image .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    z-index: 10;
    border-radius: 0;
    color: #FFFFFF;
}

.related-product-image .product-badge.badge-promotion {
    background-color: #7DCB8F;
}

.related-product-image .product-badge.badge-destockage {
    background-color: #FF6B6B;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.related-product-details h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.related-product-details p {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* PRIX RELATED PRODUCTS */
.related-product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.related-product-price {
    font-size: 16px;
    font-weight: 600;
}

.related-price-old {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
}

.related-price-promo {
    background-color: var(--accent-yellow);
    padding: 4px 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    width: fit-content;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .product-detail-container {
        flex-direction: column;
        padding: 40px;
    }

    .image-gallery {
        width: 100%;
    }

    .slider-container {
        height: 500px;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
    }

    .slider-nav i {
        font-size: 14px;
    }

    .product-info {
        max-width: 100%;
    }

    .product-title {
        font-size: 64px;
    }

    .features-section {
        padding: 40px;
        flex-wrap: wrap;
    }

    .feature-card {
        width: calc(50% - 25px);
    }

    .related-products-section {
        padding: 40px;
    }

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

/* ========================================
   MOBILE ≤ 768px — mise en page type e-commerce (Zara / H&M)
   Image plein cadre, typo compacte, bouton d'achat collant
   ======================================== */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    /* Image bord à bord */
    .image-gallery {
        width: 100%;
    }

    .slider-container {
        height: auto;
        aspect-ratio: 1 / 1;
        background: #f4f2ef;
    }

    .slider-slide img {
        object-fit: contain;
    }

    .slider-container.special-supplier .slider-slide img {
        object-fit: contain;
        padding: 20px;
    }

    .slider-nav {
        width: 34px;
        height: 34px;
    }
    .slider-nav.prev { left: 10px; }
    .slider-nav.next { right: 10px; }
    .slider-nav i { font-size: 13px; }

    /* Infos produit : padding interne, rythme resserré */
    .product-info {
        max-width: 100%;
        padding: 22px 18px 24px;
    }

    .product-supplier {
        font-size: 12px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        margin-bottom: 6px;
    }

    .product-title {
        font-size: 26px;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .product-price {
        font-size: 19px;
        margin-bottom: 22px;
    }

    .price-old-detail { font-size: 15px; }
    .price-promo-detail { font-size: 19px; }

    .color-section {
        margin-bottom: 24px;
    }

    .color-header {
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }
    .color-label strong,
    .color-name,
    .stock-info { font-size: 13px; }

    .color-option {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }

    .divider { margin: 18px 0; }

    /* Accordéons */
    .specs-accordion-toggle {
        font-size: 12px;
        letter-spacing: 0.5px;
        padding: 14px 0;
    }
    .specs-accordion-content {
        font-size: 13.5px;
        line-height: 1.6;
    }

    .spec-label,
    .spec-value { font-size: 13.5px; }

    /* Quantité */
    .quantity-section { margin-bottom: 16px; }

    .quantity-label {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .quantity-control { width: 100%; }
    .quantity-btn {
        flex: 1;
        height: 46px;
        font-size: 16px;
    }
    .quantity-value {
        flex: 2;
        font-size: 15px;
        min-width: 0;
    }

    /* Bouton d'achat collant en bas de l'écran */
    .add-to-cart-btn {
        position: sticky;
        bottom: 10px;
        z-index: 60;
        padding: 16px;
        font-size: 15px;
        margin-bottom: 8px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    }

    /* Réassurance : lignes compactes, sans grosses cartes */
    .features-section {
        padding: 4px 18px 28px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .feature-card {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 13px 2px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
        background: transparent;
        border-bottom: 1px solid var(--border-color, #E9E5E0);
    }

    .feature-card:last-child { border-bottom: none; }

    .feature-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    .feature-text {
        font-size: 12.5px;
        line-height: 1.4;
    }

    /* Produits associés */
    .related-products-section {
        padding: 8px 18px 40px;
    }

    .related-products-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 12px;
    }

    .related-product-image {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .related-product-details h3 { font-size: 13px; }
    .related-product-details p,
    .related-product-category { font-size: 10.5px; }
    .related-product-price { font-size: 13px; }
}

/* ── Très petits mobiles (≤ 380px) ─────────────────────────────────────── */
@media (max-width: 380px) {
    .product-title { font-size: 23px; }

    img {
        max-width: 100%;
        height: auto;
    }
}
/* Style pour la catégorie dans les produits complémentaires */
.related-product-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(25, 25, 25, 0.5);
    margin-bottom: 4px;
}

.related-product-details h3 {
    margin-top: 2px;
}