/* Accepted storefront presentation, bounded to visual parity.
 * No checkout palette, consent controls, native form settings or content import.
 */
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) {
    --emuwing-button-font: var(--emuwing-page-heading-font);
    --emuwing-button-size: 16px;
    --emuwing-button-weight: 600;
    --emuwing-button-height: 44px;
    --emuwing-button-radius: 3px;
    --emuwing-button-primary-bg: var(--emuwing-page-accent-color, #f59321);
    --emuwing-button-primary-hover-bg: #e98617;
    --emuwing-button-primary-ink: #b85600;
    --emuwing-button-primary-text: #fff;
    --emuwing-button-secondary-bg: #262626;
    --emuwing-button-secondary-hover-bg: #333;
    --emuwing-button-secondary-text: #fff;
    --emuwing-button-light-bg: #fff;
    --emuwing-button-light-hover-bg: #f5f5f5;
    --emuwing-button-light-text: #242424;
    --emuwing-button-light-border: #d9d9d9;
    --emuwing-button-transition: background-color 140ms ease, border-color 140ms ease;
}

/* Reuse accepted2ad00bbd text-button declarations. Provider/icon/quantity
 * controls are excluded. Checkout and the cookie controller stay native.
 */
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :is(
    :is(.wd-page-wrapper, .cart-widget-side, .login-form-side, .wd-dropdown-register) :is(a.btn, a.button, button.btn, button.button, input[type="submit"], .elementor-button),
    #locatoraid-search-form-button,
    .emuwing-button--primary, .emuwing-button--secondary, .emuwing-button--light
):not(:is(.wd-skip-links, .plus, .minus, .remove, .payment-provider, .wd-style-icon > a)) {
    box-sizing: border-box;
    font-family: var(--emuwing-button-font) !important;
    font-size: var(--emuwing-button-size) !important;
    font-weight: var(--emuwing-button-weight) !important;
    font-style: normal;
    line-height: 24px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: var(--emuwing-button-height) !important;
    padding: 9px 24px !important;
    border: 1px solid var(--emuwing-button-border, transparent) !important;
    border-radius: var(--emuwing-button-radius) !important;
    background: var(--emuwing-button-bg, var(--emuwing-button-primary-bg)) !important;
    color: var(--emuwing-button-text, var(--emuwing-button-primary-text)) !important;
    box-shadow: none !important;
    transform: none !important;
    transition: var(--emuwing-button-state-transition, var(--emuwing-button-transition)) !important;
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :where(
    .wd-page-wrapper :is([name="apply_coupon"], [name="update_cart"], .button.view, .btn-color-black, .button.cancel, .button.delete),
    .emuwing-button--secondary
) {
    --emuwing-button-bg: var(--emuwing-button-secondary-bg);
    --emuwing-button-hover-bg: var(--emuwing-button-secondary-hover-bg);
    --emuwing-button-text: var(--emuwing-button-secondary-text);
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :where(
    .wd-page-wrapper :is(.btn-color-white, .btn-style-bordered, .continue-shopping),
    .woocommerce-mini-cart__buttons .btn-cart, .emuwing-button--light
) {
    --emuwing-button-bg: var(--emuwing-button-light-bg);
    --emuwing-button-hover-bg: var(--emuwing-button-light-hover-bg);
    --emuwing-button-text: var(--emuwing-button-light-text);
    --emuwing-button-border: var(--emuwing-button-light-border);
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) .emuwing-button--primary {
    --emuwing-button-bg: var(--emuwing-button-primary-bg);
    --emuwing-button-hover-bg: var(--emuwing-button-primary-hover-bg);
    --emuwing-button-text: var(--emuwing-button-primary-text);
    --emuwing-button-border: transparent;
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) .emuwing-button--secondary {
    --emuwing-button-bg: var(--emuwing-button-secondary-bg);
    --emuwing-button-hover-bg: var(--emuwing-button-secondary-hover-bg);
    --emuwing-button-text: var(--emuwing-button-secondary-text);
    --emuwing-button-border: transparent;
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) .emuwing-button--light {
    --emuwing-button-bg: var(--emuwing-button-light-bg);
    --emuwing-button-hover-bg: var(--emuwing-button-light-hover-bg);
    --emuwing-button-text: var(--emuwing-button-light-text);
    --emuwing-button-border: var(--emuwing-button-light-border);
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :is(
    :is(.wd-page-wrapper, .cart-widget-side, .login-form-side, .wd-dropdown-register) :is(a.btn, a.button, button.btn, button.button, input[type="submit"], .elementor-button),
    #locatoraid-search-form-button, .emuwing-button--primary, .emuwing-button--secondary, .emuwing-button--light
):not(:is(.wd-skip-links, .plus, .minus, .remove, .payment-provider, .wd-style-icon > a, :disabled, .disabled, [aria-disabled="true"], .loading, .wd-loading, [aria-busy="true"])):hover {
    background: var(--emuwing-button-hover-bg, var(--emuwing-button-primary-hover-bg)) !important;
    color: var(--emuwing-button-text, var(--emuwing-button-primary-text)) !important;
    opacity: 1;
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :is(
    :is(.wd-page-wrapper, .cart-widget-side, .login-form-side, .wd-dropdown-register) :is(a.btn, a.button, button.btn, button.button, input[type="submit"], .elementor-button),
    #locatoraid-search-form-button, .emuwing-button--primary, .emuwing-button--secondary, .emuwing-button--light
):not(:is(.wd-skip-links, .plus, .minus, .remove, .payment-provider, .wd-style-icon > a)):focus-visible {
    outline: 2px solid var(--emuwing-page-heading-color, #242424) !important;
    outline-offset: 3px !important;
}
body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :is(
    :is(.wd-page-wrapper, .cart-widget-side, .login-form-side, .wd-dropdown-register) :is(a.btn, a.button, button.btn, button.button, input[type="submit"], .elementor-button),
    #locatoraid-search-form-button, .emuwing-button--primary, .emuwing-button--secondary, .emuwing-button--light
):not(:is(.wd-skip-links, .plus, .minus, .remove, .payment-provider, .wd-style-icon > a)):is(:disabled, .disabled, [aria-disabled="true"]) {
    opacity: .6 !important;
}
@media (prefers-reduced-motion: reduce) {
    body.wp-child-theme-woodmart-child:not(.woocommerce-checkout) :is(
        :is(.wd-page-wrapper, .cart-widget-side, .login-form-side, .wd-dropdown-register) :is(a.btn, a.button, button.btn, button.button, input[type="submit"], .elementor-button),
        #locatoraid-search-form-button, .emuwing-button--primary, .emuwing-button--secondary, .emuwing-button--light
    ):not(:is(.wd-skip-links, .plus, .minus, .remove, .payment-provider, .wd-style-icon > a)) { transition: none !important; }
}

/* Restore accepted homepage font without altering native responsive sizes,
 * images, additional PROD sections or its SEO heading. */
body.page-id-29041 #main-content :is(h1, h2, h3, h4, .woodmart-title-container) {
    font-family: var(--emuwing-page-heading-font) !important;
}
@media (min-width: 1025px) {
    body.page-id-29041 #main-content :is(.elementor-element-1f3b542, .elementor-element-17c15d04) {
        padding-top: 80px;
        background-color: #0a0a0a;
    }
}

/* Apply the shared body-heading scale to newer native About/FAQ copy. */
body:is(.page-id-4400, .page-id-29240) #main-content h2 {
    font-family: var(--emuwing-page-heading-font);
    font-size: var(--emuwing-page-heading-size);
    line-height: var(--emuwing-page-heading-line);
    font-weight: var(--emuwing-page-heading-weight);
}
body.woocommerce-cart #main-content .cart-empty.wd-empty-block-title {
    font-family: var(--emuwing-page-heading-font);
    font-size: var(--emuwing-page-heading-size);
    line-height: var(--emuwing-page-heading-line);
    font-weight: var(--emuwing-page-heading-weight);
}
body.page-id-1898 #main-content > h1.wp-block-heading:first-of-type { display: none; }

body.page-id-9 .wd-page-title .entry-title { text-transform: capitalize; }
/* Native address/endpoint headings use the shared family, retaining sizes
 * and all native forms. Dashboard-specific scales below remain independent. */
body.woocommerce-account #main-content .woocommerce-MyAccount-content :is(h2, h3) {
    font-family: var(--emuwing-page-heading-font);
}

/* Grouped dashboard shortcuts. Other account endpoints retain native styling. */
.woocommerce-MyAccount-content .emuwing-account-dashboard {
	color: var(--emuwing-page-heading-color);
}

.emuwing-account-dashboard .emuwing-account-intro h2 {
	margin: 0 0 20px;
	font-family: var(--emuwing-page-heading-font);
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
}

.emuwing-account-dashboard .emuwing-account-intro h2::after {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-top: 10px;
	background: var(--emuwing-page-accent-color);
}

.emuwing-account-dashboard .emuwing-account-intro p {
	margin: 0 0 32px;
	font-size: 16px;
	line-height: 26px;
}

.emuwing-account-dashboard .emuwing-account-groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 56px;
}

.emuwing-account-dashboard .emuwing-account-group:nth-child(2) {
	margin-inline-start: -28px;
	padding-inline-start: 28px;
	border-inline-start: 1px solid var(--emuwing-page-divider-color);
}

.emuwing-account-dashboard .emuwing-account-group h3 {
	margin: 0;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--emuwing-page-divider-color);
	font-family: var(--emuwing-page-heading-font);
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
}

.emuwing-account-dashboard .emuwing-account-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.emuwing-account-dashboard .emuwing-account-links > li {
	margin: 0;
	border-bottom: 1px solid var(--emuwing-page-divider-color);
}

.emuwing-account-dashboard .emuwing-account-links > li > a {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 16px;
	min-height: 76px;
	padding: 14px 16px;
	border-radius: 3px;
	color: var(--emuwing-page-heading-color);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
}

.emuwing-account-dashboard .nav-link-text {
	min-width: 0;
	overflow-wrap: anywhere;
}

.emuwing-account-dashboard .wd-nav-icon {
	color: #929292;
	font-size: 32px;
}

.emuwing-account-dashboard .emuwing-account-chevron {
	color: #929292;
	font-size: 16px;
	line-height: 1;
}

.emuwing-account-dashboard .emuwing-account-chevron::before {
	content: "\f113";
	font-family: "woodmart-font";
}

.emuwing-account-dashboard .emuwing-account-links > li > a:is(:hover, :focus-visible) {
	background: #fff5e9;
}

.emuwing-account-dashboard .emuwing-account-links > li > a:focus-visible {
	outline: 2px solid var(--emuwing-button-primary-ink, #b85600);
	outline-offset: -2px;
}

.emuwing-account-dashboard a:is(:hover, :focus-visible) :is(.wd-nav-icon, .emuwing-account-chevron) {
	color: var(--emuwing-page-accent-color);
}

.emuwing-account-dashboard .emuwing-account-logout {
	margin: 24px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--emuwing-page-divider-color);
	font-size: 16px;
	line-height: 26px;
}

.emuwing-account-dashboard .emuwing-account-logout a {
	color: var(--emuwing-button-primary-ink, #b85600);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 767px) {
	.emuwing-account-dashboard .emuwing-account-groups {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.emuwing-account-dashboard .emuwing-account-group:nth-child(2) {
		margin-inline-start: 0;
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

/* Accepted signed-in B2B panel; no new registration or account setting. */
body.page-id-29198 .elementor-element-6b0ef28:has(.emuwing-b2b-account-panel) { width: 100%; max-width: 760px; margin-inline: 0; }
body.page-id-29198 .emuwing-b2b-account-panel { padding: 24px; border: 1px solid var(--emuwing-page-divider-color); border-radius: 4px; background: #fff; }
body.page-id-29198 .emuwing-b2b-account-panel h2 { margin: 0 0 12px; font-family: var(--emuwing-page-heading-font); font-size: 24px; font-weight: 600; line-height: 32px; color: var(--emuwing-page-heading-color); }
body.page-id-29198 .emuwing-b2b-account-panel p { margin: 0 0 20px; }
body.page-id-29198 .emuwing-b2b-account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.page-id-29349 #locatoraid-search-form-search input[name="hc-search"] { height: 44px; }

/* Reuse accepted canonical title metrics on native legacy summaries only.
 * Product adoption, descriptions, prices, variations and tabs stay native. */
body.single-product:not(.emuwing-pdp) #main-content .summary-inner > .product_title {
    font-family: "Cabin", Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}
@media (max-width: 768.98px) {
    body.single-product:not(.emuwing-pdp) #main-content .summary-inner > .product_title { font-size: 22px; }
}

/* Shop category tree: quiet counts, connectors and a soft row highlight.
 * WooCommerce links and Woodmart's accordion continue to own behavior. */
.woodmart-archive-shop .widget_product_categories .product-categories,
.woodmart-archive-shop .widget_product_categories.sidebar-widget .product-categories:has(.cat-item ul) {
	margin-bottom: 0;
	padding-inline-end: 0;
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px 28px 8px;
	align-items: center;
	margin: 0;
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item > a {
	grid-column: 1 / -1;
	grid-row: 1;
	position: relative;
	z-index: 0;
	width: auto;
	min-width: 0;
	padding: 9px 8px;
	padding-inline-end: 76px;
	border-inline-start: 3px solid transparent;
	border-radius: 3px;
	color: var(--color-gray-700, #555);
	line-height: 1.4;
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item > .count {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	z-index: 1;
	pointer-events: none;
	margin: 0;
	padding: 0 4px;
	min-width: 0;
	height: 24px;
	border: 0;
	border-radius: 3px;
	background: var(--bgcolor-gray-300, #efefef);
	color: var(--color-gray-600, #666);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	line-height: 24px;
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item > .wd-cats-toggle {
	grid-column: 3;
	grid-row: 1;
	position: static;
	z-index: 1;
	justify-self: end;
	width: 24px;
	height: 24px;
	border-radius: 3px;
	background: var(--bgcolor-gray-300, #efefef);
	color: var(--color-gray-700, #555);
	line-height: 24px;
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item > .children {
	grid-column: 1 / -1;
	margin: 4px 0 8px;
	padding-inline-start: 20px;
	width: 100%;
}

.woodmart-archive-shop .widget_product_categories .product-categories > li.cat-item + li.cat-item {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--brdcolor-gray-300, #e5e5e5);
}

/* Start each child guide at the parent border, keeping branches clear of labels. */
.woodmart-archive-shop .widget_product_categories .children > li.cat-item::before,
.woodmart-archive-shop .widget_product_categories .children > li.cat-item::after {
	content: "";
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	position: relative;
	inset-inline-start: -20px;
	pointer-events: none;
}

.woodmart-archive-shop .widget_product_categories .children > li.cat-item::before {
	align-self: stretch;
	border-inline-start: 1px solid var(--brdcolor-gray-300, #e5e5e5);
}

.woodmart-archive-shop .widget_product_categories .children > li.cat-item:last-child::before {
	align-self: start;
	height: 50%;
}

.woodmart-archive-shop .widget_product_categories .children > li.cat-item::after {
	align-self: center;
	width: 16px;
	border-top: 1px solid var(--brdcolor-gray-300, #e5e5e5);
}

.woodmart-archive-shop .widget_product_categories .product-categories li:is(.current-cat, .current-cat-parent, .current-cat-ancestor) > a {
	border-inline-start-color: var(--wd-primary-color, #f59321);
	background: rgba(245, 147, 33, 0.08);
	color: var(--color-gray-900, #242424);
	font-weight: 600;
}

.woodmart-archive-shop .widget_product_categories .product-categories li:is(.current-cat, .current-cat-parent, .current-cat-ancestor) > .count {
	background: var(--emuwing-button-primary-ink, #b85600);
	color: var(--emuwing-button-primary-text, #fff);
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item:has(> :is(a, .wd-cats-toggle):hover) > a {
	background: rgba(245, 147, 33, 0.08);
	color: var(--color-gray-900, #242424);
	text-decoration: none;
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item > .wd-cats-toggle:hover {
	background: var(--bgcolor-gray-400, #e5e5e5);
}

.woodmart-archive-shop .widget_product_categories .product-categories li.cat-item > :is(a, .wd-cats-toggle):focus-visible {
	outline: 2px solid var(--emuwing-button-primary-ink, #b85c00);
	outline-offset: 2px;
	border-radius: 3px;
}
