/* Carousel Styles */
.product-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-image .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    object-fit: cover;
    z-index: 1;
}

.carousel-slide:first-child {
    opacity: 1;
    z-index: 2;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    /* Hidden initially */
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.product-card:hover .carousel-prev,
.product-card:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}