﻿.slider-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
}

.main-slider {
    display: flex;
    gap: 10px;
    animation: scrollSlider 30s linear infinite;
    width: max-content;
}

@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.slide-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin: 0 5px;
}

.product-slide-img {
    height: 230px;
    width: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

    .product-slide-img:hover {
        transform: scale(1.05);
    }

.img-title {
    font-size: 25px;
    color: #0c338e;
    margin-top: 5px;
    text-align: center;
    font-weight: 700;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    padding: 10px;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 6px;
}

.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255);
    color: #000000;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 1;
}

.btn-prev {
    left: 10px;
}

.btn-next {
    right: 10px;
}

.btn-close {
    top: 10px;
    right: 10px;
    transform: none;
    font-size: 1.5rem;
}

.popup-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

    .popup-thumbs img {
        height: 50px;
        opacity: 0.5;
        cursor: pointer;
        transition: 0.3s;
        border-radius: 4px;
    }

        .popup-thumbs img.active,
        .popup-thumbs img:hover {
            opacity: 1;
            border: 2px solid white;
        }

@media (max-width: 600px) {
    .product-slide-img {
        height: 140px;
    }

    .btn {
        font-size: 1.2rem;
        padding: 5px;
    }

    .popup-thumbs img {
        height: 40px;
    }
}
