﻿/* =====================================================
   SEZIONE CAROSELLI
   ===================================================== */

.bestseller-section {
    background: #fff;
    padding: 55px 0 35px;
}

/* ===== INTESTAZIONE ===== */

.bestseller-heading {
    text-align: center;
    margin-bottom: 30px;
}

.bestseller-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #8c7868;
    margin-bottom: 10px;
}

.bestseller-heading h2 {
    font-size: 32px;
    font-weight: 600;
    color: #252525;
    margin-bottom: 10px;
}

.bestseller-heading p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* ===== CAROSELLO ===== */

.bestseller-section .slick-track {
    display: flex;
}

.bestseller-section .slick-slide {
    height: auto;
}

.bestseller-section .bestseller-item {
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}


/* =====================================================
   CARD PRODOTTO CONDIVISA
   ===================================================== */

:is(.bestseller-section, .product-list-section) .single-product {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 12px 12px 18px !important;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    :is(.bestseller-section, .product-list-section) .single-product:hover {
        border-color: #ccc;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
    }


/* ===== IMMAGINI ===== */

:is(.bestseller-section, .product-list-section) .single-product-img {
    width: 100%;
}

:is(.bestseller-section, .product-list-section) .product-image-link {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

:is(.bestseller-section, .product-list-section) .product-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

:is(.bestseller-section, .product-list-section) .hoverimage {
    position: absolute;
    inset: 0;
    transform: none;
}


/* ===== NOME PRODOTTO ===== */

:is(.bestseller-section, .product-list-section) .product-name {
    padding: 0 !important;
    margin: 12px 0 10px;
    min-height: 40px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: left;
}

    :is(.bestseller-section, .product-list-section) .product-name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #252525;
    }


/* ===== PREZZI ===== */

:is(.bestseller-section, .product-list-section) .product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 0 !important;
    margin-top: auto;
}

    :is(.bestseller-section, .product-list-section) .product-price .old-price {
        color: #999;
        font-size: 13px;
        font-weight: 400;
        white-space: nowrap;
        margin: 0;
    }

    :is(.bestseller-section, .product-list-section) .product-price .red-color {
        display: inline-block;
        margin: 0 0 0 auto;
        padding: 6px;
        background-color: #df1025;
        color: #fff !important;
        border-radius: 6px;
        font-size: 22px;
        font-weight: 400;
        line-height: 1;
        white-space: nowrap;
        text-decoration: none !important;
    }

    :is(.bestseller-section, .product-list-section) .product-price ins {
        text-decoration: none !important;
    }


/* ===== GENERE ===== */

:is(.bestseller-section, .product-list-section) .product-gender {
    margin: 0 0 12px;
    font-size: 10px;
}


/* =====================================================
   FRECCE CAROSELLO
   ===================================================== */

.bestseller-section .bestseller-prev,
.bestseller-section .bestseller-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: all .2s ease;
}

.bestseller-section .bestseller-prev {
    left: -10px;
}

.bestseller-section .bestseller-next {
    right: -10px;
}

    .bestseller-section .bestseller-prev:hover,
    .bestseller-section .bestseller-next:hover {
        background: #252525;
        color: #fff;
    }

.bestseller-section .slick-disabled {
    opacity: 0;
    pointer-events: none;
}


/* =====================================================
   ELENCO PRODOTTI
   ===================================================== */

.product-list-section .product-gender {
    font-size: 11px;
    margin-bottom: 12px;
}

.product-list-section .single-product {
    height: 100%;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {

    /* CAROSELLO */

    .bestseller-section {
        padding: 30px 0 20px;
    }

    .bestseller-heading {
        padding: 0 15px;
        margin-bottom: 20px;
    }

        .bestseller-heading h2 {
            font-size: 26px;
        }

        .bestseller-heading p {
            font-size: 12px;
        }

    .bestseller-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .bestseller-section .bestseller-item {
        padding: 5px;
    }

    /* CARD CONDIVISA */

    :is(.bestseller-section, .product-list-section) .single-product {
        padding: 8px 10px 12px !important;
        border-radius: 8px;
    }

    :is(.bestseller-section, .product-list-section) .product-name {
        font-size: 12px;
        line-height: 17px;
        min-height: 34px;
    }

    :is(.bestseller-section, .product-list-section) .product-price .red-color {
        font-size: 17px;
        padding: 5px 8px;
    }

    :is(.bestseller-section, .product-list-section) .product-price .old-price {
        font-size: 11px;
    }

    :is(.bestseller-section, .product-list-section) .product-img {
        padding: 4px;
    }

    .product-list-section .product-gender {
        font-size: 10px;
        margin-bottom: 8px;
    }
}
