/**
 * WoodMart / WooCommerce mapping onto semantic design tokens.
 */

:root {
	--wd-primary-color: var(--color-bg-brand);
	--wd-alternative-color: var(--color-bg-brand-strong);
	--wd-link-color: var(--color-action-secondary);
	--wd-link-color-hover: var(--color-bg-brand-strong);
	--wd-text-color: var(--color-text-primary);
	--wd-title-color: var(--color-text-primary);
	--wd-entities-title-color: var(--color-text-primary);
	--wd-entities-title-color-hover: var(--color-bg-brand);
	--wd-form-brd-color: var(--color-border-default);
	--wd-form-brd-color-focus: var(--color-focus-ring);
	--wd-form-color: var(--color-text-primary);
	--wd-form-placeholder-color: var(--color-text-secondary);
	--wd-brd-radius: var(--radius-md);
}

body,
.wd-page-wrapper {
	background-color: var(--color-bg-page);
	color: var(--color-text-primary);
	font-family: var(--font-sans);
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

.wd-content-layout,
.site-content,
.wd-content-area,
.whb-header,
.whb-row,
.wd-footer,
footer.footer-container {
	color: var(--color-text-primary);
}

a:not(.btn):not(.button):not(.added_to_cart):not(.product_type_simple):not(.checkout-button):not(.single_add_to_cart_button) {
	color: var(--color-action-secondary);
}

a:not(.btn):not(.button):hover {
	color: var(--color-bg-brand-strong);
}

h1,
.entry-title,
.page-title {
	color: var(--color-text-primary);
	font-weight: var(--type-h1-weight);
	line-height: var(--type-h1-line);
}

h2 {
	font-size: var(--type-h2-size);
	font-weight: var(--type-h2-weight);
	line-height: var(--type-h2-line);
}

h3:not(.wd-entities-title) {
	font-size: var(--type-h3-size);
	font-weight: var(--type-h3-weight);
	line-height: var(--type-h3-line);
}

small,
.meta,
.woocommerce-result-count,
.woocommerce-breadcrumb,
.wd-breadcrumbs,
.cmplz-body,
.description,
.product_meta {
	color: var(--color-text-secondary);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

.wf-btn-primary,
.btn-color-primary,
button.btn.btn-color-primary,
.single_add_to_cart_button,
.checkout-button,
#place_order,
.woocommerce a.button.alt:not(.add-to-cart-loop),
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: var(--color-action-primary) !important;
	border-color: var(--color-action-primary) !important;
	color: var(--color-text-on-brand) !important;
	font-size: var(--type-button-size);
	font-weight: var(--type-button-weight);
	line-height: var(--type-button-line);
	min-height: 44px;
	border-radius: var(--radius-md) !important;
}

.wf-btn-primary:hover,
.btn-color-primary:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover,
.woocommerce a.button.alt:not(.add-to-cart-loop):hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: var(--color-action-primary-hover) !important;
	border-color: var(--color-action-primary-hover) !important;
	color: var(--color-text-on-brand) !important;
}

.btn.btn-color-default,
.btn.btn-color-alt,
.woocommerce a.button:not(.add-to-cart-loop):not(.product_type_simple):not(.add_to_cart_button),
.woocommerce button.button:not(.single_add_to_cart_button),
.woocommerce input.button,
.button.wc-backward {
	background-color: var(--color-bg-surface);
	border: 1px solid var(--color-action-secondary);
	color: var(--color-action-secondary) !important;
	border-radius: var(--radius-md);
	min-height: 44px;
}

.btn.btn-color-default:hover,
.btn.btn-color-alt:hover,
.woocommerce a.button:not(.add-to-cart-loop):not(.product_type_simple):not(.add_to_cart_button):hover,
.woocommerce button.button:not(.single_add_to_cart_button):hover,
.woocommerce input.button:hover {
	background-color: var(--color-bg-brand-soft);
	border-color: var(--color-bg-brand-strong);
	color: var(--color-bg-brand-strong) !important;
}

/* Premium glass nav — frosted dark-navy panel with a hairline ember accent
   (echoes the hero's radial red glow), instead of a flat brand-color bar. */
.whb-color-light .whb-row,
.whb-general-header,
.whb-sticky-row,
.whb-header-bottom {
	background:
		linear-gradient(90deg, transparent 0%, var(--color-accent-ember) 50%, transparent 100%) bottom / 100% 1px no-repeat,
		var(--color-glass-surface);
	backdrop-filter: blur(12px) saturate(160%);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
	color: var(--color-text-on-brand);
}

/* Overcontent header on the hero: same glass frost, slightly lighter so the
   gradient hero still reads through it. */
.whb-header.whb-overcontent:not(.whb-sticked) .whb-row.whb-without-bg,
.whb-header.whb-overcontent:not(.whb-sticked) .whb-row.whb-color-light.whb-without-bg,
body.home .whb-header.whb-overcontent:not(.whb-sticked) .whb-general-header {
	--wd-header-el-color: #ffffff;
	--wd-header-el-color-hover: rgba(255, 255, 255, 0.78);
	background:
		linear-gradient(90deg, transparent 0%, var(--color-accent-ember) 50%, transparent 100%) bottom / 100% 1px no-repeat,
		var(--color-glass-surface) !important;
	backdrop-filter: blur(11px) saturate(160%);
	-webkit-backdrop-filter: blur(11px) saturate(160%);
	color: #ffffff;
}

.whb-color-light .wd-nav > li > a,
.whb-color-light .wd-header-nav a,
.whb-color-light .wd-tools-element > a,
.whb-color-light .site-logo .wd-logo-alt {
	color: var(--color-text-on-brand);
}

.whb-color-light .wd-nav > li > a:hover,
.whb-color-light .wd-header-nav a:hover {
	color: var(--color-bg-brand-soft);
}

/* Overcontent: nav + account/cart/search/wishlist must stay white (beats global link blue + #333 var). */
.whb-header.whb-overcontent:not(.whb-sticked) .wd-nav.wd-nav-main > li > a,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-nav a,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element > a,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element .wd-tools-text,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-my-account > a,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-cart > a,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-cart .wd-cart-subtotal,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-cart .amount,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-wishlist > a,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-search > a {
	color: #ffffff !important;
}

.whb-header.whb-overcontent:not(.whb-sticked) .wd-nav.wd-nav-main > li > a:hover,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-nav a:hover,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element > a:hover {
	color: rgba(255, 255, 255, 0.82) !important;
}

.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element .wd-tools-icon,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element .wd-tools-icon:before,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-search .wd-tools-icon,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-header-wishlist .wd-tools-icon {
	color: #ffffff !important;
}

.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element svg,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element svg path,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-element svg use {
	fill: currentColor;
	color: #ffffff;
}

.whb-header.whb-overcontent:not(.whb-sticked) .wd-tools-count,
.whb-header.whb-overcontent:not(.whb-sticked) .wd-cart-number {
	color: #ffffff !important;
}

/* Sticky header: detaches into a floating frosted-glass command bar. */
.whb-header.whb-sticked {
	--wd-header-el-color: #ffffff;
	--wd-header-el-color-hover: rgba(255, 255, 255, 0.82);
}

/* Kill WoodMart's full-width sticky hairline (0 1px 3px). It sits on
   .whb-main-header (viewport-wide) while our glass pill is inset — the
   leftover strip reads as a "komischer Schatten" across the page. */
.whb-header.whb-sticky-shadow.whb-sticked .whb-main-header,
.whb-header.whb-sticky-shadow + .whb-clone {
	box-shadow: none !important;
}

/* No vertical margin here on purpose: WoodMart shrinks the sticky row to a
   fixed --wd-header-general-sticky-h via max-height, and its scroll-offset
   math for reserved space / clones does not know about extra CSS margin.
   Adding margin-top caused overlap glitches while scrolling. Horizontal
   inset + bottom-only radius keeps the floating-glass look without touching
   the row's height footprint. */
.whb-header.whb-sticked .whb-row {
	background: var(--color-glass-surface-strong) !important;
	backdrop-filter: blur(14px) saturate(170%);
	-webkit-backdrop-filter: blur(14px) saturate(170%);
	border: 1px solid var(--color-glass-border);
	border-top: 0;
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
	/* Soft elevation only — no hard 1px hairline shadow. */
	box-shadow: 0 12px 28px rgba(5, 12, 20, 0.18);
	margin: 0 auto;
	max-width: calc(100% - 24px);
	/* Own compositing layer: avoids backdrop-filter flicker/repaint on a
	   position:fixed element while scrolling. */
	transform: translateZ(0);
	transition: box-shadow var(--motion-med);
}

/* Hide-on-scroll: WoodMart translates .whb-main-header by -100%, but the
   row's drop-shadow still peeks 12–28px into the viewport at the top edge.
   Drop the shadow while the bar is parked off-screen. */
.whb-header.whb-scroll-stick.whb-scroll-down.whb-sticked .whb-row,
.whb-header.whb-scroll-stick.whb-scroll-down.whb-sticked .whb-main-header {
	box-shadow: none !important;
}

@media (min-width: 1400px) {
	.whb-header.whb-sticked .whb-row {
		max-width: calc(var(--layout-max) + 80px);
	}
}

@media (max-width: 600px) {
	.whb-header.whb-sticked .whb-row {
		border-radius: 0;
		max-width: 100%;
	}
}

.whb-header.whb-sticked .wd-nav.wd-nav-main > li > a,
.whb-header.whb-sticked .wd-header-nav a,
.whb-header.whb-sticked .wd-tools-element > a,
.whb-header.whb-sticked .wd-tools-element .wd-tools-text,
.whb-header.whb-sticked .wd-header-my-account > a,
.whb-header.whb-sticked .wd-header-cart > a,
.whb-header.whb-sticked .wd-header-cart .wd-cart-subtotal,
.whb-header.whb-sticked .wd-header-cart .wd-cart-subtotal .amount,
.whb-header.whb-sticked .wd-header-cart .amount,
.whb-header.whb-sticked .wd-header-cart .woocommerce-Price-amount,
.whb-header.whb-sticked .wd-header-wishlist > a,
.whb-header.whb-sticked .wd-header-search > a,
.whb-header.whb-sticked .wd-tools-count,
.whb-header.whb-sticked .wd-cart-number {
	color: #ffffff !important;
}

.whb-header.whb-sticked .wd-nav.wd-nav-main > li > a:hover,
.whb-header.whb-sticked .wd-header-nav a:hover,
.whb-header.whb-sticked .wd-tools-element > a:hover {
	color: rgba(255, 255, 255, 0.82) !important;
}

.whb-header.whb-sticked .wd-tools-element .wd-tools-icon,
.whb-header.whb-sticked .wd-tools-element .wd-tools-icon:before,
.whb-header.whb-sticked .wd-header-search .wd-tools-icon,
.whb-header.whb-sticked .wd-header-wishlist .wd-tools-icon,
.whb-header.whb-sticked .wd-header-cart .wd-tools-icon,
.whb-header.whb-sticked .wd-header-my-account .wd-tools-icon {
	color: #ffffff !important;
}

.whb-header.whb-sticked .wd-tools-element svg,
.whb-header.whb-sticked .wd-tools-element svg path,
.whb-header.whb-sticked .wd-tools-element svg use {
	fill: currentColor;
	color: #ffffff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background-color: var(--color-bg-surface);
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-0);
	color: var(--color-text-primary);
	font-family: var(--font-sans);
	font-size: var(--type-body-size);
	line-height: 1.4;
	min-height: 48px;
	padding: 0.7rem 0.95rem;
	transition:
		border-color var(--motion-fast),
		box-shadow var(--motion-fast);
}

textarea,
.woocommerce form .form-row textarea {
	min-height: 8rem;
	resize: vertical;
}

input:hover,
select:hover,
textarea:hover,
.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row textarea:hover,
.woocommerce form .form-row select:hover {
	border-color: var(--color-border-strong, #c5ccd6);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.woocommerce form .form-row input.input-text:focus-visible,
.woocommerce form .form-row textarea:focus-visible,
.woocommerce form .form-row select:focus-visible {
	border-color: var(--color-focus-ring);
	box-shadow: var(--shadow-focus);
	outline: none;
}

:focus {
	outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: var(--focus-outline);
	outline-offset: 2px;
}

.woocommerce-message,
.woocommerce-info {
	background-color: var(--color-alert-success-bg);
	border-color: var(--color-alert-success-border);
	color: var(--color-success);
}

.woocommerce-error,
.woocommerce-NoticeGroup-checkout .woocommerce-error {
	background-color: var(--color-alert-error-bg);
	border-color: var(--color-alert-error-border);
	color: var(--color-error);
}

.woocommerce-Price-amount,
.amount,
.price,
.order-total .amount {
	font-variant-numeric: tabular-nums;
}

/* Native WoodMart product cards — no custom card chrome (border/bg/shadow).
   Loop hover/buttons stay on WoodMart CSS parts (woo-product-loop-alt). */

.wd-notice.wd-success,
.wd-notice-success {
	background-color: var(--color-alert-success-bg);
	color: var(--color-success);
}

.wd-notice.wd-warning,
.wd-notice-warning {
	background-color: #fff8e6;
	color: var(--color-warning);
}

.wf-mono,
.wf-plz,
.wf-order-id {
	font-family: var(--font-mono);
}

/* Brand product placeholder — transparent PNG, 50% size, centered in card thumb. */
.wd-product .wd-product-thumb .product-image-link,
.wd-product .wd-product-thumb .wd-product-img-link {
	align-items: center;
	display: flex;
	justify-content: center;
}

.wd-product .wd-product-thumb img.wf-product-placeholder,
.wd-product .product-image-link img.wf-product-placeholder,
.wd-product img.woocommerce-placeholder.wf-product-placeholder {
	background: transparent !important;
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 50%;
	object-fit: contain;
	width: 50%;
}

.woocommerce-product-gallery img.wf-product-placeholder {
	background: transparent !important;
	height: auto;
	margin-inline: auto;
	max-width: 50%;
	object-fit: contain;
	width: 50%;
}

/* Catalog cards: hide redundant category + Germanized loop tax line. */
.wd-product .wd-product-cats,
.wd-product .wc-gzd-additional-info-loop.tax-info,
.products .wc-gzd-additional-info-loop.tax-info {
	display: none !important;
}

/* Catalog: fixed 12 products/page — hide WoodMart per-page + view switchers. */
.wf-page-catalog .wd-products-per-page,
.wf-page-catalog .wd-products-shop-view,
body.post-type-archive-product .wd-products-per-page,
body.post-type-archive-product .wd-products-shop-view {
	display: none !important;
}

/* TASK-013 — Wireframe nav shell */
.whb-header .whb-main-header,
.whb-header .whb-row {
	align-items: center;
}

.whb-header .wd-nav.wd-nav-main {
	align-items: center;
	column-gap: 0.35rem;
	flex-wrap: nowrap;
	row-gap: 0;
}

@media (max-width: 1199px) {
	.whb-header .wd-nav.wd-nav-main {
		column-gap: 0.15rem;
	}
}

.whb-header .wd-nav.wd-nav-main > li > a {
	border-radius: var(--radius-md);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	padding: 0.5rem 0.55rem;
	transition: background-color var(--motion-fast), box-shadow var(--motion-fast);
	white-space: nowrap;
}

.whb-header .wd-nav.wd-nav-main > li > a:hover,
.whb-header .wd-nav.wd-nav-main > li > a:focus-visible {
	background-color: var(--color-glass-hover);
}

.whb-header .wd-nav.wd-nav-main > li.current-menu-item > a,
.whb-header .wd-nav.wd-nav-main > li.current-menu-ancestor > a,
.whb-header .wd-nav.wd-nav-main > li.current_page_item > a {
	background-color: var(--color-glass-hover);
	box-shadow: inset 0 -2px 0 var(--color-action-primary);
}

@media (max-width: 1199px) {
	.whb-header .wd-nav.wd-nav-main > li > a {
		padding: 0.5rem 0.4rem;
	}
}

/* Icon tools (account / cart / wishlist / search): circular glass buttons. */
.whb-header .wd-tools-element.wd-header-my-account > a,
.whb-header .wd-header-cart > a,
.whb-header .wd-header-wishlist > a,
.whb-header .wd-header-search > a {
	align-items: center;
	border-radius: var(--radius-pill);
	display: inline-flex;
	justify-content: center;
	transition: background-color var(--motion-fast), transform var(--motion-fast);
}

.whb-header .wd-tools-element.wd-header-my-account > a:hover,
.whb-header .wd-header-cart > a:hover,
.whb-header .wd-header-wishlist > a:hover,
.whb-header .wd-header-search > a:hover,
.whb-header .wd-tools-element.wd-header-my-account > a:focus-visible,
.whb-header .wd-header-cart > a:focus-visible {
	background-color: var(--color-glass-hover);
	transform: translateY(-1px);
}

/* Cart badge: ember accent with a soft glow ring, always readable on glass. */
.whb-header .wd-cart-number,
.whb-header .wd-tools-count {
	background-color: var(--color-action-primary) !important;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.18);
	color: #ffffff !important;
}

@media (min-width: 1400px) {
	.whb-header .wd-nav.wd-nav-main > li > a {
		font-size: 0.875rem;
		padding: 0.5rem 0.7rem;
	}
}

/* Logo: wider (+15%), height capped so header row stays the same. */
.whb-header .site-logo img,
.whb-header .wd-logo img {
	height: auto;
	max-height: 44px;
	object-fit: contain;
	width: auto;
}

.whb-header .wd-logo.wd-main-logo img,
.whb-header .site-logo .wd-main-logo img {
	/* 210px → +15% ≈ 242px; !important beats WHB inline max-width. */
	max-width: min(242px, 48vw) !important;
}

.whb-color-light .site-logo .woodmart-logo,
.whb-color-light .site-logo a {
	color: var(--color-text-on-brand);
}

/* Price: text color, not link-blue */
.single-product .summary .price,
.single-product .summary .price .amount,
.single-product .summary .woocommerce-Price-amount,
.wf-page-product-ort .summary .price,
.wf-page-product-ort .summary .price .amount {
	color: var(--color-text-primary) !important;
}

/* Quantity controls readable */
.woocommerce .quantity,
.woocommerce .quantity .qty {
	min-height: 44px;
}

.woocommerce .quantity .qty {
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
	color: var(--color-text-primary);
	font-size: var(--type-body-size);
	max-width: 4.5rem;
	min-width: 3.25rem;
	padding: 0.5rem 0.65rem;
	text-align: center;
}

/* Catalog / shop chrome — hide only sidebar opener; keep native shop tools. */
.wf-page-catalog .wd-show-sidebar-btn,
.wf-page-catalog .wd-sidebar-opener,
.wf-page-catalog .wd-breadcrumbs,
.wf-page-catalog .woocommerce-breadcrumb,
body.post-type-archive-product .wd-show-sidebar-btn {
	display: none !important;
}

body.single-product .wd-breadcrumbs,
body.single-product .woocommerce-breadcrumb {
	font-size: var(--type-body-sm-size);
	margin-bottom: var(--space-4, 1rem);
}

/* Complianz cookie banner — brand-aligned, no layout clash */
#cmplz-cookiebanner-container .cmplz-cookiebanner,
.cmplz-cookiebanner {
	background: var(--color-bg-surface) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
	box-shadow: var(--shadow-1) !important;
	color: var(--color-text-primary) !important;
	font-family: var(--font-sans) !important;
	max-width: min(40rem, calc(100vw - 2rem)) !important;
	padding: var(--space-5, 1.5rem) !important;
}

.cmplz-cookiebanner .cmplz-title,
.cmplz-cookiebanner .cmplz-header {
	color: var(--color-text-primary) !important;
	font-size: var(--type-h3-size) !important;
	font-weight: var(--type-h3-weight) !important;
	margin-bottom: var(--space-3, 0.75rem) !important;
}

.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner .cmplz-body {
	color: var(--color-text-secondary) !important;
	font-size: var(--type-body-size) !important;
	line-height: var(--type-body-line) !important;
}

.cmplz-cookiebanner .cmplz-buttons,
.cmplz-cookiebanner .cmplz-btn-wrap {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: var(--space-3, 0.75rem) !important;
	margin-top: var(--space-4, 1rem) !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-accept,
.cmplz-cookiebanner button.cmplz-accept {
	background: var(--color-action-primary) !important;
	border-color: var(--color-action-primary) !important;
	border-radius: var(--radius-md) !important;
	color: var(--color-text-on-brand) !important;
	font-weight: 600 !important;
	min-height: 44px !important;
}

.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner button.cmplz-deny,
.cmplz-cookiebanner button.cmplz-view-preferences {
	background: var(--color-bg-surface) !important;
	border: 1px solid var(--color-action-secondary) !important;
	border-radius: var(--radius-md) !important;
	color: var(--color-action-secondary) !important;
	font-weight: 600 !important;
	min-height: 44px !important;
}

/* Hide WoodMart demo sidebars on shop/cart/checkout/account */
.wf-page-cart .sidebar-container,
.wf-page-cart .wd-sidebar,
.wf-page-cart aside.sidebar-container,
.wf-page-cart .widget-area,
.wf-page-cart .sidebar-right,
.wf-page-cart #sidebar-right,
.wf-page-checkout .sidebar-container,
.wf-page-checkout .wd-sidebar,
.wf-page-checkout .widget-area,
.wf-page-checkout .sidebar-right,
.wf-page-account .sidebar-container,
.wf-page-account .wd-sidebar,
.wf-page-account .widget-area,
.wf-page-orders .sidebar-container,
.wf-page-catalog .sidebar-container,
.wf-page-catalog .wd-sidebar,
.wf-page-catalog .widget-area,
body.woocommerce-cart .sidebar-container,
body.woocommerce-cart .wd-sidebar,
body.woocommerce-cart .widget-area,
body.woocommerce-cart .sidebar-right,
body.woocommerce-cart #sidebar-right,
body.woocommerce-checkout .sidebar-container,
body.woocommerce-checkout .wd-sidebar,
body.woocommerce-checkout .widget-area,
body.woocommerce-account .sidebar-container,
body.woocommerce-account .wd-sidebar,
body.woocommerce-account .widget-area,
body.post-type-archive-product .sidebar-container,
body.post-type-archive-product .widget-area {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	width: 0 !important;
}

body.woocommerce-cart .content-layout-wrapper,
body.woocommerce-cart .wd-content-layout,
body.woocommerce-cart .wd-content-area,
body.woocommerce-checkout .content-layout-wrapper,
body.woocommerce-account .content-layout-wrapper,
body.wf-page-cart .wd-content-area,
body.wf-page-checkout .wd-content-area {
	flex: 1 1 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* Hide PDP adjacent-nav chrome clutter */
body.single-product .wd-product-nav,
body.single-product .wd-action-btn.wd-wishlist-btn,
body.single-product .product-share,
body.single-product .wd-compare-btn {
	display: none !important;
}

/* Search form: force readable 2-col, capped width (not hero / catalog glass cards / big-search) */
.wf-search-module__form:not(.wf-hero__card-form):not(.wf-catalog-hero__search-form):not(.wf-big-search__form) {
	max-width: 28rem !important;
	width: 100%;
}

.wf-search-module__form:not(.wf-hero__card-form):not(.wf-catalog-hero__search-form):not(.wf-big-search__form) .wf-form-field,
.wf-search-module__form:not(.wf-hero__card-form):not(.wf-catalog-hero__search-form):not(.wf-big-search__form) .wf-form-field input[type="search"] {
	max-width: 100%;
	width: 100%;
}

@media (min-width: 768px) {
	.wf-search-module__form:not(.wf-hero__card-form):not(.wf-catalog-hero__search-form):not(.wf-big-search__form) {
		align-items: end !important;
		display: grid !important;
		gap: 1rem !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
	}
}

/* Cookie banner typography floor */
.cmplz-cookiebanner .cmplz-title::before {
	content: none;
}

.cmplz-cookiebanner .cmplz-title:empty,
#cmplz-manage-consent .cmplz-manage-consent {
	font-size: 1.05rem !important;
}

.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner .cmplz-body,
.cmplz-cookiebanner p {
	font-size: 1rem !important;
	line-height: 1.55 !important;
}

/* Breadcrumb / meta readability */
body.single-product .woocommerce-breadcrumb,
body.single-product .wd-breadcrumbs,
body.single-product .product_meta,
body.single-product .sku_wrapper {
	font-size: 0.9375rem !important;
	line-height: 1.5 !important;
}

/* Account = icon only (hide leftover text labels if any). */
.whb-header .wd-header-my-account.wd-style-icon .wd-tools-text,
.whb-header .wd-header-my-account.wd-style-icon-only .wd-tools-text {
	clip: rect(0, 0, 0, 0);
	border: 0;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.whb-header .wd-tools-element.wd-header-my-account > a,
.whb-header .wd-header-cart > a,
.whb-header .wd-header-mobile-nav > a {
	min-width: 44px;
	min-height: 44px;
}

.whb-header .wd-header-mobile-nav .wd-tools-text {
	clip: rect(0, 0, 0, 0);
	border: 0;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* -------------------------------------------------------------------------
   Mobile nav offcanvas — light panel, high-contrast readable type (≥16px).
   WoodMart `color-scheme-light` often paints light text; force brand tokens.
   ------------------------------------------------------------------------- */
.mobile-nav.wd-side-hidden,
.mobile-nav.wd-side-hidden-nav,
.wd-side-hidden.wd-side-hidden-nav {
	--wd-text-color: var(--color-text-primary);
	--wd-title-color: var(--color-text-primary);
	--wd-entities-title-color: var(--color-text-primary);
	--wd-entities-title-color-hover: var(--color-bg-brand);
	--wd-link-color: var(--color-text-primary);
	--wd-link-color-hover: var(--color-bg-brand);
	--wd-form-color: var(--color-text-primary);
	--wd-form-placeholder-color: var(--color-text-secondary);
	--wd-form-brd-color: var(--color-border-default);
	background: var(--color-bg-surface) !important;
	background-color: var(--color-bg-surface) !important;
	color: var(--color-text-primary) !important;
	font-family: var(--font-sans);
	font-size: 1.0625rem; /* 17px — above mobile readability floor */
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.mobile-nav.wd-side-hidden::before,
.mobile-nav.wd-side-hidden::after,
.mobile-nav .wd-heading-wrap,
.mobile-nav .wd-nav-wrapper,
.mobile-nav .wd-dropdown,
.mobile-nav .wd-scroll-content,
.mobile-nav .wd-search-form,
.mobile-nav .wd-search-results,
.mobile-nav .wd-search-results-wrapper,
.mobile-nav .wd-dropdown-results {
	background: var(--color-bg-surface) !important;
	background-color: var(--color-bg-surface) !important;
	color: var(--color-text-primary) !important;
}

.mobile-nav .close-side-widget,
.mobile-nav .wd-close-side,
.mobile-nav .wd-action-btn > a,
.mobile-nav .wd-nav-arrow {
	color: var(--color-text-primary) !important;
}

.mobile-nav .close-side-widget:hover,
.mobile-nav .close-side-widget:focus-visible,
.mobile-nav .wd-close-side:hover,
.mobile-nav .wd-close-side:focus-visible {
	color: var(--color-bg-brand) !important;
}

/* Search block — unified pill (input + icon button), fixed 48px height */
.mobile-nav .wd-search-form {
	border-bottom: 1px solid var(--color-border-default);
	margin: 0;
	padding: 14px 16px 12px;
}

.mobile-nav .searchform,
.mobile-nav form.searchform {
	align-items: center;
	background: var(--color-bg-page) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-pill) !important;
	box-shadow: var(--shadow-0);
	display: flex !important;
	gap: 0;
	height: 48px !important;
	margin: 0 !important;
	max-height: 48px !important;
	min-height: 48px !important;
	overflow: hidden;
	padding: 0 4px 0 0 !important;
	position: relative !important;
	transition:
		border-color var(--motion-fast),
		box-shadow var(--motion-fast);
	width: 100%;
}

.mobile-nav .searchform:focus-within {
	border-color: var(--color-focus-ring) !important;
	box-shadow: var(--shadow-focus);
}

.mobile-nav .searchform .s,
.mobile-nav .searchform input[type="text"].s,
.mobile-nav .searchform input[type="search"] {
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--color-text-primary) !important;
	flex: 1 1 auto;
	font-family: var(--font-sans) !important;
	font-size: 1rem !important;
	font-weight: 500;
	height: 48px !important;
	line-height: 48px !important;
	margin: 0 !important;
	max-height: 48px !important;
	min-height: 48px !important;
	padding: 0 12px 0 18px !important;
	width: 100% !important;
}

.mobile-nav .searchform .s::placeholder,
.mobile-nav .searchform input.s::placeholder {
	color: var(--color-text-secondary) !important;
	font-weight: 400;
	opacity: 1;
}

.mobile-nav .searchform .s:focus,
.mobile-nav .searchform .s:focus-visible,
.mobile-nav .searchform input.s:focus-visible {
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.mobile-nav .searchform .wd-clear-search {
	color: var(--color-text-secondary) !important;
	margin-right: 2px;
}

/* Icon-only submit — kill WoodMart absolute/text chrome */
.mobile-nav .searchform .searchsubmit,
.mobile-nav .searchform button.searchsubmit {
	align-items: center;
	background: var(--color-bg-brand) !important;
	border: 0 !important;
	border-radius: var(--radius-pill) !important;
	box-shadow: none !important;
	color: var(--color-text-on-brand) !important;
	cursor: pointer;
	display: inline-flex !important;
	flex: 0 0 40px;
	float: none !important;
	font-size: 0 !important; /* hide "Search" label */
	height: 40px !important;
	justify-content: center;
	line-height: 1 !important;
	margin: 0 0 0 4px !important;
	max-height: 40px !important;
	min-height: 40px !important;
	min-width: 40px !important;
	padding: 0 !important;
	position: relative !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
	transition: background-color var(--motion-fast), transform var(--motion-fast);
	width: 40px !important;
}

.mobile-nav .searchform .searchsubmit:hover,
.mobile-nav .searchform .searchsubmit:focus-visible {
	background: var(--color-bg-brand-strong) !important;
	color: var(--color-text-on-brand) !important;
	transform: none;
}

.mobile-nav .searchform .searchsubmit:active {
	transform: scale(0.96);
}

.mobile-nav .searchform .searchsubmit span {
	/* Keep accessible label for AT, hide visually */
	border: 0 !important;
	clip: rect(0, 0, 0, 0) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

/* Hide WoodMart icon-font ::before — use one clean SVG glyph */
.mobile-nav .searchform .searchsubmit::before {
	content: none !important;
	display: none !important;
}

.mobile-nav .searchform .searchsubmit::after {
	background-color: currentColor;
	content: "" !important;
	display: block !important;
	height: 16px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='black' stroke-width='2'/%3E%3Cpath d='M16.2 16.2L20 20' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='black' stroke-width='2'/%3E%3Cpath d='M16.2 16.2L20 20' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 16px;
}

@media (prefers-reduced-motion: reduce) {
	.mobile-nav .searchform .searchsubmit:active {
		transform: none;
	}
}

/* Fallback: hide Menü/Kategorien tabs if WHB still renders them */
.mobile-nav .wd-nav-mob-tab {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	visibility: hidden !important;
}

/* Primary menu links */
.mobile-nav .wd-nav-mobile,
.mobile-nav .mobile-pages-menu,
.mobile-nav .mobile-categories-menu {
	background: var(--color-bg-surface) !important;
	margin: 0;
	padding: var(--space-2) 0 var(--space-4);
}

.mobile-nav .wd-nav-mobile > li > a,
.mobile-nav .wd-nav-mobile .woodmart-nav-link,
.mobile-nav .mobile-pages-menu > li > a,
.mobile-nav .mobile-categories-menu > li > a {
	align-items: center;
	background: transparent !important;
	border-radius: 0;
	color: var(--color-text-primary) !important;
	cursor: pointer;
	display: flex;
	font-size: 1.125rem !important; /* 18px nav items */
	font-weight: 600 !important;
	letter-spacing: -0.01em;
	line-height: 1.35 !important;
	min-height: 52px;
	padding: 0.85rem 1.25rem !important;
	text-decoration: none !important;
	transition: background-color var(--motion-fast), color var(--motion-fast);
}

.mobile-nav .wd-nav-mobile > li > a .nav-link-text,
.mobile-nav .wd-nav-mobile .woodmart-nav-link .nav-link-text {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-transform: none;
}

.mobile-nav .wd-nav-mobile > li > a:hover,
.mobile-nav .wd-nav-mobile > li > a:focus-visible,
.mobile-nav .wd-nav-mobile > li.current-menu-item > a,
.mobile-nav .wd-nav-mobile > li.current_page_item > a {
	background: var(--color-bg-brand-soft) !important;
	color: var(--color-bg-brand-strong) !important;
}

.mobile-nav .wd-nav-mobile > li + li > a {
	border-top: 1px solid var(--color-border-default);
}

/* Account CTA at bottom of list */
.mobile-nav .wd-nav-mobile > li.menu-item-account > a,
.mobile-nav .wd-nav-mobile > li.login-side-opener > a {
	background: var(--color-bg-brand-soft) !important;
	border-top: 1px solid var(--color-border-default);
	color: var(--color-bg-brand-strong) !important;
	font-weight: 700 !important;
	margin-top: var(--space-2);
}

.mobile-nav .wd-nav-mobile > li.menu-item-account > a:hover,
.mobile-nav .wd-nav-mobile > li.login-side-opener > a:hover {
	background: var(--color-bg-brand) !important;
	color: var(--color-text-on-brand) !important;
}

/* Service shop: hide demo wishlist / compare in mobile drawer */
.mobile-nav .menu-item-wishlist,
.mobile-nav .menu-item-compare {
	display: none !important;
}

/* Opener arrow / side chrome stay light */
.mobile-nav.wd-opener-arrow::before,
.mobile-nav.wd-opener-arrow::after,
.wd-close-side-icon {
	background-color: var(--color-bg-surface) !important;
	color: var(--color-text-primary) !important;
}

.wd-close-side {
	background: rgba(18, 24, 32, 0.35) !important;
}

/* TASK-014 / Popcorn.space port — dark footer (centered brand + columns + wordmark).
   Sticky-reveal spacer removed: page ends when the footer top is reached. */
.wd-prefooter {
	display: none !important;
}

.wd-footer,
.wd-footer.footer-container,
footer.footer-container.wd-footer,
footer.footer-container {
	background: transparent !important;
	background-image: none !important;
	color: #fff;
	isolation: isolate;
	overflow: visible !important;
	padding: 0 !important;
	position: relative;
	z-index: 1;
}

.wd-footer .container,
.wd-footer .wd-entry-content,
.wd-footer .footer-widget-area {
	max-width: none;
	padding: 0;
	width: 100%;
}

.wd-footer .copyrights-wrapper {
	display: none !important;
}

.wf-footer-reveal {
	color: #fff;
	font-family: var(--font-sans);
	margin: 0;
	width: 100%;
}

.wf-footer-reveal__spacer {
	display: none; /* was 100lvh+24rem sticky-reveal travel — caused long empty scroll */
}

.wf-footer-reveal__panel {
	/* Same stage as .wf-catalog-hero__plane — navy, not charcoal. */
	background-color: #071018;
	color: #fff;
	isolation: isolate;
	position: relative;
	width: 100%;
}

.wf-footer-reveal__cap {
	display: none; /* sticky-reveal top lip — not needed in document-flow footer */
}

.wf-footer-reveal__body {
	--aurora-color1: rgba(11, 79, 138, 0.42);
	--aurora-color2: rgba(198, 40, 40, 0.28);
	background-color: #071018;
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

/* Hero aurora color wash — no star shader; grain stays on .wf-footer-reveal__noise. */
.wf-footer-reveal__body::before {
	animation: wf-aurora-pulse 12s ease-in-out infinite;
	background-image:
		radial-gradient(circle at 28% 40%, var(--aurora-color1) 0%, transparent 72%),
		radial-gradient(circle at 78% 60%, var(--aurora-color2) 0%, transparent 75%);
	content: "";
	inset: 0;
	opacity: 0.7;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

.wf-footer-reveal__body::after {
	background:
		radial-gradient(ellipse 55% 55% at -5% -10%, rgba(11, 79, 138, 0.5) 0%, transparent 70%),
		radial-gradient(ellipse 50% 50% at 105% 110%, rgba(198, 40, 40, 0.32) 0%, transparent 70%),
		radial-gradient(ellipse 40% 40% at 42% 58%, rgba(10, 47, 74, 0.55) 0%, transparent 72%);
	content: "";
	inset: 0;
	mix-blend-mode: screen;
	opacity: 0.5;
	pointer-events: none;
	position: absolute;
	z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
	.wf-footer-reveal__body::before {
		animation: none;
	}
}

.wf-footer-reveal__top {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(2.5rem, 5vw, 3.75rem);
	margin-inline: auto;
	max-width: 80rem;
	overflow: hidden;
	padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 0;
	position: relative;
	z-index: 2;
	text-align: left;
	width: 100%;
}

.wf-footer-reveal__brand {
	align-items: center;
	align-self: center;
	border-radius: 0.5rem;
	display: inline-flex;
	flex-shrink: 0;
	height: fit-content;
	justify-content: center;
	line-height: 0;
	margin-inline: auto;
	outline: none;
	width: fit-content;
}

.wf-footer-reveal__brand:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.wf-footer-reveal__brand img {
	display: block;
	height: auto;
	max-height: 3.025rem;
	max-width: min(15.4rem, 70vw);
	object-fit: contain;
	width: auto;
}

.wf-footer-reveal__nav {
	--wf-footer-sub-row: 1.5rem;
	--wf-footer-sub-h: calc(0.5rem + 2 * var(--wf-footer-sub-row) + 0.5rem);
	box-sizing: border-box;
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: 1fr;
	max-width: 56rem;
	min-width: 0;
	padding-bottom: calc(var(--wf-footer-sub-h) * 0.5);
	transition: padding 300ms cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
}

.wf-footer-reveal__nav:has(.wf-footer-reveal__group:focus-within),
.wf-footer-reveal__nav:has(.wf-footer-reveal__group:hover) {
	padding-bottom: 0;
}

@media (min-width: 640px) {
	.wf-footer-reveal__nav {
		--wf-footer-sub-row: 1.75rem;
		gap: 2rem clamp(2rem, 8vw, 6rem);
		grid-template-columns: repeat(3, minmax(0, 1fr));
		justify-content: center;
		justify-items: start;
		max-width: 48rem;
	}
}

@media (min-width: 960px) {
	.wf-footer-reveal__nav {
		gap: 2rem clamp(3rem, 10vw, 8rem);
		max-width: 52rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wf-footer-reveal__nav {
		transition: none;
	}
}

.wf-footer-reveal__col {
	display: flex;
	flex-direction: column;
	font-size: 1rem;
	min-width: 0;
	width: 100%;
}

.wf-footer-reveal__heading {
	color: #fff !important;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
	.wf-footer-reveal__heading {
		margin-bottom: 0.75rem;
	}
}

.wf-footer-reveal__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wf-footer-reveal__link {
	color: rgba(255, 255, 255, 0.55) !important;
	display: inline-block;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.5;
	max-width: 100%;
	overflow-wrap: anywhere;
	text-decoration: none;
	transition: color 160ms ease;
	white-space: normal;
}

/* Mailto / Tel: always one line — never wrap mid-address. */
.wf-footer-reveal__link[href^="mailto:"],
.wf-footer-reveal__link[href^="tel:"] {
	max-width: none;
	overflow-wrap: normal;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.wf-footer-reveal__link {
		font-size: 1.125rem;
		line-height: 1.75rem;
	}
}

.wf-footer-reveal__link:hover,
.wf-footer-reveal__link:focus-visible {
	color: #fff !important;
}

.wf-footer-reveal__link--toggle {
	align-items: center;
	cursor: default;
	display: inline-flex;
	gap: 0.375rem;
	width: fit-content;
}

.wf-footer-reveal__chevron {
	flex-shrink: 0;
	height: 1rem;
	transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
	width: 1rem;
}

.wf-footer-reveal__group:hover .wf-footer-reveal__chevron,
.wf-footer-reveal__group:focus-within .wf-footer-reveal__chevron {
	transform: rotate(180deg);
}

.wf-footer-reveal__group:hover .wf-footer-reveal__link--toggle,
.wf-footer-reveal__group:focus-within .wf-footer-reveal__link--toggle {
	color: #fff !important;
}

.wf-footer-reveal__submenu {
	height: 0;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	transition:
		height 300ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wf-footer-reveal__group:hover .wf-footer-reveal__submenu,
.wf-footer-reveal__group:focus-within .wf-footer-reveal__submenu {
	height: var(--wf-footer-sub-h);
	opacity: 1;
	pointer-events: auto;
}

.wf-footer-reveal__submenu ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0 0 0.75rem;
}

.wf-footer-reveal__wordmark {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	overflow: hidden;
	pointer-events: none;
	position: relative;
	width: 100%;
	z-index: 2;
}

.wf-footer-reveal__wordmark-inner {
	display: flex;
	justify-content: center; /* true center even when glyph string is wider than viewport */
	margin: 0;
	max-width: none;
	overflow: hidden;
	padding: 0;
	width: 100%;
}

.wf-footer-reveal__wordmark-text {
	color: #fff;
	display: block;
	flex: 0 0 auto;
	font-family: var(--font-sans);
	/* Viewport-based so the string centers on the full footer width */
	font-size: clamp(2.75rem, 12.5vw, 11rem);
	font-weight: 600;
	letter-spacing: -0.052em;
	line-height: 0.8;
	margin: 0 0 -0.28em;
	text-align: center;
	user-select: none;
	white-space: nowrap;
	width: max-content;
}

.wf-footer-reveal__noise {
	background-image: var(--wf-footer-noise-image);
	background-repeat: repeat;
	background-size: 128px 128px;
	inset: 0;
	mix-blend-mode: overlay;
	opacity: 0.55;
	pointer-events: none;
	position: absolute;
}

.wf-footer-reveal__noise--full {
	z-index: 10;
}

.wf-footer-reveal__edge {
	background-color: #071018;
	bottom: 0;
	height: 1px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	z-index: 20;
}

/* Legacy mega-footer selectors no longer used — keep inert if old HTML cached. */
.wf-footer-mega {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Site-wide premium polish (all customer pages; demo motorcycle excluded
   via redirects / not linked). Spacing, elevation, readability, usability.
   ------------------------------------------------------------------------- */

.wd-page-content,
.site-content,
.wd-content-area {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wd-page-content .entry-content > .wp-block-group.wf-section,
.wd-page-content > .wf-section {
	margin-inline: auto;
	max-width: min(var(--layout-max), calc(100% - 2rem));
}

.wd-page-content .entry-content > .wp-block-group.wf-section.alignfull,
.wd-page-content .entry-content > .wp-block-group.wf-hero,
.wd-page-content > .wf-section.wf-hero,
.wd-page-content > .wf-section.alignfull {
	max-width: none;
	width: 100%;
}

.btn,
.button,
.woocommerce a.button,
.woocommerce button.button {
	border-radius: var(--radius-md) !important;
	font-family: var(--font-sans);
	font-weight: var(--type-button-weight);
	letter-spacing: -0.01em;
	min-height: 48px;
	padding-inline: 1.2rem;
	transition:
		background-color var(--motion-fast),
		border-color var(--motion-fast),
		box-shadow var(--motion-fast),
		transform var(--motion-fast);
}

.btn:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	transform: translateY(-1px);
}

.btn:focus-visible,
.button:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.single_add_to_cart_button:focus-visible,
#place_order:focus-visible {
	box-shadow: var(--shadow-focus);
	outline: 2px solid var(--color-focus-ring);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.btn:hover,
	.button:hover,
	.woocommerce a.button:hover,
	.woocommerce button.button:hover {
		transform: none;
	}
}

/* Content pages: readable measure + calm surface cards.
   Exclude dark aurora/home heroes — those titles stay white. */
.page .entry-content > .wp-block-group.is-layout-constrained > .wp-block-heading,
.page .entry-content h1.wp-block-heading:not(.wf-hero__title):not(.wf-catalog-hero__title) {
	color: var(--color-bg-brand-strong);
	letter-spacing: -0.025em;
}

.page .entry-content a:not(.btn):not(.button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
	border-radius: 12px;
	border-width: 1px;
	box-shadow: var(--shadow-0);
	font-size: var(--type-body-size);
	line-height: 1.55;
	padding: 0.95rem 1.15rem;
}

.woocommerce-error {
	background: var(--color-alert-error-bg);
	border-color: var(--color-alert-error-border);
	color: var(--color-error);
}

.woocommerce-message {
	background: var(--color-alert-success-bg);
	border-color: var(--color-alert-success-border);
	color: var(--color-success);
}

.woocommerce-info {
	background: var(--color-bg-brand-soft);
	border-color: rgba(11, 79, 138, 0.18);
	color: var(--color-bg-brand-strong);
}

/* Soft page shells for cart / checkout / account headings. */
.wf-cart-summary,
.wf-checkout-heading,
.wf-account-heading,
.wf-checkout-form-wrap,
.wf-account-panel {
	margin-inline: auto;
	max-width: min(var(--layout-max), calc(100% - 2rem));
}

.wf-cart-line,
.wf-checkout-summary__item,
.wf-account-panel__login,
.wf-account-panel__register {
	background: var(--color-bg-surface);
	border-radius: 14px;
	box-shadow: var(--shadow-0);
}

/* Scroll-to-top — signal badge: enamel navy, RSA-red rim, white chevron. */
a.scrollToTop {
	isolation: isolate;
	overflow: visible;
	background:
		radial-gradient(120% 90% at 30% 18%, rgba(255, 255, 255, 0.22) 0%, transparent 52%),
		linear-gradient(165deg, #1362a8 0%, var(--color-bg-brand, #0b4f8a) 46%, var(--color-bg-brand-strong, #0a2f4a) 100%) !important;
	border: 2px solid var(--color-action-primary, #c62828);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.35),
		inset 0 -3px 6px rgba(7, 16, 24, 0.45),
		inset 0 0 0 1px rgba(198, 40, 40, 0.55),
		0 0 0 1px rgba(198, 40, 40, 0.22),
		0 1px 2px rgba(7, 16, 24, 0.2),
		0 8px 18px rgba(11, 79, 138, 0.28),
		0 18px 36px rgba(7, 16, 24, 0.32);
	color: var(--color-text-on-brand, #fff) !important;
	transition:
		background 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease,
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.22s ease;
}

a.scrollToTop.button-show:hover,
a.scrollToTop.button-show:focus-visible {
	background:
		radial-gradient(120% 90% at 28% 14%, rgba(255, 255, 255, 0.28) 0%, transparent 54%),
		linear-gradient(165deg, #1a74c0 0%, var(--color-bg-brand, #0b4f8a) 42%, #083a66 100%) !important;
	border-color: var(--color-action-primary-hover, #b91c1c);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.42),
		inset 0 -3px 7px rgba(7, 16, 24, 0.48),
		inset 0 0 0 1px rgba(185, 28, 28, 0.65),
		0 0 0 1px rgba(198, 40, 40, 0.35),
		0 2px 4px rgba(7, 16, 24, 0.22),
		0 12px 24px rgba(11, 79, 138, 0.36),
		0 22px 44px rgba(7, 16, 24, 0.36),
		0 0 0 4px rgba(198, 40, 40, 0.12);
	color: var(--color-text-on-brand, #fff) !important;
	transform: translateY(-3px);
}

a.scrollToTop.button-show:active {
	transform: translateY(-1px);
	box-shadow:
		inset 0 2px 5px rgba(7, 16, 24, 0.4),
		inset 0 0 0 1px rgba(198, 40, 40, 0.5),
		0 0 0 1px rgba(198, 40, 40, 0.28),
		0 4px 12px rgba(7, 16, 24, 0.28);
}

a.scrollToTop:focus-visible {
	outline: 2px solid var(--color-focus-ring, #1a6fb5);
	outline-offset: 3px;
}

a.scrollToTop::after {
	color: var(--color-text-on-brand, #fff);
	font-size: 1.2em;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	-webkit-text-stroke: 0.55px rgba(255, 255, 255, 0.95);
	text-shadow:
		0 1px 0 rgba(7, 16, 24, 0.35),
		0 0 0.5px rgba(255, 255, 255, 0.9);
	transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

a.scrollToTop.button-show:hover::after,
a.scrollToTop.button-show:focus-visible::after {
	color: var(--color-text-on-brand, #fff);
	-webkit-text-stroke-color: rgba(255, 255, 255, 0.95);
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	a.scrollToTop,
	a.scrollToTop::after {
		transition: none;
	}

	a.scrollToTop.button-show:hover,
	a.scrollToTop.button-show:focus-visible,
	a.scrollToTop.button-show:active {
		transform: none;
	}

	a.scrollToTop.button-show:hover::after,
	a.scrollToTop.button-show:focus-visible::after {
		transform: none;
	}
}

