/*
 * .product_cat-books .price {
    display: none;
}
*/
.infinite-scroll .woocommerce-pagination {
    display: block !important; /* Ensure pagination is displayed */
    text-align: center;        /* Center the pagination */
    margin: 20px 0;           /* Add margin for spacing */
}

.infinite-scroll .woocommerce-pagination a {
    margin: 0 5px;           /* Add space between pagination links */
}


.woocommerce ul.products li.product img {
    width: 100% !important; 
    height: 300px !important; 
    object-fit: contain !important; /* Prevents excessive zooming */
    background-color: #f9f9f9; /* Optional: Adds a background if images have transparency */
    padding: 5px; /* Optional: Adds some spacing around images */
}


.woocommerce ul.products li.product {
    text-align: center !important; 
}

/* Apply uniform styling to all product list items */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    display: block;
    margin: 10px;
    padding: 15px;
    background-color: #fff; /* White background */
    border: 1px solid #e1e1e1; /* Light border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow */
    transition: all 0.3s ease; /* Smooth transition on hover */
}

/* Add hover effect */
.woocommerce ul.products li.product:hover, 
.woocommerce-page ul.products li.product:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
}

/* Optional: Ensure consistent image size */
.woocommerce ul.products li.product img, 
.woocommerce-page ul.products li.product img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #e1e1e1; /* Border below image */
    margin-bottom: 10px; /* Space below image */
}

/* Styling for product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title, 
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Dark color for title */
    margin-bottom: 8px;
}

/* Styling for product price */
.woocommerce ul.products li.product .price, 
.woocommerce-page ul.products li.product .price {
    font-size: 14px;
    font-weight: bold;
    
    margin-bottom: 10px;
}

/* Optional: Customize the button styling */
.woocommerce ul.products li.product .button, 
.woocommerce-page ul.products li.product .button {
  
    color: #fff; /* White text */
    padding: 10px 15px;
    text-align: center;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.woocommerce ul.products li.product .button:hover, 
.woocommerce-page ul.products li.product .button:hover {
    background-color: #b4161b; /* Darker button color on hover */
}


.woocommerce ul.products, 
.woocommerce-page ul.products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Ensures all items in a row are the same height */
}

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 calc(auto); /* Adjust based on your grid layout */
   
    box-sizing: border-box;
}
