/**
 * WooCommerce product layout refinements.
 * Keeps product content aligned with the site's standard 1280px content width.
 */

body.single-product .woocommerce-breadcrumb {
	display: block;
	width: min(calc(100% - 48px), var(--vamtam-site-max-width, 1280px)) !important;
	margin: 0 auto clamp(24px, 3vw, 40px) !important;
	box-sizing: border-box;
}

body.single-product #main div.product {
	width: min(calc(100% - 48px), var(--vamtam-site-max-width, 1280px));
	margin-right: auto;
	margin-left: auto;
	box-sizing: border-box;
}

body.single-product #main div.product .woocommerce-product-gallery__image > a {
	display: flex;
	align-items: center;
	justify-content: center;
}

body.single-product #main div.product .woocommerce-product-gallery__image img {
	width: auto;
	max-width: 100%;
	max-height: 620px;
	margin-right: auto;
	margin-left: auto;
	object-fit: contain;
}

body.single-product #main div.product .woocommerce-tabs {
	clear: both;
	width: 100%;
	padding-top: clamp(32px, 4vw, 64px);
}

body.single-product #main div.product .woocommerce-tabs .panel {
	max-width: 960px;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: contain;
	background-color: #fff;
}

/* Houtkachels archive: rustige, consistente productgrid. */
body.tax-product_cat.term-houtkachels #main {
	width: min(calc(100% - 48px), var(--vamtam-site-max-width, 1280px));
	margin-right: auto;
	margin-left: auto;
}

body.tax-product_cat.term-houtkachels .woocommerce-products-header {
	display: none;
}

body.tax-product_cat.term-houtkachels .woocommerce-result-count {
	margin: 0 0 28px;
	line-height: 50px;
}

body.tax-product_cat.term-houtkachels .woocommerce-ordering {
	margin: 0 0 28px;
}

body.tax-product_cat.term-houtkachels .woocommerce-ordering select {
	min-width: 220px;
}

body.tax-product_cat.term-houtkachels #main ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 52px 28px;
	clear: both;
	width: 100%;
	margin: 0 !important;
}

body.tax-product_cat.term-houtkachels #main ul.products::before,
body.tax-product_cat.term-houtkachels #main ul.products::after {
	display: none !important;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product > a:first-child {
	display: flex;
	flex-direction: column;
	flex: 1;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product img {
	display: block;
	width: 100% !important;
	height: 360px !important;
	margin: 0 0 20px !important;
	object-fit: contain;
	object-position: center bottom;
	background: #fff;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product .woocommerce-loop-product__title {
	padding: 0 !important;
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product .price {
	display: block;
	margin: 0 0 16px;
}

body.tax-product_cat.term-houtkachels #main ul.products li.product .button {
	align-self: flex-start;
	margin-top: auto;
}

@media (max-width: 1100px) {
	body.tax-product_cat.term-houtkachels #main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Varde archive filters */
body.tax-product_cat.term-houtkachels .varde-product-filters {
	clear: both;
	margin: 0 0 34px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 22px;
	background: #fff;
}

body.tax-product_cat.term-houtkachels .varde-filter-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 18px;
	align-items: end;
}

body.tax-product_cat.term-houtkachels .varde-filter-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.tax-product_cat.term-houtkachels .varde-filter-field > span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.tax-product_cat.term-houtkachels .varde-filter-field select {
	width: 100%;
	min-height: 50px;
	padding: 0 42px 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
}

body.tax-product_cat.term-houtkachels .varde-price-filter {
	justify-content: flex-end;
}

body.tax-product_cat.term-houtkachels .varde-price-control {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 50px;
	padding: 6px 14px 5px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
}

body.tax-product_cat.term-houtkachels .varde-price-values {
	min-height: 18px;
	font-size: 12px;
	line-height: 1.2;
}

body.tax-product_cat.term-houtkachels .varde-dual-range {
	height: 18px;
	margin-top: 1px;
}

body.tax-product_cat.term-houtkachels .varde-dual-range::before {
	top: 8px;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range] {
	height: 18px;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range]::-webkit-slider-thumb {
	margin-top: -7px;
}

body.tax-product_cat.term-houtkachels .limit-wrapper.vamtam-box-outer-padding:has(.page-header) {
	width: min(calc(100% - 48px), var(--vamtam-site-max-width, 1280px));
	max-width: none;
	margin-right: auto;
	margin-left: auto;
	padding-right: 0 !important;
	padding-left: 0 !important;
	box-sizing: border-box;
}

body.tax-product_cat.term-houtkachels .limit-wrapper.vamtam-box-outer-padding:has(.page-header) .meta-header-inside,
body.tax-product_cat.term-houtkachels .limit-wrapper.vamtam-box-outer-padding:has(.page-header) .page-header {
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

body.tax-product_cat.term-houtkachels .varde-price-values {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

body.tax-product_cat.term-houtkachels .varde-dual-range {
	position: relative;
	height: 28px;
}

body.tax-product_cat.term-houtkachels .varde-dual-range::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 13px;
	height: 4px;
	border-radius: 4px;
	background: #e9e9e9;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range] {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range]::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range]::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border: 0;
	border-radius: 50%;
	background: #3ca200;
	cursor: pointer;
	pointer-events: auto;
	-webkit-appearance: none;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range]::-moz-range-track {
	height: 4px;
	background: transparent;
}

body.tax-product_cat.term-houtkachels .varde-dual-range input[type=range]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: #3ca200;
	cursor: pointer;
	pointer-events: auto;
}

body.tax-product_cat.term-houtkachels .varde-filter-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	white-space: nowrap;
}

body.tax-product_cat.term-houtkachels .varde-filter-actions .button {
	min-height: 50px;
	padding: 0 24px;
}

body.tax-product_cat.term-houtkachels .varde-reset-filter {
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 1100px) {
	body.tax-product_cat.term-houtkachels .varde-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.tax-product_cat.term-houtkachels .varde-filter-actions {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	body.tax-product_cat.term-houtkachels .varde-filter-grid {
		grid-template-columns: 1fr;
	}

	body.tax-product_cat.term-houtkachels .varde-filter-actions {
		grid-column: auto;
		flex-wrap: wrap;
	}

	body.single-product .woocommerce-breadcrumb,
	body.single-product #main div.product,
	body.tax-product_cat.term-houtkachels #main {
		width: 100%;
		padding-right: 20px;
		padding-left: 20px;
	}

	body.single-product #main div.product .woocommerce-product-gallery__image img {
		max-height: 480px;
	}

	body.single-product #main div.product .woocommerce-tabs {
		padding-top: 32px;
	}

	body.tax-product_cat.term-houtkachels #main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 18px;
	}

	body.tax-product_cat.term-houtkachels #main ul.products li.product img {
		height: 280px !important;
	}
}

@media (max-width: 480px) {
	body.tax-product_cat.term-houtkachels #main ul.products {
		grid-template-columns: 1fr;
	}

	body.tax-product_cat.term-houtkachels #main ul.products li.product img {
		height: 340px !important;
	}
}
