.rst-latest-products {
    display: flex;
    position: relative;
    width: 100%;
    padding: 15px;
    background: radial-gradient(#a70000, #360000);
    flex-direction: column;
    gap: var(--gap-main);
}

.rst-latest-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rst-latest-products-title {
    font-size: clamp(1.5rem,1.8rem,2rem);
    font-weight: 500;
}

.rst-latest-products-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rst-latest-products-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: var(--gap-main);
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: opacity 0.2s ease,
        transform 0.2s ease;
}

.rst-latest-products-controls button svg {
    color: black;
    font-size: 1rem;
}

.rst-latest-products-controls button:hover {
    transform: scale(1.08);
}

.rst-latest-products-controls button:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.rst-latest-products-list {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--gap-main);

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
    -ms-overflow-style: none;

    padding: 0.25rem 0 1rem;
}

.rst-latest-products-list::-webkit-scrollbar {
    display: none;
}

.rst-latest-products-list > .rst-product-miniature {
    flex: 0 0 100%;
    min-width: 0;

    scroll-snap-align: start;
}


/*
 * MÓVIL
 *
 * Se muestra un producto completo
 * y parte del siguiente.
 */
@media (max-width: 575px) {

    .rst-latest-products-list {
        /*
         * Permite que el producto activo pueda
         * desplazarse hacia el centro.
         */
        scroll-padding-inline: 6%;
    }

    .rst-latest-products-list > .rst-product-miniature {
        flex-basis: 88%;
    }

}


/*
 * TABLET
 */
@media (min-width: 576px) {

    .rst-latest-products-list > .rst-product-miniature {
        flex-basis: calc(33.333% - 0.667rem);
        scroll-snap-align: start;
    }

}


/*
 * DESKTOP
 */
@media (min-width: 992px) {

    .rst-latest-products-list > .rst-product-miniature {
        flex-basis: calc(20% - 0.8rem);
    }

}


/*
 * PANTALLAS GRANDES
 */
@media (min-width: 1400px) {

    .rst-latest-products-list > .rst-product-miniature {
        flex-basis: calc(16.666% - 0.833rem);
    }

}