/* Product Gallery Styles */

.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}

.thumbnails-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumbnail {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.thumbnail:hover {
    border-color: #274433;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #274433;
    box-shadow: 0 0 0 1px #274433;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Zoom indicator */
.main-image-wrapper::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.main-image-wrapper:hover::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .thumbnails-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .thumbnails-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}