/* WooCommerce ca în Astra pe site-ul vechi: butoane, câmpuri, notificări, coș, checkout, cont.
   Doar pe paginile Woo (functions.php). Prefixul body bate specificitatea din woocommerce.css. */

:root { --wc-form-border-color: #ddd; --wc-form-border-radius: 0; --wc-form-color-text: #666; }

/* Butoane */
body .woocommerce a.button, body .woocommerce button.button, body .woocommerce input.button,
body .woocommerce a.button.alt, body .woocommerce button.button.alt, body .woocommerce input.button.alt,
body .woocommerce #payment #place_order {
	padding: 15px 40px; border: 0; border-radius: 4px; background-color: #da2128; color: #fff;
	font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1em; text-transform: uppercase;
}
body .woocommerce a.button:hover, body .woocommerce button.button:hover, body .woocommerce input.button:hover,
body .woocommerce a.button.alt:hover, body .woocommerce button.button.alt:hover, body .woocommerce input.button.alt:hover,
body .woocommerce #payment #place_order:hover { background-color: #030303; color: #fff; }
body .woocommerce button.button:disabled[disabled] { padding: .618em 1em; background-color: #da2128; color: #fff; }
body .woocommerce .wc-proceed-to-checkout a.checkout-button { padding: 1.1em; font-size: 1.1em; line-height: 1.8; }

/* Câmpuri */
body .woocommerce form .form-row label { font-size: .9em; font-weight: 700; line-height: 2; }
body .woocommerce form .form-row .input-text, body .woocommerce #coupon_code { padding: .75em; line-height: 1; }
body .woocommerce form .form-row textarea.input-text { line-height: 1.5; }
body .woocommerce .select2-container .select2-selection--single { height: auto; padding: .5em 2em .5em .8em; border-color: #ddd; border-radius: 3px; }
body .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: normal; }

/* Notificări */
body .woocommerce-info, body .woocommerce-message { border-top-color: #da2128; background-color: #f7f6f7; }
body .woocommerce-info::before, body .woocommerce-message::before { color: #da2128; }

/* Tabele (fără striping/borduri din reset-ul Hello) */
body .woocommerce table.shop_table { border-color: #ddd; border-radius: 0; margin-bottom: 2em; font-size: 1rem; }
body .woocommerce table.shop_table :is(th, td) { padding: .7em 1em; border: 0; border-top: 1px solid #ddd; background: none; line-height: inherit; }
body .woocommerce table.shop_table thead th { border-top: 0; font-weight: 500; }
body .woocommerce-cart-form table.shop_table thead { background: #fbfbfb; }
body .woocommerce table.shop_table td.product-name { font-weight: 500; }
body .woocommerce table.cart img { width: 70px; vertical-align: middle; }
body .woocommerce table.cart td.actions .coupon { display: flex; }
body .woocommerce table.cart td.actions .coupon #coupon_code { width: auto; flex: 1; padding: .5em .75em; }
body .woocommerce table.cart td.actions .button { margin-left: 5px; }

/* Totaluri coș */
body .woocommerce .cart-collaterals .cart_totals { padding: 0 20px; margin-bottom: 2em; border: 1px solid #ddd; }
body .woocommerce .cart_totals h2 { margin: 0 -20px 20px; padding: .7em 1em; border-bottom: 1px solid #ddd; background: #fbfbfb; font-size: 1.2em; font-weight: 700; line-height: 1.3; }
body .woocommerce .cart_totals table.shop_table { border: 0; border-bottom: 1px solid #ddd; }
body .woocommerce .cart_totals table.shop_table tr:first-child :is(th, td) { border-top: 0; }

/* Checkout: facturare stânga, comanda în chenar dreapta */
body .woocommerce-checkout :is(.woocommerce-billing-fields, .woocommerce-additional-fields) > h3 {
	padding: 20px 0 14px; border-bottom: 1px solid #ddd; font-size: 1.2em; font-weight: 700; line-height: 1.3;
}
body .woocommerce-checkout #order_review_heading { margin: 0; padding: 1.8em 1.8em 1.2em; border: 2px solid #ddd; border-bottom: 0; font-size: 1.2em; font-weight: 700; line-height: 1.3; }
body .woocommerce-checkout #order_review { padding: 0 2em; border: 2px solid #ddd; border-top: 0; }
body .woocommerce-checkout table.woocommerce-checkout-review-order-table { border: 0; }
body .woocommerce-checkout table.woocommerce-checkout-review-order-table :is(th, td) { padding: 1em .857em 1em 0; border: 0; border-bottom: 1px solid #ddd; vertical-align: middle; }
body .woocommerce-checkout #payment { background: none; border-radius: 0; }
body form.checkout::after { content: ''; display: table; clear: both; }
@media (min-width: 922px) {
	body .woocommerce-checkout #customer_details { float: left; width: 55%; margin-right: 4.347826087%; }
	body .woocommerce-checkout #customer_details :is(.col-1, .col-2) { float: none; width: 100%; }
	body .woocommerce-checkout :is(#order_review_heading, #order_review) { float: right; clear: right; width: 40%; }
}

/* Cont: autentificare / înregistrare */
body .woocommerce #customer_login h2 { margin-bottom: .7em; text-transform: none; }
body .woocommerce form:is(.login, .register) { border-color: #ddd; }

/* Notificările primesc focus la afișare (accesibilitate); fără chenarul de focus, ca pe site-ul vechi. */
body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus { outline: none; }

/* Variații (ex. Grand Prix Experience), ca în Astra: eticheta deasupra, select alb, „Anulează” dedesubt.
   Aceiași selectori ca în woocommerce.css; woo.css se încarcă după. */
.woocommerce div.product form.cart table.variations { border-collapse: separate; border: 0; border-bottom: 1px solid #ddd; margin-bottom: 1em; font-size: 1rem; }
.woocommerce div.product form.cart table.variations :is(th, td) { display: block; padding: 0; border: 0; background: none; line-height: 2; text-align: left; }
.woocommerce div.product form.cart table.variations th { margin-bottom: .5em; font-weight: 600; }
.woocommerce div.product form.cart table.variations label { display: inline; font-size: inherit; line-height: inherit; }
.woocommerce div.product form.cart .variations select { width: 100%; margin: 0; padding: .5em; border: 1px solid #ddd; border-radius: 0; background: #fff; color: #666; line-height: normal; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; font-size: .75em; color: #030303; text-transform: uppercase; }
.woocommerce div.product form.cart .woocommerce-variation { margin-bottom: 1.2em; }
body .woocommerce form.login .woocommerce-form-login__rememberme { display: block; }
