/*
 * Halvar — WordPress/WooCommerce glue styles.
 * Small additive rules on top of the extracted design system (halvar.css):
 * accessibility helpers, the ledger list view, and the mobile filter drawer.
 */

/* Keep the sticky header working (so its acrylic/backdrop-filter frost shows as
   content scrolls under it). `overflow-x: clip` blocks horizontal scroll WITHOUT
   creating a scroll container that would break position:sticky (unlike hidden). */
html, body { overflow-x: clip; }

/* Page shell — short pages (404, empty account screens, a thin CMS page) used to
   leave the footer floating mid-viewport with bare --paper below it. Push it to
   the bottom instead. Sticky header is unaffected: #page is not a scroll
   container, so the header still sticks to the viewport. */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-wrap > .site-main { flex: 1 0 auto; }

/* Dark / light toggle — names the tone it switches to. Both label/icon pairs are
   rendered server-side (translatable); data-tone is set before the header paints
   (assets/js/halvar-tone.js), so the right pair shows first time. */
.modetog .to-light,
body[data-tone="dark"] .modetog .to-dark { display: none; }
body[data-tone="dark"] .modetog .to-light { display: flex; }

/* Force the theme font onto WooCommerce-generated text -------------------- */
/* WC styles many strings with var(--heading--font-family) (undefined here, so it
   falls back to a Helvetica stack). Define it as the theme sans, and hard-override
   the specific WC text components that hard-code their own font stack. */
:root,
body {
	--heading--font-family: var(--sans);
	--wp--preset--font-family--system-font: var(--sans);
}
.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p,
.woocommerce-terms-and-conditions,
.woocommerce-terms-and-conditions p,
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-password-hint,
.woocommerce-password-strength,
.woocommerce-form-login__rememberme,
.woocommerce-form-coupon-toggle,
.wc-block-components-notice-banner,
.wc-block-components-notice-banner * {
	font-family: var(--sans) !important;
}

/* Account / login spacing — separate the form cards from the heading + text. */
.account-page .co-grid,
.account-page .account-grid,
.account-login .co-grid { margin-top: 28px; }
.woocommerce-privacy-policy-text { margin: 12px 0 18px; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.woocommerce-form-register .ff,
.woocommerce-form-login .ff { margin-bottom: 4px; }

/* Screen-reader / skip link ------------------------------------------------ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	padding: 10px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r);
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
}

/* Visually-hidden checkbox inside the facet labels (keeps the .box visual) -- */
.fopt { cursor: pointer; }
.fopt .fopt-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

/* Ledger (list) view for the catalogue grid -------------------------------- */
.pgrid[data-view="ledger"] {
	display: block;
}
.pgrid[data-view="ledger"] .card {
	display: grid;
	grid-template-columns: 56px 1.4fr 1fr auto;
	align-items: center;
	gap: 18px;
	padding: 10px 14px;
}
.pgrid[data-view="ledger"] .card .fig {
	width: 56px;
	height: 56px;
	aspect-ratio: 1;
}
.pgrid[data-view="ledger"] .card .fig .pn,
.pgrid[data-view="ledger"] .card .fig .rc { display: none; }
.pgrid[data-view="ledger"] .card .specs { display: none; }

/* Quantity steppers — make the WooCommerce number input match the design ---- */
.stepper .qty-input,
.stepper input.qty {
	width: 44px;
	text-align: center;
	border: 0;
	background: transparent;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink);
	-moz-appearance: textfield;
	appearance: textfield;
}
.stepper .qty-input::-webkit-outer-spin-button,
.stepper .qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.stepper .quantity { display: contents; }

/* The cart's update button is driven by JS on quantity change. */
.update-cart-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	opacity: 0;
	pointer-events: none;
}

/* ==========================================================================
   WooCommerce form fields, notices, tables, account + login pages.
   Maps WC default markup onto the Halvar design language.
   ========================================================================== */

/* Inputs / selects / textareas — mirror the design's native `.field input`. ---- */
/* Native popups need an explicit foreground/background pair on Windows. */
body { color-scheme: light; }
body[data-tone="dark"] { color-scheme: dark; }
body select option, body select optgroup { background: var(--card); color: var(--ink); }
body select option:disabled { color: var(--ink-2); }

/* The chevron follows the text colour instead of WooCommerce's black SVG. */
.woocommerce div.product .pricebox form.cart .variations select,
body[data-acrylic] .resbar select,
.resbar select {
	-webkit-appearance: none; appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 16px center, right 11px center;
	background-size: 5px 5px; background-repeat: no-repeat;
}
body select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.site-search input::placeholder,
.h-search input::placeholder,
.sfield input::placeholder,
.field input::placeholder,
body input[placeholder]::placeholder,
body textarea[placeholder]::placeholder { color: var(--ink-2); opacity: 1; }

.fbody .input-text,
.fbody input[type="text"],
.fbody input[type="email"],
.fbody input[type="tel"],
.fbody input[type="password"],
.fbody input[type="number"],
.fbody select,
.account-content .input-text,
.account-content input[type="text"],
.account-content input[type="email"],
.account-content input[type="tel"],
.account-content input[type="password"],
.account-content select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 14.5px;
	outline: none;
	transition: border-color .15s, background .15s;
}
.fbody textarea,
.account-content textarea {
	width: 100%;
	min-height: 96px;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 14.5px;
	outline: none;
}
.fbody .input-text::placeholder,
.account-content .input-text::placeholder,
.fbody textarea::placeholder { color: var(--ink-2); opacity: 1; }
.fbody .input-text:focus,
.fbody input:focus,
.fbody select:focus,
.fbody textarea:focus,
.account-content .input-text:focus,
.account-content input:focus,
.account-content select:focus,
.account-content textarea:focus {
	border-color: var(--ink);
	background: var(--card);
}
.fbody label,
.account-content label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-2);
}
.fbody .required { color: var(--acc); border: 0; text-decoration: none; }

/* Beat WooCommerce's own high-specificity form-field styles (checkout/account). */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"],
.woocommerce form .form-row input[type="password"],
.woocommerce form .form-row input[type="number"],
.woocommerce form .form-row select,
.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .form-row select {
	height: 48px !important;
	padding: 0 14px !important;
	margin: 0 !important;
	background: var(--surface) !important;
	border: 1px solid var(--line-2) !important;
	border-radius: var(--r) !important;
	color: var(--ink) !important;
	font-family: var(--sans) !important;
	font-size: 14.5px !important;
	line-height: normal !important;
	box-shadow: none !important;
}
.woocommerce form .form-row textarea {
	min-height: 96px !important;
	padding: 12px 14px !important;
	background: var(--surface) !important;
	border: 1px solid var(--line-2) !important;
	border-radius: var(--r) !important;
	font-family: var(--sans) !important;
	color: var(--ink) !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
	border-color: var(--ink) !important;
	background: var(--card) !important;
	outline: none !important;
}
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; width: 100%; }
.woocommerce form .form-row label,
.woocommerce-account form .form-row label {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-2);
	margin-bottom: 8px;
}
/* select2 (country/state) — match the input look */
.woocommerce .select2-container .select2-selection--single {
	height: 48px !important;
	border: 1px solid var(--line-2) !important;
	border-radius: var(--r) !important;
	background: var(--surface) !important;
	display: flex;
	align-items: center;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 48px !important;
	padding: 0 14px !important;
	color: var(--ink) !important;
	font-family: var(--sans) !important;
	font-size: 14.5px !important;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 46px !important; right: 8px; }
.select2-dropdown { border-color: var(--line-3); background: var(--card); color: var(--ink); font: 14px/1.5 var(--sans); }
.select2-container--default .select2-search--dropdown .select2-search__field {
	min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-3);
	border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit;
}
.select2-container--default .select2-results__option { padding: 8px 12px; }
.select2-container--default .select2-results__option[aria-selected="true"] { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.select2-container--default .select2-results__option[aria-disabled="true"] { color: var(--ink-2); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--acc); color: #fff; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--ink-2); }
body .select2-container--default .select2-selection--single .select2-selection__arrow b {
	background: none; width: 0; height: 0; top: 50%; left: 50%; margin: -2px 0 0 -4px;
	border-style: solid; border-width: 5px 4px 0; border-color: var(--ink) transparent transparent; transform: none;
}
body .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-width: 0 4px 5px; border-color: transparent transparent var(--ink); }
.select2-container--default .select2-selection--single:focus-visible,
.select2-container--default .select2-search--dropdown .select2-search__field:focus-visible {
	outline: 2px solid var(--ink); outline-offset: 2px;
}

/* WC form-row grid (checkout / account) ----------------------------------- */
.ff,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 18px;
}
.ff .form-row,
.ff .field,
.woocommerce-billing-fields__field-wrapper .form-row {
	margin: 0;
	min-width: 0;
}
.ff .form-row-wide,
.ff .field.full,
.ff .form-row[id$="_country_field"],
.ff .form-row[id$="_address_1_field"],
.ff .form-row[id$="_address_2_field"],
.ff .form-row[id$="_company_field"],
.ff .form-row[id$="_email_field"] {
	grid-column: 1 / -1;
}

/* Account subpages (edit-account, edit-address, …) -------------------------
   These render WooCommerce's *default* form markup — plain <p class="form-row">
   rows plus a password <fieldset>. The fields are already styled above; the
   bits below are the elements WooCommerce leaves with raw browser styling. */
.account-content form .form-row { margin: 0 0 16px; }
.account-content form .form-row:last-child { margin-bottom: 0; }

/* Password-change section: replace the browser's default 2px groove fieldset
   with a clean ruled section, and turn the <legend> into a Halvar heading. */
.account-content fieldset {
	border: 0;
	border-top: 1px solid var(--line-3);
	margin: 24px 0 0;
	padding: 24px 0 0;
	min-inline-size: auto;
}
.account-content fieldset legend {
	display: block;
	width: 100%;
	float: none;
	padding: 0;
	margin-bottom: 18px;
	font-family: var(--exp); font-stretch: var(--exp-w);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ink);
}

/* Inline field hint (e.g. the display-name note) — small + muted, not the
   default oversized italic that bleeds the serif look into the form. */
.account-content em,
.account-content span[id$="_description"] {
	display: block;
	margin-top: 8px;
	font-style: normal;
	font-family: var(--mono);
	font-size: 10.5px;
	line-height: 1.6;
	letter-spacing: .02em;
	color: var(--ink-2);
	text-transform: none;
}

/* Primary submit (Zapisz zmiany) — accent CTA, matching the login button. */
.account-content form button[type="submit"],
.account-content form button.woocommerce-Button {
	background: var(--acc);
	border: 1px solid var(--acc);
	color: #fff;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 12px 22px;
	margin-top: 4px;
}
.account-content form button[type="submit"]:hover,
.account-content form button.woocommerce-Button:hover { filter: brightness(.96); }

/* WC notices --------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 20px;
	padding: 13px 16px;
	border: 1px solid var(--line-2);
	border-left: 3px solid var(--acc);
	border-radius: var(--r);
	background: var(--card);
	font-size: 13.5px;
	color: var(--ink-2);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.woocommerce-error { border-left-color: #c0392b; }
/* WooCommerce injects an icon (its icon font, content:"\e028") and clearfix
   pseudo-elements via ::before/::after. Inside our flex + accent-border notice
   the icon renders as a stray empty box, so suppress them. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after,
.woocommerce-noreviews::after {
	display: none;
	content: none;
}
.woocommerce-message .button,
.woocommerce-info .button {
	margin-left: auto;
}

/* Buttons fallback --------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid var(--ink);
	border-radius: var(--r);
	background: var(--card);
	color: var(--ink);
	font-family: var(--exp); font-stretch: var(--exp-w);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	text-decoration: none;
}
.btn.acc { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn.block { display: flex; width: 100%; }
.btn:hover { filter: brightness(.96); }

/* Add-to-cart loading state -----------------------------------------------
   Show a spinner from click until the item is added and the drawer opens.
   Covers WooCommerce's product-card buttons (they get .loading) and the
   theme's own AJAX buttons — single product + buy-bar — which get .is-adding.
   The spinner uses currentColor, so it adapts to dark text (card) or white
   text (accent buttons). */
@keyframes halvar-spin { to { transform: rotate(360deg); } }
.add_to_cart_button.loading,
.single_add_to_cart_button.loading,
.is-adding {
	pointer-events: none;
	opacity: .92;
}
.add_to_cart_button.loading > svg,
.single_add_to_cart_button.loading > svg,
.is-adding > svg { display: none; }
.add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::after,
.is-adding::after {
	content: "";
	display: inline-block;
	flex: none;
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: middle;
	animation: halvar-spin .6s linear infinite;
}

/* Empty catalogue / no-results — centered + ruled top like the design, but
   prominent: a bold heading message and a solid accent clear-filters button
   (the bare muted mono read as barely-there for an actual empty state). */
.empty-results {
	padding: 60px 24px 64px;
	text-align: center;
	border-top: 1px solid var(--line-2);
}
.empty-results p {
	margin: 0 auto 22px;
	max-width: 42ch;
	font-family: var(--exp); font-stretch: var(--exp-w);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--ink);
}
.empty-results .more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--r);
	background: var(--acc);
	border: 1px solid var(--acc);
	color: #fff;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}
.empty-results .more:hover { filter: brightness(.96); }

/* Account page layout ------------------------------------------------------ */
.account-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
	align-items: start;
}
/* WooCommerce's default woocommerce-layout.css floats the account navigation
   (float:left; width:30%) and content (float:right; width:68%). Those floats
   fight our grid: the nav shrinks to 30% and the helpbox flows up beside it,
   overlapping the menu. Neutralise them so the grid drives the layout. */
.account-nav .woocommerce-MyAccount-navigation,
.account-content.woocommerce-MyAccount-content {
	float: none;
	width: auto;
}
/* The side-nav sits beside the white dashboard tiles; the design's default grey
   --surface sidecard reads as washed-out against them. Use the white card
   surface so the menu looks crisp and clearly part of the layout. */
.account-nav .sidecard { background: var(--card); }
.account-nav .sidecard ul { list-style: none; margin: 0; padding: 0; }
.account-nav .sidecard li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 12px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
	text-decoration: none;
	/* Match the site's navigation convention (cf. .depts a): mono, uppercase. */
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.account-nav .sidecard li a .ar { color: var(--faint); }
/* Hover = darken for feedback; active (current page) = accent + an inset left
   bar so it's unmistakably the highlighted item (cf. the design's .depts a.on
   underline). Keeping the two distinct means the current page always reads as
   highlighted, while hover gives a separate, transient cue. */
.account-nav .sidecard li a:hover { color: var(--ink); }
.account-nav .sidecard li a:hover .ar { color: var(--ink-2); }
.account-nav .sidecard li.is-active a {
	color: var(--acc);
	font-weight: 600;
	box-shadow: inset 2px 0 0 var(--acc);
}
.account-nav .sidecard li.is-active a .ar { color: var(--acc); }
.account-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 8px;
}
.account-tiles .tcell {
	display: block;
	padding: 18px;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	background: var(--card);
	text-decoration: none;
	color: var(--ink);
}
.account-tiles .tcell:hover { border-color: var(--acc); }
.account-tiles .tt { font-family: var(--exp); font-stretch: var(--exp-w); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.account-tiles .dd { color: var(--mut); font-size: 12.5px; margin-top: 4px; }

/* Inline links inside account content (e.g. the dashboard greeting's
   "Wyloguj się" logout link) — accent + weight so they read as actions and
   stand out from the surrounding body text instead of blending in. */
.account-dashboard .secblock p a,
.woocommerce-MyAccount-content p a {
	color: var(--acc);
	font-weight: 600;
	text-decoration: none;
}
.account-dashboard .secblock p a:hover,
.woocommerce-MyAccount-content p a:hover { text-decoration: underline; }

/* Card acrylic ------------------------------------------------------------
   The original frosts only .fsec/.co-summary/.confirm via data-cardacrylic.
   Extend that exact recipe (--acr-* — same material as the header bar) to the
   theme's other card surfaces so product cards, account tiles and the side
   card pick up the same slight frosted-glass quality over the page pattern.
   Gated on data-cardacrylic + data-acrylic like the original; the higher
   specificity here beats the solid var(--card) backgrounds set above. */
body[data-cardacrylic="on"][data-acrylic="on"] .card,
body[data-cardacrylic="on"][data-acrylic="on"] .account-tiles .tcell,
body[data-cardacrylic="on"][data-acrylic="on"] .account-nav .sidecard {
	background: color-mix(in srgb, var(--card) var(--acr-tint, 75%), transparent);
	backdrop-filter: blur(var(--acr-blur, 20px)) saturate(var(--acr-sat, 1.42)) brightness(var(--acr-bright, 1));
	-webkit-backdrop-filter: blur(var(--acr-blur, 20px)) saturate(var(--acr-sat, 1.42)) brightness(var(--acr-bright, 1));
}

/* Login grid + order overview --------------------------------------------- */
.login-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.login-benefits .lb-intro { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.login-benefits .lb-list { list-style: none; margin: 0 0 20px; padding: 0; }
.login-benefits .lb-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.login-benefits .lb-list .lb-k { color: var(--acc); font-weight: 700; }
/* Login / register submit buttons — keep full-width at the foot of the form,
   overriding WooCommerce's default inline/floated button styles. */
.account-login form .btn,
.account-login form button[type="submit"] {
	display: flex !important;
	width: 100% !important;
	float: none !important;
	margin-top: 14px;
}
.account-login .login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 4px; font-size: 12.5px; }
.account-login .login-row .lost { color: var(--ink); white-space: nowrap; }
.account-login .login-benefits .helpbox { margin-top: 22px; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; font-size: 12.5px; }
.login-row .lost { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.order-overview {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--line-2);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	overflow: hidden;
}
.order-overview .overview-cell {
	background: var(--card);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.order-overview .overview-cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }

/* WC tables (orders, addresses, order details) ---------------------------- */
.woocommerce table.shop_table,
.woocommerce-orders-table,
table.woocommerce-table--order-details,
table.account-orders-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	font-size: 13.5px;
	overflow: hidden;
}
.woocommerce table.shop_table th,
.woocommerce-orders-table th {
	text-align: left;
	padding: 12px 14px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--mut);
	border-bottom: 1px solid var(--line-3);
}
.woocommerce table.shop_table td,
.woocommerce-orders-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
}
/* Use `a.button` / `button.button` so these tie WooCommerce's own
   `.woocommerce a.button` (0,2,1) and win on source order — otherwise the
   account/notice buttons fall back to WooCommerce's grey default. */
.woocommerce-orders-table .woocommerce-button,
.woocommerce-MyAccount-content a.button,
.woocommerce-MyAccount-content button.button:not([type="submit"]),
.account-content a.button,
.woocommerce-info a.button,
.woocommerce-message a.button {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border: 1px solid var(--ink);
	border-radius: var(--r);
	background: var(--card);
	color: var(--ink);
	font-family: var(--mono);
	font-size: 11px;
	text-transform: uppercase;
	text-decoration: none;
}
/* Addresses listing (my-address) — WooCommerce's default markup is a floated
   two-column set with raw <h3> titles and plain edit links. Lay it out as two
   Halvar cards with proper section headings and accent edit actions. */
.woocommerce-MyAccount-content > p { color: var(--ink-2); font-size: 14px; margin: 0 0 20px; }
.account-content .woocommerce-Addresses.col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 28px;
	width: auto;
}
/* Selector carries .woocommerce-Addresses too, so it ties WooCommerce's
   `.woocommerce .col2-set .col-1` (which floats + sets width:47%) and wins on
   source order — the grid then drives the columns. */
.account-content .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	margin: 0;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	background: var(--card);
	padding: 20px 22px;
}
.account-content .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.account-content .woocommerce-Address-title h2,
.account-content .woocommerce-Address-title h3 {
	margin: 0;
	font-family: var(--exp); font-stretch: var(--exp-w);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ink);
}
.account-content .woocommerce-Address-title .edit {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--acc);
	text-decoration: none;
	white-space: nowrap;
}
.account-content .woocommerce-Address-title .edit:hover { text-decoration: underline; }
.woocommerce-MyAccount-content address { font-style: normal; line-height: 1.6; color: var(--ink-2); font-size: 13.5px; }

@media (max-width: 640px) {
	.account-content .woocommerce-Addresses.col2-set { grid-template-columns: 1fr; }
}

/* Contact page ------------------------------------------------------------ */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.contact-cell {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 18px 20px;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	background: var(--card);
	text-decoration: none;
	color: var(--ink);
	transition: border-color .15s;
}
.contact-cell:hover { border-color: var(--acc); }
.contact-cell .cc-k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.contact-cell .cc-v { font-family: var(--exp); font-stretch: var(--exp-w); font-weight: 700; font-size: 16px; color: var(--ink); }
.contact-cell:hover .cc-v { color: var(--acc); }
.contact-cell .cc-d { font-size: 12.5px; color: var(--mut); line-height: 1.5; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* Payment box (checkout section D) ---------------------------------------- */
#payment ul.payment_methods {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	overflow: hidden;
}
#payment ul.payment_methods li {
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
}
#payment ul.payment_methods li:last-child { border-bottom: 0; }
#payment .payment_box {
	background: var(--surface);
	padding: 12px 16px;
	border-radius: var(--r);
	font-size: 13px;
	color: var(--ink-2);
}
#payment .place-order { margin-top: 8px; }

/* Sticky product buy-bar — slides up once the in-page buy panel scrolls away. */
.buybar.show { bottom: 0; }

/* Coupon "Apply" button — tone-safe text (design hard-codes #fff, which is
   invisible on the light --ink fill in dark mode). */
.promo button { color: var(--ink); }
.promo button:hover { color: var(--paper); }


/* Cart drawer (mini-cart) -------------------------------------------------- */
.drawer .drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.drawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mini-items {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	overflow-y: auto;
}
.mini-item {
	position: relative;
	display: grid;
	grid-template-columns: 52px 1fr;
	align-items: start;
	gap: 14px;
	padding: 16px 44px 16px 22px;
	border-bottom: 1px solid var(--line);
}
.mini-item .mi-th {
	width: 52px;
	height: 52px;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	background: var(--plate);
	overflow: hidden;
	flex: none;
}
.mini-item .mi-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-item .mi-info { min-width: 0; }
.mini-item .mi-nm { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.mini-item .mi-sku { margin-top: 3px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--mut); }
.mini-item .mi-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; }
.mini-item .mi-q { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }
.mini-item .mi-lt { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.mini-item .mi-rm {
	/* pin to the row's top-right; override WooCommerce core's absolute `.remove` */
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	bottom: auto !important;
	width: 22px; height: 22px;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	font-size: 0 !important;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line-2); border-radius: var(--r);
	color: var(--mut); background: var(--card);
}
.mini-item .mi-rm svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; }
.mini-item .mi-rm:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini-item .mi-rm:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-item .mi-rm svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.mini-foot { border-top: 1px solid var(--line-3); padding: 18px 22px; background: var(--card); }
.mini-sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; font-family: var(--exp); font-stretch: var(--exp-w); font-weight: 700; text-transform: uppercase; font-size: 14px; }
.mini-sub span:first-child { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; color: var(--mut); }
.mini-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-note { margin-top: 12px; font-size: 11px; color: var(--faint); text-align: center; }
.mini-empty { padding: 48px 24px; text-align: center; color: var(--mut); display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Mini-cart coupon (drawer) */
.mini-coupons { margin-bottom: 14px; }
.mini-promo { display: flex; gap: 8px; margin: 0 0 8px; }
.mini-promo input {
	flex: 1; min-width: 0; height: 40px; padding: 0 12px;
	border: 1px solid var(--line-2); border-radius: var(--r);
	background: var(--surface); color: var(--ink);
	font-family: var(--mono); font-size: 12px; outline: none;
}
.mini-promo input:focus { border-color: var(--ink); background: var(--card); }
.mini-promo button {
	flex: none; height: 40px; padding: 0 16px;
	border: 1px solid var(--ink); border-radius: var(--r);
	background: var(--card); color: var(--ink);
	font-family: var(--mono); font-size: 10px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.mini-promo button:hover { background: var(--ink); color: var(--paper); }
.mini-coupon-applied {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 10px; margin-bottom: 8px;
	border: 1px solid var(--line-2); border-radius: var(--r);
	background: var(--surface);
	font-family: var(--mono); font-size: 11px;
}
.mini-coupon-applied .mc-code { text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.mini-coupon-applied .mc-amt { margin-left: auto; color: var(--ok, #4b8b5e); font-weight: 600; }
.mini-coupon-applied .mc-rm-coupon {
	width: 18px; height: 18px; line-height: 16px; text-align: center;
	border: 1px solid var(--line-2); border-radius: var(--r);
	color: var(--mut); font-size: 13px;
}
.mini-coupon-applied .mc-rm-coupon:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini-coupon-msg { margin-bottom: 8px; }
.mini-coupon-msg .woocommerce-error,
.mini-coupon-msg .woocommerce-message { margin: 0; font-size: 12px; padding: 8px 12px; }

/* Mobile filters are moved outside the page stacking context by JavaScript. */
.filter-scrim { display: none; }
body.filters-open, body.cart-open { overflow: hidden; }
@media (max-width: 1080px) {
 .rail.mobile-filter-rail { display: block; position: fixed; inset: 0 auto 0 0; z-index: 1001; width: 340px; max-width: 88vw; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-right: 1px solid var(--line-2); padding: 18px; transform: translateX(-100%); visibility: hidden; }
 body.filters-open .rail.mobile-filter-rail { transform: none; visibility: visible; }
 body.filters-open .filter-scrim { display: block; position: fixed; inset: 0 0 0 min(340px,88vw); z-index: 1000; background: rgba(22,22,26,.46); }
 .resbar .filterbtn, .rail .rclose { display: inline-flex; }
}
@media (min-width: 1081px) {
 .rail .rclose, .resbar .filterbtn { display: none; }
}
@media (max-width: 860px) {
	.account-grid,
	.login-grid { grid-template-columns: 1fr; }
	.account-tiles { grid-template-columns: 1fr; }
}

/* The acrylic backdrop-filter on .h-search makes the form a stacking context,
   which traps the .sugg dropdown's z-index. Lift the whole form above the page
   sections (but below the sticky header, z-60) while suggestions are showing so
   the dropdown overlays following content instead of being pierced by it. */
.h-search.is-sugg-open,
.site-search.is-sugg-open { z-index: 50; }

/* Hairline separators between adjacent search-result rows. */
.sugg-row + .sugg-row { border-top: 1px solid var(--line); }

/* Live-search loading state (shown while suggestions are being fetched). */
.sugg-loading {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 16px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: .06em;
	color: var(--mut);
}
.sugg-spin {
	width: 14px;
	height: 14px;
	flex: none;
	border-radius: 50%;
	border: 2px solid var(--line-2);
	border-top-color: var(--acc);
	animation: hvspin .6s linear infinite;
}
@keyframes hvspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.sugg-spin { animation-duration: 1.5s; }
}

/* ------------------------------------------------------------------ *
 * Illustrations (halvar_illustration()).
 * The source art is opaque on a near-white ground, so it's processed into
 * background-knocked-out transparent PNGs (assets/illustrations/) with a
 * separate dimmed dark-mode variant. `.hv-illo--cut` = processed: no plate,
 * the art blends straight into --paper; light/dark images swap on data-tone.
 * Un-processed art (no illustrations/ file) still gets the framed plate.
 * ------------------------------------------------------------------ */
.hv-illo { margin: 0; }
.hv-illo img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ *
 * Inlined SVG illustrations (assets/illustrations/*.svg).
 *
 * The SVG is a layer manifest, not the artwork. Each named <g> holds the
 * original art for one object, cut out of the source PNG — so the pixels are
 * exactly the source's (no vectorisation, nothing to go soft) while the objects
 * stay separable and animatable. Both tones ship: the light/dark layers swap on
 * data-tone, using the same *-dark art the PNG pair used.
 *
 * Every layer of one illustration, both tones, lives in ONE packed image
 * (assets/illustrations/slices/<name>-atlas.webp), and a layer is that image
 * clipped to its own rectangle. A layer per file meant thirty requests and the
 * drawing assembling itself a piece at a time; one file cannot arrive in parts.
 *
 * halvar_illustration() inlines these rather than using <img> because an SVG
 * loaded as an image is sandboxed — it cannot load the slice files at all,
 * and its layers could not be animated from the page.
 * ------------------------------------------------------------------ */
.hv-illo svg {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ *
 * Layer motion.
 *
 * Every layer group carries `transform-box: view-box` plus its own
 * `transform-origin` (in the <style> block inside each file), so one transform
 * moves every run of that layer as a single rigid body about its own centre —
 * `.hv404-cone { transform: rotate(4deg) }` needs no further setup.
 *
 * Where an object ships split across groups (an open box, a face plus the
 * emblem printed on it) each part also carries a shared `-all` class. Drive the
 * `-all` class to move the whole object, the plain one to move just that part —
 * animating `.hvpayment-box` alone leaves its printed logo behind on the belt.
 *
 * The brief is ambient, not narrative: nothing should read as a thing
 * happening, only as art that is alive. Amplitudes are single-digit degrees and
 * ~10px, and durations are deliberately not round, so two objects in one
 * drawing never fall into step and start pulsing together.
 *
 * These are prototyped in design/illustrations/preview.html, which gates the
 * same rules behind a toggle and can hold a layer at a large static angle to
 * check rigidity. Tune there first — the whole set is visible side by side.
 * ------------------------------------------------------------------ */
.hv404-charger { animation: hv-wave 5s ease-in-out infinite; }
.hv404-bubble { animation: hv-pop 2.2s ease-in-out infinite; }
.hv404-cone { animation: hv-rock 4s ease-in-out infinite; }

/* Benefits: the four nodes lift in sequence, so the row reads left to right. */
.hvbenefits-node-1 { animation: hv-lift 3.2s ease-in-out infinite; }
.hvbenefits-node-2 { animation: hv-lift 3.2s ease-in-out .25s infinite; }
.hvbenefits-node-3 { animation: hv-lift 3.2s ease-in-out .5s infinite; }
.hvbenefits-node-4 { animation: hv-lift 3.2s ease-in-out .75s infinite; }

.hvcontactus-plane { animation: hv-fly 4s ease-in-out infinite; }
.hvcontactus-plant { animation: hv-rock 3.68s ease-in-out infinite; }
.hvcontactus-bubble { animation: hv-pop 2.4s ease-in-out infinite; }

.hvnewsletter-bell { animation: hv-ring 2.6s ease-in-out infinite; }
.hvnewsletter-letter { animation: hv-lift 3.2s ease-in-out infinite; }
.hvnewsletter-plant { animation: hv-rock 4.09s ease-in-out infinite; }

/* The shackle drops shut, then rests — the padlock body stays put. */
.hvnoaccess-shackle { animation: hv-shut 4.4s cubic-bezier(.4, 0, .3, 1) infinite; }

.hvnoproductsfo-plant { animation: hv-rock 3.6s ease-in-out infinite; }

/* The badge pops about its BASE, not its middle — see ORIGIN in the build. Its
 * lower edge is behind the box and rebuilt, so growing it about the centre slid
 * that rebuilt edge out over the box's front flap. */
.hvorderplaced-badge { animation: hv-pop 2s ease-in-out infinite; }
/* `decor` here is nine stray dots spread across the whole drawing, not a cluster:
 * drifting them as one group slid them like a sheet of glass. The eleven marks
 * that read as the burst are each their own `-spark-` layer and glint on their
 * own clocks, which is what "moving independently" has to mean. */

.hvpayment-box-all { animation: hv-belt 6.4s ease-in-out infinite; }
.hvpayment-shield { animation: hv-pop 2.6s ease-in-out infinite; }

.hvunavailables-gear-all { animation: hv-turn 7s ease-in-out infinite; }
.hvunavailables-cone { animation: hv-rock 4.2s ease-in-out infinite; }

/* Warehouse: the dock boxes shuttle out and back, the tree sways. */
.hvwarehouse-boxes { animation: hv-dock 5.2s ease-in-out infinite; }
.hvwarehouse-tree { animation: hv-rock 3.85s ease-in-out infinite; }

/* The empty shelf gets a drawn gust where the stock used to be. These three are
 * real paths rather than slices, so unlike every other layer they stay sharp at
 * any size. */
.hvnoproductsfo-wind-1 { animation: hv-gust 4.6s ease-in-out infinite; }
.hvnoproductsfo-wind-2 { animation: hv-gust 5.9s ease-in-out -1.4s infinite; }
.hvnoproductsfo-wind-3 { animation: hv-gust 7.1s ease-in-out -3.2s infinite; }

/* Every loose mark is its own layer, so they can breathe out of step. Barely
 * any movement — the point is that the field is alive, not that anything is
 * happening. The nth-of-type buckets count <g> siblings, sparks and objects
 * alike, so which spark lands in which bucket is arbitrary: that is the point,
 * it puts a different clock on adjacent marks so the set never blinks together.
 *
 * `g[id]`, not `[id]`. A layer group is not the only thing in the file carrying
 * a layer's name — each one also has a <clipPath> of the same name, and an
 * unqualified attribute selector animates that too. A moving clip window is not
 * a moving layer: it slides the hole the layer is seen through, so the mark gets
 * squared off on one side and shows the atlas next door on the other. */
.hv-illo svg g[id*="-spark-"] { animation: hv-glint 5.2s ease-in-out infinite; }
.hv-illo svg g[id*="-spark-"]:nth-of-type(5n) { animation-duration: 6.7s; animation-delay: -1.3s; }
.hv-illo svg g[id*="-spark-"]:nth-of-type(5n+1) { animation-duration: 4.4s; animation-delay: -2.9s; }
.hv-illo svg g[id*="-spark-"]:nth-of-type(5n+2) { animation-duration: 7.9s; animation-delay: -0.6s; }
.hv-illo svg g[id*="-spark-"]:nth-of-type(5n+3) { animation-duration: 5.8s; animation-delay: -4.1s; }

/* Size only — no rotation, no drift. Each mark breathes 10% on its own clock. */
@keyframes hv-glint { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.1); } }

/* Drift ALONG the stroke, not across it — the marks rise to the right, so a
 * pure translateX slides them off their own line. */
@keyframes hv-gust {
	0%, 100% { transform: translate(-4px, .9px); opacity: .45; }
	50% { transform: translate(4px, -.9px); opacity: 1; }
}

@keyframes hv-rock { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* A machine easing against its stop, not a free-spinning wheel. */
@keyframes hv-turn { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

@keyframes hv-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes hv-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hv-ring { 0%, 72%, 100% { transform: rotate(0); } 78% { transform: rotate(13deg); } 88% { transform: rotate(-9deg); } }
@keyframes hv-fly { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(14px, -12px) rotate(-7deg); } }

/* Barely there — the robot is holding the cable, not conducting. */
@keyframes hv-wave { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }

/* The parcel travels UP the belt, and recedes as it goes.
 *
 * A conveyor moves its load along its own run, and this one runs away from the
 * viewer toward the back right, so the parcel goes up and to the right and gets
 * smaller — it does not slide down toward the front. Two earlier versions had it
 * going the other way: -24 degrees, which drifts 0.76px off the belt for every px
 * travelled and visibly floats above the tape, and then +16, the tape's near-edge
 * slope, which is steeper than the surface the parcel sits on and sinks it into
 * the belt's front face.
 *
 * -0.256 is the tape's own centreline: its far edge runs -0.146 and its near edge
 * -0.366, and a load sitting across the full width travels along the mean of them.
 * Those are the same two lines the build draws the tape from (TAPE in build_v2),
 * so the parcel and the surface it rides on cannot disagree.
 *
 * The scale is the part a translation alone cannot do. Moving up a belt drawn in
 * perspective means moving away, and this tape is 114px deep at x=160 against 61px
 * at x=400 — over the parcel's own run that is 6%. Without it the parcel reads as
 * sliding sideways across the belt rather than travelling along it. */
@keyframes hv-belt {
	0%, 100% { transform: translate(-26px, 6.7px) scale(1.06); }
	50% { transform: translate(26px, -6.7px) scale(.94); }
}

/* Lift, hold open, snap shut, one small bounce, then rest closed a while. */
@keyframes hv-shut {
	0% { transform: translateY(0); }
	16% { transform: translateY(-14px); }
	44% { transform: translateY(-14px); }
	56% { transform: translateY(0); }
	61% { transform: translateY(-3.5px); }
	67% { transform: translateY(0); }
	100% { transform: translateY(0); }
}

/* Out of the dock toward the viewer, hold, then back in — the opening faces
 * front-left, so "out" is down-left and very slightly larger. */
@keyframes hv-dock {
	0%, 100% { transform: translate(0, 0) scale(1); }
	40% { transform: translate(-13px, 6px) scale(1.05); }
	60% { transform: translate(-13px, 6px) scale(1.05); }
}

/* None of this carries information, so under reduced motion all of it goes. */
@media (prefers-reduced-motion: reduce) {
	.hv-illo svg * { animation: none !important; transition: none !important; }
}

/* Fallback plate for un-processed (raw) art only. */
.hv-illo:not(.hv-illo--cut) { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #f7f6f6; }
.hv-illo--band:not(.hv-illo--cut) { background: #fff; }
body[data-tone="dark"] .hv-illo:not(.hv-illo--cut) { border-color: rgba(244, 244, 243, .16); box-shadow: 0 16px 38px -18px rgba(0, 0, 0, .7); }

/* Processed art: swap the light/dark image on tone (JS sets data-tone). */
.hv-illo--cut .hv-illo-d { display: none; }
body[data-tone="dark"] .hv-illo--cut .hv-illo-l { display: none; }
body[data-tone="dark"] .hv-illo--cut .hv-illo-d { display: block; }

/* Centred "state" art (404, empty results, order placed, no access…). */
.hv-illo--state { max-width: 340px; margin: 0 0 30px; }
.hv-illo:not(.hv-illo--cut).hv-illo--state { padding: 10px; }

/* Wide banner art (benefits, warehouse, payment, contact). Capped at its
 * intrinsic width inline; centred and fluid below that. */
.hv-illo--band { width: 100%; margin: 0 auto 8px; }

/* Optional horizontal centring. */
.hv-illo--center { margin-left: auto; margin-right: auto; }

/* Contextual spacing where art sits above/within existing blocks. */
.empty-results .hv-illo, .order-received .hv-illo { margin-bottom: 26px; }
.fsec .hv-illo--band { max-width: 380px; margin: 0 0 22px; }
.contact-page aside .hv-illo, .about-page .hv-illo--band { margin-bottom: 20px; }
.spanel .hv-illo { max-width: 190px; margin: 0 0 22px; }
.co-gate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 0 8px; }
.co-gate .hv-illo--state { margin-bottom: 20px; }

/* ------------------------------------------------------------------ *
 * 404 (404.php) — a centred state page built on the hero's .hcenter
 * stack, so a dead URL still reads as the same system. Only the
 * proportions differ: the art already carries a huge "404", so the
 * heading sits a size below the hero's and the whole block is shorter.
 * ------------------------------------------------------------------ */
.error-404 .hcenter { min-height: min(62vh, 560px); padding: 52px 0 76px; }
.error-404 .hv-illo--state { max-width: 300px; margin: 0 auto 22px; }
.error-404 .hcenter h1 { font-size: clamp(28px, 4.6vw, 52px); }
.error-404 .hcenter .sub { margin-top: 16px; max-width: 46ch; }
.error-404 .h-search { max-width: 620px; margin-top: 28px; }
.e404-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; }

@media (max-width: 700px) {
	.error-404 .hcenter { min-height: 0; padding: 36px 0 56px; }
	.error-404 .hv-illo--state { max-width: 232px; }
	.e404-actions .btn { flex: 1 1 auto; }
}
/* ------------------------------------------------------------------ *
 * Coming soon / maintenance page (coming-soon.php).
 * ------------------------------------------------------------------ */
.hv-coming-body { background: var(--paper); }
.hv-coming { min-height: 100vh; min-height: 100dvh; max-width: 660px; margin: 0 auto; padding: 56px 24px 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; color: var(--ink); }
.hv-coming .cs-illo { max-width: 400px; }
.hv-coming .cs-eye { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.hv-coming h1 { font-family: var(--exp); font-stretch: var(--exp-w); font-weight: 800; text-transform: uppercase; letter-spacing: -.012em; line-height: .98; font-size: clamp(30px, 6vw, 48px); margin: 0; }
.hv-coming .cs-sub { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; margin: 0; }
.hv-coming .cs-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 6px; }
.hv-coming .cs-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--mut); margin: 8px 0 0; }
.hv-coming .cs-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.hv-coming .cs-brand { margin-bottom: 6px; }

/* WooCommerce controls retained by the custom storefront. */
.halvar-gallery { min-width: 0; }
.woocommerce div.product .halvar-gallery div.images.woocommerce-product-gallery { position: relative; width: 100%; float: none; margin: 0; }
.halvar-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.halvar-gallery .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }
.halvar-gallery .flex-viewport { border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce div.product .halvar-gallery div.images .flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 12px 0 0; padding: 0; }
.woocommerce div.product .halvar-gallery div.images .flex-control-thumbs li { float: none; width: auto; margin: 0; }
.halvar-gallery .flex-control-thumbs img { width: 100%; height: auto; cursor: pointer; opacity: .6; border: 1px solid var(--line); border-radius: var(--r); }
.halvar-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--acc); }
.halvar-gallery .woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; background: var(--paper); padding: 10px; border-radius: 50%; }
.pricebox form.cart { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pricebox form.variations_form, .pricebox form.grouped_form { display: block; }
.pricebox .variations { width: 100%; margin: 12px 0; }
.pricebox .variations th { text-align: left; padding-right: 12px; }
.woocommerce div.product .pricebox form.cart .variations select {
	width: 100%; min-height: 44px; padding: 12px 36px 12px 12px; margin-right: 0;
	background-color: var(--surface); color: var(--ink); border: 1px solid var(--line-3);
	border-radius: var(--r); font: 14px/1.4 var(--sans);
}
.woocommerce div.product .pricebox .variations label { color: var(--ink-2); }
.pricebox .single_variation_wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.pricebox .woocommerce-grouped-product-list td { padding: 8px; }
.pricebox .qty { width: 70px; padding: 13px 6px; text-align: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); color: var(--ink); }
.pricebox .single_add_to_cart_button { background: var(--acc); color: #fff; border: 0; border-radius: var(--r); padding: 14px 20px; cursor: pointer; font: 600 14px var(--sans); }
.pricebox .single_add_to_cart_button.disabled { opacity: .5; }
.halvar-save-form { margin: 14px 0 0; }
.halvar-save { display: inline-block; margin-top: 12px; padding: 8px 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: underline; font: 13px var(--sans); }
.halvar-saved-item { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.halvar-saved-item > a:first-child { flex: 1; min-width: 180px; }
.halvar-saved-item form { margin: 0; }
.checkout-page .fbody h3 { font-size: 18px; margin: 0 0 18px; }
.checkout-page .woocommerce-billing-fields__field-wrapper, .checkout-page .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.checkout-page .form-row { margin: 0 0 12px; min-width: 0; }
.checkout-page .form-row-wide { grid-column: 1 / -1; }
.checkout-page .form-row label { display: block; margin-bottom: 7px; }
.checkout-page .select2-container { width: 100% !important; }
.checkout-page .woocommerce-additional-fields { margin-top: 22px; }
.checkout-page .srow span:last-child, .cart-page .srow span:last-child { text-align: right; }
.srow .woocommerce-remove-coupon { font-size: 11px; margin-left: 6px; text-decoration: underline; }
.fcol li, .fbot li { list-style: none; }
.fbot li { display: inline; }
.halvar-currency select { color: inherit; background: transparent; border: 1px solid var(--line-2); padding: 4px; font: inherit; }
.halvar-currency select option { color: var(--ink); background: var(--card); }
.halvar-language { display: flex; gap: 8px; }
.halvar-language ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.signup .tnp-subscription { max-width: none; margin: 0; }
.signup .tnp-field { margin-bottom: 12px; }
.signup .tnp-field label { display: block; margin-bottom: 6px; }
.signup .tnp-email { width: 100%; padding: 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: var(--r); }
.signup .tnp-submit { padding: 14px 24px; border: 0; background: var(--acc); color: white; border-radius: var(--r); cursor: pointer; }
@media(max-width:600px) {
 .checkout-page .woocommerce-billing-fields__field-wrapper, .checkout-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
 .pricebox .single_add_to_cart_button { flex: 1; }
}

.checkout-page .woocommerce-billing-fields__field-wrapper > .form-row,
.checkout-page .woocommerce-shipping-fields__field-wrapper > .form-row { width: 100%; float: none; }
body[data-sig="specimen"] .cart-page .rule::after { content: none; }

/* Keep native WooCommerce forms within the theme's type and colour system. */
.woocommerce div.product .pricebox form.cart { padding: 0 24px 24px; margin-bottom: 0; }
.pricebox > .halvar-save, .pricebox > .halvar-save-form { margin: 0 24px 20px; }
.woocommerce div.product .pricebox .woocommerce-variation-price .price { color: var(--ink); }
.woocommerce div.product .pricebox button.single_add_to_cart_button,
.woocommerce .checkout-page #payment #place_order,
.account-recovery .woocommerce button.button {
 background: var(--acc); color: #fff; border: 0; border-radius: var(--r); padding: 14px 20px; font: 600 14px var(--sans); cursor: pointer;
}
.woocommerce div.product .pricebox button.single_add_to_cart_button:hover,
.woocommerce .checkout-page #payment #place_order:hover,
.account-recovery .woocommerce button.button:hover { background: var(--ink); color: var(--paper); }
.woocommerce div.product .pricebox button.single_add_to_cart_button:disabled,
.woocommerce div.product .pricebox button.single_add_to_cart_button.disabled { background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-3); opacity: 1; cursor: not-allowed; }
.woocommerce-checkout .checkout-page #payment { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); }
.woocommerce-checkout .checkout-page #payment div.payment_box { background: var(--card); color: var(--ink); }
.woocommerce-checkout .checkout-page #payment div.payment_box::before { border-bottom-color: var(--card); }
.account-recovery-card { max-width: 640px; }
.account-recovery .ptop { margin-bottom: 24px; }
.account-recovery-card .fbody { padding: 24px; }
.account-recovery .woocommerce form .form-row { float: none; width: 100%; padding: 0; margin: 0 0 18px; }
.account-recovery .woocommerce form .input-text { width: 100%; padding: 12px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: inherit; }
.ledger-sale { display: none; }
/* Nested backdrop filters cannot blur content outside the sticky header. */
.site-search .sugg, .h-search .sugg,
body[data-acrylic="on"] .site-search .sugg { background: var(--paper); }
.pgrid[data-view="ledger"] .fig .tag { display: none; }
.pgrid[data-view="ledger"] .ledger-sale { display: inline-block; color: var(--acc); font: 600 11px var(--mono); margin-bottom: 5px; }
@media (max-width: 760px) {
 header.site .s-mast { height: auto; min-height: 64px; padding-top: 12px; padding-bottom: 12px; row-gap: 12px; }
 body[data-handoff] header.site .site-search { display: flex; grid-column: 1 / -1; grid-row: 2; max-width: none; opacity: 1; pointer-events: auto; }
 header.site .site-search input { min-width: 0; width: 100%; }
 header.site .site-search .ret { flex: none; }
 .sugg .sugg-row:not(.allrow) { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; }
 .sugg .sugg-row:not(.allrow) .sg-pn { grid-column: 1 / -1; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
 .sugg .sugg-row:not(.allrow) .sg-nm { white-space: normal; overflow-wrap: anywhere; }
 .sugg .sugg-row:not(.allrow) .sg-meta { margin-left: 0; }
 .pgrid[data-view="ledger"] .card { grid-template-columns: 56px minmax(0,1fr); gap: 12px; }
 .pgrid[data-view="ledger"] .card .foot { grid-column: 1 / -1; }
}
