/* Single Product Page Styles */

/* Best Sellers More Section - Recommended Products */
section.best-sellers.more .section-inner {
    max-width: 1337px; /* 4 × 320px + 3 × 19px = 1337px */
    margin: 0 auto;
    padding: 0 20px;
}
.box-product .part-top .image {
    height: auto;
    max-height: 460px;
}
section.best-sellers .boxes .box {
    padding: 0;
    width: 100%;
}
.single-product section.advantages .boxes .box .icon img, section.advantages .boxes .box .icon img {
    width: auto !important;
}

/* General styling */
section.best-sellers.more {
    padding: 60px 0;
    background: #fff;
}

section.best-sellers.more .section-title {
    color: #23408D;
    text-align: center;
    margin-bottom: 40px;
}

/* Home New Page Styles for Product Cards */
section.best-sellers.more .box-product {
    position: relative;
    border: 1px solid #f1f1f6;
    background: #f6f7f9;
}

section.best-sellers.more .box-product .inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid #f1f1f6;
    background: #f6f7f9;
}

section.best-sellers.more .box-product .part-top {
    flex: 0 0 auto;
    width: 100%;
}

section.best-sellers.more .box-product .part-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    min-height: 157px;
}

section.best-sellers.more .box-product .part-bottom .title {
    flex: 0 0 auto;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

section.best-sellers.more .box-product .part-bottom .price {
    margin-top: auto;
    text-align: center;
}

section.best-sellers.more .box-product .part-bottom .price .woocommerce-Price-amount {
    font-weight: normal;
}

section.best-sellers.more .box-product .part-bottom .buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

section.best-sellers.more .box-product .part-bottom .button.add-to-cart {
    border-radius: 50px;
    width: 100%;
    max-width: 264px;
}

/* Badge system from home-new.css */
section.best-sellers.more .box-product .part-top::before {
    content: "Best Seller";
    position: absolute;
    top: 16px;
    left: 10px;
    background: #283582;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 30px;
    z-index: 10;
    white-space: pre;
    text-align: center;
    line-height: 1.2;
}

section.best-sellers.more .onsale.wccs-onsale-badge, 
section.best-sellers.more .onsale {
    right: 10px;
    left: auto;
    top: 16px;
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 30px;
    width: auto;
    height: auto;
    z-index: 10;
}

/* Category Page Styles for Product Cards */
section.best-sellers.more .box-product .part-top .image {
    width: 100%;
    height: 460px;
    max-height: 460px;
    overflow: hidden;
}

section.best-sellers.more .box-product .part-top .image img {
    width: 100%;
    height: 460px;
    object-fit: contain;
}

section.best-sellers.more .box-product .part-bottom {
    padding: 20px 25px 25px;
    min-height: 174px;
}

section.best-sellers.more .box-product .part-bottom .title {
    margin-bottom: 0;
    text-align: center;
}

section.best-sellers.more .box-product .part-bottom .price {
    display: flex;
    flex-direction: column;
}

section.best-sellers.more .box-product .part-bottom .price .woocommerce-Price-amount {
    font-weight: bold;
}

section.best-sellers.more .box-product .part-bottom .price del .woocommerce-Price-amount {
    font-weight: normal;
}

section.best-sellers.more .box-product .part-bottom .buttons {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

section.best-sellers.more .box-product .part-bottom .button.add-to-cart {
    border-radius: 50px;
    width: 100%;
    max-width: 200px;
}

/* Badge positioning - sale badges on the left */
section.best-sellers.more .onsale {
    right: auto;
    left: 10px;
    top: 16px;
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 30px;
    width: auto;
    height: auto;
    z-index: 10;
}

/* Hide pseudo-element badges like in category pages */
section.best-sellers.more .box-product .part-top::before {
    display: none;
}

section.best-sellers.more .box-product .part-top .new {
    display: none;
} 
/* Desktop: 4 cards layout */
@media (min-width: 1001px) {
    section.best-sellers.more .boxes {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 19px;
        max-width: 1337px;
        margin: 0 auto;
    }
    
    /* Hide carousel navigation on desktop */
    section.best-sellers.more .grid-slide-nav {
        display: none;
    }
}

/* Mobile/Tablet: Carousel behavior for 1000px and below */
@media (max-width: 1000px) {
    .single-product .box-product .part-bottom .price {
        margin-top: 0;
        margin-bottom: 0;
        color: #e20714 !important;
    }
    section.best-sellers.more .boxes {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 19px;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }
    
    section.best-sellers.more .box-product {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
    /* Category Page Styles for Product Cards */
    section.best-sellers.more .box-product .part-top .image {
        width: 100%;
        height: 100%;
        max-height: 325px;
        overflow: hidden;
    }

    section.best-sellers.more .box-product .part-top .image img {
        width: 100%;
        height: 325px;
        object-fit: contain;
    }

    
}
