/*
 Theme Name:   Neve Child
 Template:     neve
 Version:      1.0.0
*/

/* Consistent Add to Cart Button Styling */
.add_to_cart_button,
.product_type_simple .button,
.cart-link {
    background: #6a1b9a; /* purple tone */
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.add_to_cart_button:hover,
.product_type_simple .button:hover,
.cart-link:hover {
    background: #4a148c;
    color: #fff !important;
}

/* Product grid: equal height cards */
ul.products {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* force equal height rows */
}

ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 0 22%; /* ~4 per row */
    margin: 1%;
    box-sizing: border-box;
}

/* Enforce minimum image height for consistency */
ul.products li.product img {
    min-height: 250px;   /* adjust as needed */
    object-fit: contain; /* keep aspect ratio */
    display: block;
    margin: 0 auto;
}

/* Title and price aligned consistently */
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .price {
    margin: 8px 0;
    text-align: center;
    flex: 0 0 auto;
}

/* Button locked to bottom */
ul.products li.product .button {
    margin-top: auto;
    align-self: center;
}
