/* ============================================================
   Areco – WooCommerce overrides
   Loaded on: shop, product, cart, checkout, my-account pages
   ============================================================ */

/* ---- General ---- */
.woocommerce,
.woocommerce-page {
    font-size: 1rem;
}

/* Hide sale badges site-wide */
.onsale {
    display: none !important;
}

/* Featured category block title padding */
.wc-block-featured-category__title {
    padding: 0 20px 16px;
}

/* ---- Buttons ---- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border-radius: 3px;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    background-color: var(--theme-palette-color-1, #00aeef);
    color: #fff;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--theme-palette-color-2, #0090c8);
}

/* ---- Product grid ---- */
.woocommerce ul.products li.product .price {
    color: var(--theme-palette-color-1, #00aeef);
    font-weight: 600;
}

.woocommerce ul.products li.product img {
    border-radius: 4px;
}

/* ---- Single product ---- */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--theme-palette-color-1, #00aeef);
}

/* ---- Cart table ---- */
.woocommerce table.cart td,
.woocommerce table.cart th {
    padding: 12px 8px;
    vertical-align: middle;
}

.woocommerce table.cart td.product-thumbnail img {
    max-width: 80px;
    border-radius: 3px;
}

.woocommerce table.cart input[type="number"] {
    max-width: 70px;
}

/* Cart totals */
.woocommerce .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}

/* ---- Checkout ---- */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout #order_review_heading {
    font-size: 1.15rem;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: var(--theme-palette-color-1, #00aeef);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.15);
}

/* Readonly billing email (set via functions.php) */
#billing_email[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

/* Order review table */
.woocommerce-checkout-review-order table.shop_table {
    border-collapse: collapse;
    width: 100%;
}

.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e5e5;
}

/* ---- Order confirmation / thank-you ---- */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-size: 1.1rem;
    color: #2a8a3e;
}

.woocommerce ul.order_details li {
    border-right: 1px solid #e5e5e5;
    padding-right: 1em;
    margin-right: 1em;
}

/* ---- My Account ---- */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 8px 12px;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--theme-palette-color-1, #00aeef);
    color: #fff;
}

/* ---- Notices ---- */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--theme-palette-color-1, #00aeef);
}

.woocommerce-error {
    border-top-color: #c0392b;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .woocommerce table.cart td.product-remove,
    .woocommerce table.cart td.product-thumbnail {
        display: none;
    }

    .woocommerce .cart-collaterals .cart_totals {
        max-width: 100%;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100%;
        float: none;
    }
}
