/**
 * Product Image Carousel Styles
 * Main image display with thumbnail navigation
 */

.product-carousel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.carousel-main {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 3rem;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.carousel-main-image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.carousel-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 2px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.carousel-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-thumbnail:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.carousel-thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.carousel-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive - Carousel */

@media (max-width: 968px) {
    .carousel-main {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-main {
        padding: 1.5rem;
    }

    .carousel-thumbnail {
        width: 60px;
        height: 60px;
    }
}
