/*
 * Mark Warenhaus brand layer for the editorial WooCommerce shell.
 * Loaded after halden.css so the full storefront shares one visual system.
 */

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

@font-face {
	font-family: "Bitter";
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url("../fonts/bitter-600-700.woff2") format("woff2");
}

:root {
	--h-ink: #17211f;
	--h-green: #153f3a;
	--h-green-deep: #0d2d29;
	--h-green-soft: #e4eeea;
	--h-ochre: #c88b32;
	--h-ochre-dark: #8a5b1d;
	--h-paper: #f6f3eb;
	--h-paper-deep: #ebe6da;
	--h-surface: #fffdf8;
	--h-mut: #52615e;
	--h-body: #34423f;
	--h-line: #d7d1c4;
	--h-soft: #687672;
	--h-sans: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
	--h-serif: "Bitter", Georgia, serif;
	--h-mono: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
	--h-pad: clamp(20px, 4vw, 56px);
	--h-shell: 1280px;
	--h-radius: 6px;
	--h-shadow: 0 18px 44px rgba(23, 33, 31, 0.1);
	--h-hatch: #ebe6da;
}

html {
	scroll-padding-top: 164px;
}

body.halden {
	min-width: 0;
	background: var(--h-paper);
	color: var(--h-ink);
	font-family: var(--h-sans);
	font-size: 16px;
	line-height: 1.6;
}

.halden :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--h-serif);
	font-weight: 700;
	letter-spacing: -0.025em;
}

.halden :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--h-ochre);
	outline-offset: 3px;
}

.halden a {
	color: var(--h-green);
	text-underline-offset: 0.18em;
}

.halden a:hover {
	color: var(--h-ochre-dark);
}

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

.screen-reader-text:focus {
	top: 10px !important;
	left: 10px !important;
	z-index: 100000 !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 16px !important;
	overflow: visible !important;
	clip: auto !important;
	white-space: normal !important;
	color: #ffffff !important;
	background: var(--h-green-deep) !important;
}

/* Header */

.h-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 253, 248, 0.98);
	border-bottom: 1px solid var(--h-line);
	box-shadow: 0 8px 24px rgba(23, 33, 31, 0.05);
}

.h-service-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 34px;
	padding: 6px max(var(--h-pad), calc((100vw - var(--h-shell)) / 2));
	color: rgba(255, 255, 255, 0.86);
	background: var(--h-green-deep);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.h-service-bar a {
	min-height: 28px;
	padding: 4px 0;
	color: #ffffff;
	font-weight: 700;
}

.h-header__primary {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(280px, 1fr) auto;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	width: min(calc(100% - (2 * var(--h-pad))), var(--h-shell));
	min-height: 82px;
	margin: 0 auto;
}

.h-wordmark {
	display: block;
	min-width: 0;
	padding: 0;
}

.h-wordmark img {
	display: block;
	width: min(100%, 285px);
	height: auto;
	max-height: 54px;
	margin: 0;
	object-fit: contain;
	object-position: left center;
}

.h-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	min-width: 0;
}

.halden .h-search input[type="search"] {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #aeb9b5;
	border-right: 0;
	border-radius: var(--h-radius) 0 0 var(--h-radius);
	background: #ffffff;
	font-size: 16px;
}

.h-search button {
	min-width: 92px;
	min-height: 48px;
	padding: 10px 18px;
	border: 1px solid var(--h-green);
	border-radius: 0 var(--h-radius) var(--h-radius) 0;
	color: #ffffff;
	background: var(--h-green);
	font: 700 14px/1 var(--h-sans);
	cursor: pointer;
}

.h-search button:hover {
	background: var(--h-green-deep);
}

.h-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

.h-actions a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 10px;
	color: var(--h-ink);
	font-weight: 700;
}

.h-actions__search {
	display: none !important;
}

.h-header__navrow {
	position: relative;
	display: flex;
	align-items: center;
	width: min(calc(100% - (2 * var(--h-pad))), var(--h-shell));
	min-height: 48px;
	margin: 0 auto;
}

.h-nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 3vw, 38px);
	width: 100%;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.h-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	color: var(--h-ink);
	border-bottom: 3px solid transparent;
}

.h-nav a:hover,
.h-nav a[aria-current="page"] {
	color: var(--h-green);
	border-bottom-color: var(--h-ochre);
}

.h-burger {
	display: none;
	min-height: 44px;
	padding: 8px 0;
	border: 0;
	color: var(--h-ink);
	background: transparent;
	font: 700 13px/1 var(--h-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Homepage */

.h-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(580px, 70vh, 760px);
	height: auto;
	padding: clamp(40px, 6vw, 88px) var(--h-pad);
	background: var(--h-paper-deep);
	overflow: hidden;
}

.halden .h-hero__bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.h-hero__box,
.h-hero--photo .h-hero__box {
	position: relative;
	width: min(100%, 560px);
	max-width: none;
	margin-left: max(0px, calc((100vw - var(--h-shell)) / 2));
	padding: clamp(30px, 4vw, 52px);
	border-left: 6px solid var(--h-ochre);
	border-radius: var(--h-radius);
	background: rgba(255, 253, 248, 0.95);
	box-shadow: var(--h-shadow);
}

.h-hero h1 {
	max-width: 520px;
	margin: 0 0 22px;
	font-size: clamp(43px, 5vw, 68px);
	line-height: 1.04;
	color: var(--h-green-deep);
	text-wrap: balance;
}

.h-lead {
	max-width: 480px;
	margin: 0 0 28px;
	color: var(--h-body);
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.65;
}

.halden a.h-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 24px;
	border: 2px solid var(--h-ochre);
	border-radius: var(--h-radius);
	color: #ffffff;
	background: var(--h-green);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
}

.halden a.h-cta:hover {
	border-color: var(--h-green-deep);
	color: #ffffff;
	background: var(--h-green-deep);
}

.h-section {
	width: min(calc(100% - (2 * var(--h-pad))), var(--h-shell));
	margin: 0 auto;
	padding: clamp(64px, 8vw, 104px) 0 0;
}

.h-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 28px;
	padding: 0 0 16px;
	border-bottom: 1px solid var(--h-line);
}

.h-head h2 {
	margin: 0;
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.12;
	letter-spacing: -0.025em;
	text-transform: none;
}

.h-meta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--h-green);
	font-family: var(--h-sans);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

.h-grid {
	display: grid;
	gap: 22px;
}

.h-grid--cats {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.h-grid--products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.h-card {
	min-width: 0;
	color: var(--h-ink);
	background: var(--h-surface);
}

.h-card--category {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	box-shadow: 0 8px 24px rgba(23, 33, 31, 0.05);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.h-card--category:hover {
	color: var(--h-green);
	border-color: #9eb0aa;
	box-shadow: 0 16px 34px rgba(23, 33, 31, 0.11);
	transform: translateY(-3px);
}

.h-slot {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--h-paper-deep);
}

.halden .h-slot img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.h-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 66px;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.h-card__arrow {
	color: var(--h-ochre-dark);
	font-size: 21px;
}

.h-card--text-only.h-card--category {
	justify-content: flex-end;
	min-height: 220px;
	background: var(--h-green-soft);
}

.h-card--product {
	display: flex;
	flex-direction: column;
	border-radius: var(--h-radius);
	transition: transform 180ms ease;
}

.h-card--product:hover {
	color: var(--h-green);
	transform: translateY(-3px);
}

.h-card--product .h-slot {
	aspect-ratio: 1 / 1;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	background: #ffffff;
}

.h-card--product .h-slot img {
	object-fit: contain;
	padding: 10px;
}

.h-card:hover .h-slot img {
	opacity: 1;
}

.h-prod {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 2px 0;
}

.h-prod__cat {
	color: var(--h-mut);
	font-family: var(--h-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.h-prod__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-wrap: pretty;
}

.h-prod__price {
	color: var(--h-body);
	font-size: 16px;
}

.h-card--text-only.h-card--product {
	min-height: 220px;
	padding: 22px;
	border: 1px solid var(--h-line);
	background: var(--h-surface);
}

.h-card--text-only.h-card--product .h-prod {
	margin-top: auto;
	padding: 0;
}

.h-catalog-note {
	padding: clamp(44px, 6vw, 72px);
	border-left: 6px solid var(--h-ochre);
	background: var(--h-green-soft);
}

.h-catalog-note h2 {
	margin: 0 0 10px;
	font-size: clamp(28px, 3vw, 40px);
}

.h-catalog-note p {
	max-width: 640px;
	margin: 0;
	color: var(--h-body);
}

.h-content {
	width: min(calc(100% - (2 * var(--h-pad))), var(--h-shell));
	margin: 0 auto;
	padding: 72px 0 0;
}

.h-content__inner {
	max-width: 760px;
	color: var(--h-body);
	font-size: 17px;
	line-height: 1.75;
}

.h-editorial {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
	width: min(100%, 1440px);
	margin: clamp(72px, 9vw, 120px) auto 0;
	border: 0;
	background: var(--h-green-deep);
}

.h-editorial__img {
	aspect-ratio: 4 / 3;
	background: var(--h-paper-deep);
}

.h-editorial__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(42px, 6vw, 84px);
	color: #ffffff;
}

.h-editorial__body h2 {
	max-width: 500px;
	margin: 0 0 20px;
	color: #ffffff;
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.08;
}

.h-editorial__body .h-lead {
	max-width: 520px;
	margin-bottom: 26px;
	color: rgba(255, 255, 255, 0.82);
}

.halden .h-editorial .h-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 46px;
	padding: 8px 0;
	border-bottom: 2px solid var(--h-ochre);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

/* Global pages and WooCommerce */

.h-page,
.h-shop {
	width: min(calc(100% - (2 * var(--h-pad))), var(--h-shell));
	margin: 0 auto;
	padding: clamp(40px, 6vw, 76px) 0 88px;
}

.h-page__head,
.halden .woocommerce-products-header {
	max-width: 820px;
	margin-bottom: 36px;
}

.halden :where(.h-page, .h-shop) h1,
.halden .woocommerce-products-header__title,
.halden .page-title {
	font-size: clamp(38px, 5vw, 62px);
	line-height: 1.06;
}

.halden .h-shop ul.products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 22px;
}

.halden .h-shop ul.products li.product {
	overflow: hidden;
	padding: 12px 12px 18px;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	background: var(--h-surface);
}

.halden .h-shop ul.products li.product img,
.halden .h-shop ul.products li.product .attachment-woocommerce_thumbnail {
	aspect-ratio: 1 / 1;
	margin-bottom: 14px;
	padding: 8px;
	border-radius: 4px;
	background: #ffffff;
	object-fit: contain;
}

.halden .h-shop ul.products li.product .woocommerce-loop-product__title,
.halden .h-shop ul.products li.product h2,
.halden .h-shop ul.products li.product h3 {
	font-family: var(--h-sans);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
}

.halden .h-shop ul.products li.product .price {
	font-size: 17px;
	font-weight: 700;
}

.halden .button,
.halden button.button,
.halden input.button,
.halden a.button,
.halden div.product form.cart button.single_add_to_cart_button,
.halden #respond input#submit,
.halden .wc-block-components-button {
	min-height: 48px;
	border: 2px solid var(--h-green);
	border-radius: var(--h-radius);
	color: #ffffff;
	background: var(--h-green);
	font-family: var(--h-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.halden .button:hover,
.halden button.button:hover,
.halden input.button:hover,
.halden a.button:hover,
.halden div.product form.cart button.single_add_to_cart_button:hover,
.halden #respond input#submit:hover,
.halden .wc-block-components-button:hover {
	border-color: var(--h-green-deep);
	color: #ffffff;
	background: var(--h-green-deep);
}

.halden :where(input, select, textarea) {
	font-size: 16px;
}

.halden .h-shop--single div.product {
	gap: clamp(34px, 6vw, 76px);
}

.halden .h-shop--single .product_title {
	font-size: clamp(36px, 4vw, 54px);
}

/* Footer */

.h-footer {
	display: grid;
	grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
	gap: clamp(32px, 5vw, 68px);
	margin: 0;
	padding: clamp(54px, 7vw, 84px) max(var(--h-pad), calc((100vw - var(--h-shell)) / 2));
	border: 0;
	color: rgba(255, 255, 255, 0.78);
	background: var(--h-green);
}

.h-footer__brand {
	display: inline-block;
	max-width: 270px;
	padding: 10px 12px;
	border-radius: 4px;
	background: #fffdf8;
}

.h-footer__brand img {
	display: block;
	width: 100%;
	height: auto;
}

.h-footer__about {
	max-width: 340px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 15px;
	line-height: 1.7;
}

.h-fcol {
	gap: 4px;
	font-size: 15px;
}

.h-fcol__title {
	margin-bottom: 12px;
	color: #ffffff;
	font-family: var(--h-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.h-fcol ul {
	gap: 2px;
}

.h-fcol a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: rgba(255, 255, 255, 0.88);
}

.h-fcol a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.h-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 18px max(var(--h-pad), calc((100vw - var(--h-shell)) / 2));
	border: 0;
	color: rgba(255, 255, 255, 0.72);
	background: var(--h-green-deep);
	font-family: var(--h-sans);
	font-size: 13px;
}

.halden .footer-info.vat-info,
.halden .eu-owb-order-withdraw-from-contract-button {
	margin: 0;
	padding: 14px max(var(--h-pad), calc((100vw - var(--h-shell)) / 2));
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.8);
	background: var(--h-green-deep);
	font-size: 13px;
}

@media (max-width: 1080px) {
	.h-header__primary {
		grid-template-columns: minmax(200px, 260px) minmax(240px, 1fr) auto;
		gap: 20px;
	}

	.h-actions__hide-xs {
		display: none !important;
	}

	.h-grid--cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.h-grid--products,
	.halden .h-shop ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.h-footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 920px) {
	html {
		scroll-padding-top: 146px;
	}

	.h-header__primary {
		grid-template-columns: minmax(180px, 1fr) auto;
		min-height: 72px;
	}

	.h-search {
		display: none;
	}

	.h-actions__search {
		display: inline-flex !important;
	}

	.h-header__navrow {
		min-height: 48px;
	}

	.h-burger {
		display: inline-flex;
		align-items: center;
	}

	.h-header__navrow .h-nav {
		position: absolute;
		top: 100%;
		left: calc(-1 * var(--h-pad));
		right: calc(-1 * var(--h-pad));
		width: auto;
		display: none;
		max-height: calc(100vh - 146px);
		overflow-y: auto;
		padding: 10px var(--h-pad) 18px;
		border-bottom: 1px solid var(--h-line);
		background: var(--h-surface);
		box-shadow: 0 18px 28px rgba(23, 33, 31, 0.14);
	}

	.h-header__navrow .h-nav.is-open {
		display: grid;
		gap: 0;
	}

	.h-nav a {
		min-height: 50px;
		border-bottom: 1px solid var(--h-line);
	}

	.h-nav a:hover,
	.h-nav a[aria-current="page"] {
		border-bottom-color: var(--h-ochre);
	}

	body.h-menu-open {
		overflow: hidden;
	}

	.h-editorial {
		grid-template-columns: 1fr;
	}

	.h-editorial__img {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 680px) {
	:root {
		--h-pad: 20px;
	}

	.h-service-bar {
		min-height: 32px;
		font-size: 11px;
	}

	.h-header__primary {
		grid-template-columns: minmax(130px, 1fr) auto;
		gap: 10px;
		min-height: 64px;
	}

	.h-wordmark img {
		width: min(100%, 180px);
		max-height: 44px;
	}

	.h-actions {
		gap: 0;
		font-size: 12px;
	}

	.h-actions a {
		padding-inline: 7px;
	}

	.h-hero {
		display: grid;
		min-height: 0;
		padding: 0;
		overflow: visible;
	}

	.halden .h-hero__bg {
		position: relative;
		grid-row: 1;
		height: 300px;
		object-position: 66% center;
	}

	.h-hero__box,
	.h-hero--photo .h-hero__box {
		grid-row: 2;
		width: 100%;
		margin: 0;
		padding: 32px var(--h-pad) 38px;
		border-left: 0;
		border-top: 5px solid var(--h-ochre);
		border-radius: 0;
		background: var(--h-surface);
		box-shadow: none;
	}

	.h-hero h1 {
		font-size: clamp(40px, 12vw, 54px);
	}

	.h-lead {
		font-size: 17px;
	}

	.h-section {
		padding-top: 64px;
	}

	.h-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.h-grid--cats,
	.h-grid--products,
	.halden .h-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 14px;
	}

	.h-card__row {
		padding-inline: 13px;
		font-size: 15px;
	}

	.h-prod__name {
		font-size: 16px;
	}

	.h-editorial__img {
		aspect-ratio: 4 / 3;
	}

	.h-editorial__body {
		padding: 42px var(--h-pad) 50px;
	}

	.h-footer {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 440px) {
	.h-service-bar a {
		display: none;
	}

	.h-wordmark img {
		width: min(100%, 150px);
	}

	.h-actions__cart {
		padding-right: 0 !important;
	}

	.h-grid--products,
	.halden .h-shop ul.products {
		grid-template-columns: 1fr;
	}

	.h-footer {
		grid-template-columns: 1fr;
	}

	.h-legal {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.halden *,
	.halden *::before,
	.halden *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	.h-hero__box,
	.h-card,
	.h-editorial,
	.h-footer {
		border: 1px solid CanvasText;
	}

	.halden a.h-cta,
	.halden .button {
		border: 2px solid ButtonText;
	}
}

@media print {
	.h-service-bar,
	.h-header,
	.h-footer,
	.h-legal {
		display: none !important;
	}

	body.halden,
	.h-editorial {
		color: #000000;
		background: #ffffff;
	}
}
