/* components/gallery.css */

/* --- Galería Sincronizada --- */
.main-image-viewer {
    width: 100%;
    max-height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.main-image-viewer img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
    transition: opacity 0.4s ease;
}

.synced-carousel-container {
    position: relative;
    padding: 0 40px;
    margin-top: 30px;
}

.thumbnail-carousel {
    overflow: hidden;
}

.thumbnail-wrapper {
    display: flex;
    gap: 15px;
    transition: transform 0.5s ease;
}

.thumbnail-item {
    flex-shrink: 0;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.thumbnail-item.active {
    border-color: var(--color-grey-dark);
}

.thumbnail-item img {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.synced-carousel-container .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ccc;
    color: #333;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.synced-carousel-container .arrow:hover {
    background: var(--color-primary);
    color: white;
}

.synced-carousel-container .arrow.prev {
    left: 0;
}

.synced-carousel-container .arrow.next {
    right: 0;
}

.pop-product-info {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    max-width: 420px;
}

.pop-product-info h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 600;
    color: #111;
}

.pop-product-info p {
    margin: 0;
    font-size: .95rem;
    color: #666;
    line-height: 1.4;
}

.image-content .pop-product-info {
    margin: 18px auto 0;
    text-align: center;
}