/* Uniderma Catalog Slider - Full Coverage */
.uniderma-catalog-slider-step1 {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1/1;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    /* Bordes redondeados */
}

.uniderma-images-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.uniderma-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.uniderma-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.uniderma-catalog-image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Uniderma Catalog Slider - Controles de Navegación Full Height */
.uniderma-slider-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px;
    height: 100%;
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 !important;
}

.uniderma-slider-btn:hover {
    color: #283F80;
    /* El ícono se vuelve azul al hacer hover */
    background: transparent;
}

.uniderma-slider-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.uniderma-slider-btn:hover svg {
    transform: scale(1.1);
}

.uniderma-slider-btn.prev {
    left: 0;
}

.uniderma-slider-btn.next {
    right: 0;
}

/* Puntos de Navegación (Dots) con Sombra para contraste */
.uniderma-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uniderma-dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    /* Sombra añadida para fotos muy claras */
}

.uniderma-dot.is-selected {
    background: #4790d0;
    border-color: #4790d0;
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    /* Sombra acentuada en activo */
}

/* Mostrar controles al hacer hover al carrusel */
.uniderma-catalog-slider-step1:hover .uniderma-slider-btn,
.uniderma-catalog-slider-step1:hover .uniderma-slider-dots {
    opacity: 0.9;
}

.uniderma-slider-btn:hover {
    opacity: 1 !important;
}

/* ==========================================================================
   Estilos de Tarjetas (Cards) de producto individuales en carruseles
   (Movidos de single-product-premium.css para que funcionen globalmente)
   ========================================================================== */

.popular-products,
.related.products,
.purchased-in-category,
.related.related-products-wrapper.product-section {
    border-radius: 15px !important;
    padding: 0px 20px !important;
    margin-bottom: 10px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Rediseño de las Tarjetas (Cards) de producto individuales */
.popular-products .product-small.box,
.related.products .product-small.box,
.purchased-in-category .product-small.box,
.related.related-products-wrapper.product-section .product-small.box {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.popular-products .product-small.box:hover,
.related.products .product-small.box:hover,
.purchased-in-category .product-small.box:hover,
.related.related-products-wrapper.product-section .product-small.box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}

/* Asegurar fondo blanco en contenedores internos (imágenes y texto) */
.popular-products .product-small.box .box-image,
.purchased-in-category .product-small.box .box-image,
.related.products .product-small.box .box-image,
.related.related-products-wrapper.product-section .product-small.box .box-image {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.popular-products .product-small.box .box-text,
.purchased-in-category .product-small.box .box-text,
.related.products .product-small.box .box-text,
.related.related-products-wrapper.product-section .product-small.box .box-text {
    background-color: #ffffff !important;
}