
/* ============================================================
   Modern shop layout (2026)

   The catalogue grew to more than 341.000 products. The previous
   layout put a full-width filter block above the grid, so the
   products appeared far below the fold, and every card repeated
   the same legal notice. Both are fixed here:

   - the filters move into a sticky column beside the grid and
     become a drawer on narrow screens
   - the cards become a flex column with a clear price and a
     full-width call to action
   ============================================================ */

/* ---- Layout ---- */

.halden .h-shop__layout {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: 44px;
	align-items: start;
	padding-top: 34px;
}

.halden .h-shop__aside {
	position: sticky;
	top: 24px;
}

.halden .h-shop__main {
	min-width: 0;
}

.halden .h-shop__filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	margin: 0 0 18px;
	padding: 10px 16px;
	border: 1px solid var(--h-line);
	border-radius: 4px;
	background: var(--h-surface);
	color: var(--h-ink);
	font-family: var(--h-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.halden .h-shop__filter-toggle::before {
	content: "";
	width: 13px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.halden .h-shop__filter-close {
	display: none;
	width: 34px;
	height: 34px;
	margin: 0 0 14px auto;
	border: 1px solid var(--h-line);
	border-radius: 4px;
	background: transparent;
	color: var(--h-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

/* ---- Toolbar: result count and sorting on one line ---- */

.halden .h-shop .woocommerce-result-count {
	float: left;
	margin: 0;
	padding: 0 0 14px;
	border: 0;
	font-family: var(--h-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--h-mut);
}

.halden .h-shop .woocommerce-ordering {
	float: right;
	display: block;
	margin: 0;
	padding: 0 0 14px;
	border: 0;
}

.halden .h-shop .woocommerce-ordering .h-orderby__label {
	display: block;
	float: none;
	min-height: 0;
	margin: 0 0 6px;
	font-family: var(--h-mono);
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--h-mut);
}

.halden .h-shop .woocommerce-ordering select {
	display: block;
	min-height: 36px;
	padding: 7px 30px 7px 11px;
	font-size: 12px;
}

.halden .h-shop ul.products {
	clear: both;
}

/* ---- The price note stands once above the grid ---- */

.halden .h-shop .mw-price-notice {
	margin: 0 0 26px;
	padding: 14px 16px;
	border-left: 3px solid var(--h-ochre);
	background: var(--h-paper);
	color: var(--h-body);
	font-size: 12px;
	line-height: 1.6;
}

.halden .h-shop .mw-price-notice a {
	color: var(--h-ink);
	border-bottom: 1px solid var(--h-line);
}

/* ---- Product card ---- */

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

.halden .h-shop ul.products li.product {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0 0 16px;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	background: var(--h-surface);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.halden .h-shop ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: var(--h-green);
	box-shadow: 0 18px 40px rgba(23, 33, 31, 0.12);
}

.halden .h-shop ul.products li.product > a:first-of-type,
.halden .h-shop ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.halden .h-shop ul.products li.product img,
.halden .h-shop ul.products li.product .attachment-woocommerce_thumbnail {
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 16px;
	border-radius: 0;
	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 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
	margin: 15px 18px 0;
	padding: 0;
	font-family: var(--h-sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--h-ink);
	text-transform: none;
}

.halden .h-shop ul.products li.product .price {
	display: block;
	margin: 6px 18px 0;
	font-family: var(--h-sans);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--h-ink);
}

.halden .h-shop ul.products li.product .price del {
	color: var(--h-soft);
	font-size: 14px;
	font-weight: 400;
	margin-right: 7px;
}

.halden .h-shop ul.products li.product .price ins {
	text-decoration: none;
	color: var(--h-ink);
}

.halden .h-shop ul.products li.product .button,
.halden .h-shop ul.products li.product .added_to_cart {
	display: block;
	width: auto;
	margin: auto 18px 0;
	padding: 12px 16px;
	border: 1px solid var(--h-green);
	border-radius: 4px;
	background: var(--h-green);
	color: #ffffff;
	font-family: var(--h-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
	line-height: 1.2;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.halden .h-shop ul.products li.product .button:hover,
.halden .h-shop ul.products li.product .added_to_cart:hover {
	background: var(--h-green-deep);
	border-color: var(--h-green-deep);
	color: #ffffff;
}

.halden .h-shop ul.products li.product .onsale,
.halden .h-shop span.onsale {
	top: 12px;
	left: 12px;
	border-radius: 3px;
	background: var(--h-ochre);
	color: #ffffff;
}

/* ---- Filters in the side column ---- */

.halden .h-shop__aside .h-facets {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	background: var(--h-surface);
}

.halden .h-shop__aside .h-facets__title {
	margin: 0 0 18px;
	font-family: var(--h-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--h-ink);
}

.halden .h-shop__aside .h-facets__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.halden .h-shop__aside .h-facets__field input[type="number"],
.halden .h-shop__aside .h-facets__field select {
	width: 100%;
	min-height: 40px;
	font-size: 13px;
}

.halden .h-shop__aside .h-facets__field--check label {
	font-size: 13px;
	line-height: 1.4;
}

.halden .h-shop__aside .h-facets__actions {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.halden .h-shop__aside .h-facets__submit {
	width: 100%;
	min-height: 44px;
	border-radius: 4px;
	border-color: var(--h-green);
	background: var(--h-green);
	font-size: 12px;
	letter-spacing: 0.08em;
}

.halden .h-shop__aside .h-facets__submit:hover {
	background: var(--h-green-deep);
	border-color: var(--h-green-deep);
}

.halden .h-shop__aside .h-facets__reset {
	align-self: center;
	font-size: 11px;
}

/* ---- Narrow screens: the filters become a drawer ---- */

@media (max-width: 1079px) {
	.halden .h-shop__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.halden .h-shop__aside {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		width: min(88vw, 360px);
		z-index: 9999;
		padding: 20px;
		overflow-y: auto;
		background: var(--h-surface);
		box-shadow: 0 0 60px rgba(23, 33, 31, 0.25);
		transform: translateX(-102%);
		visibility: hidden;
		transition: transform 0.22s ease, visibility 0.22s;
	}

	.halden .h-shop__aside.is-open {
		transform: none;
		visibility: visible;
	}

	.halden .h-shop__filter-toggle {
		display: inline-flex;
	}

	.halden .h-shop__filter-close {
		display: block;
	}

	body.h-shop-filters-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: rgba(23, 33, 31, 0.45);
	}

	body.h-shop-filters-open {
		overflow: hidden;
	}
}

@media (max-width: 860px) {
	.halden .h-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 680px) {
	.halden .h-shop__layout {
		padding-top: 20px;
	}

	.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 {
		margin: 12px 14px 0;
		font-size: 14px;
		min-height: 2.7em;
	}

	.halden .h-shop ul.products li.product .price {
		margin: 5px 14px 0;
		font-size: 17px;
	}

	.halden .h-shop ul.products li.product .button,
	.halden .h-shop ul.products li.product .added_to_cart {
		margin: auto 14px 0;
		padding: 11px 12px;
		font-size: 11px;
	}

	.halden .h-shop ul.products li.product img,
	.halden .h-shop ul.products li.product .attachment-woocommerce_thumbnail {
		padding: 10px;
	}

	.halden .h-shop .woocommerce-result-count {
		float: none;
		padding-bottom: 8px;
	}

	.halden .h-shop .woocommerce-ordering {
		float: none;
		padding-bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.halden .h-shop ul.products li.product,
	.halden .h-shop__aside {
		transition: none;
	}

	.halden .h-shop ul.products li.product:hover {
		transform: none;
	}
}
