/* ==========================================================================
   WooCommerce Best Sellers Product Slider CSS
   ========================================================================== */

/* Main Section Wrapper */
.bestsellers_slider_section {
    padding: 50px 0 40px 0;
    width: 100%;
    background-color: #ffffff;
   
}



/* Header Area */
.bestsellers_header {
    text-align: center;
    margin-bottom: 35px;
}

.bestsellers_title {
    font-size: 32px;
    font-weight: 700;
    color: #38a2a5;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.bestsellers_subtitle {
    font-size: 15px;
    color: #222222;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Swiper Outer Wrapper */
.bestsellers_swiper_wrapper {
    position: relative;
    padding: 10px 20px;
}

.bestsellers_swiper {
    position: relative;
    overflow: hidden;
    padding: 10px 4px !important;
}

.bestsellers_swiper .swiper-wrapper {
    align-items: stretch;
}

/* Card Design */
.bestsellers_card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



/* Top Image Container */
.bestsellers_img_box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    min-height: 250px;
    position: relative;
    text-decoration: none;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.bestsellers_img_box img {
    max-height: 200px;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.bestsellers_img_box:hover img {
    transform: scale(1.06);
}

/* Bottom Info Container */
.bestsellers_info_box {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: #ffffff;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

/* Product Title */
.bestsellers_product_title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.bestsellers_product_title a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bestsellers_product_title a:hover {
    opacity: 0.88;
    color: #ffffff;
}

/* Product Short Description */
.bestsellers_product_desc {
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.92;
    margin-bottom: 18px;
    min-height: 54px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Row */
.bestsellers_price_row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    flex-wrap: wrap;
}

.bestsellers_price_old,
.bestsellers_price_row del {
    text-decoration: line-through;
    opacity: 0.75;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

.bestsellers_price_new,
.bestsellers_price_row ins {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

.bestsellers_sale_badge {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-left: 2px;
}

/* Add to Cart Button */
.bestsellers_cart_btn_wrap {
    width: 100%;
}

.bestsellers_cart_btn_wrap a.button,
.bestsellers_cart_btn_wrap button,
.bestsellers_cart_btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #ffffff !important;
    color: #111111 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 4px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.bestsellers_cart_btn_wrap a.button:hover,
.bestsellers_cart_btn_wrap button:hover,
.bestsellers_cart_btn:hover {
    background-color: #f2f2f2 !important;
    color: #000000 !important;
}

.bestsellers_swiper .swiper-wrapper .swiper-slide {
    height: auto;
}

/* ==========================================================================
   SWIPER NAVIGATION BUTTONS
   ========================================================================== */
.bestsellers_nav_prev,
.bestsellers_nav_next {
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    border: 2px solid #57b7b9;
    border-radius: 50%;
    color: #57b7b9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.bestsellers_nav_prev {
    left: -15px;
}

.bestsellers_nav_next {
    right: -15px;
}

.bestsellers_nav_prev:hover,
.bestsellers_nav_next:hover {
    background-color: #57b7b9;
    color: #ffffff;
}

.bestsellers_nav_prev.swiper-button-disabled,
.bestsellers_nav_next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide default swiper font icons */
.bestsellers_nav_prev::after,
.bestsellers_nav_next::after {
    display: none;
}

/* ==========================================================================
   VIEW ALL BUTTON AT BOTTOM
   ========================================================================== */
.bestsellers_footer {
    text-align: center;
    margin-top: 35px;
}

.bestsellers_view_all_btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 34px;

    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}



/* Responsive Adjustments */
@media (max-width: 991px) {
    .bestsellers_nav_prev {
        left: -5px;
    }
    .bestsellers_nav_next {
        right: -5px;
    }
}

@media (max-width: 768px) {
    .bestsellers_title {
        font-size: 26px;
    }
    .bestsellers_subtitle {
        font-size: 14px;
    }
    .bestsellers_nav_prev,
    .bestsellers_nav_next {
        width: 36px;
        height: 36px;
    }
    .bestsellers_nav_prev {
        left: 0;
    }
    .bestsellers_nav_next {
        right: 0;
    }
}
