/* Product Images Slider */
.sa-product-images-wrapper {
    width: 100%;
}

.sa-product-main-slider {
    width: 100%;
    overflow: hidden;
}

.sa-product-main-slider .swiper-wrapper,
.sa-product-thumb-slider {
    width: 100%;
    overflow: hidden;
}

.sa-product-main-slider .swiper-slide {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    width: 100%;
    flex-shrink: 0;
    height: auto;
    /* background-color: #f9f9f9; */
    /* Placeholder background */
}

.sa-product-main-slider .swiper-slide a {
    display: block;
    width: 100%;
}

.sa-product-main-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.sa-product-main-slider .swiper-wrapper,
.sa-product-thumb-slider .swiper-wrapper {
    display: flex;
}

/* Fallback for when Swiper is not initialized */
.sa-product-thumb-slider:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.sa-product-thumb-slider:not(.swiper-initialized) .swiper-slide {
    width: 25%;
    flex: 0 0 25%;
    max-width: 25%;
    margin-right: 0;
    box-sizing: border-box;
}

.sa-product-thumb-slider .swiper-slide {
    opacity: 0.5;
    transition: opacity 0.3s;
    height: auto;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sa-product-thumb-slider .swiper-slide-thumb-active {
    opacity: 1;
}

.sa-product-thumb-slider img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
    object-fit: cover;
}

.sa-thumb-active {
    opacity: 1 !important;
}

.sa-thumb-active img {
    opacity: 1;
}

/* Discount Badge */
.giam-gia {
    /* Optional: Add default styles for discount badge if needed */
}