/* QC Badge - Style rouge-orange du site (plus petit) */
.qc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(184, 70, 31, 0.4);
    z-index: 2;
    letter-spacing: 0.3px;
}

.qc-badge i {
    font-size: 10px;
}

/* QC Thumbnails - Beaucoup plus petites, en bas à droite */
.qc-thumbnails {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.qc-thumb {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.qc-thumb:hover {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.qc-thumb.qc-more {
    background: linear-gradient(135deg, #B8461F 0%, #8B2F0F 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* QC Lightbox */
.qc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.qc-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.qc-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.qc-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qc-lightbox-close:hover {
    color: #667eea;
    transform: rotate(90deg);
}

.qc-lightbox-prev,
.qc-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.qc-lightbox-prev:hover,
.qc-lightbox-next:hover {
    background: #667eea;
    border-color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.qc-lightbox-prev {
    left: -70px;
}

.qc-lightbox-next {
    right: -70px;
}

.qc-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .qc-badge {
        padding: 3px 8px;
        font-size: 9px;
        top: 6px;
        left: 6px;
        gap: 3px;
    }
    
    .qc-badge i {
        font-size: 9px;
    }
    
    .qc-thumbnails {
        gap: 3px;
        bottom: 6px;
        right: 6px;
    }
    
    .qc-thumb {
        width: 30px;
        height: 30px;
        border-width: 1.5px;
        border-radius: 4px;
    }
    
    .qc-thumb.qc-more {
        font-size: 9px;
    }
    
    .qc-lightbox-prev {
        left: 10px;
    }
    
    .qc-lightbox-next {
        right: 10px;
    }
    
    .qc-lightbox-prev,
    .qc-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* QC Thumbnails dans la modale */
.qc-thumbnails-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    width: 100%;
}

.qc-thumbnail-modal {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qc-thumbnail-modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
    display: block;
}

.qc-thumbnail-modal:hover {
    border-color: #B8461F !important;
    transform: scale(1.05);
}

.qc-thumbnail-modal.active {
    border-color: #B8461F !important;
    box-shadow: 0 0 0 2px rgba(255, 245, 242, 0.95);
}

/* Mobile */
@media (max-width: 768px) {
    .qc-badge {
        padding: 3px 8px;
        font-size: 9px;
        top: 6px;
        left: 6px;
    }
    
    .qc-thumbnails {
        bottom: 6px;
        right: 6px;
        gap: 3px;
    }
    
    .qc-thumb {
        width: 30px;
        height: 30px;
    }
    
    .qc-thumbnail-modal {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* S'assurer que la section QC est visible sur mobile */
    .product-modal-left > div[style*="border-top"] {
        display: block !important;
        width: 100% !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #e5e7eb !important;
        overflow: visible !important;
    }
    
    /* Container des miniatures QC */
    .product-modal-left > div > div[style*="display: flex"] {
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }
}

@media (max-width: 480px) {
    .qc-thumbnail-modal {
        width: 45px !important;
        height: 45px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
