/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

.similar-products-grid {
    margin-top: 40px;
}

.similar-products-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
    gap: 30px;
}

.similar-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Default image styling */
.similar-product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 14px;
    transition: transform 0.4s ease, background-image 0.4s ease;
    border-radius: 10px;
    display: block;
	object-fit: cover;
    background-image: url("https://epoxy.rioconn.tech/wp-content/uploads/2025/10/Epoxy-sim-pr-bg.webp") !important;
    background-size: cover;
    background-position: center;
}

/* Hover → only image changes */
.similar-product-card img:hover {
    background-image: url("https://epoxy.rioconn.tech/wp-content/uploads/2025/09/bg-2.webp") !important;
        border: 1px solid #ED0000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(237 0 0 / 10%);
}


.similar-product-card h4 {
    font-size: 24px;
    line-height: 36px;
    color: #000;
    padding-bottom: 14px;
    font-family: 'Poppins';
    border-bottom: 1px solid #DCDCDC;
}

.similar-product-card:hover {
    transform: translateY(-5px);
/*     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

/* Responsive: Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .similar-products-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: Mobile (≤ 768px) */
@media (max-width: 768px) {
    .similar-products-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ===========================
   Products Grid
=========================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* 4 columns desktop */
    gap: 25px;
    margin: 40px 0;
}

.product-grid ul.products {
    display: contents !important; /* use parent grid */
}

/* Product card */
.product-grid li.product {
/*     background: #fff; */
/*     border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    width: 100% !important;
    flex-direction: column; */
}

.product-grid li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Product image */
.product-grid li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}



/* Button */
.product-grid li.product a.button {
    display: none !important;
/*     margin: 10px auto 15px auto;
    padding: 8px 16px;
    background-color: #007cba;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease; */
}

.product-grid li.product a.button:hover {
    background-color: #005a8c;
}
/* Default product card background */
.product-grid li.product {
    position: relative;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    overflow: hidden;
	object-fit: contain;
    aspect-ratio: 1 / 1; /* keeps square ratio */
    background-image: url("https://epoxy.rioconn.tech/wp-content/uploads/2025/10/Epoxy-sim-pr-bg.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    transition: background-color 0.3s ease-in-out, background-image 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out !important;
}

/* Hover state → new background image */
.product-grid li.product:hover {
    background-image: url("https://epoxy.rioconn.tech/wp-content/uploads/2025/09/bg-2.webp") !important;
    border: 1px solid #ED0000;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(237 0 0 / 10%);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
    .product-grid li.product img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .product-grid li.product img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr !important;
    }
    .product-grid li.product img {
        height: auto;
    }
}

/* ===========================
   Subcategories Grid
=========================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* 3 columns desktop */
    gap: 30px;
    margin: 30px 0;
}

.category-card {
/*     background: #f9f9f9; */
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #ED0000;
    transform: translateY(-5px);
/*     box-shadow: 0 8px 20px rgba(0,0,0,0.08); */
    box-shadow: 0 8px 20px rgb(237 0 0 / 10%);
}

.category-card img {
    position: relative;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    overflow: hidden;
	object-fit: contain;
	padding: 20px;
    aspect-ratio: 1 / 1; /* keeps square ratio */
    background-image: url("https://epoxy.rioconn.tech/wp-content/uploads/2025/10/Epoxy-sim-pr-bg.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    transition: background-color 0.3s ease-in-out, background-image 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out !important;
}

.category-card:hover img {
    background-image: url("https://epoxy.rioconn.tech/wp-content/uploads/2025/09/bg-2.webp") !important;
/*     border: 1px solid #ED0000; */
  
}

.category-card h3, .category-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0;
    color: #222;
    transition: color 0.3s ease;
}

.category-card:hover h3, .category-card:hover h2 {
    color: #ED0000;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    .category-card img {
        height: auto;
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr !important;
    }
    .category-card img {
        height: auto;
    }
}

/* ===========================
   Reset WooCommerce Product Grid
   (Removes float / width conflicts)
=========================== */

/* Reset UL container */
.product-grid ul.products {
    display: contents !important; /* let parent grid handle layout */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Reset LI product items */
.product-grid ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Reset "first", "last", "nth-child" WooCommerce classes */
.product-grid ul.products li.product.first,
.product-grid ul.products li.product.last {
    margin: 0 !important;
    clear: none !important;
}
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    content: none !important;
    display: initial !important; /* or block/inline depending on layout */
    clear: none !important;
}
.woocommerce ul.products li.product .button{
	display: none !important;
}
/* Reset WooCommerce floats & widths inside custom product grid */
.product-grid ul.products,
.product-grid ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    clear: none !important;
}
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    content: none !important;
    display: initial !important; /* or block/inline depending on layout */
    clear: none !important;
}
