/* =========================================
   Product Slider (Single Produits)
   ========================================= */

.content-slider-image-produit {
    width: 100%;
}

.product-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.product-slider-main {
    width: 100%;
    position: relative;
    /* Ensure main image respects container */
}

.product-slider-main img {
    width: 100%;
    height: auto;
    display: block;
    /* Preserve original border radius from inline styles if any, 
     but we can enforce a default consistent look */
    border-radius: 20px;
    object-fit: cover;
    /* Max height to prevent gigantic vertical images */
    max-height: 600px;
}

.product-slider-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /* Allow wrapping to multiple lines if many images */
    gap: 15px;
    align-items: flex-start;
    justify-content: center;
}

.product-slider-thumb-btn {
    flex: 0 0 calc(16.666% - 13px);
    /* 6 items per row with gap */
    max-width: 150px;
    min-width: 60px;
    border: none;
    /* Reset button styles */
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-slider-thumb-btn img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px !important;
    aspect-ratio: 4/3;
    /* Force aspect ratio for uniform thumbs */
    object-fit: cover;
}

/* Grayed out active state */
.product-slider-thumb-btn.active {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: default;
}

.product-slider-thumb-btn:not(.active):hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-slider-thumb-btn {
        flex: 0 0 calc(33.333% - 10px);
        /* 3 items on mobile */
    }
}