/* Synergy Seeds: WooCommerce, product and utility styles (hand-written, loaded after app.css). */
:root {
	--syn-forest-500: #246B45;
	--syn-forest-800: #173F2A;
	--syn-accent: #D4AA4F;
	--syn-line: #dfe6dc;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: #173F2A; display: block; height: auto;
	left: 8px; top: 8px; padding: 12px 18px; width: auto; z-index: 100000; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ---------- Page titles inside WooCommerce pages ---------- */
.syn-woo .page-title,
.syn-woo .product_title,
.syn-woo .entry-title,
.syn-woo h1.page-title {
	font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: #173F2A; line-height: 1.12;
	font-size: clamp(1.875rem, 1.65rem + 1.25vw, 3rem); margin: 0 0 1.25rem;
}
.syn-woo h2 { color: #173F2A; }
:where(.syn-woo) a { color: inherit; }

/* ---------- Product grid ---------- */
.syn-woo ul.products {
	display: grid; gap: 1.25rem; list-style: none; margin: 0 0 2rem; padding: 0;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 480px) { .syn-woo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .syn-woo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.syn-woo ul.products li.product { margin: 0; width: auto; float: none; }
.syn-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.syn-fallback { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f1f5eb; }
.syn-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.syn-fallback__label { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(23, 63, 42, .86); color: #fff; font-size: .75rem; font-weight: 600; text-align: center; padding: .45rem .5rem; }
.syn-fallback.is-single { max-width: 32rem; margin: 0 auto; border-radius: .75rem; }
.price del { opacity: .55; margin-right: .35rem; }
.price ins { text-decoration: none; }
.woocommerce-Price-amount { font-weight: 700; }

/* ---------- Single product ---------- */
.single-product .syn-woo div.product { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
	.single-product .syn-woo div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
	.single-product .syn-woo div.product > .woocommerce-product-gallery { position: sticky; top: 7rem; }
}
.single-product .syn-woo div.product > .woocommerce-tabs,
.single-product .syn-woo div.product > .related,
.single-product .syn-woo div.product > .up-sells { grid-column: 1 / -1; }
.woocommerce-product-gallery { margin: 0; position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery img { width: 100%; height: auto; display: block; background: #fff; border-radius: .75rem; border: 1px solid var(--syn-line); }
.woocommerce-product-gallery__trigger { position: absolute; z-index: 9; right: .75rem; top: .75rem; background: #fff; border-radius: 999px; width: 2.25rem; height: 2.25rem; text-align: center; line-height: 2.25rem; text-decoration: none; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: "\2922"; font-size: 1rem; }
.single-product .summary .price { display: block; font-size: 1.75rem; color: #173F2A; margin: .5rem 0 1rem; }
.single-product .summary .woocommerce-product-details__short-description { color: #5f6b62; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1.25rem 0; }
.syn-pack-note { margin-top: 1.25rem; padding: 1rem; border-radius: .75rem; background: #f1f5eb; font-size: .9rem; color: #3b4a40; }
.syn-pack-note p { margin: 0 0 .5rem; }
.syn-pack-note a { color: #246B45; font-weight: 600; text-decoration: underline; }
.woocommerce-tabs ul.tabs { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; border-bottom: 1px solid var(--syn-line); }
.woocommerce-tabs ul.tabs li a { display: block; padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.woocommerce-tabs ul.tabs li.active a { color: #246B45; box-shadow: inset 0 -2px 0 #D4AA4F; }
.syn-spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--syn-line); }
.syn-spec-table th, .syn-spec-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--syn-line); vertical-align: top; }
.syn-spec-table th { width: 38%; color: #194A30; font-weight: 600; background: #f7f9f4; }
.syn-spec-badge { display: inline-block; margin: 0 0 .75rem; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.syn-spec-badge.is-ok { background: #eaf5ec; color: #1c4d2a; }
.syn-spec-badge.is-pending { background: #fbf6e9; color: #6b4b00; }
section.related > h2, section.up-sells > h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.75rem; margin: 2rem 0 1.25rem; }

/* ---------- Buttons & inputs ---------- */
.syn-woo .button, .syn-woo button.button, .syn-woo input.button, .syn-woo a.button,
.syn-woo #place_order, .syn-woo .single_add_to_cart_button, .syn-woo .checkout-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
	padding: .6rem 1.4rem; border: 0; border-radius: .5rem; background: #246B45; color: #fff; font-weight: 600;
	font-size: 1rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .2s;
}
.syn-woo .button:hover, .syn-woo #place_order:hover, .syn-woo .single_add_to_cart_button:hover, .syn-woo .checkout-button:hover { background: #1f5c3b; color: #fff; }
.syn-woo .button.disabled, .syn-woo .button:disabled { opacity: .5; cursor: not-allowed; }
.syn-woo #place_order, .syn-woo .checkout-button { width: 100%; background: #D4AA4F; color: #173F2A; font-weight: 700; }
.syn-woo #place_order:hover, .syn-woo .checkout-button:hover { background: #e0be6c; color: #173F2A; }
.syn-woo .added_to_cart { margin-left: .5rem; font-weight: 600; color: #246B45; }
.syn-woo input[type=text], .syn-woo input[type=email], .syn-woo input[type=tel], .syn-woo input[type=number],
.syn-woo input[type=search], .syn-woo input[type=password], .syn-woo input[type=date], .syn-woo select, .syn-woo textarea {
	width: 100%; padding: .7rem .9rem; border: 1px solid #b9c7b6; border-radius: .5rem; background: #fff; font-size: 1rem; color: #202720;
}
.syn-woo input:focus, .syn-woo select:focus, .syn-woo textarea:focus { outline: 2px solid rgba(36,107,69,.35); outline-offset: 1px; border-color: #246B45; }
.quantity .qty { width: 5rem; text-align: center; }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: .6rem; border: 1px solid #ebd49a; background: #fbf6e9; color: #5b4412; display: block;
}
.woocommerce-message { background: #eaf5ec; border-color: #b7dbbf; color: #1c4d2a; }
.woocommerce-error { background: #fdecec; border-color: #f0b4b4; color: #7a1f1f; }
.woocommerce-message .button, .woocommerce-info .button { float: right; margin-left: 1rem; min-height: 2.25rem; padding: .35rem 1rem; }
.woocommerce-error li { margin: 0 0 .25rem; }

/* ---------- Cart ---------- */
.woocommerce-cart-form table.shop_table, .woocommerce-checkout table.shop_table, .woocommerce-order-details table.shop_table {
	width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--syn-line); border-radius: .75rem; overflow: hidden; margin-bottom: 1.5rem;
}
table.shop_table th, table.shop_table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--syn-line); vertical-align: middle; }
table.shop_table thead th { background: #f7f9f4; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5f6b62; }
table.shop_table td.product-thumbnail img { width: 4rem; height: auto; border-radius: .4rem; background: #fff; }
table.shop_table td.product-remove a { color: #b42318; font-size: 1.5rem; text-decoration: none; }
table.shop_table td.actions { text-align: right; }
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals { width: 100%; max-width: 28rem; }
.cart_totals h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; margin: 0 0 .75rem; }
.cart_totals table th { width: 40%; }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.woocommerce-shipping-methods li { margin: 0 0 .35rem; }
.synergy-excl { color: #8a5a00; font-weight: 500; }
.cart-empty { padding: 2rem; text-align: center; background: #fff; border: 1px solid var(--syn-line); border-radius: .75rem; }
@media (max-width: 640px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--syn-line); }
	table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 0; text-align: right !important; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: #5f6b62; text-align: left; }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.actions::before { content: none; }
	.woocommerce-message .button { float: none; display: flex; margin: .6rem 0 0; }
}

/* ---------- Checkout ---------- */
form.checkout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { form.checkout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } }
@media (min-width: 1024px) {
	form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
	form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 7rem; }
}
.woocommerce-checkout .woocommerce-form-coupon-toggle { grid-column: 1 / -1; }
#customer_details .col-1, #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-billing-fields h3, #order_review_heading, .woocommerce-additional-fields h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; color: #173F2A; margin: 0 0 1rem; }
.form-row { margin: 0 0 1rem; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-row .required { color: #b42318; text-decoration: none; }
.form-row-first, .form-row-last { width: 100%; }
@media (min-width: 640px) {
	.form-row-first, .form-row-last { width: calc(50% - .5rem); display: inline-block; vertical-align: top; }
	.form-row-first { margin-right: 1rem; }
}
.woocommerce-invalid input, .woocommerce-invalid select { border-color: #b42318; }
#order_review { background: #fff; border: 1px solid var(--syn-line); border-radius: .9rem; padding: 1.25rem; box-shadow: 0 2px 8px -2px rgba(23,63,42,.08); }
#payment { background: #f7f9f4; border-radius: .6rem; padding: 1rem; }
#payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
#payment .payment_box { background: #fff; border-radius: .5rem; padding: .75rem 1rem; margin-top: .5rem; font-size: .92rem; color: #3b4a40; }
#payment .payment_box p { margin: 0; }
.woocommerce-privacy-policy-text { font-size: .8rem; color: #5f6b62; margin-bottom: 1rem; }
.select2-container .select2-selection--single { height: 2.9rem; border: 1px solid #b9c7b6; border-radius: .5rem; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 2.8rem; padding-left: .9rem; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 2.8rem; }

/* ---------- Order received ---------- */
.woocommerce-order .woocommerce-notice--success { font-size: 1.15rem; font-weight: 700; color: #1c4d2a; margin-bottom: 1rem; }
ul.woocommerce-order-overview { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
ul.woocommerce-order-overview li { background: #fff; border: 1px solid var(--syn-line); border-radius: .6rem; padding: .75rem 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #5f6b62; }
ul.woocommerce-order-overview li strong { display: block; margin-top: .2rem; font-size: 1rem; text-transform: none; letter-spacing: 0; color: #173F2A; }
.woocommerce-order-details h2, .woocommerce-customer-details h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; margin: 1.5rem 0 .75rem; }
.woocommerce-customer-details address { background: #fff; border: 1px solid var(--syn-line); border-radius: .6rem; padding: 1rem; font-style: normal; }

/* ---------- Track order & policies ---------- */
.syn-track p { margin: 0 0 1rem; }
.syn-track label { display: block; font-weight: 600; margin-bottom: .35rem; }
.syn-track input[type=text] { width: 100%; padding: .7rem .9rem; border: 1px solid #b9c7b6; border-radius: .5rem; font-size: 1rem; }
.syn-policy section { margin: 0 0 1.5rem; }
.syn-policy-h { font-family: 'Manrope', sans-serif; font-size: 1.125rem; font-weight: 700; color: #173F2A; margin: 0 0 .6rem; }
.syn-policy p { margin: 0 0 .6rem; line-height: 1.7; }
.syn-policy-list { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.syn-policy-list li { margin: .25rem 0; }
.syn-policy-link { color: #246B45; font-weight: 600; }
.syn-policy-pending { color: #876623; }

/* Grid children may shrink below their content width (long emails / words must wrap, not overflow). */
.container-page .grid > * { min-width: 0; }
