/**
 * Product Image Carousel Styles
 */

.product-image-carousel {
    position: relative;
    width: 100%;
}

/* Main Carousel */
.product-carousel-main {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.product-carousel-main__img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio - adjust as needed */
    background: #f5f5f5;
}

.product-carousel-main__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation Arrows */
.product-carousel-main .swiper-button-next,
.product-carousel-main .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.product-carousel-main .swiper-button-next:after,
.product-carousel-main .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.product-carousel-main .swiper-button-next:hover,
.product-carousel-main .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-carousel-main .swiper-button-next.swiper-button-disabled,
.product-carousel-main .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* Pagination Dots */
.product-carousel-main .swiper-pagination {
    bottom: 15px;
}

.product-carousel-main .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.product-carousel-main .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Thumbnail Carousel */
.product-carousel-thumbs {
    width: 100%;
    height: auto;
}

.product-carousel-thumbs .swiper-slide {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.product-carousel-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #000;
}

.product-carousel-thumbs__img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio for thumbnails */
    background: #f5f5f5;
}

.product-carousel-thumbs__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-carousel-main .swiper-button-next,
    .product-carousel-main .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .product-carousel-main .swiper-button-next:after,
    .product-carousel-main .swiper-button-prev:after {
        font-size: 14px;
    }
}
