/* Product Gallery Wrapper */
.websima-product-gallery-wrapper {
    position: relative;
}

.websima-product-gallery {
    position: relative;
    z-index: 0;
}

/* Main Product Image */
.websima-product-main-image {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
}

.websima-product-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Variation Thumbnail */
.websima-variation-thumbnail-wrapper {
    position: relative;
}

.websima-variation-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
}

.websima-variation-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}



/* Main Product Gallery Button */
.websima-variation-gallery-btn,
.websima-product-gallery-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #8a6a45e1 0%, #DDC8AF 100%);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    /* z-index: 1; */
    padding: 0;
}

.websima-product-gallery-btn:hover {
    background: rgba(245, 238, 220, 1);
    color: var(--color1);
    transform: scale(1.05);
}

.websima-product-gallery-btn i,
.websima-variation-gallery-btn i {
    font-size: 24px;
}

.websima-variation-gallery-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Gallery Modal */
.websima-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.websima-gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.websima-gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1060px;
    max-height: 80vh;
    background: #fff;
    border-radius: 0;
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 100px;
}

/* Gallery Close Button */
.websima-gallery-close {
    position: absolute;
    top: -32px;
    left: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #CFBBA4;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color1);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    transform: translateX(-50%);
}

.websima-gallery-close:hover {
    background: rgba(245, 238, 220, 1);
}


/* Gallery Swiper */
.websima-gallery-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.websima-gallery-swiper {
    width: 100%;
    height: auto;
    min-height: 400px;
}

.websima-gallery-swiper .swiper-wrapper {
    align-items: center;
}

.websima-gallery-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    overflow: hidden;
    height: auto;
}

.websima-gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

/* Gallery Navigation */
.websima-gallery-navigation {
    width: calc(100% - 80px) !important;
}

/* Loading Indicator */
.websima-gallery-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 7px;
}

.websima-gallery-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #DDC8AF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .websima-gallery-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .websima-gallery-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
        top: 12px;
        left: 12px;
    }

    .websima-gallery-navigation {
        bottom: 12px;
    }

    .websima-gallery-navigation .swiper-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .websima-gallery-navigation .swiper-nav i {
        font-size: 16px;
    }
          .swiper-navigation {
    margin-top: 3.5rem;
}
}


.swiper-button-next svg, .swiper-button-prev svg{
 display: none;
}
@media screen and (min-width: 768px) {
    .swiper-navigation {
        margin-top: 50px;
    }
}
.websima-swiper-thumb img {
    border-radius: 15px;
}