/* Product Carousel Styles */
.product-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    padding: 20px;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

/* Hover effect on carousel images */
.product-card:hover .carousel-slide.active {
    transform: scale(1.05);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.product-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background-color: #FFD166;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-btn i {
    font-size: 0.9rem;
    color: #333;
}

/* Carousel Indicators (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    margin: 0 auto;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #FFD166;
    width: 24px;
    border-radius: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        opacity: 1; /* Always visible on mobile */
    }
    
    .carousel-btn i {
        font-size: 0.8rem;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .carousel-dot {
        width: 7px;
        height: 7px;
    }
    
    .carousel-dot.active {
        width: 20px;
    }
}
