@import url('../fonts/fonts.css');

/* ==========================================================================
   Ardonex — "Garden Blueprint". Full spec in DESIGN.md.
   Off-white drawing paper, ink navy linework, ONE sharp accent (signal
   orange), thin technical line icons, monospace dimension labels.
   Square corners and ruled 1px lines everywhere — no pills, no shadows.
   ========================================================================== */
:root {
	--paper: #f7f5ef;
	--paper-deep: #efece3;
	--white: #ffffff;
	--ink: #14233c;
	--ink-soft: #3c4a63;     /* muted text: 8.3:1 on paper */
	--rule: #c9cdd4;         /* hairlines */
	--rule-strong: #14233c;
	--grid: rgba(20, 35, 60, 0.06);
	--signal: #ff5a1f;       /* accent fills/lines only — never small text on paper */
	--signal-ink: #b23a0e;   /* accent as text on paper: 5.6:1 */
	--focus: #ff5a1f;

	--font-heading: 'IBM Plex Sans Condensed', 'Arial Narrow', Arial, sans-serif;
	--font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

	--fs-xs: 0.75rem;
	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-lg: 1.125rem;
	--fs-h4: 1.25rem;
	--fs-h3: 1.5rem;
	--fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	--fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);

	--s1: 0.25rem;
	--s2: 0.5rem;
	--s3: 0.75rem;
	--s4: 1rem;
	--s6: 1.5rem;
	--s8: 2rem;
	--s12: 3rem;
	--s16: 4rem;
	--s24: 6rem;

	--container: 1240px;
	--gutter: 16px;
	--header-h: 72px;
}

@media (min-width: 768px) {
	:root {
		--gutter: 32px;
	}
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--s4));
}

body {
	min-height: 100vh;
	background-color: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.55;
	overflow-x: hidden;
}

img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

a {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--signal-ink);
}

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	top: var(--s2);
	left: var(--s2);
	z-index: 1000;
	padding: var(--s3) var(--s4);
	background: var(--ink);
	color: var(--paper);
}

.mono,
.sheet-heading__ref,
.hero-sheet__ref {
	font-family: var(--font-mono);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button,
.button-primary,
button.button,
a.button,
input[type="submit"].button,
.woocommerce button.button,
.woocommerce a.button,
.single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s2);
	min-height: 48px;
	padding: var(--s3) var(--s6);
	border: 1.5px solid var(--ink);
	border-radius: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
.button-primary:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.single_add_to_cart_button:hover {
	background: var(--paper);
	color: var(--ink);
}

.button.button--signal {
	background: var(--signal);
	border-color: var(--signal);
	color: var(--ink); /* ink on signal: 5.2:1 */
}

.button.button--signal:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.button.button--outline {
	background: transparent;
	color: var(--ink);
}

.button.button--outline:hover {
	background: var(--ink);
	color: var(--paper);
}

.button--ink {
	background: var(--ink);
}

.button[disabled],
.button.disabled,
.single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.text-link {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: var(--fs-lg);
}

/* ==========================================================================
   Header: note strip + title bar
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.note-strip {
	background: var(--ink);
	color: var(--paper);
}

.note-strip__text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--s3);
	min-height: 34px;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.04em;
	text-align: center;
}

.note-strip__ref {
	padding: 0 var(--s1);
	border: 1px solid var(--signal);
	color: var(--signal);
	font-weight: 500;
}

.title-bar {
	border-bottom: 1px solid var(--ink);
	box-shadow: 0 3px 0 -2px var(--ink); /* the double rule under a drawing's title */
	padding-bottom: 2px;
}

.title-bar__inner {
	display: flex;
	align-items: center;
	gap: var(--s4);
	min-height: var(--header-h);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	gap: var(--s3);
	color: var(--ink);
	text-decoration: none;
}

.wordmark:hover {
	color: var(--ink);
}

.wordmark__mark {
	flex: 0 0 auto;
	color: var(--ink);
}

.wordmark__name {
	font-family: var(--font-heading);
	font-size: 1.625rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	min-height: 44px;
	padding: 0 var(--s2) 0 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.menu-toggle__label {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.primary-navigation {
	display: none;
	flex: 1 1 auto;
}

.header-actions {
	display: flex;
	align-items: center;
	margin-left: auto;
	border-left: 1px solid var(--rule);
}

.header-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
}

.header-action:hover {
	color: var(--signal-ink);
}

.cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	background: var(--signal);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
}

.cart-count:empty,
.cart-count[data-count="0"] {
	display: none;
}

.header-search {
	position: static;
}

.header-search__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding: var(--s4) var(--gutter);
	background: var(--paper);
	border-bottom: 1px solid var(--ink);
}

.header-search__panel form {
	display: flex;
	max-width: 640px;
	margin-inline: auto;
}

.header-search__panel input[type="search"] {
	flex: 1;
	min-height: 48px;
	padding: 0 var(--s4);
	border: 1.5px solid var(--ink);
	border-right: 0;
	border-radius: 0;
	background: var(--white);
}

.header-search__panel button {
	min-height: 48px;
	padding: 0 var(--s6);
	border: 1.5px solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-heading);
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 599px) {
	.wordmark__name {
		font-size: 1.25rem;
		letter-spacing: 0.14em;
	}

	.wordmark__mark {
		width: 28px;
		height: 28px;
	}

	.menu-toggle__label {
		display: none;
	}

	.header-actions {
		border-left: 0;
	}

	.header-action {
		width: 40px;
	}
}

@media (min-width: 1024px) {
	.menu-toggle {
		display: none;
	}

	.primary-navigation {
		display: block;
		align-self: stretch;
	}

	.primary-menu {
		display: flex;
		height: 100%;
		padding: 0;
		margin: 0 0 0 var(--s6);
		list-style: none;
		counter-reset: nav;
	}

	.primary-menu > li {
		position: relative;
		display: flex;
		border-left: 1px solid var(--rule);
	}

	.primary-menu > li:last-child {
		border-right: 1px solid var(--rule);
	}

	.primary-menu > li > a {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 0 var(--s4);
		font-family: var(--font-heading);
		font-size: var(--fs-lg);
		font-weight: 500;
		text-decoration: none;
		white-space: nowrap;
	}

	.primary-menu > li > a::before {
		counter-increment: nav;
		content: counter(nav, decimal-leading-zero);
		font-family: var(--font-mono);
		font-size: 0.6875rem;
		color: var(--ink-soft);
		line-height: 1.4;
	}

	.primary-menu > li.current-menu-item > a,
	.primary-menu > li.current-menu-ancestor > a,
	.primary-menu > li > a:hover {
		color: var(--ink);
		box-shadow: inset 0 -3px 0 var(--signal);
	}

	.primary-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: -1px;
		min-width: 240px;
		padding: var(--s2) 0;
		margin: 0;
		list-style: none;
		background: var(--paper);
		border: 1px solid var(--ink);
		visibility: hidden;
		opacity: 0;
		transform: translateY(4px);
		transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
	}

	.primary-menu > li:hover > .sub-menu,
	.primary-menu > li:focus-within > .sub-menu,
	.primary-menu > li.is-open > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
	}

	.primary-menu .sub-menu a {
		display: block;
		padding: var(--s2) var(--s4);
		text-decoration: none;
	}

	.primary-menu .sub-menu a:hover {
		background: var(--paper-deep);
		color: var(--ink);
	}
}

/* Mobile menu: a full-height "index" sheet from the left */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
}

.mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 35, 60, 0.55);
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(88vw, 380px);
	overflow-y: auto;
	background: var(--paper);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 24px 24px;
	border-right: 1.5px solid var(--ink);
}

.mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--s3) var(--s4);
	border-bottom: 1px solid var(--ink);
}

.mobile-menu__title {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.mobile-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	cursor: pointer;
}

.mobile-menu-list,
.mobile-menu-list .sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu-list {
	counter-reset: mnav;
}

.mobile-menu-list > li {
	position: relative;
	border-bottom: 1px solid var(--rule);
}

.mobile-menu-list > li > a {
	display: flex;
	align-items: baseline;
	gap: var(--s3);
	padding: var(--s4);
	padding-right: 56px;
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	font-weight: 500;
	text-decoration: none;
}

.mobile-menu-list > li > a::before {
	counter-increment: mnav;
	content: counter(mnav, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

.mobile-submenu-toggle {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	cursor: pointer;
}

.mobile-submenu-toggle svg {
	margin: auto;
	transition: transform 0.15s ease;
}

.is-submenu-open > .mobile-submenu-toggle svg {
	transform: rotate(180deg);
}

.mobile-menu-list .sub-menu a {
	display: block;
	padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 2.2rem);
	text-decoration: none;
}

.has-mobile-menu-open,
.has-filter-panel-open {
	overflow: hidden;
}

/* ==========================================================================
   Sheets (homepage sections) — shared
   ========================================================================== */
.site-main {
	padding-bottom: var(--s16);
}

.home.site-main {
	padding-bottom: 0;
}

.sheet {
	padding-block: var(--s16);
	border-bottom: 1px solid var(--ink);
}

.sheet--grid,
.hero-sheet {
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
}

.sheet-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--s2) var(--s4);
	margin-bottom: var(--s6);
	padding-bottom: var(--s3);
	border-bottom: 1px solid var(--ink);
}

.sheet-heading__ref {
	padding: 2px var(--s2);
	border: 1px solid var(--ink);
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
}

.sheet-heading__title {
	font-size: var(--fs-h2);
}

.sheet__intro {
	max-width: 46rem;
	margin-bottom: var(--s8);
	color: var(--ink-soft);
	font-size: var(--fs-lg);
}

/* --- hero --- */
.hero-sheet {
	border-bottom: 1px solid var(--ink);
}

.hero-sheet__inner {
	display: grid;
	gap: var(--s8);
	padding-block: var(--s12) var(--s16);
}

.hero-sheet__ref {
	display: inline-block;
	margin-bottom: var(--s4);
	padding: 2px var(--s2);
	border: 1px solid var(--ink);
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-sheet__title {
	max-width: 14ch;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.hero-sheet__lead {
	max-width: 36rem;
	margin-top: var(--s4);
	color: var(--ink-soft);
	font-size: var(--fs-lg);
}

.hero-sheet__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
	margin-top: var(--s8);
}

.hero-sheet__drawing {
	color: var(--ink);
	padding: var(--s4);
	border: 1px solid var(--ink);
	background: var(--paper);
}

.hero-sheet__drawing svg {
	width: 100%;
	height: auto;
}

.hero-sheet__drawing .d-main { stroke-width: 2; }
.hero-sheet__drawing .d-thin { stroke-width: 1; }
.hero-sheet__drawing .d-faint { stroke-width: 0.75; opacity: 0.35; }
.hero-sheet__drawing .d-dim { stroke-width: 1; opacity: 0.75; }
.hero-sheet__drawing .d-signal { stroke: var(--signal); stroke-width: 1.5; }

.hero-sheet__drawing .d-label {
	fill: var(--ink);
	stroke: none;
	font-family: var(--font-mono);
	font-size: 14px;
}

.hero-sheet__drawing .d-label--signal {
	fill: var(--signal-ink);
}

@media (min-width: 900px) {
	.hero-sheet__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		align-items: center;
		gap: var(--s12);
		padding-block: var(--s16) var(--s24);
	}
}

/* --- choose by footprint --- */
.footprint-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
	border-left: 1px solid var(--ink);
}

@media (min-width: 700px) {
	.footprint-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.footprint-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.footprint-card {
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	background: var(--paper);
}

.footprint-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: var(--s4);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.footprint-card__link:hover {
	background: var(--white);
	color: var(--ink);
}

.footprint-card__link:hover .plan__wall {
	stroke: var(--signal);
}

.plan {
	width: 100%;
	height: auto;
	margin-bottom: var(--s3);
}

.plan__wall {
	fill: rgba(20, 35, 60, 0.04);
	stroke: var(--ink);
	stroke-width: 2.5;
	transition: stroke 0.15s ease;
}

.plan__wall--open {
	stroke-dasharray: 8 5;
}

.plan__gap {
	stroke: var(--paper);
	stroke-width: 4;
}

.footprint-card__link:hover .plan__gap {
	stroke: var(--white);
}

.plan__door {
	stroke: var(--signal);
	stroke-width: 2;
}

.plan__swing {
	fill: none;
	stroke: var(--signal);
	stroke-width: 1;
	stroke-dasharray: 3 2;
}

.plan__dim {
	fill: none;
	stroke: var(--ink-soft);
	stroke-width: 1;
}

.plan__label {
	fill: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
}

.footprint-card__feet {
	font-family: var(--font-heading);
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.1;
}

.footprint-card__metres {
	margin-top: var(--s1);
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

/* --- drawing index --- */
.drawing-index {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
}

@media (min-width: 900px) {
	.drawing-index {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--s8);
		border-top: 0;
	}

	.drawing-index__row:nth-child(-n + 2) {
		border-top: 1px solid var(--ink);
	}
}

.drawing-index__row {
	border-bottom: 1px solid var(--rule);
}

.drawing-index__link {
	display: grid;
	grid-template-columns: 4.5rem 44px 1fr auto;
	align-items: center;
	gap: var(--s4);
	min-height: 72px;
	padding: var(--s3) var(--s2);
	text-decoration: none;
}

.drawing-index__link:hover {
	background: var(--white);
	color: var(--ink);
}

.drawing-index__ref {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

.drawing-index__name {
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	font-weight: 600;
}

.drawing-index__go {
	color: var(--signal-ink);
	transition: transform 0.15s ease;
}

.drawing-index__link:hover .drawing-index__go {
	transform: translateX(4px);
}

@media (max-width: 479px) {
	.drawing-index__link {
		grid-template-columns: 36px 1fr auto;
	}

	.drawing-index__ref {
		display: none;
	}
}

/* --- general notes --- */
.sheet--notes {
	background: var(--paper-deep);
}

.notes-sheet {
	display: grid;
	gap: var(--s6);
}

.notes-sheet__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s4);
	font-family: var(--font-heading);
	font-weight: 600;
}

.general-notes {
	padding: 0;
	list-style: none;
	counter-reset: note;
	border-top: 1px solid var(--ink);
}

.general-notes li {
	position: relative;
	padding: var(--s4) 0 var(--s4) 3.25rem;
	border-bottom: 1px solid var(--rule);
	counter-increment: note;
}

.general-notes li::before {
	content: counter(note);
	position: absolute;
	left: 0;
	top: var(--s4);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1.5px solid var(--ink);
	border-radius: 50%; /* drawing note bubbles are round */
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
	font-weight: 500;
}

@media (min-width: 900px) {
	.notes-sheet {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: var(--s12);
	}
}

/* --- contact title block --- */
.contact-sheet {
	display: grid;
	gap: var(--s8);
}

.contact-sheet__note {
	color: var(--ink-soft);
	font-size: var(--fs-lg);
}

.contact-sheet__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s6);
	margin-top: var(--s6);
}

@media (min-width: 900px) {
	.contact-sheet {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: var(--s12);
		align-items: start;
	}
}

/* ==========================================================================
   Spec tables (contact block, product specs, dimensions, policies)
   ========================================================================== */
.spec-table,
.policy-table,
.contact-table,
.entry-content table,
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--ink);
	background: var(--white);
	font-size: var(--fs-sm);
}

.spec-table th,
.spec-table td,
.policy-table th,
.policy-table td,
.contact-table th,
.contact-table td,
.entry-content table th,
.entry-content table td,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: var(--s3) var(--s4);
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.spec-table tbody th,
.policy-table tbody th,
.contact-table th,
.entry-content table tbody th {
	width: 38%;
	border-right: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-soft);
}

.spec-table thead th,
.policy-table thead th,
.entry-content table thead th {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.spec-table tr:last-child > *,
.policy-table tr:last-child > *,
.contact-table tr:last-child > * {
	border-bottom: 0;
}

.spec-table--block {
	font-size: var(--fs-base);
}

/* ==========================================================================
   Shop / category / footprint / brand archives
   ========================================================================== */
.woocommerce-breadcrumb {
	padding-top: var(--s6);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

.woocommerce-breadcrumb a {
	color: var(--ink-soft);
}

.shop-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-top: var(--s8);
}

.shop-header {
	padding-bottom: var(--s4);
	margin-bottom: var(--s4);
	border-bottom: 1px solid var(--ink);
}

.shop-header__ref,
.doc-page__ref {
	margin-bottom: var(--s2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

.shop-header__description {
	max-width: 46rem;
	margin-top: var(--s3);
	color: var(--ink-soft);
}

.shop-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--s3);
	margin-bottom: var(--s6);
}

.shop-header__count {
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.shop-toolbar {
	display: flex;
	align-items: center;
	gap: var(--s3);
}

.shop-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	min-height: 44px;
	padding: 0 var(--s4);
	border: 1.5px solid var(--ink);
	background: var(--paper);
	font-family: var(--font-heading);
	font-weight: 600;
	cursor: pointer;
}

.woocommerce-ordering select,
.shop-sort select {
	min-height: 44px;
	padding: 0 var(--s8) 0 var(--s3);
	border: 1.5px solid var(--ink);
	border-radius: 0;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314233c' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 18px;
	appearance: none;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
}

/* Legend (filters): a slide-in panel on mobile, a ruled sidebar on desktop */
.shop-filter-backdrop {
	position: fixed;
	inset: 0;
	z-index: 190;
	background: rgba(20, 35, 60, 0.55);
}

.shop-filter-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 200;
	width: min(88vw, 360px);
	overflow-y: auto;
	padding: var(--s4);
	background: var(--paper);
	border-right: 1.5px solid var(--ink);
}

.shop-filter-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: var(--s3);
	margin-bottom: var(--s4);
	border-bottom: 1px solid var(--ink);
}

.shop-filter-panel__title {
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	font-weight: 600;
}

.shop-filter-panel__ref {
	margin-right: var(--s2);
	padding: 1px var(--s2);
	border: 1px solid var(--ink);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 400;
	text-transform: uppercase;
	vertical-align: middle;
}

.shop-filter-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	cursor: pointer;
}

.shop-filter-group + .shop-filter-group {
	margin-top: var(--s6);
}

.shop-filter-group__heading {
	margin-bottom: var(--s2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
}

.shop-filter-chips {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
}

.shop-filter-chip {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s2);
	min-height: 44px;
	padding: var(--s2) var(--s2) var(--s2) var(--s4);
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
	position: relative;
}

.shop-filter-chip::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border: 1px solid var(--ink);
}

.shop-filter-chip:hover {
	background: var(--white);
	color: var(--ink);
}

.shop-filter-chip.is-active {
	font-weight: 600;
}

.shop-filter-chip.is-active::before {
	background: var(--signal);
	border-color: var(--signal);
}

.shop-filter-chip__metres {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

@media (min-width: 1024px) {
	.shop-page {
		grid-template-columns: 250px minmax(0, 1fr);
		column-gap: var(--s8);
	}

	.shop-page > * {
		grid-column: 2;
	}

	.shop-page > .shop-filter-panel,
	.shop-page > .shop-filter-panel[hidden] {
		display: block !important;
		position: sticky;
		top: calc(var(--header-h) + 50px);
		grid-column: 1;
		grid-row: 1 / span 20;
		align-self: start;
		width: auto;
		max-height: calc(100vh - var(--header-h) - 70px);
		z-index: 1;
		padding: 0;
		border: 0;
		background: transparent;
	}

	.shop-filter-panel__close,
	.shop-filter-toggle,
	.shop-filter-backdrop {
		display: none !important;
	}
}

/* --- product grid + cards --- */
ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	padding: 0;
	margin: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
	border-left: 1px solid var(--ink);
}

@media (min-width: 768px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

ul.products::before,
ul.products::after {
	display: none;
}

ul.products li.product {
	position: relative;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
	background: var(--paper);
}

ul.products li.product > a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding-bottom: var(--s4);
	text-decoration: none;
}

ul.products li.product > a.woocommerce-LoopProduct-link:hover {
	background: var(--white);
	color: var(--ink);
}

.product-card__image {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--white);
	border-bottom: 1px solid var(--rule);
}

.product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	padding: var(--s3);
}

.product-card__dims {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--s2);
	padding: var(--s2) var(--s3);
	border-bottom: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
}

.product-card__feet {
	font-weight: 500;
}

.product-card__metres {
	color: var(--ink-soft);
}

.product-card__brand {
	display: block;
	padding: var(--s3) var(--s3) 0;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

.product-card__title {
	padding: var(--s1) var(--s3) 0;
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: 1.25;
}

ul.products li.product .price {
	display: block;
	margin-top: auto;
	padding: var(--s3) var(--s3) 0;
	font-family: var(--font-mono);
	font-size: var(--fs-base);
	font-weight: 500;
}

.product-card__stock {
	display: block;
	padding: var(--s1) var(--s3) 0;
	font-size: var(--fs-sm);
	color: var(--signal-ink);
}

/* Never a crossed-out "was" price */
.price del,
.wc-block-components-product-price__regular {
	display: none !important;
}

.price ins {
	text-decoration: none;
}

.onsale {
	display: none !important;
}

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: var(--s8);
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--ink);
}

.woocommerce-pagination li a,
.woocommerce-pagination li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--ink);
	border-left: 0;
	font-family: var(--font-mono);
	text-decoration: none;
}

.woocommerce-pagination li span.current {
	background: var(--ink);
	color: var(--paper);
}

.shop-empty {
	padding: var(--s12) var(--s6);
	border: 1px dashed var(--ink);
	text-align: center;
}

.shop-empty__message {
	margin-bottom: var(--s4);
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
}

.shop-empty__link {
	font-weight: 600;
}

/* ==========================================================================
   Single product
   ========================================================================== */
.product-page {
	padding-top: var(--s4);
}

.product-top {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--s8);
	margin-top: var(--s4);
}

@media (min-width: 900px) {
	.product-top {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: var(--s12);
		align-items: start;
	}

	.summary.entry-summary {
		position: sticky;
		top: calc(var(--header-h) + 50px);
	}
}

.woocommerce-product-gallery {
	position: relative;
	width: 100% !important;
	float: none !important;
	border: 1px solid var(--ink);
	background: var(--white);
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	background: var(--white);
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: var(--s3);
	right: var(--s3);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ink);
	background: var(--paper);
	cursor: pointer;
}

.woocommerce-product-gallery__trigger span {
	display: inline-block;
	width: 20px;
	height: 20px;
	font-size: 0;
	background-color: var(--ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-product-gallery__trigger[hidden],
.product-gallery-thumbs[hidden],
.woocommerce-product-gallery__image[hidden] {
	display: none;
}

.product-gallery-thumbs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 0;
	border-top: 1px solid var(--ink);
}

.product-gallery-thumb {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-right: 1px solid var(--rule);
	background: var(--white);
	cursor: pointer;
	position: relative;
}

.product-gallery-thumb img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	padding: 4px;
}

.product-gallery-thumb.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--signal);
}

@media (max-width: 599px) {
	.product-gallery-thumbs {
		justify-content: center;
		border-top: 1px solid var(--rule);
	}

	.product-gallery-thumb {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border: 0;
	}

	.product-gallery-thumb img {
		display: none;
	}

	.product-gallery-thumb::before {
		content: '';
		width: 8px;
		height: 8px;
		border: 1.5px solid var(--ink);
	}

	.product-gallery-thumb.is-active::before {
		background: var(--signal);
		border-color: var(--signal);
	}

	.product-gallery-thumb.is-active::after {
		display: none;
	}
}

.product-heading {
	margin-bottom: var(--s3);
}

.product-brand {
	display: inline-block;
	margin-bottom: var(--s2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
	text-decoration: none;
}

.product_title {
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	font-weight: 700;
}

.product-footprint {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--s2) var(--s3);
	margin-bottom: var(--s4);
	padding: var(--s2) var(--s3);
	border: 1px solid var(--ink);
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
}

.product-footprint a {
	display: inline-flex;
	gap: var(--s3);
	text-decoration: none;
}

.product-footprint__label {
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

.product-footprint__feet {
	font-weight: 500;
}

.product-footprint__metres {
	color: var(--ink-soft);
}

.summary .price {
	display: block;
	margin-bottom: var(--s4);
	font-family: var(--font-mono);
	font-size: 1.75rem;
	font-weight: 500;
}

.product-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s1) var(--s4);
	margin-bottom: var(--s6);
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.product-stock.is-in-stock::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: var(--s2);
	background: var(--ink);
}

.product-stock.is-out-of-stock {
	color: var(--signal-ink);
}

.summary form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s3);
	margin-bottom: var(--s6);
}

.quantity .qty {
	width: 5rem;
	min-height: 48px;
	padding: 0 var(--s2);
	border: 1.5px solid var(--ink);
	border-radius: 0;
	background: var(--white);
	font-family: var(--font-mono);
	text-align: center;
}

.single_add_to_cart_button {
	flex: 1 1 220px;
	background: var(--signal);
	border-color: var(--signal);
	color: var(--ink);
}

.single_add_to_cart_button:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

.product-trust-list {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--rule);
	font-size: var(--fs-sm);
}

.product-trust-list li {
	padding: var(--s3) 0 var(--s3) var(--s6);
	border-bottom: 1px solid var(--rule);
	position: relative;
}

.product-trust-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: calc(var(--s3) + 0.45em);
	width: 10px;
	height: 1.5px;
	background: var(--signal);
}

.product-trust-links {
	display: flex;
	gap: var(--s4);
	margin-top: var(--s3);
	font-size: var(--fs-sm);
}

.product-details {
	margin-top: var(--s12);
}

/* --- dimension callout (blueprint detail) --- */
.dimension-callout {
	margin-bottom: var(--s12);
	border: 1.5px solid var(--ink);
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 16px 16px;
}

.dimension-callout__head {
	display: flex;
	align-items: baseline;
	gap: var(--s4);
	padding: var(--s3) var(--s4);
	border-bottom: 1px solid var(--ink);
	background: var(--paper);
}

.dimension-callout__ref {
	padding: 1px var(--s2);
	border: 1px solid var(--ink);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
}

.dimension-callout__title {
	font-size: var(--fs-h3);
}

.dimension-callout__body {
	display: grid;
	gap: var(--s6);
	padding: var(--s6) var(--s4);
}

@media (min-width: 900px) {
	.dimension-callout__body {
		grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr);
		align-items: start;
		padding: var(--s8) var(--s6);
	}
}

.dimension-callout__drawing figcaption {
	margin-top: var(--s2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
	color: var(--ink-soft);
}

.dim-svg {
	width: 100%;
	height: auto;
}

.dim-svg__wall {
	fill: rgba(20, 35, 60, 0.05);
	stroke: var(--ink);
	stroke-width: 2;
}

.dim-svg__ground {
	stroke: var(--ink);
	stroke-width: 1;
}

.dim-svg__gap {
	stroke: var(--paper);
	stroke-width: 4;
}

.dim-svg__door {
	stroke: var(--signal);
	stroke-width: 2;
}

.dim-svg__swing {
	fill: none;
	stroke: var(--signal);
	stroke-width: 1;
	stroke-dasharray: 3 2;
}

.dim-svg__opening {
	fill: var(--paper);
	stroke: var(--signal);
	stroke-width: 1.5;
}

.dim-svg__dim {
	fill: none;
	stroke: var(--ink-soft);
	stroke-width: 1;
}

.dim-svg__dim--signal {
	stroke: var(--signal);
}

.dim-svg__label {
	fill: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
}

.dim-svg__label--signal {
	fill: var(--signal-ink);
}

.spec-table--dims td {
	font-family: var(--font-mono);
}

.dimension-callout__note {
	padding: var(--s3) var(--s4);
	border-top: 1px solid var(--rule);
	background: var(--paper);
	font-size: var(--fs-xs);
	color: var(--ink-soft);
}

/* --- description accordion --- */
.product-accordion {
	max-width: 52rem;
	border-top: 1px solid var(--ink);
}

.product-accordion__intro {
	padding: var(--s6) 0;
	font-size: var(--fs-lg);
}

.product-accordion__intro > * + * {
	margin-top: var(--s4);
}

.accordion-item {
	border-bottom: 1px solid var(--ink);
}

.accordion-item__heading {
	font-size: var(--fs-h4);
}

.accordion-item__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 60px;
	padding: var(--s3) 0;
	border: 0;
	background: none;
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.accordion-item__trigger::after {
	content: '+';
	font-family: var(--font-mono);
	font-size: 1.5rem;
	font-weight: 400;
}

.accordion-item__trigger[aria-expanded="true"]::after {
	content: '−';
}

.accordion-item__panel {
	padding-bottom: var(--s6);
}

.accordion-item__panel > * + * {
	margin-top: var(--s4);
}

.accordion-item__panel ul {
	padding-left: var(--s6);
}

.product-qa {
	max-width: 52rem;
	margin-top: var(--s8);
	padding: var(--s6);
	border: 1px solid var(--ink);
	background: var(--paper-deep);
}

.product-qa h2 {
	margin-bottom: var(--s3);
	font-size: var(--fs-h4);
}

.related.products {
	margin-top: var(--s16);
}

.related.products > h2 {
	margin-bottom: var(--s6);
	padding-bottom: var(--s3);
	border-bottom: 1px solid var(--ink);
	font-size: var(--fs-h3);
}

/* --- mobile sticky add-to-basket bar --- */
.sticky-add-to-cart {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: var(--s2) 0;
	border-top: 1.5px solid var(--ink);
	background: var(--paper);
	transform: translateY(110%);
	transition: transform 0.2s ease;
}

.sticky-add-to-cart.is-visible {
	transform: none;
}

.sticky-add-to-cart__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s4);
}

.sticky-add-to-cart__price {
	font-family: var(--font-mono);
	font-weight: 500;
}

.sticky-add-to-cart__button {
	background: var(--signal);
	border-color: var(--signal);
	color: var(--ink);
}

@media (min-width: 900px) {
	.sticky-add-to-cart {
		display: none;
	}
}

/* ==========================================================================
   Document pages (policies, FAQ, about, contact)
   ========================================================================== */
.doc-page {
	padding-top: var(--s12);
}

.doc-page__header {
	padding-bottom: var(--s4);
	margin-bottom: var(--s8);
	border-bottom: 1px solid var(--ink);
	box-shadow: 0 3px 0 -2px var(--ink);
}

.doc-page__title {
	max-width: 22ch;
}

.doc-page__body,
.entry-content {
	max-width: 46rem;
}

.entry-content > * + * {
	margin-top: var(--s4);
}

.entry-content h2 {
	margin-top: var(--s12);
	padding-top: var(--s3);
	border-top: 1px solid var(--rule);
	font-size: var(--fs-h3);
}

.entry-content h3 {
	margin-top: var(--s8);
	font-size: var(--fs-h4);
}

.entry-content ul,
.entry-content ol {
	padding-left: var(--s6);
}

.entry-content li + li {
	margin-top: var(--s2);
}

.doc-page--with-toc .doc-page__body {
	counter-reset: docsec;
}

.doc-page--with-toc .doc-page__body h2 {
	counter-increment: docsec;
	display: flex;
	gap: var(--s3);
	align-items: baseline;
}

.doc-page--with-toc .doc-page__body h2::before {
	content: counter(docsec, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
	font-weight: 400;
	color: var(--signal-ink);
}

.doc-toc {
	margin-bottom: var(--s8);
	padding: var(--s4);
	border: 1px solid var(--ink);
	background: var(--paper-deep);
}

.doc-toc__title {
	margin-bottom: var(--s2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
}

.doc-toc__list {
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.doc-toc__list li {
	counter-increment: toc;
	border-top: 1px solid var(--rule);
}

.doc-toc__list a {
	display: flex;
	gap: var(--s3);
	padding: var(--s2) 0;
	text-decoration: none;
	font-size: var(--fs-sm);
}

.doc-toc__list a::before {
	content: counter(toc, decimal-leading-zero);
	font-family: var(--font-mono);
	color: var(--ink-soft);
}

@media (min-width: 1024px) {
	.doc-page--with-toc {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		column-gap: var(--s12);
	}

	.doc-page--with-toc .doc-page__header {
		grid-column: 1 / -1;
	}

	.doc-toc {
		position: sticky;
		top: calc(var(--header-h) + 60px);
		align-self: start;
		margin-bottom: 0;
	}

	.doc-page--with-toc .doc-page__body > h2:first-child {
		margin-top: 0;
	}
}

/* --- contact page + form --- */
.contact-page {
	display: grid;
	gap: var(--s8);
}

@media (min-width: 900px) {
	.contact-page {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--s12);
	}
}

.contact-form-wrap {
	padding: var(--s6);
	border: 1.5px solid var(--ink);
	background: var(--white);
}

.contact-form__field {
	margin-bottom: var(--s4);
}

.contact-form label,
.woocommerce form .form-row label {
	display: block;
	margin-bottom: var(--s1);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea,
.woocommerce form .input-text,
.woocommerce form select {
	width: 100%;
	min-height: 48px;
	padding: var(--s3);
	border: 1.5px solid var(--ink);
	border-radius: 0;
	background: var(--white);
}

.contact-form textarea {
	min-height: 140px;
}

.contact-form__field--invalid input,
.contact-form__field--invalid textarea {
	border-color: var(--signal-ink);
}

.contact-form__error {
	margin-top: var(--s1);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--signal-ink);
}

.contact-form__honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.contact-form__reply-note {
	margin-top: var(--s3);
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

/* --- notices --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	margin: var(--s4) 0;
	padding: var(--s4);
	border: 1px solid var(--ink);
	border-left: 6px solid var(--ink);
	background: var(--white);
	list-style: none;
}

.woocommerce-error {
	border-left-color: var(--signal-ink);
}

.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	min-height: 40px;
	margin-left: var(--s4);
	font-size: var(--fs-base);
}

/* ==========================================================================
   Cart & Checkout (WooCommerce Cart/Checkout blocks)
   ========================================================================== */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content,
.woocommerce-cart .doc-page__body,
.woocommerce-checkout .doc-page__body,
.woocommerce-account .doc-page__body {
	max-width: none;
}

.woocommerce-cart .doc-page--with-toc,
.woocommerce-checkout .doc-page--with-toc {
	display: block;
}

.wc-block-cart,
.wc-block-checkout {
	font-family: var(--font-body);
}

.wc-block-components-totals-item,
.wc-block-components-order-summary-item,
.wc-block-components-order-summary-item__description,
.wc-block-components-notice-banner__content,
.wc-block-checkout__terms,
.wc-block-components-product-metadata__description,
.wc-block-components-product-name {
	min-width: 0;
	overflow-wrap: break-word;
}

.wc-block-components-sidebar-layout {
	gap: var(--s12);
}

@media (min-width: 900px) {
	.wc-block-components-sidebar.is-sticky {
		top: calc(var(--header-h) + 60px);
	}
}

.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block {
	border: 1.5px solid var(--ink);
	background: var(--white);
}

.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title {
	padding: var(--s4) var(--s6) !important;
	margin: 0 !important;
	border-bottom: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper) !important;
	font-family: var(--font-mono) !important;
	font-size: var(--fs-xs) !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em;
}

.wc-block-components-checkout-order-summary__title-text {
	color: var(--paper);
}

.wc-block-components-totals-wrapper {
	padding: var(--s4) var(--s6);
	border-top: 1px solid var(--rule);
}

.wc-block-components-totals-wrapper:empty {
	display: none;
}

.wp-block-woocommerce-cart-order-summary-cart-items-block,
.wp-block-woocommerce-checkout-order-summary-cart-items-block {
	padding: 0;
	border-top: 0;
}

.wc-block-components-order-summary-item {
	padding: var(--s4) var(--s6);
	border-top: 1px solid var(--rule);
}

.wc-block-components-totals-item {
	padding: 0;
	font-size: var(--fs-sm);
}

.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount {
	font-family: var(--font-mono);
}

.wc-block-components-totals-footer-item {
	font-size: var(--fs-lg);
	font-weight: 600;
}

/* Not VAT-registered: never show a tax line or "including VAT" note */
.wc-block-components-totals-footer-item-tax,
.wc-block-components-totals-taxes,
.woocommerce-Price-taxLabel,
.tax_label,
.includes_tax {
	display: none !important;
}

.wc-block-components-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 0 !important;
	font-family: var(--font-heading);
	font-weight: 600;
}

.wc-block-components-button:not(.is-link).contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 52px;
	background: var(--signal) !important;
	border: 1.5px solid var(--signal) !important;
	color: var(--ink) !important;
	font-size: var(--fs-lg) !important;
}

.wc-block-components-button:not(.is-link).contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--ink) !important;
	border-color: var(--ink) !important;
	color: var(--paper) !important;
}

.wc-block-cart-items {
	border: 0;
}

.wc-block-cart-items__header {
	border-bottom: 1px solid var(--ink);
}

.wc-block-cart-items__header span {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

.wc-block-cart-items__row {
	border-bottom: 1px solid var(--rule);
	padding-block: var(--s6);
}

.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	background: var(--white);
	border: 1px solid var(--rule);
}

.wc-block-components-product-name {
	color: var(--ink) !important;
	font-family: var(--font-heading);
	font-size: var(--fs-lg);
	font-weight: 600;
	text-decoration: none !important;
}

.wc-block-components-product-name:hover {
	text-decoration: underline !important;
}

.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description {
	color: var(--ink-soft);
	font-size: var(--fs-sm);
}

.wc-block-components-quantity-selector {
	border: 1.5px solid var(--ink) !important;
	border-radius: 0 !important;
}

.wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-components-quantity-selector__input {
	font-family: var(--font-mono);
}

.wc-block-cart-item__remove-link {
	color: var(--ink-soft) !important;
	font-size: var(--fs-sm) !important;
	text-decoration: underline !important;
}

.ardonex-cart-policy-links,
.ardonex-checkout-policy-links {
	margin-top: var(--s4) !important;
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.ardonex-checkout-shipping-note {
	margin: 0 !important;
	padding: var(--s4) var(--s6);
	border-top: 1px solid var(--rule);
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

.wc-block-components-checkout-step {
	padding-block: var(--s8);
	border-top: 1px solid var(--ink);
}

.wc-block-checkout__main > .wc-block-components-checkout-step:first-child {
	border-top: 0;
	padding-top: 0;
}

.wc-block-components-checkout-step__title {
	font-family: var(--font-heading);
	font-size: var(--fs-h4);
	font-weight: 600;
}

.wc-block-components-checkout-step__container::after {
	display: none !important;
}

.wc-block-components-checkout-step__heading::before {
	border-radius: 0 !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input.is-active input,
.wc-blocks-components-select__select,
.wc-block-components-country-input .components-combobox-control__input,
.wc-block-components-textarea {
	border: 1.5px solid var(--ink) !important;
	border-radius: 0 !important;
	background: var(--white) !important;
	font-family: var(--font-body);
}

.wc-block-components-text-input label,
.wc-blocks-components-select__label {
	color: var(--ink-soft) !important;
}

.wc-block-components-checkbox__input {
	border-radius: 0 !important;
	border-color: var(--ink) !important;
}

.wc-block-components-radio-control__input {
	border-color: var(--ink) !important;
}

.wc-block-components-radio-control__input:checked::before {
	background: var(--signal) !important;
}

.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--ink) !important;
	border-radius: 0 !important;
}

.wc-block-checkout__terms {
	font-size: var(--fs-sm);
	color: var(--ink-soft);
}

/* ==========================================================================
   Order received + account
   ========================================================================== */
.woocommerce-order {
	max-width: 52rem;
}

.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: var(--s6) 0 var(--s12);
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
	border-left: 1px solid var(--ink);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	color: var(--ink-soft);
}

.woocommerce-order-overview li {
	padding: var(--s3) var(--s4);
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}

.woocommerce-order-overview strong {
	display: block;
	margin-top: var(--s1);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	text-transform: none;
	color: var(--ink);
}

.woocommerce-customer-details address {
	font-style: normal;
	padding: var(--s4);
	border: 1px solid var(--ink);
}

@media (min-width: 700px) {
	.woocommerce-columns--addresses {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--s8);
	}
}

.woocommerce-MyAccount-navigation ul {
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ink);
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: var(--s3) 0;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	font-weight: 600;
	box-shadow: inset 3px 0 0 var(--signal);
	padding-left: var(--s3);
}

@media (min-width: 900px) {
	.woocommerce-account .woocommerce {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		gap: var(--s12);
	}
}

/* 404 */
.error-404__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s4);
	margin-top: var(--s6);
}

/* ==========================================================================
   Footer: title block
   ========================================================================== */
.site-footer {
	padding-block: var(--s12);
	background: var(--paper);
	border-top: 1.5px solid var(--ink);
}

.title-block {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border: 1.5px solid var(--ink);
}

.title-block__cell {
	padding: var(--s6);
	border-bottom: 1px solid var(--ink);
}

.title-block__tagline {
	margin-top: var(--s4);
	max-width: 30rem;
	color: var(--ink-soft);
}

.title-block__label {
	margin: 0 0 var(--s2);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-soft);
}

.title-block__label + * + .title-block__label,
.title-block__address + .title-block__label {
	margin-top: var(--s4);
}

.title-block__address {
	font-style: normal;
}

.title-block__menu {
	padding: 0;
	list-style: none;
}

.title-block__menu li + li {
	margin-top: var(--s2);
}

.title-block__menu a {
	text-decoration: none;
}

.title-block__menu a:hover {
	text-decoration: underline;
}

.title-block__strip {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2) var(--s6);
	padding: var(--s3) var(--s6);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
}

.title-block__ref {
	margin-left: auto;
}

@media (min-width: 700px) {
	.title-block {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.title-block__cell:nth-child(odd) {
		border-right: 1px solid var(--ink);
	}

	.title-block__strip {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1100px) {
	.title-block {
		grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
	}

	.title-block__cell {
		border-bottom: 0;
		border-right: 1px solid var(--ink);
	}

	.title-block__cell:nth-child(4) {
		border-right: 0;
	}

	.title-block__strip {
		border-top: 1px solid var(--ink);
	}
}

/* Fade-in hook kept for main.js; no motion for reduced-motion users */
.fade-in-up {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
