.cart-best-sellers {
    margin-top: 50px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.cart-best-sellers h2 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.best-seller-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; 
}

.best-seller-item {
    min-width: 220px;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.best-seller-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.best-seller-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.best-seller-item .price {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}
@media (max-width: 1024px) {
    .best-seller-item {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .best-seller-item {
        min-width: 140px;
        padding: 10px;
    }

    .cart-best-sellers h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .best-seller-item {
        min-width: 120px;
        padding: 8px;
    }

    .best-seller-item h3 {
        font-size: 14px;
    }

    .best-seller-item .price {
        font-size: 14px;
    }
}


/* ===== PRODUCT GRID WRAPPER ===== */

.box {
    width: 100%;
    margin: 0;
}
.elementor-widget-wrap.elementor-element-populated.active h2.elementor-heading-title a {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.elementor-widget-wrap.elementor-element-populated.active .elementor-widget-container img {
    box-shadow: 0px 5px 6px #3aa93d;
    transform: translateY(-3px);
}
.box-content {
    padding: 10px;
}

.box-product {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
        justify-content: center;
}

/* Each product */
.product-items {
        width: calc(25% - 15px);
}

.product-block {
    
    background: #fff;
    padding: 10px;
    position: relative;
    transition: 0.3s;
}

.product-block:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* ===== IMAGES ===== */

.image_wrapper {
    position: relative;
}

.product-block .image img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.img-responsive {
    width: 100%;
}

/* Hover image if needed */
.image_content img.hover-image {
    position: absolute;
    top: 0;
    opacity: 0;
    transition: 0.3s;
}

.product-block:hover .image_content img.hover-image {
    opacity: 1;
}

/* ===== BADGES ===== */
.saleicon.sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d60000;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}

.percentsaving {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #222;
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
}

/* ===== BUTTON GROUP ===== */

.button-group {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.button-group button,
.quickview-button {
    background: #fff;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.button-group button:hover,
.quickview-button:hover {
    background: #000;
    color: #fff;
}
.shopByCategory .elementor-widget-container img {
    transition: box-shadow 0.3s 
ease, transform 0.3s 
ease;
    border-radius: 50% !important;
}
/* ===== PRODUCT DETAILS ===== */

.product-details {
    padding: 15px;
}

.caption h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.caption h4 a {
    color: #222;
    text-decoration: none;
}

.caption h4 a:hover {
    color: #359f4a;
}

.price {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
}

/* WooCommerce sale + regular price */
.price del {
    color: #999;
    margin-left: 5px;
}

.button-addtocart button,
.button-addtocart a.add_to_cart_button {
    color: #2f9c45 !important;
    padding: 8px 12px;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.product-block .product-details a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    width: auto;
}

/* ===== VIEW MORE SECTION ===== */

.btn_viewmore {
    margin-top: 20px;
    text-align: center;
}

.cz-status {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: none; /* hidden by default */
}

.viewmore button {
    padding: 10px 20px;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    border-radius: 4px;
}

.viewmore button:hover {
    background: #d60000;
}
.product-block .product-details {
    float: left;
    width: 100%;
    position: relative;
    padding:0;
}
.product-thumb .caption {
    clear: both;
    float: left;
    position: relative;
    width:100%;
    text-align: center;
    padding:10px 0;
}
.product-thumb h4 {
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 6px;
    width: 100%;
    font-size: 15px;
    line-height: 20px;
    color: #000;
    /* min-height: 52px; */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-thumb h4 a {
    color: #616161;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    line-height: 26px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: initial;
    font-family: "Roboto Slab", sans-serif;
}
.product-thumb .price {
    vertical-align: middle;
    color: #2f9c45;
    font-weight: 500;
    font-size: 15px;
    padding: 0;
    line-height: 24px;
    letter-spacing: 0.5px;
    -webkit-transition: all 500ms 
ease 0s;
    -moz-transition: all 500ms ease 0s;
    -o-transition: all 500ms ease 0s;
    transition: all 500ms 
ease 0s;
}
.productbox-grid .product-block .button-addtocart, .product-carousel .product-block .button-addtocart, .product-grid .product-block .button-addtocart {
    border: 0px;
    opacity: 0;
    filter: alpha(opacity=0);
    position: absolute;
    right: 0;
    left: 0;
    bottom: 9px;
    -webkit-transition: all 500ms ease 0s;
    -moz-transition: all 500ms ease 0s;
    -o-transition: all 500ms ease 0s;
    transition: all 500ms ease 0s;
}
.productbox-grid .product-block button.addtocart, .product-carousel .product-block button.addtocart, .product-grid .product-block button.addtocart {
    color: #9e2548;
    padding: 0px;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    line-height: 24px;
    text-transform: capitalize;
    display: inline-block;
    vertical-align: top;
    background-color: #ffffff;
    border: 0;
    text-decoration: underline;
    border-radius: 0;
    transition: all 0.5s ease 0s;
    -webkit-transition: all 0.5s ease 0s;
    -moz-transition: all 0.5s ease 0s;
    -ms-transition: all 0.5s ease 0s;
    -o-transition: all 0.5s ease 0s;
}
.productbox-grid .product-block button.addtocart span, .product-carousel .product-block button.addtocart span, .product-grid .product-block button.addtocart span {
    display: block;
}
.product-block .image_wrapper {
    position: relative;
    width: auto;
    overflow: visible;
    float: left;
    border: 2px solid #eee;
    border-radius: 5px;
    width: 100%;
}
.product-block-inner {
    text-align: left;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: visible;
    float: left;
    width: 100%;
}
.product-block {
    /* margin: 15px 15px; */
    padding: 0px;
    background: #fff;
    clear: both;
    overflow: hidden;
    transition: all 0.5s ease 0s;
    -webkit-transition: all 0.5s ease 0s;
    -moz-transition: all 0.5s ease 0s;
    -ms-transition: all 0.5s ease 0s;
    -o-transition: all 0.5s ease 0s;
}
.box-product .product-items {
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.productbox-grid .product-block:hover .button-addtocart, .product-carousel .product-block:hover .button-addtocart, .product-grid .product-block:hover .button-addtocart {
    opacity: 1;
    filter: alpha(opacity=100);
}
.product-block:hover .price {
    opacity: 0;
    filter: alpha(opacity=0);
}

.box-product {
    list-style-type: none;
    position: relative;
    width: 100%;
    padding: 0px;
    margin: 0px;
    list-style: none;
    overflow: hidden;
}
.box .box-content {
    background: none;
    border-radius: 0px;
    position: relative;
    margin: 0px -15px;
    border: 0px;
}
/* Responsive */
@media (max-width: 768px) {
    .product-items {
               width: calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .product-items {
                width: calc(50% - 15px);
    }
}
@media (max-width: 767px) {

    .shopByCategory.elementor-section .elementor-container {
        display: flex;
        flex-wrap: nowrap !important;   /* keep children in one row */
        overflow-x: auto;               /* enable horizontal scroll */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
        gap: 12px;                      /* spacing between items (optional) */
        padding-bottom: 10px;           /* space for scroll bar */
    }

    .shopByCategory.elementor-section .elementor-container > .elementor-column {
        flex: 0 0 auto;                 /* prevent auto shrinking */
        white-space: normal;            /* allow text to wrap */
    }

}


/* Customize arrows */
.cart-best-sellers .slick-prev.custom-prev,
.cart-best-sellers .slick-next.custom-next {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent !important;
    border: none !important;
    color: #000 !important;
    font-size: 64px !important;
    width: 35px;
    /* height: 35px !important; */
    border-radius: 50% !important;
    z-index: 10 !important;
    cursor: pointer !important;
    padding:0 !important;
}

.cart-best-sellers button:not(.customize-partial-edit-shortcut-button):not(.components-button):hover:before {
    content: none !important;
    background: none !important;
    opacity: 1 !important; /* optional: reset opacity */
    transform: none !important; /* optional: reset animations */
}

/* Left arrow */
.slick-prev.custom-prev {
    left: -15px; /* adjust distance from slider */
}

/* Right arrow */
.slick-next.custom-next {
    right: -15px; /* adjust distance from slider */
}
/* Create row only for cart + totals */
.woocommerce-cart .woocommerce > .woocommerce-cart-form,
.woocommerce-cart .woocommerce > .cart-collaterals {
    display: inline-block;
    vertical-align: top;
}

/* Wrap them visually in a row */
.woocommerce-cart .woocommerce {
    font-size: 0; /* remove inline-block gap */
}

/* Widths */
.woocommerce-cart.woocommerce-page .woocommerce-cart-form {
    width: 65%;
}

.woocommerce-cart.woocommerce-page .cart-collaterals {
    width: 33%;
    margin-top: 0;
    margin-left: 2%;
}

/* Restore text size */
.woocommerce-cart.woocommerce-page .cart-collaterals {
    font-size: 16px;
}


.woocommerce-cart.woocommerce-page .cart-collaterals .cart_totals {
    width: 100%;
}
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-page .cart-collaterals .cart_totals h2 {
    text-transform: capitalize;
    font-size: 25px;
    font-weight: bold;
    /* margin: 10px 0; */
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    border-top: 1px solid #ddd;
}
@media (max-width: 991px) {
    .woocommerce-cart-form,
    .cart-collaterals {
            width: 100% !important;
        display: block;
    }
    .woocommerce-page .cart-collaterals {
    margin-left: 0;
    }
}

/* Smaller screens */
@media (max-width: 768px) {
    .slick-prev.custom-prev,
    .slick-next.custom-next {
        width: 30px;
        height: 30px;
        font-size: 20px;
        left: -10px;
        right: -10px;
    }
    .cart-best-sellers .slick-next.custom-next {
    right: 0 !important;
    left: auto!important;
}
}

@media (max-width: 480px) {
    .slick-prev.custom-prev,
    .slick-next.custom-next {
        width: 25px;
        height: 25px;
        font-size: 18px;
        left: -5px;
        right: -5px;
    }
}
