/*
 * WooCommerce dark-theme pass (round 8). Loaded sitewide after base.css.
 *
 *   A. Archives: shop (Elementor 1611), categories and flavor families (1609)
 *   B. Single product (Woostify templates)
 *   C. Cart
 *   D. My Account
 *   E. Notices, validation
 *
 * Product cards (ul.products li.product) follow the homepage flavor grid (.tv-prod in flavor-grid.css).
 */

/* =================================================================
 * A. Archives
 * =============================================================== */

/* Page title (theme-archive-title widget, class tv-archive-title): display font, bone. */
html body .tv-archive-title .elementor-heading-title {
	margin: 0;
	padding: 56px 0 8px;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: clamp(44px, 6vw, 92px);
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: var(--lh-display);
	text-align: center;
	text-transform: uppercase;
}

/* Toolbar: result count + sorting. */
html body .woocommerce-result-count {
	color: var(--mute);
	font-family: var(--mono);
	font-size: var(--fs-label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

html body .woocommerce-ordering select.orderby,
html body select.orderby {
	min-height: 44px;
	padding: 10px 40px 10px 14px;
	border: var(--border-w, 1px) solid var(--line);
	border-radius: 0;
	background-color: var(--panel);
	background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-repeat: no-repeat;
	background-size: 6px 6px, 6px 6px;
	color: var(--bone);
	font-family: var(--body);
	font-size: var(--fs-small);
	-webkit-appearance: none;
	appearance: none;
}

html body select.orderby option {
	background: var(--panel);
	color: var(--bone);
}

/* Product grid. */
html body ul.products {
	gap: 20px;
}

html body ul.products li.product {
	display: flex;
	flex-direction: column;
	margin-bottom: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--panel);
	box-shadow: none;
	transition: transform 0.25s, border-color 0.25s;
}

html body ul.products li.product:hover,
html body ul.products li.product:focus-within {
	border-color: var(--gold);
	transform: translateY(-6px);
}

html body ul.products li.product .product-loop-wrapper {
	display: flex;
	flex: 1;
	flex-direction: column;
	height: 100%;
}

html body ul.products li.product .product-loop-image-wrapper {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 0;
	background: radial-gradient(circle at 50% 38%, rgba(225, 6, 0, 0.18), transparent 62%), #0c0c0d;
}

html body ul.products li.product .product-loop-image-wrapper img {
	border-radius: 0;
	transition: transform 0.35s;
}

html body ul.products li.product:hover .product-loop-image-wrapper img {
	transform: scale(1.03);
}

html body ul.products li.product .product-loop-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
	text-align: left;
}

/* Line label (inc/woo-tweaks.php), gold mono like the flavor grid. */
html body ul.products li.product .woocommerce-loop-product__category,
html body ul.products li.product .woocommerce-loop-product__category a {
	margin: 0;
	color: var(--gold);
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.18em;
	line-height: 1.5;
	text-decoration: none;
	text-transform: uppercase;
}

html body ul.products li.product .woocommerce-loop-product__title,
html body ul.products li.product .woocommerce-loop-product__title a {
	margin: 0;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: 1.05;
	text-decoration: none;
	text-transform: uppercase;
}

html body ul.products li.product .woocommerce-loop-product__title a:hover {
	color: var(--gold-soft);
}

/* Price + button row at the bottom of the card. */
html body ul.products li.product .product-loop-meta {
	margin-top: auto;
	padding-top: 12px;
}

html body ul.products li.product .product-loop-meta .animated-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

html body ul.products li.product .price,
html body ul.products li.product .price .amount {
	margin: 0;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: var(--fw-regular);
	line-height: 1;
}

html body ul.products li.product .price del,
html body ul.products li.product .price del .amount {
	font-size: 16px;
}

html body ul.products li.product .product-loop-meta .price {
	display: inline-block;
	width: auto;
	text-align: left;
}

/* Add to cart: bone, square (flavor grid .tv-prod__add). */
html body ul.products li.product .button,
html body ul.products li.product .product-loop-meta .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-radius: 0;
	background: var(--bone);
	color: var(--ink);
	clip-path: none;
	font-family: var(--body);
	font-size: var(--fs-label);
	font-weight: var(--fw-black);
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

html body ul.products li.product .button svg,
html body ul.products li.product .button .woostify-svg-icon {
	color: currentColor;
	fill: currentColor;
}

html body ul.products li.product .button:hover {
	background: var(--red-hover);
	color: var(--white);
}

html body ul.products li.product .button.added {
	background: var(--gold);
	color: var(--ink);
}

html body ul.products li.product .added_to_cart {
	color: var(--gold);
	font-size: var(--fs-label);
	font-weight: var(--fw-bold);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Out of stock: a "Read more" link replaces the button. */
html body ul.products li.product.outofstock .button {
	background: transparent;
	color: var(--bone);
	box-shadow: inset 0 0 0 2px var(--line);
}

/* Sale tag: square, white on red (4.97:1). */
html body .woostify-tag-on-sale,
html body ul.products li.product .onsale {
	top: 12px;
	left: 12px;
	min-width: 0;
	min-height: 0;
	padding: 5px 9px;
	border-radius: 0;
	background: var(--red);
	color: var(--on-red);
	font-family: var(--mono);
	font-size: var(--fs-micro);
	font-weight: var(--fw-bold);
	letter-spacing: 0.1em;
	line-height: 1.2;
}

html body .woostify-out-of-stock-label,
html body .woostify-tag-out-of-stock {
	border-radius: 0;
	background: var(--line);
	color: var(--bone);
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Star ratings in loops (shown once the Additional CSS rule is gone). */
html body .star-rating {
	color: var(--gold);
}

html body .star-rating::before {
	color: #5c5852;
	opacity: 1;
}

html body .star-rating span::before {
	color: var(--gold);
}

/* Pagination. */
html body .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 48px 0 0;
	border: 0;
}

html body .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

html body .woocommerce-pagination ul.page-numbers li .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--panel);
	color: var(--bone);
	font-family: var(--mono);
	font-size: var(--fs-small);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

html body .woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold);
}

html body .woocommerce-pagination ul.page-numbers li .page-numbers.current {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--ink);
}

html body .woocommerce-pagination ul.page-numbers li .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--mute);
}

/* Archive SEO text and category description. */
html body .tv-archive-copy,
html body .tv-archive-copy p,
html body .tv-archive-copy li {
	color: var(--lede);
	font-size: var(--fs-body);
	line-height: 1.7;
}

html body .tv-archive-copy {
	max-width: 860px;
	margin: 64px auto 0;
	padding: 0 var(--gutter, 20px);
}

html body .tv-archive-copy h1,
html body .tv-archive-copy h2,
html body .tv-archive-copy h3,
html body .tv-archive-copy h4 {
	color: var(--bone);
	font-family: var(--font-display);
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: 1.05;
	text-transform: uppercase;
}

html body .tv-archive-copy a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 560px) {
	html body .tv-archive-title .elementor-heading-title {
		padding-top: 36px;
	}

	html body ul.products {
		gap: 12px;
	}

	html body ul.products li.product .product-loop-content {
		padding: 14px 12px 14px;
	}

	html body ul.products li.product .woocommerce-loop-product__title,
	html body ul.products li.product .woocommerce-loop-product__title a {
		font-size: 16px;
	}

	html body ul.products li.product .price,
	html body ul.products li.product .price .amount {
		font-size: 22px;
	}

	html body .woocommerce-ordering select.orderby {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body ul.products li.product,
	html body ul.products li.product .product-loop-image-wrapper img {
		transition: none;
	}

	html body ul.products li.product:hover,
	html body ul.products li.product:focus-within,
	html body ul.products li.product:hover .product-loop-image-wrapper img {
		transform: none;
	}
}

/* =================================================================
 * B. Single product (Woostify templates)
 * =============================================================== */

/* Product line + flavor family labels above the title (inc/woo-tweaks.php). */
html body .tv-product-labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

html body .tv-product-labels li {
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .tv-product-labels li::before,
html body .tv-product-labels li::marker {
	content: none;
}

html body a.tv-label {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--bone);
	font-family: var(--mono);
	font-size: var(--fs-micro);
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

html body a.tv-label--line {
	border-color: var(--gold);
	color: var(--gold);
}

html body a.tv-label:hover {
	border-color: var(--bone);
	color: var(--bone);
}

/* Title: display heading. */
html body.single-product .summary .product_title,
html body.single-product .product_title.entry-title {
	margin: 0 0 14px;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: clamp(36px, 4.2vw, 64px);
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: 0.95;
	text-transform: uppercase;
}

/* Some products wrap the title in a link; keep it bone, not link gold. */
html body.single-product .product_title a {
	color: inherit;
	text-decoration: none;
}

html body.single-product .summary > .price,
html body.single-product .summary > .price .amount {
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: var(--fw-regular);
	line-height: 1;
}

/* Headings inside product copy: scaled down from the page heading sizes. */
html body.single-product .woocommerce-product-details__short-description h1,
html body.single-product .woocommerce-Tabs-panel h1,
html body.single-product .woocommerce-product-details__short-description h2,
html body.single-product .woocommerce-Tabs-panel h2 {
	margin: 28px 0 12px;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: 1;
	text-transform: uppercase;
}

html body.single-product .woocommerce-product-details__short-description h3,
html body.single-product .woocommerce-Tabs-panel h3,
html body.single-product .woocommerce-product-details__short-description h4,
html body.single-product .woocommerce-Tabs-panel h4 {
	margin: 22px 0 10px;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: 1.05;
	text-transform: uppercase;
}

html body.single-product .woocommerce-product-details__short-description,
html body.single-product .woocommerce-Tabs-panel {
	color: var(--lede);
	line-height: 1.7;
}

html body.single-product .woocommerce-product-details__short-description strong,
html body.single-product .woocommerce-Tabs-panel strong {
	color: var(--bone);
}

/* Stock status. */
html body .stock.in-stock {
	color: var(--gold);
	font-weight: var(--fw-bold);
}

/* #ff4a44 on canvas: 5.6:1 (red text at body size would be 3.91:1). */
html body .stock.out-of-stock,
html body .stock.available-on-backorder {
	color: #ff4a44;
	font-weight: var(--fw-bold);
}

/* Gallery. */
html body.single-product .product-gallery .product-images,
html body.single-product .product-thumbnail-images .thumbnail-item {
	border-radius: 0;
}

html body.single-product .product-thumbnail-images .thumbnail-item {
	border: 1px solid var(--line);
}

html body.single-product .product-thumbnail-images .thumbnail-item.is-selected,
html body.single-product .product-thumbnail-images .thumbnail-item:hover {
	border-color: var(--gold);
}

html body.single-product .photoswipe-toggle-button,
html body.single-product .product-images .zoom-button {
	border-radius: 0;
	background: var(--panel);
	color: var(--bone);
}

/* Variation radio buttons (WPC Variations Radio Buttons, "woovr"). */
html body .woovr-variations {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

html body .woovr-variation {
	align-items: center;
	padding: 12px 14px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--bone);
	cursor: pointer;
}

html body .woovr-variation:hover,
html body .woovr-variation.woovr-variation-active,
html body .woovr-variation:has(input:checked) {
	border-color: var(--gold);
}

html body .woovr-variation input[type="radio"] {
	accent-color: var(--gold);
	width: 18px;
	height: 18px;
}

html body .woovr-variation-name {
	color: var(--bone);
	font-weight: var(--fw-bold);
}

html body .woovr-variation-description,
html body .woovr-variation-availability {
	color: var(--lede);
}

/* Back In Stock Notifier form: dark panel instead of the plugin's blue box. */
html body .cwginstock-subscribe-form .panel,
html body .cwginstock-panel-primary {
	margin: 12px 0;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--panel);
	box-shadow: none;
}

/* Bootstrap (loaded by the plugin) sets ".cwginstock-subscribe-form .panel-primary > .panel-heading" blue. */
html body .cwginstock-subscribe-form .panel-primary > .panel-heading,
html body .cwginstock-panel-heading,
html body .cwginstock-subscribe-form .panel-heading {
	background-color: transparent;
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--bone);
}

html body .cwginstock-panel-heading h4,
html body .cwginstock-subscribe-form .panel-heading h4 {
	margin: 0;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	text-transform: uppercase;
}

html body .cwginstock-panel-body {
	padding: 16px 18px 18px;
	background: transparent;
	color: var(--bone);
}

html body .cwginstock-subscribe-form input[type="text"],
html body .cwginstock-subscribe-form input[type="email"],
html body .cwginstock-subscribe-form input.cwgstock_name,
html body .cwginstock-subscribe-form input.cwgstock_email {
	width: 100%;
	min-height: 44px;
	margin: 0 0 10px;
	border: var(--border-w, 1px) solid var(--line);
	border-radius: 0;
	background: var(--canvas);
	color: var(--bone);
	text-align: left;
}

html body .cwginstock-subscribe-form .cwgstock_button {
	width: 100%;
	min-height: 44px;
	border: 0;
	border-radius: 0;
	background: var(--red);
	color: var(--on-red);
	font-size: var(--fs-small);
	font-weight: var(--fw-black);
	letter-spacing: var(--ls-button);
	text-transform: uppercase;
}

html body .cwginstock-subscribe-form .cwgstock_button:hover {
	background: var(--red-hover);
}

html body .cwgstock_output,
html body .cwgstock_output p {
	color: var(--bone);
}

/* Product meta and breadcrumb. */
html body.single-product .product_meta {
	color: var(--mute);
	font-size: var(--fs-small);
}

html body.single-product .product_meta a {
	color: var(--gold);
}

html body .woostify-breadcrumb,
html body .woocommerce-breadcrumb {
	color: var(--mute);
}

html body .woostify-breadcrumb a,
html body .woocommerce-breadcrumb a {
	color: var(--lede);
}

/* Related / upsells headings. */
html body .related.products > h2,
html body .upsells.products > h2,
html body .cross-sells > h2 {
	margin-bottom: 28px;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: clamp(32px, 3.6vw, 56px);
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: 1;
	text-align: left;
	text-transform: uppercase;
}

/* Reviews tab and review form. */
html body #reviews .woocommerce-Reviews-title,
html body #reviews #reply-title {
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	text-transform: uppercase;
}

html body #reviews .commentlist li .comment_container,
html body #reviews .commentlist li .comment-text {
	border-color: var(--line);
	border-radius: 0;
	background: var(--panel);
}

html body #reviews .commentlist li .meta,
html body #reviews .commentlist li time {
	color: var(--mute);
}

html body #reviews .woocommerce-review__verified {
	color: var(--gold);
	font-style: normal;
}

html body .comment-form-rating .stars a,
html body p.stars a {
	color: var(--gold);
}

html body #reviews .woocommerce-noreviews {
	color: var(--lede);
}

@media (max-width: 560px) {
	html body.single-product .summary > .price,
	html body.single-product .summary > .price .amount {
		font-size: 30px;
	}
}

/* =================================================================
 * C. Cart (WooCommerce shortcode page; base.css already darkens tables, quantity and buttons)
 * =============================================================== */

html body.woocommerce-cart .shop_table.cart td.product-name a,
html body.woocommerce-cart .shop_table.cart td.product-name a:visited {
	color: var(--bone);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

html body.woocommerce-cart .shop_table.cart td.product-name a:hover {
	color: var(--gold-soft);
}

/* WooCommerce sets ".woocommerce a.remove" to its red with !important (2.91:1 on canvas); same weapon, narrower scope. */
html body.woocommerce-cart .shop_table.cart a.remove {
	color: var(--lede) !important;
}

html body.woocommerce-cart .shop_table.cart a.remove:hover {
	background: transparent !important;
	color: #ff4a44 !important;
}

html body.woocommerce-cart .cart_totals h2 {
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 32px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	text-transform: uppercase;
}

html body.woocommerce-cart .cart_totals .shop_table {
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--panel);
}

html body.woocommerce-cart .cart_totals .shop_table th,
html body.woocommerce-cart .cart_totals .shop_table td {
	border-color: var(--line);
	color: var(--bone);
}

html body.woocommerce-cart .cart_totals .order-total .amount {
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: var(--fw-regular);
}

html body.woocommerce-cart .actions .coupon .input-text,
html body.woocommerce-cart #coupon_code {
	min-height: 44px;
	border: var(--border-w, 1px) solid var(--line);
	border-radius: 0;
	background: var(--canvas);
	color: var(--bone);
}

/* "Update cart" is secondary: ghost. */
html body.woocommerce-cart .actions button[name="update_cart"] {
	background: transparent;
	color: var(--bone);
	box-shadow: inset 0 0 0 2px var(--line);
	clip-path: none;
}

html body.woocommerce-cart .actions button[name="update_cart"]:not(:disabled):hover {
	background: var(--bone);
	color: var(--ink);
}

html body.woocommerce-cart .actions button[name="update_cart"]:disabled {
	color: var(--mute);
	opacity: 1;
}

html body .cart-empty.woocommerce-info,
html body .wc-empty-cart-message .cart-empty {
	font-size: var(--fs-body);
}

/* =================================================================
 * D. My Account (Elementor template 43: heading "tv-page-title", widget "tv-account")
 *    The widget's hard-coded colours were removed; Elementor Pro reads these variables
 *    (fallbacks: white cards, #69727d text, #5bc0de links, #f9fafa fields).
 * =============================================================== */

html body .elementor-widget-woocommerce-my-account.tv-account {
	--general-text-color: var(--bone);
	--sections-background-color: var(--panel);
	--sections-border-color: var(--line);
	--sections-border-radius: 0;
	--typography-section-titles-color: var(--bone);
	--forms-labels-color: var(--bone);
	--forms-fields-normal-color: var(--bone);
	--forms-fields-focus-color: var(--bone);
	--forms-fields-normal-background-color: var(--canvas);
	--forms-fields-focus-background-color: var(--canvas);
	--forms-fields-border-radius: 0;
	--forms-buttons-normal-text-color: var(--on-red);
	--forms-buttons-hover-text-color: var(--on-red);
	--forms-buttons-border-radius: 0;
	--login-messages-color: var(--bone);
	--links-normal-color: var(--gold);
	--links-hover-color: var(--gold-soft);
	--tabs-normal-color: var(--bone);
	--tabs-hover-color: var(--gold);
	--tabs-active-color: var(--ink);
	--tabs-border-color: var(--line);
	--tabs-hover-border-color: var(--gold);
	--tabs-active-border-color: var(--bone);
	--tabs-divider-color: var(--line);
	--tabs-border-radius: 0;
	--tables-title-color: var(--bone);
	--tables-items-color: var(--bone);
	--tables-links-normal-color: var(--gold);
	--tables-links-hover-color: var(--gold-soft);
	--tables-divider-border-color: var(--line);
	--tables-button-normal-text-color: var(--bone);
	--tables-button-hover-text-color: var(--ink);
	--tables-buttons-border-color: var(--bone);
	--tables-button-border-radius: 0;
	--variations-color: var(--mute);
	--payment-methods-radio-buttons-color: var(--bone);
	--checkboxes-color: var(--lede);
}

/* Elementor hard-codes #5bc0de (no variable) on the login, register and reset-password buttons:
   ".elementor-widget-woocommerce-my-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .login .button" (6 classes). */
html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce :is(.login, .register, .woocommerce-ResetPassword) .button,
html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab__add-payment-method #add_payment_method #payment #place_order {
	background: var(--red);
	color: var(--on-red);
	clip-path: none;
}

html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce :is(.login, .register, .woocommerce-ResetPassword) .button:hover {
	background: var(--red-hover);
	color: var(--on-red);
}

/* Navigation tabs: dark cards, active tab bone. Elementor paints tab backgrounds with
   ".elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li a"
   (#f9fafa); the same chain plus ".tv-account" wins. */
html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li a {
	border-color: var(--line);
	border-radius: 0;
	background: var(--panel);
	color: var(--bone);
}

html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li a:hover {
	border-color: var(--gold);
	background: var(--panel);
	color: var(--gold);
}

html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a,
html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation ul li.is-active a:hover {
	border-color: var(--bone);
	background: var(--bone);
	color: var(--ink);
}

html body .tv-account .woocommerce-MyAccount-navigation ul li a svg,
html body .tv-account .woocommerce-MyAccount-navigation ul li a i,
html body .tv-account .woocommerce-MyAccount-navigation ul li a::before {
	color: inherit;
	fill: currentColor;
}

/* Login / register titles. */
html body .tv-account .woocommerce h2,
html body .tv-account .u-column1 h2,
html body .tv-account .u-column2 h2 {
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	text-transform: uppercase;
}

/* Buttons: red primary; table buttons (View order) ghost. */
html body .tv-account .woocommerce-button.button,
html body .tv-account .woocommerce-form-login__submit,
html body .tv-account .woocommerce-form-register__submit,
html body .tv-account button.button[name="save_address"],
html body .tv-account button.button[name="save_account_details"] {
	border: 0;
	border-radius: 0;
	background: var(--red);
	color: var(--on-red);
}

html body .tv-account .woocommerce-button.button:hover,
html body .tv-account .woocommerce-form-login__submit:hover,
html body .tv-account .woocommerce-form-register__submit:hover {
	background: var(--red-hover);
	color: var(--on-red);
}

html body .tv-account .woocommerce-orders-table .button,
html body .tv-account .woocommerce-orders-table .woocommerce-button {
	background: transparent;
	color: var(--bone);
	box-shadow: inset 0 0 0 2px var(--bone);
	clip-path: none;
}

html body .tv-account .woocommerce-orders-table .button:hover {
	background: var(--bone);
	color: var(--ink);
}

html body .tv-account .woocommerce-Address,
html body .tv-account .woocommerce-Address address {
	color: var(--bone);
	font-style: normal;
}

html body .tv-account .woocommerce-Address-title h2,
html body .tv-account .woocommerce-Address-title h3 {
	color: var(--bone);
	font-family: var(--font-display);
	font-weight: var(--fw-regular);
	text-transform: uppercase;
}

html body .tv-account .lost_password a,
html body .tv-account .woocommerce-privacy-policy-text a {
	color: var(--gold);
}

html body .tv-account .woocommerce-form__label-for-checkbox,
html body .tv-account .woocommerce-privacy-policy-text,
html body .tv-account .woocommerce-privacy-policy-text p {
	color: var(--lede);
}

/* Order status badges and order details. */
html body .tv-account mark,
html body .woocommerce-order-details mark,
html body .woocommerce-customer-details mark {
	background: transparent;
	color: var(--gold);
	font-weight: var(--fw-bold);
}

/* My Account fields: Elementor hard-codes #f9fafa on ".e-my-account-tab:not(...) .woocommerce .form-row .input-text"
   (6 classes), which left bone input text on near-white. */
html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .form-row :is(.input-text, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea),
html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .form-row :is(.input-text, input, select, textarea):focus {
	border: var(--border-w, 1px) solid var(--line);
	border-radius: 0;
	background-color: var(--canvas);
	color: var(--bone);
}

html body .elementor-widget-woocommerce-my-account.tv-account .e-my-account-tab:not(.e-my-account-tab__dashboard--custom) .woocommerce .form-row :is(.input-text, input, select, textarea):focus {
	border-color: var(--gold);
}

html body .elementor-widget-woocommerce-my-account.tv-account .select2-container--default .select2-selection--single {
	border: var(--border-w, 1px) solid var(--line);
	border-radius: 0;
	background-color: var(--canvas);
}

/* =================================================================
 * E. Notices, validation states
 *    (base.css section 7 already darkens .woocommerce-message / -info / -error)
 * =============================================================== */

/* Form validation (WooCommerce adds these classes on blur / submit). */
html body .woocommerce form .form-row.woocommerce-invalid :is(.input-text, select, textarea),
html body .woocommerce form .form-row.woocommerce-invalid .select2-container .select2-selection {
	border-color: #ff4a44;
	box-shadow: inset 4px 0 0 #ff4a44;
}

html body .woocommerce form .form-row.woocommerce-invalid label {
	color: #ff4a44;
}

html body .woocommerce form .form-row.woocommerce-validated :is(.input-text, select, textarea),
html body .woocommerce form .form-row.woocommerce-validated .select2-container .select2-selection {
	border-color: var(--line);
}

html body .woocommerce form .form-row .checkout-inline-error-message,
html body .woocommerce-input-wrapper .woocommerce-error-message {
	color: #ff4a44;
	font-size: var(--fs-small);
}

/* Notices: inside panels, links and buttons keep the dark-theme colours. */
html body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
	float: right;
	margin-left: 12px;
	border: 0;
	background: transparent;
	color: var(--gold);
	box-shadow: inset 0 0 0 2px var(--gold);
	clip-path: none;
}

html body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:hover {
	background: var(--gold);
	color: var(--ink);
}

html body .woocommerce-error li,
html body .woocommerce-message li,
html body .woocommerce-info li {
	color: var(--bone);
}

html body .woocommerce-notices-wrapper:empty {
	display: none;
}

/* Inline field errors (coupon field, block-style messages). #ff4a44 is 5.6:1 on canvas. */
html body .woocommerce :is(.input-text, input, select, textarea).has-error,
html body .woocommerce :is(.input-text, input, select, textarea)[aria-invalid="true"] {
	border-color: #ff4a44;
	box-shadow: inset 4px 0 0 #ff4a44;
}

html body .coupon-error-notice,
html body .woocommerce .form-row .error-message {
	color: #ff4a44;
	font-size: var(--fs-small);
	font-weight: var(--fw-bold);
}

/* Checkout native selects (single-country "Country / Region", "State"): Elementor's 16px top padding on a
   50px box clipped the text. Same selector weight as base.css section 10. */
html body .elementor-widget-woocommerce-checkout-page.tv-checkout .woocommerce #customer_details .form-row select,
html body .elementor-widget-woocommerce-checkout-page.tv-checkout .woocommerce #customer_details .form-row select:focus {
	height: auto;
	min-height: 48px;
	padding-top: 10px;
	padding-bottom: 10px;
	line-height: 1.4;
}

/* Cart heading (inc/woo-tweaks.php). */
html body.woocommerce-cart h1.tv-cart-title {
	margin: 8px 0 28px;
	color: var(--bone);
	font-family: var(--font-display);
	font-size: clamp(44px, 6vw, 92px);
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	line-height: var(--lh-display);
	text-transform: uppercase;
}

/* =================================================================
 * F. Order received ("thank you") page: checkout page 29 / template 45, ?order-received endpoint.
 *    Elementor's checkout widget greys these with #69727d, and base.css section 8 lets amounts in
 *    that widget inherit (!important); both are overridden here, scoped to the order-received page.
 * =============================================================== */
html body.woocommerce-order-received .woocommerce-order {
	color: var(--bone);
}

html body.woocommerce-order-received .woocommerce-order-overview {
	margin: 28px 0 40px;
	padding: 20px;
	border: 1px solid var(--line);
	background: var(--panel);
}

html body.woocommerce-order-received .woocommerce-order-overview li {
	border-color: var(--line) !important;
	color: var(--mute) !important;
	font-family: var(--mono);
	font-size: var(--fs-label);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

html body.woocommerce-order-received .woocommerce-order-overview li strong,
html body.woocommerce-order-received .woocommerce-order-overview li strong :is(.amount, bdi, span) {
	color: var(--bone) !important;
	font-family: var(--body);
	font-size: var(--fs-body);
	letter-spacing: 0;
	text-transform: none;
}

html body.woocommerce-order-received :is(.woocommerce-order-details, .woocommerce-customer-details) :is(h2, .woocommerce-column__title) {
	color: var(--bone);
	font-family: var(--font-display);
	font-size: 28px;
	font-weight: var(--fw-regular);
	letter-spacing: var(--ls-display);
	text-transform: uppercase;
}

html body.woocommerce-order-received .woocommerce-table--order-details {
	border: 1px solid var(--line);
	background: var(--panel);
}

html body.woocommerce-order-received .woocommerce-table--order-details :is(th, td) {
	border-color: var(--line) !important;
	color: var(--bone) !important;
}

html body.woocommerce-order-received .woocommerce-table--order-details :is(th, td) :is(.amount, bdi, .woocommerce-Price-currencySymbol, small, span) {
	color: inherit !important;
}

html body.woocommerce-order-received .woocommerce-table--order-details tfoot th {
	color: var(--lede) !important;
	font-weight: var(--fw-medium);
}

html body.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child :is(th, td) {
	color: var(--bone) !important;
	font-weight: var(--fw-bold);
}

html body.woocommerce-order-received .woocommerce-table--order-details td.product-name a {
	color: var(--gold) !important;
}

html body.woocommerce-order-received .woocommerce-table--order-details .product-quantity,
html body.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta {
	color: var(--lede) !important;
}

html body.woocommerce-order-received .woocommerce-customer-details address {
	border: 1px solid var(--line) !important;
	border-radius: 0;
	background: var(--panel);
	color: var(--bone) !important;
	font-style: normal;
}

html body.woocommerce-order-received .woocommerce-customer-details address :is(p, a) {
	color: var(--lede) !important;
}

/* The thank-you note (Code Snippet 5 text): bordered dark panel, left aligned for readability. */
html body.woocommerce-order-received .woocommerce-thankyou-order-received {
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	background: var(--panel);
	color: var(--bone) !important;
	font-size: var(--fs-body);
	font-weight: var(--fw-medium);
	line-height: 1.6;
	text-align: left;
}

/* Back In Stock form at small widths: full width under its variation row instead of squeezed into
   the info column. The row becomes a grid and the info/availability wrappers "disappear" (display: contents),
   so the form can span every column. The plugin sets ".woovr-variations .woovr-variation" to flex. */
@media (max-width: 560px) {
	html body .woovr-variations .woovr-variation.woovr-variation-radio {
		display: grid;
		grid-template-columns: 30px 50px minmax(0, 1fr);
		align-items: start;
		gap: 4px 10px;
	}

	html body .woovr-variations .woovr-variation.woovr-variation-radio .woovr-variation-selector,
	html body .woovr-variations .woovr-variation.woovr-variation-radio .woovr-variation-image {
		grid-row: 1 / span 3;
	}

	html body .woovr-variations .woovr-variation.woovr-variation-radio .woovr-variation-info,
	html body .woovr-variations .woovr-variation.woovr-variation-radio .woovr-variation-availability {
		display: contents;
	}

	html body .woovr-variations .woovr-variation.woovr-variation-radio :is(.woovr-variation-name, .woovr-variation-price, .stock) {
		grid-column: 3;
		margin: 0;
	}

	html body .woovr-variations .woovr-variation.woovr-variation-radio .cwginstock-subscribe-form,
	html body .woovr-variations .woovr-variation.woovr-variation-radio .woovr-variation-description {
		grid-column: 1 / -1;
		width: 100%;
	}
}

/* Back In Stock form: fields and button use the full panel width (the plugin centres a narrow group). */
html body .cwginstock-subscribe-form .cwginstock-panel-body :is(.row, .col-md-12, .form-group, .center-block, .cwginstock-subscribe-form__form) {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
	padding-right: 0;
	padding-left: 0;
}

/* Woostify prints the previous / next product thumbnails without width and height (round 10). */
html body .product-nav-item img {
	aspect-ratio: 1 / 1;
}

/* Checkout, logged out: login notice (inc/woo-tweaks.php). */
.tv-login-required {
	max-width: 640px;
	margin: 40px auto;
	padding: 34px 28px;
	border: 1px solid var(--line);
	border-top: 5px solid var(--red);
	background: var(--panel);
	text-align: center;
}

html body .tv-login-required .tv-login-required__text {
	margin: 0 0 22px;
	color: var(--bone);
	font-family: var(--body);
	font-size: 18px;
	font-weight: var(--fw-bold);
	line-height: 1.4;
}

.tv-login-required__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

html body .tv-login-required a.tv-login-required__btn {
	display: inline-block;
	padding: 16px 28px;
	border: 2px solid var(--bone);
	background: transparent;
	color: var(--bone);
	font-family: var(--body);
	font-size: var(--fs-small);
	font-weight: var(--fw-black);
	letter-spacing: var(--ls-button);
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

html body .tv-login-required a.tv-login-required__btn:hover {
	background: var(--bone);
	color: var(--ink);
}

html body .tv-login-required a.tv-login-required__btn--primary {
	border-color: var(--red);
	background: var(--red);
	color: var(--on-red);
}

html body .tv-login-required a.tv-login-required__btn--primary:hover {
	border-color: var(--red-hover);
	background: var(--red-hover);
	color: var(--on-red);
}

html body .tv-login-required a.tv-login-required__btn:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

.tv-anchor {
	display: block;
	scroll-margin-top: 140px;
}

@media (max-width: 560px) {
	html body .tv-login-required a.tv-login-required__btn {
		width: 100%;
	}
}
