
/* =========================================
   ADVI WELLNESS - BEST SELLERS
   Fully Responsive Product Slider
========================================= */

.advi-best-sellers {
    width: 100%;
    padding: 30px 0 25px;
    margin: 0;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.advi-best-container {
    width: 92%;
    max-width: 1450px;
    margin: 0 auto;
}

/* SECTION HEADING */

.advi-best-heading {
    width: 100%;
    text-align: center;
    margin: 0 0 28px;
}

.advi-best-kicker {
    display: block;
    color: #a88945;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 7px;
}

.advi-best-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 500;
    line-height: 1.2;
    color: #073f2d;
    margin: 0 0 12px;
}

.advi-best-heading p {
    color: #777777;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* SLIDER */

.advi-slider-wrapper {
    width: 100%;
    position: relative;
    padding: 0 2px;
    margin: 0;
    box-sizing: border-box;
}

.advi-best-slider {
    display: flex;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.advi-best-slider::-webkit-scrollbar {
    display: none;
}

/* PRODUCT CARD */

.advi-best-card {
    position: relative;
    flex: 0 0 calc((100% - 66px) / 4);
    min-width: 0;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #e5e8e5;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
}

.advi-best-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 50, 30, .10);
}

/* PRODUCT IMAGE */

.advi-best-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f7f6;
}

.advi-best-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}

.advi-best-card:hover .advi-best-image img {
    transform: scale(1.04);
}

/* BEST SELLER BADGE */

.advi-best-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0b563b;
    color: #ffffff;
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
    border-radius: 3px;
}

/* PRODUCT DETAILS */

.advi-best-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
}

.advi-best-info h3 {
    min-height: 44px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 9px;
}

.advi-best-info h3 a {
    color: #292929;
    text-decoration: none;
}

.advi-best-info h3 a:hover {
    color: #0b563b;
}

/* RATING */

.advi-best-rating {
    color: #b18b39;
    font-size: 13px;
    margin-bottom: 8px;
}

.advi-best-rating small {
    color: #888888;
}

/* PRICE */

.advi-best-price {
    color: #0b563b;
    font-size: 16px;
    font-weight: 600;
    margin: auto 0 14px;
    padding-top: 8px;
}

.advi-best-price del {
    color: #aaaaaa;
    font-size: 13px;
    font-weight: 400;
}

.advi-best-price ins {
    text-decoration: none;
}

/* ADD TO CART */

.advi-best-cart {
    width: 100%;
    margin-top: 0;
}

.advi-best-cart .add_to_cart_inline {
    padding: 0 !important;
    border: 0 !important;
}

.advi-best-cart .add_to_cart_button,
.advi-best-cart .product_type_simple,
.advi-best-cart .product_type_variable {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #0b563b !important;
    color: #ffffff !important;
    border: 1px solid #0b563b !important;
    border-radius: 5px;
    padding: 13px 8px !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}

.advi-best-cart .add_to_cart_button:hover,
.advi-best-cart .product_type_simple:hover,
.advi-best-cart .product_type_variable:hover {
    background: #a88945 !important;
    border-color: #a88945 !important;
    color: #ffffff !important;
}

/* LOADING / ADDED TO CART */

.advi-best-cart .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 7px;
    color: #0b563b;
    font-size: 12px;
    font-weight: 600;
}

/* SLIDER ARROWS */

.advi-slider-arrow {
    position: absolute;
    top: 40%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 48px;
    border: 0;
    border-radius: 4px;
    background: #0b563b;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: .3s ease;
}

.advi-slider-arrow:hover {
    background: #a88945;
}

.advi-prev {
    left: -17px;
}

.advi-next {
    right: -17px;
}

.advi-slider-arrow:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* SLIDER DOTS */

.advi-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}

.advi-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d8d8;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.advi-slider-dot.active {
    background: #0b563b;
}

/* VIEW ALL PRODUCTS - RIGHT SIDE */

.advi-best-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    box-sizing: border-box;
}

.advi-best-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0b563b;
    color: #ffffff;
    border: 1px solid #0b563b;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    transition: .3s ease;
}

.advi-best-footer a:hover {
    background: #a88945;
    border-color: #a88945;
    color: #ffffff;
}

/* TABLET */

@media (max-width: 1024px) {
    .advi-best-container {
        width: 94%;
    }

    .advi-best-card {
        flex-basis: calc((100% - 44px) / 3);
    }

    .advi-best-slider {
        gap: 22px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .advi-best-sellers {
        padding: 25px 0 22px;
    }

    .advi-best-container {
        width: 92%;
    }

    .advi-best-heading {
        margin-bottom: 20px;
    }

    .advi-best-heading h2 {
        font-size: 29px;
        margin-bottom: 8px;
    }

    .advi-best-heading p {
        font-size: 13px;
    }

    .advi-best-kicker {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .advi-best-slider {
        gap: 12px;
        scroll-snap-type: x mandatory;
    }

    .advi-best-card {
        flex: 0 0 calc((100% - 12px) / 2);
        border-radius: 7px;
    }

    .advi-best-image {
        aspect-ratio: 1 / 1;
    }

    .advi-best-info {
        padding: 10px;
    }

    .advi-best-info h3 {
        min-height: 55px;
        font-size: 13px;
        line-height: 1.4;
    }

    .advi-best-rating {
        font-size: 11px;
    }

    .advi-best-price {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .advi-best-price del {
        font-size: 11px;
    }

    .advi-best-cart .add_to_cart_button,
    .advi-best-cart .product_type_simple,
    .advi-best-cart .product_type_variable {
        padding: 11px 5px !important;
        font-size: 11px;
    }

    .advi-slider-arrow {
        width: 30px;
        height: 36px;
        font-size: 15px;
    }

    .advi-prev {
        left: -10px;
    }

    .advi-next {
        right: -10px;
    }

    .advi-slider-dots {
        margin-top: 13px;
    }

    .advi-best-footer {
        margin-top: 14px;
    }

    .advi-best-footer a {
        padding: 11px 17px;
        font-size: 11px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .advi-best-container {
        width: 94%;
    }

    .advi-best-slider {
        gap: 10px;
    }

    .advi-best-card {
        flex-basis: calc((100% - 10px) / 2);
    }

    .advi-best-info {
        padding: 8px;
    }

    .advi-best-info h3 {
        font-size: 12px;
    }

    .advi-best-footer a {
        padding: 10px 14px;
    }
}


/* =====================================
   BEST SELLERS - MOBILE RESPONSIVE FIX
===================================== */

@media (max-width: 767px) {

    .advi-best-sellers {
        width: 100%;
        padding: 25px 0 20px !important;
        overflow: hidden;
    }

    .advi-best-container {
        width: 94%;
        margin: 0 auto;
    }

    .advi-best-slider {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }

    .advi-best-card {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: 0;
        scroll-snap-align: start;
    }

    .advi-best-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .advi-best-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .advi-best-info {
        padding: 10px;
    }

    .advi-best-info h3 {
        font-size: 13px;
        line-height: 1.4;
        min-height: 55px;
        overflow-wrap: anywhere;
    }

    .advi-best-price {
        font-size: 14px;
    }

    .advi-best-cart a {
        width: 100%;
        box-sizing: border-box;
    }

    .advi-slider-arrow {
        width: 30px;
        height: 36px;
        top: 35%;
    }

    .advi-best-footer {
        display: flex;
        justify-content: flex-end;
        margin-top: 15px;
    }

    .advi-best-footer a {
        padding: 11px 16px;
        font-size: 11px;
    }
}

/* VERY SMALL MOBILE */

@media (max-width: 380px) {

    .advi-best-card {
        flex-basis: 85%;
    }

    .advi-best-info h3 {
        font-size: 14px;
    }

    .advi-best-info {
        padding: 12px;
    }
}

