/**
 * DOAR carusel produse pe home-new — look 1:1 cu PDP (sliders.css).
 * Nu atinge hero / tiles / bannere / layout page.
 * Deploy: catalog/view/smartv3/css/home-new-carousel.css
 */

.hn-page .hn-block.product-recommendation-section .recommended_products_content {
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 0;
}

.hn-page .hn-block.product-recommendation-section .custom_products,
.hn-page .hn-block.product-recommendation-section .recommended_products_content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Override category.css grid — rail orizontal ca pe pagina de produs */
#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    grid-template-columns: none !important;
    grid-auto-flow: unset !important;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail::-webkit-scrollbar {
    display: none;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: auto;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container {
    display: block;
    flex-shrink: 0;
    border-radius: 12px;
    background: #F5F5F5;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    padding: 0;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 10px 10px 0;
    position: absolute;
    top: 0;
    z-index: 1;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image .custom_product_image_default {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    mix-blend-mode: multiply;
    padding: 0;
    border-radius: 12px;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image .custom_product_images_slider {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 30px;
    height: auto;
    flex-shrink: 0;
    gap: 8px;
    position: absolute;
    bottom: 5px;
    z-index: 10;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image .custom_product_images_slider span {
    display: flex;
    width: 28px;
    height: 3px;
    background-repeat: no-repeat;
    background-image: url(/catalog/view/smartv3/svg/slider_line_white.svg);
    cursor: pointer;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image .custom_product_images_slider span.selected {
    background-image: url(/catalog/view/smartv3/svg/slider_line_black.svg);
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_container .custom_product_image .custom_product_images_slider span img {
    display: none;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_title {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-height: 55px;
    min-height: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_title h4 {
    color: #12100B;
    font-family: VelaSans-Semi, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    margin: 0;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_delivery span {
    font-family: VelaSans, sans-serif;
    font-size: 12.5px;
    color: #78BA66;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    min-height: 40px;
    gap: 2px;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices a {
    display: flex;
    flex-direction: column;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices .custom_product_price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 36px;
    gap: 2px;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices .custom_product_price span.regular {
    color: #12100B;
    font-family: VelaSans, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices .custom_product_price span.special {
    color: #585858;
    font-family: VelaSans-Medium, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: line-through;
    text-decoration-color: #ED2939;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices .custom_product_credit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 20px;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_prices .custom_product_credit span {
    color: #585858;
    font-family: VelaSans-Medium, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

#hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content .custom_product_tools button {
    border-radius: 12px;
    color: #37474F;
    background: none;
    background-repeat: no-repeat;
    background-image: url(/catalog/view/smartv3/svg/add_cart_desktop.svg);
    border: none;
    outline: none;
    padding: 14px;
    width: 51px;
    height: 36px;
    cursor: pointer;
}

@media (max-width: 767px) {
    #hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail {
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
        gap: 8px;
    }

    #hn-home-rails .product-recommendation-section .custom_products .custom_products_content.hn-rail > .custom_product_content {
        scroll-snap-align: start;
        flex: 0 0 150px;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
    }
}
