/* ==========================================================================
   HTH Lausnir — theme stylesheet
   Tokens come from theme.json (var(--wp--preset--*)).
   1 Base · 2 Header & navigation · 3 Footer · 4 Block styles · 5 Components
   6 Product grid · 7 Single product · 8 Cart, checkout, account · 9 Misc
   ========================================================================== */

:root {
	--hth-radius-sm: var(--wp--custom--radius--sm, 4px);
	--hth-radius-md: var(--wp--custom--radius--md, 8px);
	--hth-radius-lg: var(--wp--custom--radius--lg, 14px);
	--hth-ease: var(--wp--custom--transition, 180ms cubic-bezier(.2, .7, .3, 1));
	--hth-topbar-h: 2.25rem;
	--hth-brand-on-dark: #F2474F;
	--hth-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E");
	--hth-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161616' stroke-width='1.6'/%3E%3C/svg%3E");
	--hth-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 6h18M13 1l5 5-5 5' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* 1 Base ------------------------------------------------------------------ */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { overflow-x: clip; }
:where(h1, h2, h3, h4) { text-wrap: balance; font-stretch: 94%; }
:where(p, li) { text-wrap: pretty; }
::selection { background: var(--wp--preset--color--brand); color: #fff; }
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 2px;
}
.hth-main { min-height: 50vh; }
.hth-main--landing > .wp-block-post-content > :first-child { margin-block-start: 0; }
.hth-main--landing > .wp-block-post-content > :last-child { margin-block-end: 0; }
.hth-main--landing > .wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* 2 Header & navigation ----------------------------------------------------- */

.hth-site-header {
	position: sticky;
	top: calc(var(--hth-topbar-h) * -1);
	z-index: 100;
}
.admin-bar .hth-site-header { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--hth-topbar-h)); }

.hth-topbar {
	height: var(--hth-topbar-h);
	display: flex;
	align-items: center;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.hth-topbar > .alignwide { width: 100%; }
.hth-topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hth-topbar a { color: inherit; text-decoration: none; }
.hth-topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hth-topbar strong { color: var(--hth-brand-on-dark); font-weight: 600; }
@media (max-width: 781px) {
	.hth-topbar__contact { display: none; }
	.hth-topbar > .alignwide { justify-content: center !important; }
}

.hth-header { border-bottom: 1px solid var(--wp--preset--color--line); position: relative; }
.hth-header__bar { min-height: 64px; gap: var(--wp--preset--spacing--40); }
.hth-header__logo { flex: 0 0 auto; }
.hth-header__logo img { width: clamp(136px, 13vw, 176px); height: auto; }
.hth-header__actions { flex: 0 0 auto; gap: 0.15rem !important; }

.hth-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	padding-block: 0.6rem;
}
.hth-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { position: relative; }
.hth-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.15rem;
	height: 2px;
	background: var(--wp--preset--color--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--hth-ease);
}
.hth-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.hth-nav .wp-block-navigation__container > .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after { transform: scaleX(1); }

.hth-nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: var(--hth-radius-md);
	box-shadow: var(--wp--preset--shadow--lift);
	padding: 0.5rem !important;
	min-width: 250px !important;
}
.hth-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	padding: 0.5rem 0.75rem !important;
	border-radius: var(--hth-radius-sm);
}
.hth-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--brand);
}

/* Desktop: "Lausnir" opens as a four-column mega panel. */
@media (min-width: 1100px) {
	.hth-nav.wp-block-navigation,
	.hth-nav .wp-block-navigation__responsive-container:not(.is-menu-open),
	.hth-nav .wp-block-navigation__responsive-close,
	.hth-nav .wp-block-navigation__responsive-dialog,
	.hth-nav .wp-block-navigation__responsive-container-content,
	.hth-nav .hth-mega { position: static; }

	.hth-nav .hth-mega > .wp-block-navigation__submenu-container {
		left: 50% !important;
		top: 100% !important;
		transform: translateX(-50%);
		width: min(1080px, calc(100vw - 3rem)) !important;
		display: grid !important;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.5rem 1.5rem;
		padding: 1.5rem !important;
		border-top: 3px solid var(--wp--preset--color--brand) !important;
		border-radius: 0 0 var(--hth-radius-md) var(--hth-radius-md);
	}
	.hth-nav .hth-mega > .wp-block-navigation__submenu-container > .wp-block-navigation-item { display: block; }
	.hth-nav .hth-mega > .wp-block-navigation__submenu-container > .has-child > .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--display);
		font-weight: 800;
		font-size: var(--wp--preset--font-size--xs);
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--wp--preset--color--brand);
		border-bottom: 1px solid var(--wp--preset--color--line);
		border-radius: 0;
		margin-bottom: 0.35rem;
	}
	.hth-nav .hth-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		position: static !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: auto !important;
		height: auto !important;
		min-width: 0 !important;
		overflow: visible !important;
		border: 0 !important;
		box-shadow: none !important;
		padding: 0 !important;
		transform: none !important;
	}
	.hth-nav .hth-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon { display: none; }
}

/* Below 1100px the full menu doesn't fit next to the logo and icons: use the overlay. */
@media (max-width: 1099px) {
	.hth-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hth-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.hth-header__bar { gap: var(--wp--preset--spacing--20); }
	.hth-header__actions { order: 2; margin-left: auto; }
	.hth-nav { order: 3; flex: 0 0 auto; }
}
.hth-nav .wp-block-navigation__responsive-container-open,
.hth-nav .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink); }
.hth-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff !important;
	padding: 1.25rem 1.5rem 2.5rem;
}
.hth-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem; gap: 0.35rem; }
.hth-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 800;
}
.hth-nav .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 0 0 1rem !important;
}
.hth-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.35rem 0 !important; }

.hth-header__search .wp-block-search__button,
.hth-header__actions .wc-block-mini-cart__button,
.hth-header__actions .wc-block-customer-account a {
	color: var(--wp--preset--color--ink);
	background: transparent;
	border: 0;
	border-radius: 50%;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--hth-ease);
}
.hth-header__search .wp-block-search__button:hover,
.hth-header__actions .wc-block-mini-cart__button:hover,
.hth-header__actions .wc-block-customer-account a:hover { background: var(--wp--preset--color--paper); }
.hth-header__search .wp-block-search__button svg { width: 1.4rem; height: 1.4rem; fill: currentColor; }
.hth-header__search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.hth-header__search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	min-width: 12rem;
}
.hth-header__actions .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--brand) !important;
	color: #fff !important;
	border: 2px solid #fff;
	font-weight: 700;
}

/* Checkout header */
.hth-checkout-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.hth-checkout-header .hth-secure { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--wp--preset--color--steel); }
.hth-checkout-header .hth-secure::before {
	content: "";
	width: 0.9rem;
	height: 0.9rem;
	border-radius: 2px;
	background: var(--wp--preset--gradient--brand-sheen);
}

/* 3 Footer ------------------------------------------------------------------- */

.hth-footer { position: relative; }
.hth-footer::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--wp--preset--gradient--brand-sheen);
}
.hth-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.hth-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hth-footer .is-style-eyebrow { color: rgba(255, 255, 255, 0.5); margin-bottom: 1rem; }
.hth-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.hth-footer__about,
.hth-footer__address,
.hth-footer__hours { color: rgba(255, 255, 255, 0.7); }
.hth-footer__about { max-width: 34ch; }
.hth-footer__address strong,
.hth-footer__hours strong { color: #fff; font-weight: 600; }
.hth-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); }
.hth-footer__bottom p { margin: 0; }

/* 4 Block styles -------------------------------------------------------------- */

p.is-style-eyebrow,
.wp-block-heading.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
}
.is-style-eyebrow a { color: inherit; text-decoration: none; }
p.is-style-lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.5;
	color: var(--wp--preset--color--steel);
}

.is-style-section-dark { background-color: var(--wp--preset--color--ink); color: rgba(255, 255, 255, 0.84); }
.is-style-section-dark :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.is-style-section-dark :where(a:not(.wp-element-button)) { color: #fff; }
.is-style-section-dark p.is-style-eyebrow,
.is-style-section-dark .wp-block-heading.is-style-eyebrow { color: var(--hth-brand-on-dark); }
.is-style-section-dark p.is-style-lead { color: rgba(255, 255, 255, 0.72); }

.is-style-section-concrete { background-color: var(--wp--preset--color--concrete); }

.is-style-section-brand { background: var(--wp--preset--gradient--brand-sheen); color: #fff; }
.is-style-section-brand :where(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)),
.is-style-section-brand p.is-style-eyebrow,
.is-style-section-brand p.is-style-lead { color: #fff; }
.is-style-section-brand .wp-block-button:not(.is-style-outline) > .wp-element-button { background: #fff; color: var(--wp--preset--color--brand); }
.is-style-section-brand .wp-block-button:not(.is-style-outline) > .wp-element-button:hover { background: var(--wp--preset--color--ink); color: #fff; }

:where(.is-style-section-dark, .is-style-section-concrete, .is-style-section-brand):where(.alignfull) {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}

.is-style-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-md);
	padding: var(--wp--preset--spacing--50);
}
.is-style-section-concrete .is-style-card { border-color: transparent; }
.is-style-section-dark .is-style-card { background: var(--wp--preset--color--charcoal); border-color: rgba(255, 255, 255, 0.08); }

ul.is-style-checks { list-style: none; padding-left: 0; }
ul.is-style-checks > li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; }
ul.is-style-checks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand) var(--hth-check) center / 70% no-repeat;
}

.wp-block-table.is-style-specs table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-specs :where(td, th) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.75rem 0.5rem 0.75rem 0;
	text-align: left;
	vertical-align: top;
}
.wp-block-table.is-style-specs thead th {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel);
	border-bottom: 2px solid var(--wp--preset--color--ink);
}
.wp-block-table.is-style-specs tbody td:first-child { font-weight: 600; color: var(--wp--preset--color--ink); width: 42%; }

.wp-block-image.is-style-swatch img { aspect-ratio: 1; object-fit: cover; border-radius: var(--hth-radius-md); width: 100%; }
.wp-block-image.is-style-swatch figcaption { text-align: left; font-weight: 600; color: var(--wp--preset--color--ink); margin-top: 0.5rem; }

/* 5 Components ---------------------------------------------------------------- */

/* Section heading: eyebrow + heading + lead, optionally with a link on the right. */
.hth-section-head { margin-bottom: var(--wp--preset--spacing--50); }
.hth-section-head > * { margin-block: 0; }
.hth-section-head > * + * { margin-top: var(--wp--preset--spacing--20); }
.hth-section-head .is-style-lead { max-width: 60ch; }
.hth-section-head--split { align-items: flex-end; }

/* Hero cover */
.wp-block-cover.hth-hero { min-height: min(84vh, 760px); align-items: flex-end; padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--70); }
.wp-block-cover.hth-hero .wp-block-cover__inner-container { width: 100%; }
.hth-hero h1 {
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.98;
	letter-spacing: -0.025em;
	font-stretch: 86%;
	max-width: 15ch;
	color: #fff;
}
.hth-hero p.is-style-lead { color: rgba(255, 255, 255, 0.86); max-width: 48ch; }
.hth-hero p.is-style-eyebrow { color: #fff; }

/* Page hero (inner landing pages) */
.wp-block-cover.hth-page-hero { min-height: min(62vh, 560px); align-items: flex-end; padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--60); }
.wp-block-cover.hth-page-hero .wp-block-cover__inner-container { width: 100%; }
.hth-page-hero h1 { color: #fff; font-size: var(--wp--preset--font-size--xxxl); max-width: 18ch; }
.hth-page-hero p.is-style-lead { color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.hth-page-hero p.is-style-eyebrow { color: #fff; }
.hth-page-hero p.is-style-eyebrow a:hover { text-decoration: underline; }

/* Trust points: inline list with brand squares */
ul.hth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
ul.hth-points > li { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; font-weight: 500; }
ul.hth-points > li::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 1px; background: var(--wp--preset--gradient--brand-sheen); flex: none; }
.is-style-section-dark ul.hth-points > li::before,
.wp-block-cover ul.hth-points > li::before { background: var(--hth-brand-on-dark); }

/* Category / solution tiles (cover blocks with a linked heading) */
.hth-tiles { gap: var(--wp--preset--spacing--30); }
.wp-block-cover.hth-tile {
	position: relative;
	min-height: 340px;
	border-radius: var(--hth-radius-md);
	overflow: hidden;
	align-items: flex-end;
	padding: var(--wp--preset--spacing--40);
	isolation: isolate;
}
.wp-block-cover.hth-tile .wp-block-cover__image-background { transition: transform 700ms cubic-bezier(.2, .7, .3, 1); }
.wp-block-cover.hth-tile:hover .wp-block-cover__image-background { transform: scale(1.05); }
.hth-tile .wp-block-cover__inner-container { width: 100%; }
.hth-tile :where(h2, h3) { color: #fff; margin: 0; font-size: var(--wp--preset--font-size--xl); }
.hth-tile :where(h2, h3) a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.75rem; }
.hth-tile :where(h2, h3) a::before { content: ""; position: absolute; inset: 0; z-index: 3; }
.hth-tile :where(h2, h3) a::after {
	content: "";
	width: 1.25rem;
	height: 0.75rem;
	background: var(--hth-arrow) center / contain no-repeat;
	transition: transform var(--hth-ease);
}
.hth-tile:hover :where(h2, h3) a::after { transform: translateX(4px); }
.hth-tile p { color: rgba(255, 255, 255, 0.82); margin: 0.4rem 0 0; font-size: var(--wp--preset--font-size--sm); }
.hth-tile a:focus-visible { outline-color: #fff; }

/* Media & text split */
.wp-block-media-text.hth-split { gap: 0; }
.wp-block-media-text.hth-split .wp-block-media-text__media img { border-radius: var(--hth-radius-md); }
.wp-block-media-text.hth-split .wp-block-media-text__content { padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
@media (max-width: 781px) {
	.wp-block-media-text.hth-split .wp-block-media-text__content { padding: var(--wp--preset--spacing--40) 0 0; }
}

/* USP / feature columns with a brand rule on top */
.hth-usp .wp-block-column { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); }
.hth-usp .wp-block-column::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	width: 2.5rem;
	height: 3px;
	background: var(--wp--preset--gradient--brand-sheen);
}
.is-style-section-dark .hth-usp .wp-block-column { border-top-color: rgba(255, 255, 255, 0.14); }
.hth-usp :where(h3, h4) { font-size: var(--wp--preset--font-size--lg); margin-bottom: 0.4rem; }
.hth-usp p { margin-top: 0; }

/* Colour swatches (gallery with captions) */
.wp-block-gallery.has-nested-images.hth-swatches { gap: var(--wp--preset--spacing--30); }
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image { flex-direction: column; }
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--hth-radius-md);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image:has(figcaption)::before { display: none; }
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image figcaption {
	position: static;
	background: none;
	color: var(--wp--preset--color--ink);
	padding: 0.5rem 0 0;
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	text-align: left;
	text-shadow: none;
	max-height: none;
	overflow: visible;
}
.is-style-section-dark .wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image figcaption { color: #fff; }

/* Numbered steps */
ol.hth-steps { list-style: none; counter-reset: hth-step; padding: 0; display: grid; gap: var(--wp--preset--spacing--30); }
ol.hth-steps > li { counter-increment: hth-step; position: relative; padding-left: 3.25rem; min-height: 2.25rem; margin: 0; }
ol.hth-steps > li::before {
	content: counter(hth-step, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: -0.1em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--wp--preset--color--brand);
}
.is-style-section-dark ol.hth-steps > li::before { color: var(--hth-brand-on-dark); }

/* FAQ */
.hth-faq .wp-block-details summary {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--md);
	color: var(--wp--preset--color--ink);
	list-style: none;
	cursor: pointer;
	position: relative;
	padding-right: 2rem;
}
.hth-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.hth-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--wp--preset--color--brand);
}
.hth-faq .wp-block-details[open] summary::after { content: "–"; }

/* Contractor cards */
.hth-contractor { height: 100%; display: flex; flex-direction: column; }
.hth-contractor > .wp-block-buttons { margin-top: auto; padding-top: var(--wp--preset--spacing--30); }
.hth-contractor :where(h3) { font-size: var(--wp--preset--font-size--lg); }
.hth-contractor p { margin: 0.25rem 0; }

/* CTA band */
.hth-cta > .alignwide { align-items: center; }
.hth-cta :where(h2) { margin: 0; }

/* Embedded products ([products] shortcode) */
.hth-products { margin-top: var(--wp--preset--spacing--40); }

/* Documents / downloads list */
ul.hth-docs { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
ul.hth-docs a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-weight: 600;
}
ul.hth-docs a::after { content: "PDF"; font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--brand); letter-spacing: 0.08em; }
ul.hth-docs a:hover { border-color: var(--wp--preset--color--brand); }

.hth-rounded img, img.hth-rounded { border-radius: var(--hth-radius-md); }
.wp-block-embed iframe, .wp-block-html iframe { border-radius: var(--hth-radius-md); max-width: 100%; }

/* News grid */
.hth-post-grid .wp-block-post-featured-image img { border-radius: var(--hth-radius-md); }
.hth-post-grid .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.hth-post-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--brand); }

/* 6 Product grid (block collection + classic loop) ------------------------------ */

.wc-block-product-template { gap: var(--wp--preset--spacing--30) !important; }
.wc-block-product-template .wc-block-product,
.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-md);
	padding: 0.75rem 0.75rem 1rem;
	margin: 0;
	transition: box-shadow var(--hth-ease), transform var(--hth-ease), border-color var(--hth-ease);
	text-align: left;
}
.wc-block-product-template .wc-block-product:hover,
.woocommerce ul.products li.product:hover {
	border-color: transparent;
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-2px);
}
.wc-block-product .wc-block-components-product-image,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { margin: 0 0 0.5rem; }
.wc-block-product .wc-block-components-product-image img,
.woocommerce ul.products li.product a img {
	aspect-ratio: 1;
	width: 100%;
	object-fit: contain;
	background: var(--wp--preset--color--paper);
	border-radius: var(--hth-radius-sm);
	padding: 6%;
	margin: 0 0 0.5rem;
	box-sizing: border-box;
}
.wc-block-product .wp-block-post-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--md) !important;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
	text-align: left;
	margin: 0;
	padding: 0;
}
.wc-block-product .wp-block-post-title a { color: inherit; text-decoration: none; }
.wc-block-product .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.wc-block-product .wc-block-components-product-price,
.woocommerce ul.products li.product .price {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--md) !important;
	color: var(--wp--preset--color--ink) !important;
	text-align: left;
	margin: 0 0 0.5rem !important;
}
.wc-block-product .wc-block-components-product-button,
.woocommerce ul.products li.product .button { margin-top: auto !important; position: relative; z-index: 2; }
.wc-block-product .wc-block-components-product-button { align-items: stretch; }
.wc-block-product .wc-block-components-product-button .wp-block-button__link,
.woocommerce ul.products li.product .button {
	width: 100%;
	justify-content: center;
	text-align: center;
	font-size: var(--wp--preset--font-size--xs) !important;
	padding: 0.75em 1em;
	border-radius: var(--hth-radius-sm);
	background: var(--wp--preset--color--ink);
	color: #fff;
}
.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover,
.woocommerce ul.products li.product .button:hover { background: var(--wp--preset--color--brand); color: #fff; }
.woocommerce ul.products li.product .added_to_cart,
.wc-block-product .wc-block-components-product-button__button + a { font-size: var(--wp--preset--font-size--xs); text-align: center; position: relative; z-index: 2; }

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(var(--hth-cols, 4), minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; }
.woocommerce ul.products.columns-2 { --hth-cols: 2; }
.woocommerce ul.products.columns-3 { --hth-cols: 3; }
.woocommerce ul.products.columns-5 { --hth-cols: 5; }
@media (max-width: 1000px) { .woocommerce ul.products { --hth-cols: 3; } }
@media (max-width: 781px) { .woocommerce ul.products { --hth-cols: 2 !important; } }
@media (max-width: 600px) {
	.wc-block-product-template.is-flex-container > li,
	.wc-block-product-template.is-flex-container.is-flex-container.columns-3 > li,
	.wc-block-product-template.is-flex-container.is-flex-container.columns-4 > li { width: calc(50% - var(--wp--preset--spacing--30) / 2) !important; }
	.wc-block-product-template .wc-block-product, .woocommerce ul.products li.product { padding: 0.5rem 0.5rem 0.75rem; }
}

/* Shop archive */
.hth-shop__head .wp-block-query-title { margin: 0; }
.hth-shop__head .wp-block-term-description { color: var(--wp--preset--color--steel); max-width: 70ch; }
.hth-shop__toolbar { border-bottom: 1px solid var(--wp--preset--color--line); padding-bottom: var(--wp--preset--spacing--20); margin-bottom: var(--wp--preset--spacing--40); }
.hth-shop__toolbar .woocommerce-result-count { margin: 0; color: var(--wp--preset--color--steel); font-size: var(--wp--preset--font-size--sm); }
.hth-shop__toolbar .woocommerce-ordering { margin: 0; }
.woocommerce-ordering select,
.hth-select {
	appearance: none;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	background: #fff var(--hth-chevron) right 0.9rem center / 11px no-repeat;
	padding: 0.6rem 2.4rem 0.6rem 0.9rem;
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--ink);
}

nav.hth-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--wp--preset--spacing--40); }
nav.hth-chips a {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	background: #fff;
	transition: border-color var(--hth-ease), background var(--hth-ease), color var(--hth-ease);
}
nav.hth-chips a:hover { border-color: var(--wp--preset--color--ink); }
nav.hth-chips a.is-current { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
@media (max-width: 600px) {
	nav.hth-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; margin-inline: calc(var(--wp--preset--spacing--40) * -1); padding-inline: var(--wp--preset--spacing--40); }
	nav.hth-chips a { white-space: nowrap; }
}

.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--steel); }
.woocommerce-breadcrumb a, .wc-block-breadcrumbs a { color: var(--wp--preset--color--steel); text-decoration: none; }
.woocommerce-breadcrumb a:hover, .wc-block-breadcrumbs a:hover { color: var(--wp--preset--color--brand); }

.wp-block-query-pagination { margin-top: var(--wp--preset--spacing--60); gap: 0.35rem; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers { text-decoration: none; color: var(--wp--preset--color--ink); padding: 0.4rem 0.8rem; border-radius: var(--hth-radius-sm); }
.wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--ink); color: #fff; }

/* 7 Single product -------------------------------------------------------------- */

.hth-product__top { margin-top: var(--wp--preset--spacing--30); align-items: flex-start !important; }
@media (min-width: 782px) {
	.hth-product__gallery .woocommerce-product-gallery { position: sticky; top: 6.5rem; }
}
.hth-product .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; max-width: none !important; float: none !important; }
.hth-product .wp-block-woocommerce-product-image-gallery { max-width: none; width: 100%; }
.hth-product .woocommerce-product-gallery .flex-viewport,
.hth-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
	background: var(--wp--preset--color--paper);
	border-radius: var(--hth-radius-md);
}
.hth-product .woocommerce-product-gallery__image img { object-fit: contain; aspect-ratio: 1; background: var(--wp--preset--color--paper); }
.hth-product .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0.75rem 0 0 !important;
	padding: 0 !important;
}
.hth-product .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.hth-product .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: contain;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	opacity: 0.7 !important;
	transition: opacity var(--hth-ease), border-color var(--hth-ease);
}
.hth-product .flex-control-thumbs img.flex-active,
.hth-product .flex-control-thumbs img:hover { opacity: 1 !important; border-color: var(--wp--preset--color--ink); }
.hth-product .woocommerce-product-gallery__trigger { border-radius: 50%; background: #fff; box-shadow: var(--wp--preset--shadow--card); }

.hth-product__summary > * { margin-block: 0; }
.hth-product__summary > * + * { margin-top: var(--wp--preset--spacing--30); }
.hth-product__cats { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hth-product__cats a { color: var(--wp--preset--color--brand); text-decoration: none; }
.hth-product__cats .wp-block-post-terms__separator { color: var(--wp--preset--color--line); }
.hth-product__summary .wp-block-post-title { margin-top: 0.35rem !important; }
.hth-product__price { font-family: var(--wp--preset--font-family--display); font-weight: 800; color: var(--wp--preset--color--ink); }
.hth-product__price .woocommerce-Price-amount { color: var(--wp--preset--color--ink); }
.hth-product__vat { margin-top: 0.15rem !important; }
.hth-product__excerpt { color: var(--wp--preset--color--charcoal); }
.hth-product__excerpt p { margin: 0 0 0.6rem; }

.hth-product form.cart { margin: 0 !important; }
.hth-product form.cart .variations { width: 100%; border: 0; margin: 0 0 1rem; border-collapse: collapse; }
.hth-product form.cart .variations tr { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; }
.hth-product form.cart .variations :where(th, td) { display: block; padding: 0; border: 0; text-align: left; line-height: 1.3; }
.hth-product form.cart .variations label {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}
.hth-product form.cart .variations select {
	appearance: none;
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	background: #fff var(--hth-chevron) right 1rem center / 12px no-repeat;
	padding: 0.8rem 2.75rem 0.8rem 1rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
}
.hth-product form.cart .variations select:focus { border-color: var(--wp--preset--color--ink); outline: none; box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.15); }
.hth-product .reset_variations { font-size: var(--wp--preset--font-size--xs); color: var(--wp--preset--color--steel); display: inline-block; margin-top: 0.5rem; }
.hth-product .woocommerce-variation { margin-bottom: 1rem; }
.hth-product .woocommerce-variation-description { color: var(--wp--preset--color--steel); font-size: var(--wp--preset--font-size--sm); }
.hth-product .woocommerce-variation-description p { margin: 0 0 0.5rem; }
.hth-product .woocommerce-variation-price .price { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--ink); }

.hth-product form.cart:not(.variations_form),
.hth-product .woocommerce-variation-add-to-cart { display: flex; gap: 0.75rem; align-items: stretch; flex-wrap: wrap; }
.hth-product .quantity { margin: 0 !important; float: none !important; }
.hth-product .quantity .qty {
	height: 100%;
	min-height: 3.25rem;
	width: 5rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	text-align: center;
	font: inherit;
	font-weight: 600;
}
.hth-product .single_add_to_cart_button {
	flex: 1 1 12rem;
	min-height: 3.25rem;
	background: var(--wp--preset--color--brand) !important;
	color: #fff !important;
	border: 0;
	border-radius: var(--hth-radius-sm);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--md);
	float: none !important;
	margin: 0 !important;
	cursor: pointer;
	transition: background var(--hth-ease);
}
.hth-product .single_add_to_cart_button:hover { background: var(--wp--preset--color--brand-deep) !important; }
.hth-product .single_add_to_cart_button.disabled { opacity: 0.45; cursor: not-allowed; }

ul.hth-assurance {
	list-style: none;
	padding: var(--wp--preset--spacing--30) 0 0;
	margin: var(--wp--preset--spacing--30) 0 0;
	border-top: 1px solid var(--wp--preset--color--line);
	display: grid;
	gap: 0.55rem;
	font-size: var(--wp--preset--font-size--sm);
}
ul.hth-assurance > li { position: relative; padding-left: 1.75rem; margin: 0; }
ul.hth-assurance > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--brand) var(--hth-check) center / 70% no-repeat;
}
ul.hth-assurance a { color: var(--wp--preset--color--ink); }

.hth-product__meta { color: var(--wp--preset--color--steel); padding-top: var(--wp--preset--spacing--20); }
.hth-product__meta a { color: var(--wp--preset--color--ink); }

.hth-product__details { margin-top: var(--wp--preset--spacing--70) !important; }
.hth-product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 1.5rem;
	padding: 0 !important;
	margin: 0 0 var(--wp--preset--spacing--40) !important;
	border-bottom: 1px solid var(--wp--preset--color--line);
	overflow-x: auto;
}
.hth-product .woocommerce-tabs ul.tabs::before,
.hth-product .woocommerce-tabs ul.tabs li::before,
.hth-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.hth-product .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.hth-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.85rem 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--sm);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--steel) !important;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}
.hth-product .woocommerce-tabs ul.tabs li.active a { color: var(--wp--preset--color--ink) !important; border-bottom-color: var(--wp--preset--color--brand); }
.hth-product .woocommerce-tabs .panel { max-width: 780px; }
.hth-product .woocommerce-tabs .panel > h2:first-child { display: none; }
.hth-product .woocommerce-tabs .panel :where(h2, h3, h4) { margin-top: 1.75rem; }
.hth-product .woocommerce-tabs .panel img { border-radius: var(--hth-radius-sm); height: auto; }
.hth-product .woocommerce-tabs table.shop_attributes { border-collapse: collapse; width: 100%; }
.hth-product .woocommerce-tabs table.shop_attributes :where(th, td) { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.75rem 0.5rem 0.75rem 0; text-align: left; font-style: normal; }

.hth-product .wp-block-woocommerce-related-products,
.hth-product .related.products { margin-top: var(--wp--preset--spacing--70); }
.hth-product .wp-block-woocommerce-related-products h2 { font-size: var(--wp--preset--font-size--xl); }

/* 8 Cart, checkout, account --------------------------------------------------- */

.woocommerce-cart .wp-block-post-title,
.woocommerce-account .wp-block-post-title { margin-bottom: var(--wp--preset--spacing--40); }
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-mini-cart__footer-checkout { background: var(--wp--preset--color--brand); }
.wc-block-cart .wc-block-components-sidebar .wc-block-components-totals-wrapper:first-child,
.wc-block-cart__sidebar { border-radius: var(--hth-radius-md); }
.wc-block-components-product-name { color: var(--wp--preset--color--ink); font-weight: 600; text-decoration: none; }
.wc-block-cart-item__image img, .wc-block-mini-cart__products-table img { background: var(--wp--preset--color--paper); border-radius: var(--hth-radius-sm); object-fit: contain; }

/* Classic forms (checkout shortcode, account, login) */
.woocommerce form .form-row { margin: 0 0 1rem; padding: 0; }
.woocommerce form .form-row label { font-size: var(--wp--preset--font-size--sm); font-weight: 600; color: var(--wp--preset--color--ink); margin-bottom: 0.35rem; line-height: 1.3; }
.woocommerce form .form-row :where(input.input-text, textarea, select),
.woocommerce form :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"]),
.woocommerce .select2-container .select2-selection--single {
	width: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	background: #fff;
	padding: 0.8rem 0.9rem;
	font: inherit;
	color: var(--wp--preset--color--ink);
	line-height: 1.3;
	box-shadow: none;
	transition: border-color var(--hth-ease), box-shadow var(--hth-ease);
}
.woocommerce .select2-container .select2-selection--single { height: auto; min-height: 3.1rem; }
.woocommerce form .form-row :where(input.input-text, textarea, select):focus { border-color: var(--wp--preset--color--ink); outline: none; box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.15); }
.woocommerce form .form-row.woocommerce-invalid :where(input.input-text, select) { border-color: var(--wp--preset--color--brand); }
.woocommerce form .form-row .required { color: var(--wp--preset--color--brand); text-decoration: none; }
.woocommerce :where(.button, button.button, input.button, a.button):not(.wc-block-components-button) {
	background: var(--wp--preset--color--ink);
	color: #fff;
	border: 0;
	border-radius: var(--hth-radius-sm);
	padding: 0.85em 1.4em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--hth-ease);
}
.woocommerce :where(.button, button.button, input.button, a.button):not(.wc-block-components-button):hover { background: var(--wp--preset--color--brand); color: #fff; }

form.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 0 var(--wp--preset--spacing--60);
	align-items: start;
}
form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 1 / span 3; }
form.woocommerce-checkout > #order_review_heading { grid-column: 2; margin-top: 0; }
form.woocommerce-checkout > #order_review {
	grid-column: 2;
	background: var(--wp--preset--color--paper);
	border-radius: var(--hth-radius-md);
	padding: var(--wp--preset--spacing--40);
	position: sticky;
	top: 6.5rem;
}
form.woocommerce-checkout .col2-set .col-1,
form.woocommerce-checkout .col2-set .col-2 { width: 100% !important; float: none !important; }
form.woocommerce-checkout .col2-set .col-2 { margin-top: var(--wp--preset--spacing--40); }
form.woocommerce-checkout :where(h3) { font-size: var(--wp--preset--font-size--lg); margin: 0 0 var(--wp--preset--spacing--30); }
@media (min-width: 600px) {
	form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
	form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-wide { grid-column: 1 / -1; }
	form.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row { width: auto; float: none; }
}
@media (max-width: 900px) {
	form.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); }
	form.woocommerce-checkout > #customer_details,
	form.woocommerce-checkout > #order_review_heading,
	form.woocommerce-checkout > #order_review { grid-column: 1; grid-row: auto; position: static; }
	form.woocommerce-checkout > #order_review_heading { margin-top: var(--wp--preset--spacing--50); }
}
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: var(--wp--preset--font-size--sm); }
.woocommerce-checkout-review-order-table :where(th, td) { padding: 0.7rem 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; background: none !important; }
.woocommerce-checkout-review-order-table :where(td:last-child, th:last-child) { text-align: right; }
.woocommerce-checkout-review-order-table .order-total :where(th, td) { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--lg); font-weight: 800; color: var(--wp--preset--color--ink); border-bottom: 0; }
.woocommerce-checkout-review-order-table .order-total small { display: block; font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--xs); font-weight: 400; color: var(--wp--preset--color--steel); }
#shipping_method { list-style: none; margin: 0; padding: 0; text-align: left; }
#shipping_method li { margin: 0 0 0.35rem; display: flex; gap: 0.5rem; align-items: baseline; }
.woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: var(--wp--preset--spacing--30); }
.woocommerce-checkout #payment ul.payment_methods { padding: 0; border: 0; margin: 0 0 1rem; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--hth-radius-sm); padding: 0.85rem 1rem; margin-bottom: 0.5rem; }
.woocommerce-checkout #payment div.payment_box { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--charcoal); border-radius: var(--hth-radius-sm); margin: 0.75rem 0 0; padding: 0.75rem 1rem; font-size: var(--wp--preset--font-size--sm); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment .place-order { padding: 0; margin: 0; }
.woocommerce-checkout #place_order {
	width: 100%;
	float: none;
	margin-top: 1rem;
	min-height: 3.5rem;
	font-size: var(--wp--preset--font-size--md);
	background: var(--wp--preset--color--brand);
}
.woocommerce-checkout #place_order:hover { background: var(--wp--preset--color--brand-deep); }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--wp--preset--font-size--sm); }
.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info { background: var(--wp--preset--color--paper); border: 0; border-left: 3px solid var(--wp--preset--color--ink); border-radius: var(--hth-radius-sm); padding: 0.9rem 1rem; }
.woocommerce-form-coupon-toggle .woocommerce-info::before,
.woocommerce-form-login-toggle .woocommerce-info::before { display: none; }

.woocommerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	border: 0;
	border-left: 3px solid var(--wp--preset--color--ink);
	border-radius: var(--hth-radius-sm);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--charcoal);
	padding: 0.9rem 1rem;
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--40);
}
.woocommerce .woocommerce-error { border-left-color: var(--wp--preset--color--brand); }
.woocommerce :where(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none; }

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--wp--preset--spacing--60); align-items: start; }
.woocommerce-account .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.woocommerce-MyAccount-navigation a { display: block; padding: 0.6rem 0.85rem; border-radius: var(--hth-radius-sm); color: var(--wp--preset--color--ink); text-decoration: none; font-weight: 500; }
.woocommerce-MyAccount-navigation a:hover { background: var(--wp--preset--color--paper); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--wp--preset--color--ink); color: #fff; }
@media (max-width: 781px) {
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
}
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-md);
	padding: var(--wp--preset--spacing--50);
	margin: 0;
}
.woocommerce #customer_login { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--wp--preset--spacing--50); }
.woocommerce #customer_login::before, .woocommerce #customer_login::after { display: none; }
.woocommerce #customer_login .u-column1, .woocommerce #customer_login .u-column2 { width: auto; float: none; }

/* 9 Misc ----------------------------------------------------------------------- */

.wp-block-search__button { font-family: var(--wp--preset--font-family--display); }
.wp-block-search:not(.hth-header__search) .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	padding: 0.8rem 1rem;
	font: inherit;
}
.wp-block-separator { opacity: 1; }
.wp-block-quote { border-left-width: 3px; }
.wp-block-post-content :where(ul, ol):not([class]) { padding-left: 1.25rem; }
.wp-block-post-content :where(ul, ol):not([class]) li::marker { color: var(--wp--preset--color--brand); }
.hth-section-head--split { gap: var(--wp--preset--spacing--30); }
.hth-section-head--split > * + * { margin-top: 0; }
p.hth-more-link { margin: 0; }
p.hth-more-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
p.hth-more-link a::after { content: "→"; color: var(--wp--preset--color--brand); transition: transform var(--hth-ease); }
p.hth-more-link a:hover::after { transform: translateX(3px); }
.is-style-section-dark p.hth-more-link a { color: #fff; }

.hth-contractors,
.hth-info-grid { gap: var(--wp--preset--spacing--30); }
.hth-info-grid .is-style-card { padding: var(--wp--preset--spacing--40); }
.hth-info-grid .is-style-card :where(h3) { margin: 0 0 0.35rem; }
.hth-info-grid .is-style-card p { margin: 0; }

/* Contact Form 7 */
.wpcf7 .hth-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.wpcf7 p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-size: var(--wp--preset--font-size--sm); font-weight: 600; color: var(--wp--preset--color--ink); }
.wpcf7 label .required { color: var(--wp--preset--color--brand); }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea {
	width: 100%;
	margin-top: 0.35rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--hth-radius-sm);
	background: #fff;
	padding: 0.8rem 0.9rem;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--ink);
}
.wpcf7 input:not([type="submit"]):focus, .wpcf7 textarea:focus { outline: none; border-color: var(--wp--preset--color--ink); box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.15); }
.wpcf7 input[type="submit"] {
	background: var(--wp--preset--color--brand);
	color: #fff;
	border: 0;
	border-radius: var(--hth-radius-sm);
	padding: 0.95em 1.8em;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--md);
	cursor: pointer;
	transition: background var(--hth-ease);
}
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--brand-deep); }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; border-radius: var(--hth-radius-sm); padding: 0.75rem 1rem; }
.wpcf7-not-valid-tip { color: var(--wp--preset--color--brand); font-size: var(--wp--preset--font-size--xs); }

/* Swatches keep their column width even when a row isn't full. */
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image { flex-grow: 0; }
@media (max-width: 599px) {
	.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image:not(#individual-image) { width: calc(33.333% - var(--wp--style--unstable-gallery-gap, 16px) * 2 / 3); }
}

/* Cards laid out as flex columns must not inherit constrained-layout auto margins (which centre children). */
.hth-contractor > * { margin-left: 0 !important; margin-right: 0 !important; }

/* Classic checkout: stack the shipping options under their label so long pickup names fit the sidebar. */
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--wp--preset--color--line); }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals :where(th, td) { border-bottom: 0; text-align: left !important; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th { padding-bottom: 0.25rem; }
#shipping_method li input { margin: 0 0.35rem 0 0; accent-color: var(--wp--preset--color--brand); }
.woocommerce-checkout input[type="checkbox"], .woocommerce-checkout input[type="radio"] { accent-color: var(--wp--preset--color--brand); }

/* Buttons and fields sized with width:100% must include their padding. */
.woocommerce ul.products li.product .button,
.wc-block-product .wc-block-components-product-button .wp-block-button__link,
.woocommerce form .form-row :where(input.input-text, textarea, select),
.wpcf7 input:not([type="submit"]), .wpcf7 textarea { box-sizing: border-box; }

/* WooCommerce's own variation select rule is more specific (min-width 75%, margin-right). */
.woocommerce div.product.hth-product form.cart .variations select,
.hth-product form.cart .variations select { width: 100% !important; min-width: 0 !important; margin-right: 0 !important; box-sizing: border-box; }

/* Long Icelandic compounds must never force a cover wider than the screen. */
:where(h1, h2, h3) { overflow-wrap: break-word; hyphens: manual; }
.wp-block-cover .wp-block-cover__inner-container { min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
	.hth-hero .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
	.hth-hero .wp-block-buttons > .wp-block-button > .wp-element-button { width: 100%; box-sizing: border-box; }
}

/* Swatch images: core's cropped-gallery rule gives images flex-basis 0 inside a column flex figure, which collapses
   small images to zero height. Size them by aspect ratio instead. */
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image:not(#individual-image) img {
	flex: none;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image:not(#individual-image) { justify-content: flex-start; }

/* Swatch galleries fill rows evenly whatever the number of colours (core gallery caps columns at 8 and wraps 6+3). */
.wp-block-gallery.has-nested-images.hth-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.5rem), 1fr));
	gap: var(--wp--preset--spacing--30);
}
.wp-block-gallery.has-nested-images.hth-swatches figure.wp-block-image:not(#individual-image) { width: auto !important; margin: 0; }
@media (max-width: 599px) {
	.wp-block-gallery.has-nested-images.hth-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.woocommerce ul.products li.product h3.woocommerce-loop-product__title { font-size: var(--wp--preset--font-size--md) !important; margin: 0; }

/* Full-screen home hero: header + hero fill exactly the first screen, with no gap between them. */
:root { --hth-header-h: calc(var(--hth-topbar-h) + 1.5rem + 65px); }
.admin-bar { --hth-header-h: calc(var(--hth-topbar-h) + 1.5rem + 65px + var(--wp-admin--admin-bar--height, 32px)); }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-cover.hth-hero {
	min-height: calc(100vh - var(--hth-header-h));
	min-height: calc(100svh - var(--hth-header-h));
}

/* Hero text lines up with the header's logo: same side padding as the page, content capped at the wide size. */
.wp-block-cover.hth-hero,
.wp-block-cover.hth-page-hero {
	padding-left: var(--wp--style--root--padding-left, 1.25rem);
	padding-right: var(--wp--style--root--padding-right, 1.25rem);
}
.wp-block-cover.hth-hero > .wp-block-cover__inner-container,
.wp-block-cover.hth-page-hero > .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-inline: auto;
}

/* Core pins bottom-left cover content with margin:0/width:auto at high specificity; match it so the content centres on the wide size. */
.wp-block-cover.hth-hero.has-custom-content-position.has-custom-content-position.is-position-bottom-left > .wp-block-cover__inner-container,
.wp-block-cover.hth-page-hero.has-custom-content-position.has-custom-content-position.is-position-bottom-left > .wp-block-cover__inner-container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-left: auto;
	margin-right: auto;
}

/* Dropdowns stay open while the pointer travels from the menu item into the panel.
   The mega panel hangs from the header's bottom edge, ~22px below the "Lausnir" link: an invisible bridge
   covers that strip, and every dropdown waits 250ms before hiding so a slightly off path doesn't close it. */
@media (min-width: 1100px) {
	.hth-nav .has-child > .wp-block-navigation__submenu-container {
		height: auto !important;
		overflow: visible !important;
		transition: opacity 150ms ease, visibility 0s linear 250ms !important;
	}
	.hth-nav .has-child:hover > .wp-block-navigation__submenu-container,
	.hth-nav .has-child:focus-within > .wp-block-navigation__submenu-container {
		transition: opacity 150ms ease, visibility 0s linear 0s !important;
	}
	.hth-nav .hth-mega > .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 100%;
		height: 26px;
	}
}

/* The mega panel's column lists follow the panel's own visibility (they were forced visible, which kept them
   on screen once the hidden panel was no longer clipped to zero height). */
@media (min-width: 1100px) {
	.hth-nav .hth-mega .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
		visibility: inherit !important;
	}
}

/* Some mobile browsers report a "small viewport" slightly taller than the visible area; never exceed either. */
.wp-block-cover.hth-hero { min-height: calc(min(100svh, 100vh) - var(--hth-header-h)); }

/* Small phones: the hero's content plus its desktop-sized padding was a few pixels taller than the screen. */
@media (max-width: 600px) {
	.wp-block-cover.hth-hero {
		padding-top: var(--wp--preset--spacing--50);
		padding-bottom: var(--wp--preset--spacing--50);
	}
	.hth-hero ul.hth-points { margin-top: var(--wp--preset--spacing--40) !important; }
}

/* Field hints that must stay readable (kennitala): WooCommerce's own .description is hidden until the field has focus. */
.woocommerce form .form-row .hth-field-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.4;
	color: var(--wp--preset--color--steel);
}

/* Colour picker for products whose colour is its own order line (wp-content/mu-plugins/hth-micro-litur.php).
   form.cart is a flex row of quantity and button, so the picker claims a full row above them. */
.hth-product form.cart .hth-litur { flex: 0 0 100%; border: 0; padding: 0; margin: 0 0 0.5rem; }
.hth-product form.cart .hth-litur legend {
	padding: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}
.hth-litur__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: 0.6rem; margin-top: 0.6rem; }
.hth-litur__val { display: flex; flex-direction: column; gap: 0.3rem; cursor: pointer; }
.hth-litur__val input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hth-litur__val img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--hth-radius-sm);
	border: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--wp--preset--color--line);
}
.hth-litur__nafn { font-size: var(--wp--preset--font-size--xs); line-height: 1.3; text-align: center; color: var(--wp--preset--color--steel); }
.hth-litur__val input:checked + img { border-color: var(--wp--preset--color--ink); box-shadow: 0 0 0 2px var(--wp--preset--color--ink); }
.hth-litur__val input:checked ~ .hth-litur__nafn { font-weight: 700; color: var(--wp--preset--color--ink); }
.hth-litur__val input:focus-visible + img { outline: 3px solid rgba(193, 18, 31, 0.35); outline-offset: 2px; }
.hth-litur__skyring { margin: 0.7rem 0 0; font-size: var(--wp--preset--font-size--xs); line-height: 1.4; color: var(--wp--preset--color--steel); }

/* Special-order products: never stocked, ordered in for the customer (wp-content/mu-plugins/hth-serpontun.php).
   The lead time sits under the price, small in the grid and as a full sentence on the product's own page. */
.hth-serpontun-merki {
	margin: 0.35rem 0 0;
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.3;
	color: var(--wp--preset--color--steel);
}
.hth-serpontun-merki strong { font-weight: 600; color: var(--wp--preset--color--ink); }
.hth-serpontun {
	margin: 0.6rem 0 0;
	padding: 0.7rem 0.9rem;
	border-left: 3px solid var(--wp--preset--color--brand);
	background: var(--wp--preset--color--paper);
	border-radius: var(--hth-radius-sm);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	color: var(--wp--preset--color--charcoal);
}
.hth-product .stock.hth-serpontun { border-left: 0; background: none; padding: 0; margin: 0 0 0.75rem; font-weight: 600; }
