/* ===== 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;
}



/* ===== 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;
}
.product-thumb .caption {
    clear: both;
    float: left;
    position: relative;
    width:100%;
    background-color: #fff;
    text-align: center;
}
.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;
}
.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 */
    }

}