/* Woodnix theme — main stylesheet.
 *
 * Tokens: mangrove ink, white, cool stone panels, brand gold (decorative /
 * large only) and brass (gold that passes contrast for text).
 * Type: Gloock (display, echoes the flared logo) + Albert Sans (UI/body).
 * Scale: 1.25 modular on a 17px base.
 */

@font-face {
	font-family: "Gloock";
	src: url("../fonts/gloock.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/albert-sans-var.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Albert Sans";
	src: url("../fonts/albert-sans-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--ink: #16302b;
	--ink-soft: #4a5d58;
	--paper: #ffffff;
	--stone: #f2f0ec;
	--stone-deep: #e4e0d8;
	--line: #d9d4ca;
	--gold: #c9974f;
	--brass: #8a6229;
	--focus: #2f6fb5;

	--font-display: "Gloock", "Iowan Old Style", Georgia, serif;
	--font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--step--1: 0.85rem;
	--step-0: 1.0625rem;
	--step-1: 1.33rem;
	--step-2: 1.66rem;
	--step-3: 2.07rem;
	--step-4: clamp(2.07rem, 1.5rem + 2vw, 2.6rem);
	--step-5: clamp(2.4rem, 1.6rem + 3.2vw, 3.25rem);
	--step-6: clamp(2.6rem, 1.4rem + 5.4vw, 5.1rem);

	--gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
	--space-section: clamp(3.5rem, 2rem + 6vw, 7rem);
	--max: 1360px;
	--radius: 2px;
	--header-h: 72px;
}

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

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
/* clip, not hidden: hidden turns the body into a scroll container, which
   breaks momentum scrolling on iOS and fights nested scrollers. */
html, body { overflow-x: clip; }

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

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

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

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

.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 100;
	background: var(--ink); color: var(--paper);
	padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

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

.icon { flex: none; }

/* Buttons ---------------------------------------------------------------- */

.button,
.woocommerce .button,
.single_add_to_cart_button,
button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 48px;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font: 600 var(--step-0)/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.button:hover,
.single_add_to_cart_button:hover { background: #22443d; color: var(--paper); }

.button.button-quiet,
.woocommerce .button.button-quiet {
	background: transparent;
	color: var(--ink);
}
.button.button-quiet:hover,
.woocommerce .button.button-quiet:hover { background: var(--stone); color: var(--ink); }

.button-whatsapp .icon { width: 20px; height: 20px; }

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	cursor: pointer;
	position: relative;
}
.icon-button:hover { color: var(--brass); }

/* Top bar --------------------------------------------------------------- */

.topbar {
	background: var(--ink);
	color: #e6ebe9;
	font-size: var(--step--1);
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 38px;
}
.topbar p { margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 1.25rem; }
.topbar-actions a { display: inline-flex; align-items: center; gap: 0.4em; text-decoration: none; }
.topbar-actions a:hover { color: var(--gold); }
.topbar-actions .icon { width: 16px; height: 16px; }

@media (max-width: 699px) {
	.topbar-areas { display: none; }
	.topbar-inner { justify-content: center; }
}

/* Market switcher + hint ------------------------------------------------ */

.market-switcher { display: inline-flex; align-items: center; gap: 0.6rem; }
.market-switcher-label { opacity: 0.75; }
.market-link { text-decoration: none; }
.market-link.is-current { font-weight: 600; color: var(--gold); }
a.market-link { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 699px) {
	.market-switcher-label { display: none; }
	.topbar-actions { gap: 0.9rem; }
	.topbar-actions > a:not(.market-link) span { display: none; }
}

.market-hint { background: var(--gold); color: var(--ink); }
.market-hint-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-block: 0.75rem; }
.market-hint p { margin: 0 auto 0 0; font-weight: 600; }
.market-hint .button { min-height: 40px; padding: 0.4rem 1rem; }
.market-hint-close { min-height: 40px; padding: 0 0.75rem; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }

/* Header ---------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: var(--header-h);
}
.brand { display: block; flex: none; }
.brand-logo,
.woocommerce-page .site-header img.brand-logo { width: auto; height: 40px; max-width: none; } /* beats WooCommerce's .woocommerce-page img { height: auto } on cart/checkout */
@media (max-width: 399px) {
	.brand-logo,
	.woocommerce-page .site-header img.brand-logo { height: 34px; }
}
.brand-text { font: 400 1.75rem/1 var(--font-display); color: var(--gold); }

.header-tools { display: flex; align-items: center; margin-left: auto; }

.cart-count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--gold);
	color: var(--ink);
	font: 700 11px/18px var(--font-body);
	text-align: center;
}

.site-search {
	border-top: 1px solid var(--line);
	padding-block: 1rem;
	background: var(--paper);
}

.search-form { display: flex; gap: 0.5rem; max-width: 640px; }
.search-form input[type="search"] { flex: 1; }

/* Navigation: mobile drawer (default) ----------------------------------- */

.site-nav {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 60;
	width: min(88vw, 380px);
	background: var(--paper);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
	visibility: hidden;
}
.nav-is-open .site-nav { transform: none; visibility: visible; }

.nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: rgb(22 48 43 / 45%);
}

.nav-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0.75rem 0.75rem var(--gutter);
	border-bottom: 1px solid var(--line);
}
.nav-drawer-title { font: 400 var(--step-1) var(--font-display); }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { border-bottom: 1px solid var(--line); }

.nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 56px;
	padding: 0 var(--gutter);
	border: 0;
	background: none;
	color: var(--ink);
	font: 500 var(--step-0) var(--font-body);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.nav-toggle .icon { width: 18px; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.nav-panel { display: none; padding: 0 var(--gutter) 1rem; }
.nav-toggle[aria-expanded="true"] + .nav-panel { display: block; }
.nav-panel .wrap { padding: 0; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li a,
.nav-panel-all {
	display: block;
	padding: 0.45rem 0;
	text-decoration: none;
	color: var(--ink-soft);
}
.nav-panel-all { color: var(--ink); font-weight: 600; }
.nav-panel-media { display: none; }

@media (max-width: 1099px) {
	.brand { margin-inline: auto; }
	.header-tools { margin-left: 0; }
	.header-inner > .nav-open { margin-right: -10px; }
}

/* Navigation: desktop mega panels --------------------------------------- */

@media (min-width: 1100px) {
	.nav-open, .nav-drawer-head, .nav-scrim { display: none !important; }

	.site-nav {
		position: static;
		width: auto;
		transform: none;
		visibility: visible;
		overflow: visible;
		background: none;
		margin-left: 2rem;
	}
	.nav-list { display: flex; gap: 0.25rem; }
	.nav-item { border: 0; }
	.nav-link {
		min-height: var(--header-h);
		padding: 0 0.85rem;
		gap: 0.3rem;
		font-size: 0.97rem;
		white-space: nowrap;
	}
	.nav-link:hover,
	.nav-toggle[aria-expanded="true"] { color: var(--brass); }
	.nav-toggle .icon { width: 14px; }

	.nav-panel {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		padding: 0;
		background: var(--paper);
		border-top: 1px solid var(--line);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px -24px rgb(22 48 43 / 25%);
	}
	.nav-panel .wrap { padding-inline: var(--gutter); }
	.nav-panel-inner {
		display: grid;
		grid-template-columns: 1fr minmax(0, 340px);
		gap: 3rem;
		padding-block: 2rem 2.5rem;
	}
	.nav-panel-links ul { columns: 3; column-gap: 2rem; }
	.nav-panel-all { font: 400 var(--step-2) var(--font-display); margin-bottom: 0.75rem; }
	.nav-panel li a { break-inside: avoid; }
	.nav-panel li a:hover { color: var(--ink); text-decoration: underline; }
	.nav-panel-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
	.nav-panel-media img { width: 100%; height: 100%; object-fit: cover; }
}

/* Breadcrumbs / page heads ---------------------------------------------- */

.breadcrumbs {
	padding-top: 1.25rem;
	font-size: var(--step--1);
	color: var(--ink-soft);
}
.breadcrumbs a { color: var(--ink-soft); }

.page-head { padding-block: 1.5rem 2rem; max-width: 52rem; }
.page-title { font-size: var(--step-5); margin-bottom: 0.3em; }
.page-lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 40rem; line-height: 1.5; }

/* Sections -------------------------------------------------------------- */

.section { padding-block: var(--space-section) 0; }

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}
.section-title { font-size: var(--step-4); margin: 0; max-width: 22ch; }
.section-lede { margin: 0.75rem 0 0; color: var(--ink-soft); max-width: 46rem; }
.section-link { font-weight: 600; white-space: nowrap; }

/* Hero: background slider --------------------------------------------- */

.hero-slider {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(540px, 88vh, 820px);
	min-height: clamp(540px, 88svh, 820px);
	color: var(--paper);
	background: var(--ink);
	overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
	.hero-slide.is-active .hero-slide-img { animation: hero-drift 9s ease-out both; }
	@keyframes hero-drift { from { transform: scale(1.06); } to { transform: scale(1); } }
}
/* Overlay: darker at the bottom-left where the text sits. */
.hero-slider::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgb(16 34 31 / 82%) 0%, rgb(16 34 31 / 35%) 45%, rgb(16 34 31 / 15%) 100%),
		linear-gradient(to right, rgb(16 34 31 / 55%) 0%, rgb(16 34 31 / 0%) 70%);
}

.hero-inner {
	display: grid;
	gap: 2rem;
	padding-block: 6rem clamp(2rem, 1rem + 3vw, 3.5rem);
}
.hero-copy { max-width: 44rem; }
.hero-title {
	font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.4rem);
	line-height: 1.04;
	margin-bottom: 0.4em;
	color: var(--paper);
}
.hero-lede { font-size: var(--step-1); line-height: 1.5; color: rgb(255 255 255 / 88%); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.button.button-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button.button-light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button.button-outline-light { background: transparent; color: var(--paper); border-color: rgb(255 255 255 / 70%); }
.button.button-outline-light:hover { background: rgb(255 255 255 / 12%); color: var(--paper); border-color: var(--paper); }

.hero-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgb(255 255 255 / 25%);
}
.hero-caption { margin: 0 0.5rem 0 0; }
.hero-caption-link { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.hero-caption-link:hover { color: var(--gold); }
.hero-dots { display: flex; gap: 0.25rem; }
.hero-dot {
	width: 44px; height: 44px;
	padding: 0; border: 0; background: none;
	cursor: pointer;
	display: grid; place-items: center;
}
.hero-dot::before {
	content: "";
	width: 28px; height: 3px;
	background: rgb(255 255 255 / 40%);
	transition: background-color 0.2s;
}
.hero-dot[aria-pressed="true"]::before { background: var(--gold); }
.hero-dot:hover::before { background: var(--paper); }
.hero-pause {
	width: 44px; height: 44px;
	border: 1px solid rgb(255 255 255 / 45%);
	border-radius: 50%;
	background: transparent;
	color: var(--paper);
	cursor: pointer;
	display: grid; place-items: center;
}
.hero-pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-pause[aria-pressed="true"] .hero-pause-icon {
	width: 0; height: 0;
	border-style: solid; border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}
.hero-slider :focus-visible { outline-color: var(--paper); }

@media (max-width: 599px) {
	.hero-inner { padding-top: 4rem; }
	.hero-controls { padding-right: 64px; flex-wrap: wrap; } /* clear the floating WhatsApp button */
	.hero-actions .button { flex: 1 1 100%; }
	.hero-dot { width: 32px; }
	.hero-dot::before { width: 20px; }
}

/* Promises strip ------------------------------------------------------- */

.promises { border-bottom: 1px solid var(--line); }
.promise-list {
	list-style: none;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1rem;
	padding-block: 1.5rem;
}
@media (min-width: 900px) { .promise-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.promise { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.4; }
.promise .icon { width: 28px; height: 28px; color: var(--brass); }
.promise strong { display: block; color: var(--ink); font-weight: 600; }

/* Category tiles -------------------------------------------------------- */

.tile-grid {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
}
@media (min-width: 900px) {
	.tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
}
.tile a { display: block; text-decoration: none; }
.tile-media { display: block; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile a:hover .tile-media img { transform: scale(1.03); }
.tile-label { display: block; margin-top: 0.75rem; font: 400 var(--step-2)/1.15 var(--font-display); }

/* Product grid & cards -------------------------------------------------- */

ul.products,
.product-grid {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1rem;
}
@media (min-width: 900px) {
	ul.products,
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.5rem; }
}
@media (min-width: 1200px) {
	ul.products,
	.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
ul.products::before, ul.products::after { content: none !important; }

.card { margin: 0 !important; width: auto !important; float: none !important; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-link:hover { color: var(--ink); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.4s ease; }
.card-link:hover .card-img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.85rem; }
.card-cat { font-size: var(--step--1); color: var(--ink-soft); }
.card-title {
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-link:hover .card-title { text-decoration: underline; text-underline-offset: 0.2em; }
.card-price { margin-top: 0.2rem; font-weight: 600; }

.badge {
	position: absolute;
	top: 0.75rem; left: 0.75rem;
	padding: 0.2rem 0.6rem;
	background: var(--paper);
	color: var(--ink);
	font-size: var(--step--1);
	font-weight: 600;
}

.price del { color: var(--ink-soft); font-weight: 400; margin-right: 0.4em; }
.price ins { text-decoration: none; }
.price-on-request { color: var(--brass); font-weight: 600; }
.woocommerce-price-suffix { white-space: nowrap; font-weight: 400; color: var(--ink-soft); font-size: 0.85em; }
/* On cards the VAT note gets its own small line instead of wrapping mid-phrase. */
.card-price .woocommerce-price-suffix { display: block; font-size: var(--step--1); margin-top: 0.1rem; }

/* Stories (TV units, wardrobes) ----------------------------------------- */

.story {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding-bottom: var(--space-section);
}
.story:last-child { padding-bottom: 0; }
.story-media { aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-title { font-size: var(--step-4); }
.story-kicker { color: var(--brass); font-weight: 600; }
.story-copy { max-width: 34rem; }
.story-copy p:not(.story-kicker) { color: var(--ink-soft); }
@media (min-width: 900px) {
	.story { grid-template-columns: 7fr 5fr; gap: 4rem; }
	.story:nth-child(even) .story-media { order: 2; }
}

/* Services band --------------------------------------------------------- */

.services-band { margin-top: var(--space-section); padding-block: var(--space-section); background: var(--stone); }
.services-grid { display: grid; gap: 2rem; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-list li { padding: 0.5rem 1rem; border: 1px solid var(--line); background: var(--paper); }
@media (min-width: 900px) {
	.services-grid { grid-template-columns: 5fr 7fr; align-items: center; gap: 2rem 4rem; }
}
.services-copy .service-list { margin: 1.5rem 0; }
.services-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Guides ---------------------------------------------------------------- */

.guides { padding-block: var(--space-section) 0; }
.guides .section-title { margin-bottom: 1.5rem; }
.guide-list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	gap: 2rem 1.5rem;
}
@media (min-width: 800px) { .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide a { display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; }
.guide-media { display: block; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-title { font: 400 var(--step-1)/1.25 var(--font-display); }
.guide a:hover .guide-title { text-decoration: underline; text-underline-offset: 0.15em; }
.guide-excerpt { color: var(--ink-soft); font-size: 0.97rem; }
.guides-more { margin-top: 1.5rem; }

/* Post listings & articles ---------------------------------------------- */

.post-grid {
	list-style: none;
	margin: 0 0 3rem; padding: 0;
	display: grid;
	gap: 2.5rem 1.5rem;
}
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card a { display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; }
.post-card-media { display: block; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-title { font: 400 var(--step-2)/1.2 var(--font-display); }
.post-card a:hover .post-card-title { text-decoration: underline; text-underline-offset: 0.15em; }
.post-card-excerpt { color: var(--ink-soft); }

.article-head { max-width: 46rem; margin-inline: auto; padding-block: 1.5rem 2rem; }
.article-title { font-size: var(--step-5); }
.article-meta { color: var(--ink-soft); font-size: var(--step--1); margin: 0; }
.article-hero { margin: 0 auto 2.5rem; }
.article-hero img { width: 100%; max-height: 640px; object-fit: cover; }

.prose { max-width: 46rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); }
.prose img { margin-inline: auto; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--brass); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--gold); }

.related-products { padding-top: var(--space-section); }

.pagination .nav-links,
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	padding: 0;
	margin: 3rem 0 0;
	border: 0 !important;
}
.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px; min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--line) !important;
	text-decoration: none;
	float: none !important;
}
.woocommerce-pagination li { border: 0 !important; float: none !important; }
.pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; }

.empty-state { padding-block: 2rem 4rem; max-width: 40rem; }
.room-links { list-style: none; padding: 0; margin: 2rem 0 4rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.room-links a { font: 400 var(--step-3) var(--font-display); }

/* Shop archive ---------------------------------------------------------- */

.shop-wrap { padding-bottom: var(--space-section); }
.woocommerce-products-header { padding-block: 1.5rem 1rem; }
.woocommerce-products-header__title { font-size: var(--step-5); margin: 0; }

.subcats ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.subcats li { flex: none; }
@media (max-width: 699px) {
	/* One swipeable row instead of a tall stack. */
	.subcats ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
	}
	.subcats ul::-webkit-scrollbar { display: none; }
	.subcats a { white-space: nowrap; }
}
.subcats a {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 0 1rem;
	border: 1px solid var(--line);
	text-decoration: none;
}
.subcats a:hover { border-color: var(--ink); color: var(--ink); }

.woocommerce-result-count { float: none !important; margin: 0 !important; color: var(--ink-soft); font-size: var(--step--1); }
.woocommerce-ordering { float: none !important; margin: 0 !important; }
.shop-wrap .woocommerce-notices-wrapper + .woocommerce-result-count,
.shop-wrap .woocommerce-result-count { display: inline-block; }
.woocommerce-ordering { display: inline-block; margin-left: 1rem !important; }
@media (max-width: 599px) {
	.woocommerce-result-count { display: block !important; }
	.woocommerce-ordering { display: block; margin-left: 0 !important; }
	.woocommerce-ordering select { width: 100%; }
}
.woocommerce-ordering select { min-height: 40px; }
.woocommerce-result-count, .woocommerce-ordering { margin-bottom: 1.5rem !important; }

.term-description { margin-top: var(--space-section); margin-inline: 0; color: var(--ink-soft); }
.term-description h2, .term-description h3 { color: var(--ink); }

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

.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr); /* stop wide content widening the page on phones */
	gap: 2rem;
	padding-top: 1.5rem;
}
@media (min-width: 900px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 2rem 4rem;
		align-items: start;
	}
	.single-product div.product > :not(.woocommerce-product-gallery):not(.summary):not(.onsale) { grid-column: 1 / -1; }
}
.single-product div.product > * { min-width: 0; }
.woocommerce-product-details__short-description,
.woocommerce-Tabs-panel { overflow-wrap: anywhere; }
.woocommerce-product-details__short-description *,
.woocommerce-Tabs-panel * { max-width: 100%; }
.tabbyPromo { max-width: 100%; overflow: hidden; }
.single-product div.product > .onsale,
.single-product div.product > .badge-sale { display: none; }

.woocommerce-product-gallery { position: relative; margin: 0; opacity: 1 !important; overflow: hidden; }
.woocommerce-product-gallery__image { position: relative; overflow: hidden; }
/* Gallery layout stability (CLS was 0.23–0.39 on phones).
   Before the slider script runs, WooCommerce shows every gallery photo
   stacked; the slider then wraps them in .flex-viewport, positions each slide
   with an inline style, and only afterwards inserts the thumbnail row.
   - Photos 2+ stay hidden until the slider has given them their inline style
     (a rule keyed on the original DOM stopped matching for one frame
     mid-init, briefly stacking all photos).
   - The thumbnail row's height is reserved until the real row exists, one,
     two or three rows (five per row) depending on the photo count. */
/* The slider widens its track (8 photos → 1600%) before it sizes each slide,
   so for a frame the first photo was 16× the gallery width — and as tall.
   Until a slide has its inline width, size it to the gallery itself. */
.woocommerce-product-gallery { container-type: inline-size; }
.woocommerce-product-gallery__image:not([style*="width"]) { width: 100cqi; max-width: 100cqi; }
.woocommerce-product-gallery__image:nth-child(n+2):not([style*="float"]) { display: none; }
.woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(2))::after {
	content: "";
	display: block;
	margin-top: 0.5rem;
	aspect-ratio: 5.4 / 1;
}
.woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(6))::after { aspect-ratio: 5.4 / 2.15; }
.woocommerce-product-gallery:not(:has(.flex-control-thumbs)):has(.woocommerce-product-gallery__image:nth-child(11))::after { aspect-ratio: 5.4 / 3.3; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: var(--stone); }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
	list-style: none;
	margin: 0.5rem 0 0; padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li { aspect-ratio: 1; overflow: hidden; }
/* Fixed square cells: WooCommerce's thumbnail onload handler resets each
   img's width/height attributes to the natural size (a layout-shift cause). */
.woocommerce-product-gallery .flex-control-thumbs img { display: block; width: 100%; height: 100%; cursor: pointer; opacity: 0.6; object-fit: cover; background: var(--stone); }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
	width: 40px; height: 40px;
	background: var(--paper);
	font-size: 0;
}
.woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 20px; line-height: 40px; display: block; text-align: center; color: var(--ink); }
.woocommerce-product-gallery__trigger img { display: none !important; }

.product_title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); margin-bottom: 0.4em; }

/* 18 product descriptions contain ChatGPT interface markup pasted with the
   copy (a "Copy" button and empty wrappers). Hidden here; the content itself
   is left for the client to clean (see CLAUDE.md). */
.woocommerce-product-details__short-description button[data-testid],
.woocommerce-Tabs-panel button[data-testid],
.prose button[data-testid] { display: none !important; }
.summary .price { font-size: var(--step-2); font-weight: 600; margin-bottom: 1rem; }
.summary .price .woocommerce-price-suffix { font-size: var(--step--1); font-weight: 400; color: var(--ink-soft); }
.summary .woocommerce-product-details__short-description { color: var(--ink-soft); }

.variations { border: 0; margin: 0 0 1rem; width: 100%; }
.variations th, .variations td { display: block; padding: 0; text-align: left; }
.variations th label { font-weight: 600; }
.variations td { padding-bottom: 1rem; }
.variations select { width: 100%; }
.reset_variations { display: inline-block; margin-top: 0.4rem; font-size: var(--step--1); }
.single_variation_wrap .woocommerce-variation-price { margin-bottom: 1rem; font-size: var(--step-1); font-weight: 600; }
/* Price on request with a size choice (mattresses): the size is picked for the
   enquiry below; WooCommerce's "unavailable" note, quantity and button don't apply. */
.single-product:not(.product-is-priced) .single_variation_wrap,
form.variations_form.is-on-request .single_variation_wrap { display: none !important; } /* WooCommerce's script shows it inline */
.single-product:not(.product-is-priced) .variations { margin-bottom: 0.25rem; }

form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin-bottom: 1rem; }
.quantity .qty { width: 5rem; min-height: 48px; text-align: center; }
.single_add_to_cart_button { flex: 1; }
.single_add_to_cart_button.disabled,
.woocommerce .single_add_to_cart_button.disabled {
	background: var(--stone-deep);
	border-color: var(--stone-deep);
	color: var(--ink-soft); /* 5.4:1 — readable while disabled */
	cursor: not-allowed;
}
/* Reserve the Tabby widget's height (it renders after load). Tabby only
   shows for priced UAE products; it hides itself for OMR. */
.market-ae.product-is-priced .tabbyPromo { min-height: 89px; }
.tabbyPromo a { color: #1f5fa8 !important; } /* Tabby's #3a7dcf link is 4.18:1 on white */

.enquiry { display: grid; gap: 0.6rem; margin: 0.5rem 0 1.5rem; }
.enquiry-primary { padding: 1.25rem; background: var(--stone); }
.enquiry-note { margin: 0 0 0.25rem; }
/* Oman store: note above UAE-specific delivery/payment promises in content. */
.market-note {
	margin: 0 0 1.5rem;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--brass, #8a6229);
	background: var(--stone, #f2f0ec);
	font-size: var(--step--1, 0.9rem);
}
.market-note a { white-space: nowrap; }
.prose .market-note, .term-description .market-note { margin: 0 0 1.5rem; }

.product_meta { font-size: var(--step--1); color: var(--ink-soft); display: grid; gap: 0.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product_meta a { color: var(--ink-soft); }

.woocommerce-tabs { padding-top: var(--space-section); }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; padding: 0; margin: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { content: none !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 0.75rem 0; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.woocommerce-Tabs-panel { max-width: 46rem; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-product-attributes td p { margin: 0; }

.related.products,
.upsells.products { padding-top: var(--space-section); }
.related.products > h2,
.upsells.products > h2 { font-size: var(--step-4); margin-bottom: 1.5rem; }

/* Forms ----------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="number"], input[type="password"], input[type="date"], select, textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgb(47 111 181 / 25%); }
.search-form input[type="search"] { width: auto; }
label { display: block; margin-bottom: 0.3rem; font-weight: 500; }

/* Notices --------------------------------------------------------------- */

.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none;
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--ink);
	background: var(--stone);
	display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
}
.woocommerce-error { border-left-color: #a23a2c; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none !important; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; padding: 0.5rem 1rem; order: 2; }

/* Cart / checkout / account (WooCommerce CSS loaded; light restyle) ----- */

.shop-page { padding-bottom: var(--space-section); }
.shop-page-body { max-width: none; }
.woocommerce-cart .page-title,
.woocommerce-checkout .page-title,
.woocommerce-account .page-title { font-size: var(--step-4); }
.woocommerce .button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button { background: var(--ink) !important; color: var(--paper) !important; }

/* Forms (mu-plugins/woodnix-forms.php) ------------------------------------ */

.wn-form { display: grid; gap: 1.25rem; max-width: 40rem; }
.wn-fields { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 700px) {
	.wn-fields { grid-template-columns: 1fr 1fr; }
	.wn-field-textarea { grid-column: 1 / -1; }
}
.wn-optional { font-weight: 400; color: var(--ink-soft); }
.wn-form .button { justify-self: start; }
.wn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wn-form-status { margin: 0; padding: 1rem 1.25rem; border-left: 3px solid var(--ink); background: var(--stone); }
.wn-form-status-error { border-left-color: #a23a2c; }
.wn-form-note { color: var(--ink-soft); font-size: var(--step--1); }
.wn-form [aria-invalid="true"], .wn-form :user-invalid { border-color: #a23a2c; }

/* Contact page ------------------------------------------------------------ */

.contact-grid { display: grid; gap: 3rem; padding-bottom: 2rem; }
@media (min-width: 950px) { .contact-grid { grid-template-columns: 7fr 4fr; gap: 5rem; } }
.contact-form .section-title { margin-bottom: 1.5rem; }
.contact-details { padding: 1.75rem; background: var(--stone); align-self: start; }
.contact-details-title { font-size: var(--step-2); }
.contact-details p { color: var(--ink-soft); }
.contact-details dl { margin: 1.5rem 0 0; display: grid; gap: 0.2rem; }
.contact-details dt { font-weight: 600; margin-top: 0.8rem; }
.contact-details dd { margin: 0; }

/* Services page ----------------------------------------------------------- */

.services-head .button { margin-top: 0.5rem; }
.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; gap: 0.75rem 3rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .service-row { grid-template-columns: 4fr 8fr; } }
.service-title { font-size: var(--step-3); margin: 0; }
.service-body p { color: var(--ink-soft); max-width: 44rem; }
.service-tags { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-tags li { padding: 0.35rem 0.8rem; background: var(--stone); font-size: 0.95rem; }

.process-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 700px) { .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.process-steps li { counter-increment: step; padding-top: 1rem; border-top: 1px solid var(--ink); }
.process-steps li::before { content: counter(step); display: block; font: 400 var(--step-3)/1 var(--font-display); color: var(--brass); margin-bottom: 0.75rem; }
.process-steps h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin-bottom: 0.4rem; }
.process-steps p { color: var(--ink-soft); margin: 0; }

.about-grid { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 4fr 8fr; } }
.about-copy { margin: 0; }
.reason-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 700px) { .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .reason-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reason { padding-top: 1rem; border-top: 2px solid var(--gold); }
.reason h3 { font-size: var(--step-1); margin-bottom: 0.35rem; }
.reason p { margin: 0; color: var(--ink-soft); }

.booking { margin-top: var(--space-section); padding-block: var(--space-section); background: var(--stone); }
.site-main:has(> .booking:last-child) + .site-footer { margin-top: 0; }
.booking-grid { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .booking-grid { grid-template-columns: 5fr 7fr; } }
.booking .wn-form input, .booking .wn-form select, .booking .wn-form textarea { background: var(--paper); }

/* Card buttons ------------------------------------------------------------ */

.card { display: flex; flex-direction: column; }
.card-link { flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding-top: 0.75rem; }
.card-actions .button,
.woocommerce .card-actions .button {
	min-height: 40px;
	padding: 0.5rem 1rem;
	background: transparent;
	color: var(--ink);
	font-size: 0.93rem;
}
.card-actions .button:hover,
.woocommerce .card-actions .button:hover { background: var(--ink); color: var(--paper); }
.card-actions .button.loading { opacity: 0.6; pointer-events: none; }
.card-actions .button.added::after { content: "✓"; margin-left: 0.35em; }
.card-actions .added_to_cart { font-size: 0.93rem; font-weight: 600; }
@media (max-width: 599px) {
	.card-actions .button { width: 100%; }
}

/* Floating WhatsApp ------------------------------------------------------- */

.whatsapp-float {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.6rem 1.1rem 0.6rem 0.9rem;
	border-radius: 999px;
	background: #1f7a4d; /* WhatsApp-like green, darkened for contrast with white text */
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 8px 24px -8px rgb(0 0 0 / 35%);
}
.whatsapp-float:hover { background: #17633e; color: #fff; }
.whatsapp-float .icon { width: 22px; height: 22px; }
@media (max-width: 599px) {
	.whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.whatsapp-float { padding: 0; width: 52px; height: 52px; justify-content: center; }
}
.nav-is-open .whatsapp-float { display: none; }

/* Reviews ----------------------------------------------------------------- */

#reviews .commentlist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.5rem; }
#reviews .comment_container { display: flex; gap: 1rem; }
#reviews .avatar { width: 48px; height: 48px; border-radius: 50%; }
#reviews .meta { color: var(--ink-soft); font-size: var(--step--1); }
#reviews .woocommerce-noreviews { color: var(--ink-soft); }
#review_form .comment-reply-title { font: 400 var(--step-2) var(--font-display); display: block; margin-bottom: 1rem; }
#review_form .comment-form { display: grid; gap: 1rem; }
#review_form p { margin: 0; }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1.1em; line-height: 1; font-size: 1rem; overflow: hidden; color: var(--gold); }
.star-rating::before { content: "☆☆☆☆☆"; position: absolute; inset: 0; letter-spacing: 0.1em; color: var(--line); }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; letter-spacing: 0.1em; }
p.stars a { display: inline-block; width: 1.4em; overflow: hidden; text-indent: -999em; position: relative; text-decoration: none; }
p.stars a::before { content: "☆"; position: absolute; top: 0; left: 0; text-indent: 0; font-size: 1.4rem; color: var(--gold); }
p.stars:hover a::before, p.stars.selected a.active::before, p.stars.selected a:not(.active) ~ a::before { content: "☆"; }
p.stars:hover a:hover::before, p.stars:hover a:has(~ a:hover)::before, p.stars.selected a.active::before, p.stars.selected a:has(~ a.active)::before { content: "★"; }

/* Variation swatches (woo-variation-swatches) ---------------------------- */

.variations .variable-items-wrapper { gap: 0.5rem; margin: 0.25rem 0 0; }
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) {
	box-shadow: 0 0 0 1px var(--line);
	border-radius: var(--radius);
}
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).selected,
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover {
	box-shadow: 0 0 0 2px var(--ink);
}
.woo-variation-swatches .variable-items-wrapper .button-variable-item { min-width: 44px; min-height: 44px; padding: 0 0.75rem; }

/* Services band (home) --------------------------------------------------- */

.services-media { min-width: 0; }

/* Before / after --------------------------------------------------------- */

.before-after { margin: 0; }
.ba-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba-handle {
	position: absolute; top: 0; bottom: 0;
	left: var(--split);
	width: 2px; margin-left: -1px;
	background: var(--paper);
	pointer-events: none;
}
.ba-handle::after {
	content: "\2039\00a0\203A";
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	font: 700 18px/44px var(--font-body);
	text-align: center;
	box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
}
.ba-range {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
}
.ba-frame:has(.ba-range:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.ba-tag {
	position: absolute; top: 0.75rem;
	padding: 0.2rem 0.6rem;
	background: rgb(22 48 43 / 75%);
	color: var(--paper);
	font-size: var(--step--1);
	font-weight: 600;
	pointer-events: none;
}
.ba-tag-before { left: 0.75rem; }
.ba-tag-after { right: 0.75rem; }
.before-after figcaption { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.ba-grid { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }

/* Testimonials ----------------------------------------------------------- */

.testimonial-list {
	list-style: none;
	margin: 0; padding: 0 0 1rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, 1fr);
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
}
@media (min-width: 1100px) { .testimonial-list { grid-auto-columns: calc((100% - 2rem) / 3); } }
.testimonial { scroll-snap-align: start; }
.testimonial blockquote {
	height: 100%;
	margin: 0;
	padding: 1.75rem;
	background: var(--stone);
	display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
}
.testimonial p { margin: 0; font: 400 var(--step-1)/1.4 var(--font-display); }
.testimonial footer { font-weight: 600; color: var(--brass); }

/* Services page intro ---------------------------------------------------- */

.services-intro { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .services-intro { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.services-intro-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.services-intro-media img { width: 100%; height: 100%; object-fit: cover; }

/* Motion & effects --------------------------------------------------------
 * Performance rules: only opacity/transform animate (GPU, no layout); no
 * effect changes an element's size (CLS stays 0); the hero and the product
 * page's main photo never fade in (LCP); everything respects reduced motion.
 */

:root {
	--ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--dur: 320ms;
}

/* Page transitions (cross-document view transitions; no JS, progressive).
   Header stays put; the old page lifts away and fades, the new one rises in.
   A product photo morphs from its card into the product page. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 280ms cubic-bezier(0.4, 0, 1, 1) both woodnix-page-out; }
::view-transition-new(root) { animation: 620ms var(--ease-expo) 180ms both woodnix-page-in; }
::view-transition-group(*) { animation-duration: 650ms; animation-timing-function: var(--ease-expo); }
/* Morphing photo: the sharp card photo stays visible while the (possibly
   still loading) product photo fades in over it, then lets go. */
::view-transition-old(*.product-photo) { animation: 300ms ease 380ms both woodnix-fade-out; }
::view-transition-new(*.product-photo) { animation: 420ms ease 160ms both woodnix-fade-in; }
::view-transition-old(*.product-photo),
::view-transition-new(*.product-photo) { height: 100%; object-fit: cover; overflow: clip; }
@keyframes woodnix-fade-in {
	from { opacity: 0; }
}
@keyframes woodnix-fade-out {
	to { opacity: 0; }
}
::view-transition-group(topbar),
::view-transition-group(site-header),
::view-transition-old(topbar),
::view-transition-old(site-header),
::view-transition-new(topbar),
::view-transition-new(site-header) { animation: none; }
@keyframes woodnix-page-out {
	to { opacity: 0; transform: translateY(-28px); }
}
@keyframes woodnix-page-in {
	from { opacity: 0; transform: translateY(44px); }
}
@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}

/* Blur-up placeholders: a tiny inline image, blurred, behind the real one.
   Hidden once the photo has loaded (JS adds .is-loaded); without JS the
   opaque photo simply covers it. */
[style*="--lqip"] { position: relative; isolation: isolate; }
[style*="--lqip"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--lqip) center / cover no-repeat;
	filter: blur(14px);
	transform: scale(1.12);
	transition: opacity 400ms ease;
}
[style*="--lqip"].is-loaded::before { opacity: 0; }
/* The multiply blend (white product backdrops onto stone) only once loaded,
   so it never mixes with the placeholder. */
.card-media .card-img { mix-blend-mode: normal; }
.card-media.is-loaded .card-img { mix-blend-mode: multiply; }
.woocommerce-product-gallery .zoomImg { z-index: 2; }

/* Product cards: second photo + lift, on devices with a real hover only. */
.card-hover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 420ms ease;
	pointer-events: none;
}
.card-media .badge { z-index: 2; }
@media (hover: hover) and (pointer: fine) {
	.card-media {
		transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
	}
	.card:hover .card-media,
	.card:focus-within .card-media {
		transform: translateY(-4px);
		box-shadow: 0 22px 34px -24px rgb(22 48 43 / 45%);
	}
	.card:hover .card-hover-img.is-ready { opacity: 1; }
	.card:has(.card-hover-img.is-ready):hover .card-img { transform: none; }
}

/* Smart header: frosted once scrolled; hides on scroll down, back on scroll
   up. Height never changes. The blur sits on a ::before layer because a
   backdrop-filter on the header itself would trap the fixed mobile drawer. */
.site-header { transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--paper);
	transition: background-color 300ms ease;
}
.site-header { background: transparent; isolation: isolate; }
.header-is-scrolled .site-header { box-shadow: 0 12px 30px -24px rgb(22 48 43 / 40%); border-bottom-color: transparent; }
.header-is-scrolled .site-header::before {
	background: rgb(255 255 255 / 84%);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}
.header-is-hidden:not(.nav-is-open) .site-header { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
	.site-header { transition: none; }
}

/* Scroll reveals: JS (main.js) adds .reveal to blocks below the fold and
   .is-revealed when they enter view, with a stagger via --reveal-delay.
   Transform/opacity only (no layout shift). Photos inside settle from a
   slight zoom. Not used inside horizontal scrollers. */
/* Hiding is instant (transitions only on .is-revealed), so nothing animates
   off-screen at load. */
.reveal { opacity: 0; transform: translateY(48px); }
.reveal.is-revealed {
	opacity: 1;
	transform: none;
	transition:
		opacity 700ms ease var(--reveal-delay, 0ms),
		transform 900ms var(--ease-expo) var(--reveal-delay, 0ms);
}
.reveal :is(.tile-media, .story-media, .guide-media, .post-card-media) img { transform: scale(1.12); }
.reveal.is-revealed :is(.tile-media, .story-media, .guide-media, .post-card-media) img {
	transform: none;
	transition: transform 1400ms var(--ease-expo) var(--reveal-delay, 0ms);
}

/* Mini cart (built by assets/js/main.js on first use). */
.mini-cart[hidden] { display: none; }
.mini-cart {
	position: fixed;
	inset: 0;
	z-index: 80;
}
.mini-cart-scrim {
	position: absolute;
	inset: 0;
	background: rgb(22 48 43 / 40%);
	opacity: 0;
	transition: opacity 260ms ease;
}
.mini-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(92vw, 420px);
	display: flex;
	flex-direction: column;
	background: var(--paper);
	box-shadow: -20px 0 40px -30px rgb(0 0 0 / 50%);
	transform: translateX(100%);
	transition: transform 320ms var(--ease-out);
}
.mini-cart.is-open .mini-cart-scrim { opacity: 1; }
.mini-cart.is-open .mini-cart-panel { transform: none; }
.mini-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0.75rem 1rem 1.25rem;
	border-bottom: 1px solid var(--line);
}
.mini-cart-head h2 { font-size: var(--step-2); margin: 0; }
.mini-cart-body { flex: 1; overflow-y: auto; padding: 0.5rem 1.25rem; }
.mini-cart-status { margin: 1rem 0; color: var(--ink-soft); }
.mini-cart-items { list-style: none; margin: 0; padding: 0; }
.mini-cart-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 0.85rem;
	align-items: start;
	padding: 1rem 0;
	border-bottom: 1px solid var(--line);
}
.mini-cart-item img { width: 72px; height: 72px; object-fit: cover; background: var(--stone); }
.mini-cart-item-name { font-weight: 500; line-height: 1.35; text-decoration: none; }
.mini-cart-item-meta { display: block; color: var(--ink-soft); font-size: var(--step--1); margin-top: 0.2rem; }
.mini-cart-remove {
	border: 0;
	background: none;
	color: var(--ink-soft);
	font: inherit;
	font-size: var(--step--1);
	text-decoration: underline;
	cursor: pointer;
	min-height: 32px;
}
.mini-cart-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.6rem; }
.mini-cart-subtotal { display: flex; justify-content: space-between; font-weight: 600; margin: 0 0 0.25rem; }
.mini-cart-foot .button { width: 100%; }
@media (prefers-reduced-motion: reduce) {
	.mini-cart-panel, .mini-cart-scrim { transition: none; }
}
@keyframes woodnix-bump { 50% { transform: scale(1.3); } }
.cart-count.is-bumped { animation: woodnix-bump 360ms var(--ease-out); }

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

.site-footer {
	margin-top: var(--space-section);
	background: var(--ink);
	color: #d6dedb;
	font-size: 0.97rem;
}
.footer-grid {
	display: grid;
	gap: 2.5rem;
	padding-block: 4rem 3rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { font: 400 2rem/1 var(--font-display); color: var(--gold); text-decoration: none; display: inline-block; margin-bottom: 1rem; }
.footer-logo:hover { color: var(--gold); }
.footer-brand p { max-width: 26rem; }
.site-footer h2 { font: 600 var(--step-0) var(--font-body); color: var(--paper); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-base { border-top: 1px solid rgb(255 255 255 / 12%); padding-block: 1.25rem; font-size: var(--step--1); }
.footer-base p { margin: 0; }

/* Motion preferences ---------------------------------------------------- */

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