/**
* 2007-2025 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2025 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

.nxr_hotproducts {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 16px;
    margin: 1.5rem 0;
}

.nxr_hotproducts-home {
    margin: 0;
}

#nxr_hotproducts-cabecera {
    display: flex;
    min-width: 328px;
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 8px;
    background: var(--Neutral-20, #EAECF0);
}

#nxr_hotproducts-cabecera .cab_izda {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
}

.cab_izda .title {
    color: #ffffff;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 0px;
}

.cab_izda .description {
    color: #ffffff;
    font-size: 16px;
    font-style: normal;
    font-weight: 200;
    line-height: 24px;
}

#nxr_hotproducts-cabecera .cab_izda a {
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
}

#splide_nxr_hotproducts-list .thumbnail-container,
.featured-products .thumbnail-container,
.product-accessories .thumbnail-container,
.product-miniature .thumbnail-container {
    margin-bottom: 0px;
}

.nxr_hotproducts-carrusel,
#splide_nxr_hotproducts,
#splide_nxr_hotproducts .splide__track {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

#splide_nxr_hotproducts .splide__slide {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
}

/* La lista de slides debe ser flex y no tener padding/margin extra */
#splide_nxr_hotproducts .splide__list {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    justify-content: flex-start !important;
}

/* Ancho del slide lo gobierna Splide vía perPage (flex respeta su width inline) */
.nxr_hotproducts-product,
#splide_nxr_hotproducts .splide__slide {
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
}

/* Flechas del splide */
#splide_nxr_hotproducts .splide__arrow {
    border-radius: 0;
    background-color: #F1F0F0;
    box-shadow: none;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
}

/* Separación lateral de las flechas */
#splide_nxr_hotproducts .splide__arrow--prev {
    left: 0px;
}

#splide_nxr_hotproducts .splide__arrow--next {
    right: 0px;
}

/* Responsive básico para cabecera en pantallas pequeñas */
@media (max-width: 1200px) {
    .nxr_hotproducts {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    #splide_nxr_hotproducts .splide__arrows {
        display: none !important;
    }

    .cab_izda .title {
        font-size: 20px;
    }
}

.nxr_hotproducts .product-miniature .product-title,
.nxr_hotproducts .product-miniature .product-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-clamp: 3 !important;
    line-height: 1.2em !important;
    min-height: calc(1.2em * 3) !important;
    max-height: calc(1.2em * 3) !important;
}
/* ===================================================== */
/*  Overrides del slider, con prefijo nxr_hotproducts     */
/* ===================================================== */

/* Flechas slider hot productos */
#splide_nxr_hotproducts .splide__arrow--prev {
    border-radius: 8px;
    width: 40px;
}
#splide_nxr_hotproducts .splide__arrow--next {
    border-radius: 8px;
    width: 40px;
}

/* Imagen del producto */
.nxr_hotproducts .thumbnail-container > a.product-thumbnail > img {
    width: 65% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Ocultar reviews */
.nxr_hotproducts .dbproduct_list_reviews {
    display: none !important;
}

/* Título del producto */
.nxr_hotproducts .product-miniature .product-title {
    font-size: 0.80rem;
    line-height: 1.5 !important;
    min-height: calc(1.5em * 3) !important;
    max-height: calc(1.5em * 3) !important;
}

/* Flechas del slider (override más específico) */
#splide_nxr_hotproducts .splide__arrow--next,
#splide_nxr_hotproducts .splide__arrow--prev {
    width: 30px !important;
    height: 30px !important;
}

/* Fondo Hot Products */
.nxr_hotproducts {
    margin-bottom: 1.5rem !important;
    background-color: var(--nxr-accent, #1f2937) !important;
    border-radius: 8px;
}

/* Cabecera Hot Products */
.nxr_hotproducts-cabecera,
#nxr_hotproducts-cabecera {
    background-color: var(--nxr-accent, #1f2937) !important;
    min-width: 300px;
}

/* Precios */
.nxr_hotproducts .product-price-and-shipping .price {
    font-size: 0.95rem !important;
}
.nxr_hotproducts .product-price-and-shipping .before-price,
.nxr_hotproducts .product-price-and-shipping .regular-price {
    font-size: 0.80rem !important;
}

/* Ajustes slider */
#splide_nxr_hotproducts .splide__list {
    gap: 0 !important;
}
#splide_nxr_hotproducts .splide__slide {
    padding: 10px !important;
}

/* Mobile */
@media (max-width: 768px) {
    #nxr_hotproducts-cabecera {
        padding: 20px 25px !important;
    }
    .nxr_hotproducts {
        gap: 0px !important;
    }
}
@media (max-width: 768px) {
    #nxr_hotproducts-cabecera {
        padding: 15px 15px 0px 15px !important;
    }
}
