/**
 * First Priority Supply Theme - WooCommerce Overrides
 *
 * This file contains custom styles to integrate default WooCommerce output
 * with the theme's design language, ensuring colors, typography, and
 * layouts match the rest of the site.
 */

/* ==================================== */
/* Global WooCommerce Styling */
/* ==================================== */

/* Primary button styling for Add to Cart / Checkout */
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
    background-color: var(--primary, #e63946); /* Use primary color */
    color: var(--light, #f1faee);
    border-radius: 4px;
    padding: 10px 20px;
    transition: background-color 0.2s;
    font-weight: bold;
    text-transform: uppercase;
}

.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--primary-dark, #d62828); /* Use darker color for hover */
}


/* Product Title Styling */
.woocommerce ul.products li.product h2 {
    font-size: 1.2em;
    color: var(--secondary, #1d3557);
}

/* Price Styling */
.woocommerce ul.products li.product .price {
    color: var(--primary, #e63946);
    font-size: 1.1em;
    font-weight: bold;
}

/* Remove default WooCommerce borders and shadows */
.woocommerce ul.products li.product {
    border: 1px solid var(--border, #dee2e6);
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: none;
    transition: box-shadow 0.2s;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ==================================== */
/* Single Product Page */
/* ==================================== */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 2px solid var(--accent, #457b9d);
}

/* ==================================== */
/* Cart and Checkout */
/* ==================================== */
.woocommerce-cart-form__contents,
.woocommerce-checkout {
    /* Ensure tables and forms fit the theme's container style */
    padding: 20px;
}


/* Add ALL your custom WooCommerce styles ABOVE this line */