/* TMSE Product Gallery - Frontend Styles */

/* Main image container */
.product-gallery .gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-gallery .gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.12s ease;
}

/* Thumbnail strip */
.product-gallery .gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 4px 0;
}

.gallery-thumbnails .thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    position: relative;
}

.gallery-thumbnails .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.gallery-thumbnails .thumb-item:hover {
    border-color: #C88A3E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 138, 62, 0.25);
}

.gallery-thumbnails .thumb-item:hover img {
    transform: scale(1.08);
}

.gallery-thumbnails .thumb-item.active {
    border-color: #C88A3E;
    box-shadow: 0 0 0 2px rgba(200, 138, 62, 0.3);
}

.gallery-thumbnails .thumb-item.active img {
    opacity: 0.85;
}

/* Lightbox overlay */
.tmse-gallery-lightbox img {
    transition: transform 0.3s ease;
}

.tmse-gallery-lightbox:hover img {
    transform: scale(1.02);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .gallery-thumbnails .thumb-item {
        width: 56px;
        height: 56px;
    }

    .gallery-thumbnails {
        gap: 6px;
    }
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .product-gallery .gallery-main {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .gallery-thumbnails .thumb-item {
        border-color: #333;
    }

    .gallery-thumbnails .thumb-item:hover {
        border-color: #C88A3E;
    }
}
