.whatsapp-direct-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-direct-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}
.whatsapp-direct-svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

/* --- 1. ETIQUETA ROJA DE DESCUENTO --- */
.badge-discount-red {
    background-color: #d90429 !important; /* Rojo corporativo */
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* --- 2. ESTRUCTURA PRINCIPAL DE LA GALERÍA (Sin Flexbox para proteger la lupa xZoom) --- */
.smartperu-gallery-layout {
    position: relative !important;
    padding-left: 100px !important; /* Deja un hueco a la izquierda para las miniaturas */
    display: block !important;
}

/* --- IMAGEN PRINCIPAL (Derecha) --- */
.smartperu-gallery-layout .xzoom-main-image > img,
.smartperu-gallery-layout > img {
    width: 100% !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    display: block !important;
}

/* --- COLUMNA IZQUIERDA: MINIATURAS --- */
.smartperu-gallery-layout .xzoom-thumbs {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 85px !important;
}

/* Forzar al carrusel original a mostrarse verticalmente hacia abajo */
.smartperu-gallery-layout .owl-stage-outer {
    overflow: visible !important;
}
.smartperu-gallery-layout .owl-stage {
    display: block !important;
    transform: none !important; /* Anula el deslizamiento horizontal automático */
    width: 100% !important;
}
.smartperu-gallery-layout .owl-item {
    width: 100% !important;
    margin-bottom: 12px !important; 
    float: none !important;
    display: block !important;
}
.smartperu-gallery-layout .xzoom-thumbs img {
    width: 100% !important;
    height: auto !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    cursor: pointer;
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 767px) {
    .smartperu-gallery-layout {
        padding-left: 0 !important; /* Quitamos el hueco en celulares */
    }
    .smartperu-gallery-layout .xzoom-thumbs {
        position: relative !important;
        width: 100% !important;
        margin-top: 15px !important;
    }
    .smartperu-gallery-layout .owl-stage {
        display: flex !important;
        flex-direction: row !important; /* Vuelve a ser horizontal en celular */
    }
    .smartperu-gallery-layout .owl-item {
        width: 70px !important;
        margin-bottom: 0 !important;
        margin-right: 10px !important;
        display: inline-block !important;
    }
}