/**
 * Modern Product Carousel Styles
 * Provides styling for product image carousels on modern product pages
 */

.product-image-carousel-modern {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-images-modern {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.carousel-images-modern img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-images-modern img.active {
    opacity: 1;
}

.carousel-controls-modern {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn-modern {
    background: rgba(0, 102, 204, 0.85);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.carousel-btn-modern:hover {
    background: rgba(0, 102, 204, 1);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.carousel-btn-modern:active {
    transform: scale(0.95);
}

.carousel-dots-modern {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot-modern {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.dot-modern:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot-modern.active {
    background: white;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-btn-modern {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .carousel-controls-modern {
        padding: 0 15px;
    }

    .carousel-dots-modern {
        bottom: 15px;
        gap: 8px;
    }

    .dot-modern {
        width: 10px;
        height: 10px;
    }

    .dot-modern.active {
        width: 28px;
    }
}

@media (max-width: 480px) {
    .carousel-btn-modern {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-controls-modern {
        padding: 0 10px;
    }

    .carousel-dots-modern {
        bottom: 12px;
        gap: 6px;
    }

    .dot-modern {
        width: 8px;
        height: 8px;
    }

    .dot-modern.active {
        width: 24px;
    }
}
