.btn-retour {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #666;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }
    .btn-retour:hover {
        color: var(--primary);
    }

    .details-container {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 20px;
        display: flex;
        gap: 40px;
    }
    
    @media (max-width: 768px) {
        .details-container {
            flex-direction: column;
        }
    }

    .gallery-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .main-image-wrapper {
        width: 100%;
        height: 500px;
        background: #f8f9fa;
        border-radius: var(--radius);
        overflow: hidden;
        position: relative;
        border: 1px solid #eee;
    }
    
    .main-image-track {
        display: flex;
        height: 100%;
        transition: transform 0.3s ease-in-out;
        will-change: transform;
    }
    
    .main-image-slide {
        min-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .main-image-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        user-select: none;
        -webkit-user-drag: none;
    }

    .main-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition: all 0.2s;
        color: #333;
        font-size: 1.2rem;
    }

    .main-nav-btn:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-50%) scale(1.05);
    }

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

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

    .thumbnails {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
        border: 2px solid transparent;
        border-radius: var(--radius-sm);
        cursor: pointer;
        object-fit: cover;
        transition: all 0.2s;
    }
    
    .thumbnail:hover, .thumbnail.active {
        border-color: var(--primary);
    }

    .thumbnails-slider-container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

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

    .thumbnails {
        display: flex;
        gap: 10px;
        scroll-behavior: smooth;
        overflow-x: auto;
        padding: 5px 0;
        scrollbar-width: none;
    }

    .thumbnails::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        background: white;
        border: 1px solid #ddd;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.2s;
        color: #666;
    }

    .nav-btn:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .info-section {
        flex: 1;
        padding: 20px;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        height: fit-content;
    }

    .article-title-lg {
        font-size: 2rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .shop-link {
        display: inline-flex;
        align-items: center;
        color: #666;
        text-decoration: none;
        margin-bottom: 20px;
        font-weight: 500;
    }
    .shop-link:hover { color: var(--primary); }
    .shop-link img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 10px;
        object-fit: cover;
    }

    /* Sélecteur de variantes */
    .variant-selector {
        margin: 20px 0;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 15px;
        background: #fafafa;
    }

    .variant-title {
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

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

    .variant-option {
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .variant-option input[type="radio"] {
        display: none;
    }

    .variant-option .variant-card {
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        padding: 10px 15px;
        min-width: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: white;
        transition: all 0.2s ease;
    }

    .variant-option input[type="radio"]:checked + .variant-card {
        border-color: var(--primary);
        background: var(--primary-light);
        box-shadow: 0 4px 12px rgba(255, 119, 51, 0.15);
    }

    .variant-option .variant-card:hover {
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    .variant-option .variant-name {
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }

    .variant-option .variant-price {
        color: var(--primary);
        font-weight: 700;
        font-size: 1.1rem;
    }

    .variant-option .variant-stock {
        font-size: 0.8rem;
        color: #666;
        margin-top: 5px;
    }

    .variant-option .out-of-stock {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,0.7);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #f44336;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        backdrop-filter: blur(2px);
    }

    .price-lg {
        font-size: 2rem;
        color: var(--primary);
        font-weight: 800;
        margin-bottom: 10px;
    }

    .price-info {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 20px;
    }

    .description-box {
        margin-bottom: 30px;
        color: #555;
        line-height: 1.6;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .actions-lg {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-lg {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
        border-radius: var(--radius-sm);
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
        transition: transform 0.2s;
    }
    .btn-lg:hover { transform: translateY(-2px); }

    .btn-cart-lg {
        background-color: var(--primary);
        color: white;
    }
    
    .btn-whatsapp-lg {
        background-color: #25D366;
        color: white;
        text-decoration: none;
    }

    .btn-disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .btn-disabled:hover {
        transform: none;
    }

    /* ── Vignette vidéo dans les thumbnails ── */
    .thumbnail-wrap {
        position: relative;
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        cursor: pointer;
    }
    .thumbnail-wrap .thumbnail {
        width: 100%;
        height: 100%;
        border-radius: var(--radius-sm);
        object-fit: cover;
        border: 2px solid transparent;
        transition: all 0.2s;
        display: block;
    }
    .thumbnail-wrap.active .thumbnail,
    .thumbnail-wrap:hover .thumbnail {
        border-color: var(--primary);
    }
    /* Badge ▶ sur les miniatures vidéo */
    .thumb-video-badge {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        border-radius: var(--radius-sm);
        background: rgba(0,0,0,0.28);
        transition: background 0.2s;
    }
    .thumbnail-wrap:hover .thumb-video-badge,
    .thumbnail-wrap.active .thumb-video-badge {
        background: rgba(255,119,51,0.55);
    }
    .thumb-video-badge i {
        color: #fff;
        font-size: 1rem;
        filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
    }

    /* ── Slide vidéo ── */
    .main-image-slide video {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 4px;
        outline: none;
    }

    /* Overlay play sur la slide principale */
    .slide-play-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        pointer-events: none; /* géré par la vidéo native */
    }

    /* Badge "VIDÉO" dans le coin slide */
    .slide-video-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(0,0,0,0.55);
        color: #fff;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 3px 9px;
        border-radius: 20px;
        letter-spacing: 0.5px;
        pointer-events: none;
        z-index: 6;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* Pause automatique sur navigation */
    .main-image-slide video:not(.active-slide video) { }