/* =========================================================================
 * CatalogoSorriso — Site-wide green theme tokens.
 * NOT scoped to body.cs-classic on purpose: applies everywhere including
 * single product pages where cs-classic body class is intentionally skipped.
 *
 * Palette (mirror of cs-header.css :root tokens):
 *   --cs-green:        #42ac52
 *   --cs-green-dark:   #008833
 *   --cs-green-darker: #138125
 *   --cs-green-light:  #69d381
 *   --cs-green-gradient:        linear-gradient(to bottom, #69d381 0%, #43b155 100%)
 *   --cs-green-gradient-hover:  linear-gradient(to bottom, #43b155 0%, #138125 100%)
 * ========================================================================= */

/* ===== Primary CTAs (add to cart, submit, alt buttons) ===== */
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce .button.single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
.woocommerce a.added_to_cart,
.woocommerce-page button.button.alt,
.woocommerce-page a.button.alt,
.woocommerce .checkout-button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
	background: linear-gradient(to bottom, #69d381 0%, #43b155 100%) !important;
	background-color: #43b155 !important;
	border: 1px solid #008833 !important;
	color: #fff !important;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce .button.single_add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
.woocommerce a.added_to_cart:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page a.button.alt:hover,
.woocommerce .checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background: linear-gradient(to bottom, #43b155 0%, #138125 100%) !important;
	background-color: #138125 !important;
	border-color: #138125 !important;
	color: #fff !important;
}

/* ===== Secondary buttons (cart update, place order, etc.) ===== */
.woocommerce button.button:not(.alt),
.woocommerce a.button:not(.alt),
.woocommerce input.button:not(.alt) {
	color: #fff !important;
}

/* ===== Price color (single product + cart + loop) ===== */
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.woocommerce-cart .cart-subtotal .woocommerce-Price-amount,
.woocommerce-cart .order-total .woocommerce-Price-amount {
	color: #008833 !important;
}

/* Strikethrough old price stays neutral */
.woocommerce del .woocommerce-Price-amount,
.woocommerce .price del {
	color: #999 !important;
}

/* ===== Sale badge ===== */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page span.onsale {
	background: #008833 !important;
	color: #fff !important;
	border-color: #008833 !important;
}

/* ===== Active links (within product content + tabs) ===== */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-MyAccount-navigation li.is-active a {
	color: #008833 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-color: #008833 !important;
}

/* ===== Stars rating color (review stars + product cards) ===== */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before,
.woocommerce p.stars a:hover ~ a::before {
	color: #008833 !important;
}

/* ===== Form input focus rings (single product variations, comment form) ===== */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-page form .form-row input.input-text:focus,
.woocommerce-page form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: #008833 !important;
	outline: none;
}

/* ===== Quantity selector buttons (Shoptimizer custom +/-) ===== */
.shoptimizer-qty-button,
.shoptimizer-qty-plus,
.shoptimizer-qty-minus,
.quantity .plus,
.quantity .minus {
	color: #008833 !important;
}

/* ===== Stock status text "In stock" / "On backorder" ===== */
.woocommerce div.product p.stock.in-stock,
.woocommerce div.product .stock.in-stock,
.woocommerce div.product .stock.available-on-backorder {
	color: #008833 !important;
}

/* ===== Cart drawer accents ===== */
#shoptimizerCartDrawer .checkout-button,
#shoptimizerCartDrawer .button.wc-forward,
#shoptimizerCartDrawer .button.checkout {
	background: linear-gradient(to bottom, #69d381 0%, #43b155 100%) !important;
	border-color: #008833 !important;
	color: #fff !important;
}

#shoptimizerCartDrawer .woocommerce-mini-cart__total .woocommerce-Price-amount,
#shoptimizerCartDrawer .total .woocommerce-Price-amount {
	color: #008833 !important;
}

/* ===== Notices (success / info bars on cart, checkout) — neutral light bg + green accent ===== */
.woocommerce-message,
.woocommerce-info {
	border-top-color: #008833 !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: #008833 !important;
}
