/* Product Slider */
.slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    user-select: none;
    background: var(--blanc-casse);
    /* Background for the slider area */
    border-radius: 8px;
    /* Optional: smooth corners */
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
    /* Fixed height for consistency */
}

@media (max-width: 768px) {
    .slider-wrapper {
        height: 350px;
        /* Smaller height on mobile */
    }
}

.slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    cursor: zoom-in;
    /* Indicate zoom availability */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Padding to ensure image isn't touching edges */
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Ensure full image is visible */
    display: block;
    border-radius: 4px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--vert-principal);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.lightbox-img.zoomed {
    cursor: zoom-out;
    transform: scale(2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--vert-principal);
}