/* Main container - flex layout for thumbs + main gallery */
.single-product-gallery-container.swiper-gallery-with-thumbs {
    display: flex;
    gap: 1rem;
    position: relative;
}

.product-gallery-thumbs {
    flex-wrap: nowrap;
    /* Adjust if your images are taller/shorter */
    border-radius: 1rem;
    overflow: hidden;
    flex-basis: 100px;
    height: 680px;

}

.product-gallery-thumbs .swiper-slide {
    width: 100px;
    height: 100px !important;
    position: relative;
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
}

.product-gallery-thumbs .swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.product-gallery-thumbs .swiper-slide:hover>img {
    opacity: 0.9;
    transform: scale(1.05);
}

.product-gallery-thumbs .swiper-slide-thumb-active img {
    opacity: 1 !important;
}

.product-gallery-main {
    flex-basis: calc(100% - 100px - 1rem);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.product-gallery-main .swiper-slide {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    padding-top: 133.33%;
    background: #f8f8f8;
}

.product-gallery-main .swiper-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-main .swiper-button-next,
.product-gallery-main .swiper-button-prev {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -25px;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.product-gallery-main .swiper-button-next {
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.3) url('../img/right.svg') no-repeat calc(50% + 2px) center;
    background-size: 30px;
}

.product-gallery-main .swiper-button-prev {
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.3) url('../img/left.svg') no-repeat calc(50% - 2px) center;
    background-size: 30px;
}

.product-gallery-main .swiper-button-next:hover,
.product-gallery-main .swiper-button-prev:hover {
    transform: scale(1.1);
}

.product-gallery-main .swiper-button-next:after,
.product-gallery-main .swiper-button-prev:after {
    content: '';
}

.product-gallery-main .swiper-pagination {
    bottom: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.gallery-zoom-btn {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: url('../img/zoom.svg') no-repeat center center;
    background-size: 28px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.gallery-zoom-btn:hover {
    transform: scale(1.15);
}

.product-gallery-main:hover .swiper-button-next,
.product-gallery-main:hover .swiper-button-prev,
.product-gallery-main:hover .gallery-zoom-btn {
    visibility: visible;
    opacity: 1;
    cursor: pointer;
    pointer-events: all;
}

.gslide-description {
    display: none !important;
}

@media screen and (max-width: 991px) {
    .product-gallery-main {
        flex-basis: auto;
    }

    .single-product-gallery-container {
        margin-bottom: 1.5rem;
    }

    .single-product-gallery-container.swiper-gallery-with-thumbs {
        display: block;
    }

    .product-gallery-thumbs,
    .gallery-zoom-btn {
        display: none;
    }
}