/*==================================================================
[ GALERÍA DE PRODUCTO — miniaturas a la izquierda ]
==================================================================*/

.gallery-product {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* ---------- Miniaturas (columna izquierda) ---------- */
.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90px;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 90px;
    height: 90px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-fondo-alt, #f7f7f7);
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.2s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb:hover {
    border-color: var(--color-primario, #717fe0);
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--color-primario, #717fe0);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primario, #717fe0) 30%, transparent);
}

/* ---------- Imagen grande (derecha) ---------- */
.gallery-main {
    position: relative;
    flex: 1;
    background: var(--color-fondo-alt, #f7f7f7);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-expand {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gallery-expand:hover {
    background: var(--color-primario, #717fe0);
    color: #ffffff;
    transform: scale(1.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .gallery-product {
        flex-direction: column-reverse; /* miniaturas debajo en móvil */
        gap: 12px;
    }

    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .gallery-thumb {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .gallery-main {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}

/*==================================================================
[ BOTÓN WHATSAPP REDONDO — relacionados ]
==================================================================*/
.wa-btn-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.35);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    padding: 0;
}

.wa-btn-round i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 20px;
}

.wa-btn-round:hover {
    background: #1da851;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 12px rgba(37, 211, 102, 0.45);
}

