/* ==========================================================================
   CONFIGURACIÓN BASE (MOBILE-FIRST)
   ========================================================================== */
.rst-newarrivals-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.rst-newarrivals-section-container{
    padding: var(--side-padding);
}

/* --- Cabecera y Controles --- */
.rst-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 10px;
}

.rst-section-title {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    color: var(--main-color);
}

/* --- CAPA 1: La Ventana con Máscara (Viewport) --- */
.rst-slider-wrapper {
    position: relative;
}
.rst-snap-viewport {
    position: relative;
    width: 100%;
    /* Efecto de desvanecimiento en los bordes */
    -webkit-mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 8%, 
        black 92%, 
        transparent 100%
    );
    mask-image: linear-gradient(to right, 
        transparent 0%, 
        black 8%, 
        black 92%, 
        transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* --- CAPA 2: El Carrusel (Slider) --- */
.rst-snap-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; 
    overscroll-behavior-x: contain;
    gap: 20px;
    padding: 10px 35px 30px 35px; 
    scroll-padding: 0 35px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rst-snap-slider::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}
.rst-snap-slider > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
/* CONTROLES DE SLIDER */
.rst-slider-controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: calc(50% - 40px);
    left: 0;
    pointer-events: none;
}

.rst-prev {
    background: linear-gradient(to right, rgba(0,0,0,.5), transparent);
}
.rst-next{
    background: linear-gradient(to left, rgba(0,0,0,.5), transparent);
}
.rst-prev, .rst-next {
    align-items: center;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 40px;
    height: 80px;
    pointer-events: auto;
    z-index: 10;
}

.rst-prev:disabled,
.rst-next:disabled {
    opacity: 0.3;
    cursor: default;
}





















.rst-badges-container {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    pointer-events: none; /* Para que no estorben al hacer clic en la imagen */
}
.rst-badge-new {
    background: #262626;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
}

.rst-badge-condition {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}

.rst-miniature-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 7px;
    align-items: center;
    flex: 1;
}
.rst-miniature-title {
    min-height: 38px;
    text-align: center;
}

.rst-miniature-title a {
    display: flex;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
    text-shadow: 0 3px 6px black;
    justify-content: center;
    flex-direction: column;
}
.rst-miniature-title a span {
    color: darkturquoise;
}
.rst-product-info-wrapper {
    display: flex;
    gap: 5px;
    width: 100%;
    min-height: 55px;
    background: rgba(0,0,0,.1);
    padding: 7px;
    border-radius: var(--border-radius);
    align-items: center;
}
.product-price-and-shipping {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1;
}

.rst-price {
    font-size: 1.5rem;
    font-family: 'Atma', sans-serif;
    font-weight: 600;
    color: var(--main-color);
    text-align: center;
}

/* --- Estilización de la Barra de Desplazamiento (Chrome, Safari, Edge) --- */

/* 1. Definimos el área total de la barra (el carril) */
.rst-snap-slider::-webkit-scrollbar {
    display: block; /* Ahora sí la mostramos */
    height: 8px;    /* Grosor de la barra horizontal */
}

/* 2. El fondo del carril */
.rst-snap-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 40px; /* Alineado con tus paddings de seguridad */
}

/* 3. La pieza que se mueve (el "Thumb") */
.rst-snap-slider::-webkit-scrollbar-thumb {
    background: #444; /* Color base oscuro */
    border-radius: 10px;
    border: 2px solid transparent; /* Crea un efecto de padding interno */
    background-clip: content-box;
    transition: background 0.3s;
}

/* 4. Efecto Hover y Active (Gamer Style) */
.rst-snap-slider::-webkit-scrollbar-thumb:hover {
    background: var(--main-color, #d11212);
    background-clip: content-box;
}

.rst-snap-slider::-webkit-scrollbar-thumb:active {
    background: #ff0000;
}

/* --- Compatibilidad para Firefox --- */
.rst-snap-slider {
    scrollbar-width: auto;
    scrollbar-color: rgba(0,0,0,.3) rgba(0,0,0,.2);
}

/* --- Ajuste del Slider --- */
.rst-snap-slider {
    padding: 30px 60px;
}

/* ==========================================================================
   DESKTOP (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {
    .rst-section-header {
        padding: 0; /* Quitamos padding si el contenedor principal ya tiene */
    }

    .rst-section-title {
        font-size: 1.25rem;
    }

    .rst-snap-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rst-snap-arrow:hover {
        background: var(--highlight-color-2);
    }

    .rst-snap-viewport {
        /* Máscara un poco más amplia en PC */
        -webkit-mask-image: linear-gradient(to right, 
            transparent 0%, 
            black 4%, 
            black 96%, 
            transparent 100%
        );
        mask-image: linear-gradient(to right, 
            transparent 0%, 
            black 4%, 
            black 96%, 
            transparent 100%
        );
    }

    .rst-snap-slider {
        scroll-padding-left: 60px;
        scroll-padding-right: 60px;
    }
}