:root {
    --brand-yellow:     #d2aa23;
    --brand-yellow-dark:#c99b1e;   /* slightly darker for hover contrast if needed */
    --brand-dark-green: #1f3e2f;
    --brand-green-dark: #183226;   /* darker variant for pressed/hover states */
    --bg-main:          #bcbeb0;
    --bg-white:         #f5f3f5;
    --gray-light:       #f9fafb;
    --gray-border:      #e5e7eb;
}

/* ──────────────────────────────────────────────────────────────── */
/* Checkout & Cart - Clean white panels */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart-collaterals {
    background: #ffffff !important;
    border: 1px solid var(--gray-border);
    border-radius: 0;               /* Sharp editorial corners */
    padding: 2.5rem;
}

.single_add_to_cart_button {
    width: 100% !important;
}

/* Price styling */
.woocommerce-Price-amount {
    color: var(--brand-dark-green);
    font-weight: 900;
}

/* Force white text for prices in the dark green product grid */
#product-grid .woocommerce-Price-amount {
    color: #ffffff !important;
}

/* ──────────────────────────────────────────────────────────────── */
/* Button styling is now unified in style.css */


/* Quantity input next to button */
.woocommerce .quantity .qty {
    border: 1px solid var(--gray-border) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1rem !important;
    text-align: center !important;
    width: 5rem !important;
    height: 3rem !important;
    font-weight: 600 !important;
    color: var(--brand-dark-green) !important;
}

/* Force the Add to Cart form to be full width */
.woocommerce div.product form.cart,
.woocommerce div.product form.cart.variations_form {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 1.5rem !important;
    float: none !important; /* Remove WC defaults */
}

/* Ensure variations table fills width */
.woocommerce div.product form.cart .variations {
    width: 100% !important;
    display: table !important; /* WC default but forced */
}

.woocommerce div.product form.cart .variations td.value {
    width: 100% !important;
    display: block !important;
}

/* Make Quantity wrapper full width */
.woocommerce div.product form.cart .quantity {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* Make the actual input box full width */
.woocommerce div.product form.cart .quantity .qty {
    width: 100% !important;
    height: 4rem !important;
    font-size: 1.25rem !important;
    border: 1px solid var(--gray-border) !important;
}

/* Ensure the button is truly full width regardless of float */
.woocommerce div.product form.cart .button,
.button-submit-custom {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 1.25rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    cursor: pointer !important;
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark-green) !important;
    border-radius: 0 !important;
    border: none !important;
    text-align: center !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.woocommerce div.product form.cart .button:hover,
.button-submit-custom:hover {
    background-color: var(--brand-dark-green) !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* ──────────────────────────────────────────────────────────────── */
/* Single Product Page - Purchase Box & Buttons */

.woo-custom-button-wrapper form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    float: none !important;
    width: 100% !important;
}

.woo-custom-button-wrapper .quantity {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
}

.woo-custom-button-wrapper .quantity .qty {
    width: 100% !important;
    height: 3.5rem !important;
    border: 1px solid var(--gray-border) !important;
    background: #fcfcfc !important;
    border-radius: 0.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

.woo-custom-button-wrapper button.single_add_to_cart_button {
    width: 100% !important;
    background-color: var(--brand-yellow) !important;
    color: var(--brand-dark-green) !important;
    padding: 1.25rem !important;
    font-size: 0.875rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    border-radius: 0.5rem !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.woo-custom-button-wrapper button.single_add_to_cart_button:hover {
    background-color: var(--brand-dark-green) !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Ensure variations are also styled for the new container */
.woo-custom-button-wrapper .variations {
    width: 100% !important;
    margin-bottom: 1rem !important;
}

.woo-custom-button-wrapper .variations select {
    width: 100% !important;
    border-radius: 0.5rem !important;
    border: 1px solid var(--gray-border) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
}

/* ──────────────────────────────────────────────────────────────── */
/* Cart Table Enhancements */
.woocommerce-cart-form table.shop_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    width: 100% !important;
}

.woocommerce-cart-form table.shop_table thead th {
    background-color: var(--brand-dark-green) !important;
    color: white !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    padding: 1.25rem 1rem !important;
    border: none !important;
    font-size: 0.75rem !important;
}

.woocommerce-cart-form table.shop_table td {
    padding: 1.5rem 1rem !important;
    border-bottom: 1px solid var(--gray-border) !important;
    vertical-align: middle !important;
}

.woocommerce-cart-form table.shop_table .product-name a {
    color: var(--brand-dark-green) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 0.9rem !important;
    letter-spacing: -0.02em !important;
}

.woocommerce-cart-form table.shop_table .product-name a:hover {
    color: var(--brand-yellow) !important;
}

.woocommerce-cart-form table.shop_table .product-remove a {
    color: #ff4444 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

.woocommerce-cart-form table.shop_table .product-remove a:hover {
    color: var(--brand-dark-green) !important;
    background: transparent !important;
}

.woocommerce-cart-form .actions {
    padding-top: 2rem !important;
    background: transparent !important;
}

.woocommerce-cart-form .actions .coupon {
    display: flex !important;
    gap: 1rem !important;
}

.woocommerce-cart-form .actions .coupon input#coupon_code {
    border-radius: 0 !important;
    border: 1px solid var(--gray-border) !important;
    padding: 0.5rem 1rem !important;
    width: 200px !important;
}

/* Cart Collaterals (Totals) */
.cart-collaterals h2 {
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.05em !important;
    margin-bottom: 1.5rem !important;
    color: var(--brand-dark-green) !important;
}

.cart-collaterals .shop_table th {
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    color: var(--brand-dark-green) !important;
}

.cart-collaterals .cart-subtotal td,
.cart-collaterals .order-total td {
    text-align: right !important;
}

.cart-collaterals .order-total .woocommerce-Price-amount {
    font-size: 1.25rem !important;
    color: var(--brand-dark-green) !important;
}

/* ──────────────────────────────────────────────────────────────── */
/* Remove Product Thumbnails (for Digital Products) */
.woocommerce-cart table.cart .product-thumbnail,
.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-checkout .shop_table .product-total + .product-name, /* In case of specific checkout layouts */
.woocommerce-checkout .shop_table thead .product-name,
.woocommerce-checkout .shop_table .cart_item .product-name img {
    display: none !important;
}

/* Ensure the name column takes up appropriate space after removal */
.woocommerce-cart table.cart td.product-name {
    padding-left: 0 !important;
}