/* =========================================================
   WOOCOMMERCE — adattamenti specifici del tema Astro
   ========================================================= */

/* ---------- Prodotto variabile: form Woo dietro il selettore custom ---------- */

.shop_product_content form.variations_form { display: block; }

.shop_product_content .variations {
	display: none !important;
}

.shop_product_content .woocommerce-variation-price,
.shop_product_content .woocommerce-variation-availability,
.shop_product_content .woocommerce-variation-description {
	display: none;
}

.shop_product_content .single_add_to_cart_button {
	background: var(--primary);
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 14px;
	font-weight: 700;
	cursor: pointer;
	font-size: 16px;
	width: 100%;
}

.shop_product_content .single_add_to_cart_button:hover { background: #bc0010; }
.shop_product_content .single_add_to_cart_button:disabled { opacity: .6; cursor: not-allowed; }

.shop_product_content .woocommerce-variation.single_variation { display: none; }

/* Campo quantità nascosto per i variabili (gestito da Woo) */
.shop_product_content form.cart div.quantity { display: none; }

/* ---------- Pagina prodotto: contenuto Woo nativi ---------- */

.shop_product_content .shop_product_description img { border-radius: 12px; }
.shop_product_content .shop_product_description h2, .shop_product_content .shop_product_description h3 { font-size: 20px; line-height: 1.3; }

/* ---------- Shop archivio ---------- */

.woocommerce-products-header { display: none; }

.woocommerce-notices-wrapper { max-width: 1600px; }

.woocommerce-no-products-found .shop_empty { margin-top: 10px; }

/* ---------- Carrello: form Woo interno ---------- */

.woocommerce-cart .woocommerce-message, .woocommerce-checkout .woocommerce-message {
	max-width: 1280px;
	margin: 140px auto -40px;
}

/* ---------- Checkout ---------- */

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-checkout-review-order-table { color: #191919; }

.woocommerce-checkout .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td { padding: 8px 6px; text-align: left; border-bottom: 1px solid #ececec; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th { font-weight: 700; border-bottom: 0; }
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td { font-weight: 700; font-size: 17px; }

.woocommerce-checkout #payment { border-top: 0; }

.woocommerce-checkout .payment_method_stripe, .woocommerce-checkout .payment_method_paypal { display: list-item; }

/* ---------- Thank you / ordine ricevuto ---------- */

.woocommerce-order-received .woocommerce-thankyou-order-received {
	font-family: var(--font-heading);
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.3;
	margin: 0 0 18px;
}

.woocommerce-order-received .woocommerce-order-details {
	background: #fff;
	border-radius: 18px;
	padding: 24px;
	color: #191919;
	margin-top: 24px;
}

.woocommerce-order-received .woocommerce-order-details__title { font-size: 26px; margin: 0 0 14px; }

.woocommerce-order-received .woocommerce-table--order-details { width: 100%; border-collapse: collapse; }
.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td { padding: 8px 6px; border-bottom: 1px solid #ececec; text-align: left; }

.woocommerce-order-received .woocommerce-customer-details { margin-top: 18px; }
.woocommerce-order-received .woocommerce-customer-details address { font-style: normal; background: #f6f6f6; border-radius: 12px; padding: 14px; }

.woocommerce-order-received .woocommerce-order-details .woocommerce-Price-amount { font-weight: 700; }

/* ---------- My account ---------- */

.woocommerce-account-page h2 { font-size: 30px; }

.woocommerce-account .woocommerce-form-row label { display: grid; gap: 5px; font-size: 14px; }
.woocommerce-account .woocommerce-form-row input { padding: 10px; border: 1px solid #dadada; border-radius: 8px; }

/* ---------- Select2 dark-safe ---------- */

.select2-container .select2-selection--single { background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #555 transparent transparent transparent; }

/* ---------- Notifiche sidecart ---------- */

.woocommerce-store-notice { display: none; }
