/*
Theme Name:   shoptimizer-child
Author:       Rahul Dhamecha
Template:     shoptimizer
Version:      1.0
Text Domain:  shoptimizer-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

/* Import parent styles if necessary */
@import url("../shoptimizer/style.css");



.product-details-wrapper {
    max-width: 100% !important;
}

.woocommerce-product-gallery {
    width: 36% !important;
}

.summary.entry-summary {
    width: 62% !important;
}

.site-header .col-full {
    max-width: 100% !important;
}

.site-header .custom-logo-link img{
	height: 70px !important;
}


.site-header{
	z-index: 1 !important;
}

.variation-modal{
	z-index:10 !important;
}

.remove_index{
	z-index:5 !important;
}

.um-page-login .content-area,
.um-page-register .content-area{
	width: 100% !important;
}


@media (max-width:992px){
	.summary.entry-summary {
		width: 100% !important;
	}

	.woocommerce-product-gallery {
		width: 100% !important;
	}
}

@media (min-width: 993px) {
    .tax-product_cat .content-area {
        width: 82%;
    }
}


/* Shop Page Design */
/* Container and grid */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Product card */
ul.products li.product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width:auto !important;
    text-align:center;
    height:auto;
}

ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Image wrapper */
.woocommerce-image__wrapper {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-image__wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

ul.products li.product:hover .woocommerce-image__wrapper img {
    transform: scale(1.05);
}

/* Card content */
.woocommerce-card__header {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

/* Categories */
.product__categories a {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    margin-bottom: 5px;
    display: inline-block;
}

.product__categories a:hover {
    color: #0071a1;
}

/* Product title */
.woocommerce-loop-product__title a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 10px;
    display: block;
    height: 45px; /* fixed height to keep cards uniform */
    overflow: hidden;
}

.woocommerce-loop-product__title a:hover {
    color: #0071a1;
}

/* Price styling */
.price {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

/* Add to cart button */
.add_to_cart_button {
    background-color: #0071a1;
    color: #fff;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    display: block;
}

.add_to_cart_button:hover {
    background-color: #005f7f;
    transform: translateY(-2px);
}

/* Screen reader text hidden */
.screen-reader-text {
    display: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    ul.products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
    }

    .woocommerce-loop-product__title a {
        height: auto;
    }
}


ul.products li.product .added_to_cart, ul.products li.product .button{
    left:10px;
    bottom:10px;
    width: calc(100% - 20px);
    opacity:1;
    background:#d87216 !important;
    
}

ul.products li.product p.product__categories {
    background-color:#000;
    height:auto;
    vertical-align:middle;
    line-height:25px;
    height:25px;
    color:#fff !important;
    margin-bottom:8px;
}

ul.products li.product p.product__categories a{
    color:#fff !important;
}

a.mmwp-login-to-see-wholesale-prices {
    background-color: #cc0000;
    color: #fff;
    position: absolute;
    padding:4px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px) !important;
    border-radius:5px;
    text-transform:uppercase;
    display:none;
}

ul.products li.product p.product__categories{
    display:none !important;
}

/* Shop Page Design */