/* Produktdetailseiten: Layout, Galerie, Tabs, Reviews, Zubehör. Lädt nur auf Single-Product-Ansichten. */

/* Großes Produktlayout erst ab Desktopbreite. */
@media (min-width: 60.626rem) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr);
	}
}

/* Header & Layout auf Single-Product-Seiten */
body.single-product .theme-site-header {
	border-bottom: none;
	box-shadow: none;
}

body.single-product .theme-main {
	padding-top: .65rem;
	padding-bottom: clamp(2rem, 4vw, 4rem);
}

body.single-product .woocommerce .woocommerce-breadcrumb,
body.single-product .woocommerce-breadcrumb {
	width: min(var(--theme-container-width, 80%), var(--theme-content-width));
	margin: 0 auto .65rem;
	padding: 0;
	min-height: 0;
}


/* Produkt-Layout */
.woocommerce div.product {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none;
	width: auto;
	min-width: 0;
	max-width: 100%;
}

.woocommerce div.product div.images .woocommerce-product-gallery,
.woocommerce div.product .woocommerce-product-gallery {
	position: relative;
	overflow: hidden;
	max-width: 100%;
}

/* Der Galerie-Wrapper wird vom FlexSlider breiter als der Viewport gesetzt
   (width per Inline-Style) und darf daher keine max-width- oder Overflow-Begrenzung
   erhalten. Das Abschneiden übernimmt ausschließlich der Flex-Viewport. */

.woocommerce div.product div.summary {
	max-width: 42rem;
	margin: 0;
	/* Größen-Container für die breitenabhängige Icon-Matrix (siehe Container-Query unten) */
	container-type: inline-size;
}

/* Galerie und Produktinformationen folgen gemeinsam dem mobilen Seitenlayout. */
@media (max-width: 60.625rem) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce div.product div.images,
	.woocommerce div.product div.summary {
		width: 100%;
		max-width: 100%;
	}

	/* Nur das eigentliche Bild skalieren, nicht die von WooCommerce erzeugte Zoomkopie. */
	.woocommerce div.product .woocommerce-product-gallery__image > a > img,
	.woocommerce div.product .woocommerce-product-gallery__image--placeholder > img {
		display: block;
		width: 100%;
		height: auto;
	}
}

body.single-product .onsale,
.woocommerce div.product .onsale {
	display: none !important;
}

.woocommerce div.product .stock,
.woocommerce div.product p.stock,
.woocommerce div.product .in-stock,
.woocommerce div.product .out-of-stock {
	display: none !important;
}

.woocommerce div.product .product_title {
	margin: 0 0 .5rem;
	color: var(--theme-color-ink);
	font-family: var(--theme-font-heading);
	font-size: var(--theme-text-page-title);
	line-height: 1.2;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .65rem;
	margin: 0 0 .35rem;
	color: var(--theme-color-ink);
	font-family: var(--theme-font-heading);
	font-size: clamp(1.75rem, 3vw, 2.15rem);
	font-weight: 800;
	line-height: 1.2;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
	/* 4.6:1 auf Weiss, bleibt deutlich heller als der gueltige Preis */
	color: #6b7780;
	font-size: clamp(1.25rem, 2vw, 1.45rem);
	font-weight: 700;
	text-decoration: line-through;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	color: var(--theme-color-ink);
	font-weight: 800;
	text-decoration: none;
}

.woocommerce div.product .wc-gzd-additional-info {
	margin: .25rem 0;
	color: #52606d;
	font-size: var(--theme-text-small);
	line-height: 1.4;
}

.woocommerce div.product .wc-gzd-additional-info a {
	color: var(--theme-color-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce div.product .theme-delivery-note {
	display: flex;
	align-items: center;
	gap: .55rem;
	margin: .45rem 0 1.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #0075ad;
	font-family: var(--theme-font-body);
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.4;
}

.woocommerce div.product .theme-delivery-note__icon {
	color: #0075ad;
	font-size: 1.3rem;
	line-height: 1;
}

.woocommerce div.product .product_meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .5rem;
	padding: .85rem 0;
	margin: 1.25rem 0 1.5rem;
	border-top: 1px solid var(--theme-color-line);
	border-bottom: 1px solid var(--theme-color-line);
	color: var(--theme-color-muted);
	font-size: .92rem;
	font-weight: 500;
}

/* Unterste Trennlinie und toten Freiraum ausblenden, wenn direkt das Warenkorb-Formular folgt (keine doppelte Linie) */
.woocommerce div.product .product_meta:has(+ form.cart) {
	margin-bottom: .25rem;
	border-bottom: 0;
}

.woocommerce div.product .product_meta .sku_wrapper {
	color: var(--theme-color-muted);
}

.woocommerce div.product .product_meta .sku {
	color: #465664;
	font-weight: 600;
}

.woocommerce div.product .product_meta .delivery-time-info,
.woocommerce div.product .delivery-time-info {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	color: var(--theme-color-muted);
	font-size: .92rem;
	font-weight: 500;
}

.woocommerce div.product .product_meta .delivery-time-info::before {
	margin-right: .35rem;
	content: "/";
	color: var(--theme-color-muted) !important;
	background: transparent !important;
	animation: none !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.woocommerce div.product .product_meta .delivery-time-info .delivery-time-inner {
	display: inline-flex;
	align-items: center;
	margin-left: .15rem;
}

.woocommerce div.product .product_meta .delivery-time-info .delivery-time-inner.theme-fast-delivery,
.woocommerce div.product .product_meta .delivery-time-info .delivery-time-inner:where(.delivery-time-1-3-werktage, .delivery-time-1–3-werktage) {
	color: #067647 !important;
	font-weight: 750;
}

.woocommerce div.product .product_meta .delivery-time-info .delivery-time-inner.theme-fast-delivery::before,
.woocommerce div.product .product_meta .delivery-time-info .delivery-time-inner:where(.delivery-time-1-3-werktage, .delivery-time-1–3-werktage)::before {
	display: inline-block;
	width: .55rem;
	height: .55rem;
	margin-right: .45rem;
	border-radius: 50%;
	content: "";
	background: #12b76a;
	animation: theme-pulse 1.6s infinite;
}

.woocommerce div.product .theme-installation-service {
	flex-basis: 100%;
	width: 100%;
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #465664;
	font-size: 1.12rem;
	font-weight: 700;
}

.woocommerce div.product .theme-installation-service label {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	cursor: pointer;
}

.woocommerce div.product .theme-installation-service input[type="checkbox"] {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	accent-color: var(--theme-color-blue);
	cursor: pointer;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .85rem;
	padding-top: 1.5rem;
	margin-top: 1.25rem;
	border-top: 1px solid var(--theme-color-line);
}

/* Variantenauswahl ohne sichtbares Label: Das Select läuft über die volle Breite,
   der Attributname bleibt als sr-only-Label und aria-label am Select erhalten. */
.woocommerce div.product form.cart .variations {
	flex-basis: 100%;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: none;
	margin-bottom: .5rem;
}

.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations :is(th, td).label,
.woocommerce div.product form.cart .variations td.value {
	display: block;
	width: 100%;
	padding: 0;
}

/* Visuell ausgeblendetes Label bleibt für Screenreader und die Reset-Logik erhalten. */
.woocommerce div.product form.cart .variations :is(th, td).label label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.woocommerce div.product form.cart .variations td.value {
	position: relative;
}

/* Native Select-Pfeile ersetzen: Chevron als Maske, eingerückt statt am Rand geklemmt. */
.woocommerce div.product form.cart .variations td.value select {
	width: 100%;
	height: 3rem;
	min-height: 3rem;
	padding-right: 3rem;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

/* Chevron an der festen Select-Höhe zentrieren; td.value ist höher (Platz für Reset-Link). */
.woocommerce div.product form.cart .variations td.value::after {
	content: "";
	position: absolute;
	z-index: 1;
	top: 1.5rem;
	right: 1.1rem;
	width: .9rem;
	height: .9rem;
	margin-top: -.45rem;
	background-color: var(--theme-color-ink);
	-webkit-mask: var(--theme-icon-chevron-down) center / contain no-repeat;
	mask: var(--theme-icon-chevron-down) center / contain no-repeat;
	pointer-events: none;
}

.woocommerce div.product form.cart .single_variation_wrap {
	width: 100%;
}

.woocommerce div.product form.cart .single_variation {
	margin-bottom: .75rem;
}

.woocommerce div.product form.cart .single_variation .woocommerce-variation-price {
	margin-bottom: .35rem;
}

.woocommerce div.product form.cart .single_variation .woocommerce-variation-availability {
	font-size: var(--theme-text-small);
	color: #067647;
	font-weight: 600;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart .variations_button {
	display: flex !important;
	align-items: center !important;
	gap: .85rem !important;
	flex-wrap: wrap !important;
	width: 100% !important;
	margin-top: .75rem !important;
}

.woocommerce div.product form.cart .quantity,
.woocommerce div.product .woocommerce-variation-add-to-cart .quantity,
.woocommerce div.product .variations_button .quantity {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}

.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product button.single_add_to_cart_button {
	display: inline-flex !important;
	min-height: 3.25rem !important;
	height: 3.25rem;
	align-items: center;
	justify-content: center;
	gap: .65rem;
	padding: 0 1.5rem !important;
	flex: 0 0 auto !important;
	border: 1px solid #002244 !important;
	border-radius: var(--theme-radius-s) !important;
	background: var(--theme-color-blue) linear-gradient(180deg, #004b8d 0%, #003366 100%) !important;
	box-shadow: 0 2px 6px rgb(0 34 68 / 25%), inset 0 1px 0 rgb(255 255 255 / 15%) !important;
	color: #fff !important;
	cursor: pointer;
	font-family: var(--theme-font-heading) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	line-height: 1.2;
	white-space: nowrap !important;
	transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition), transform var(--theme-transition);
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover,
.woocommerce div.product button.single_add_to_cart_button:hover {
	border-color: #001933 !important;
	background: var(--theme-color-blue-dark) linear-gradient(180deg, #005a9e 0%, #002850 100%) !important;
	box-shadow: 0 4px 12px rgb(0 34 68 / 35%), inset 0 1px 0 rgb(255 255 255 / 20%) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.woocommerce div.product form.cart button.single_add_to_cart_button::after {
	content: "";
	width: .95rem;
	height: .95rem;
	background-color: currentColor;
	-webkit-mask: var(--theme-icon-circle-chevron-right) center / contain no-repeat;
	mask: var(--theme-icon-circle-chevron-right) center / contain no-repeat;
}

@media (max-width: 47.9375rem) {
	.woocommerce div.product form.cart {
		gap: .75rem;
		padding-top: 1rem;
		margin-top: .75rem;
	}

	.woocommerce div.product form.cart .variations {
		margin: 0;
		border-spacing: 0;
	}

	/* Auch mobil: Label-Spalte entfällt, Select über die volle Breite. */
	.woocommerce div.product form.cart .variations tr {
		display: block;
		margin-bottom: .75rem;
	}

	.woocommerce div.product form.cart .variations :is(th, td).label,
	.woocommerce div.product form.cart .variations td.value {
		width: 100%;
		min-width: 0;
		padding: 0;
	}

	.woocommerce div.product form.cart .variations :is(th, td).label {
		min-height: 0;
	}

	.woocommerce div.product form.cart .variations td.value select {
		height: 2.9rem;
		min-height: 2.9rem;
	}

	.woocommerce div.product form.cart .variations td.value::after {
		top: 1.45rem;
	}

	.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
	.woocommerce div.product form.cart .variations_button {
		flex-wrap: wrap !important;
		row-gap: .75rem !important;
		margin-top: 0 !important;
	}

	.woocommerce div.product .theme-installation-service {
		flex: 0 0 100%;
		width: 100%;
		margin: 0;
		padding: .75rem 0;
		border-top: 1px solid var(--theme-color-line);
		border-bottom: 1px solid var(--theme-color-line);
		font-size: 1rem;
	}

	.woocommerce div.product .theme-installation-service label {
		display: flex;
		align-items: center;
		gap: .65rem;
	}

	.woocommerce div.product form.cart button.single_add_to_cart_button {
		flex: 1 1 0 !important;
		min-width: 0;
		padding-inline: 1rem !important;
	}
}

@media (min-width: 48rem) {

	.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
	.woocommerce div.product form.cart .variations_button {
		justify-content: flex-start;
	}

	.woocommerce div.product .theme-installation-service {
		text-align: left;
	}

	.woocommerce div.product .theme-payment-methods {
		text-align: left;
	}

	.woocommerce div.product .theme-payment-methods .product-payment-icons {
		justify-content: flex-start;
	}
}

/* Eigene Feature-Icons der Produktdetailseite */
div.theme-product-icons {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	width: 100%;
	margin: 1.25rem 0 1.75rem;
	padding: 0;
	box-sizing: border-box;
}

/* Spaltenanzahl je Icon-Anzahl, damit keine Zeile mit einem einzelnen kleinen Icon endet */
div.theme-product-icons--n1 {
	grid-template-columns: 1fr;
}

div.theme-product-icons--n2,
div.theme-product-icons--n8 {
	grid-template-columns: repeat(2, 1fr);
}

div.theme-product-icons--n3,
div.theme-product-icons--n5,
div.theme-product-icons--n6,
div.theme-product-icons--n7,
div.theme-product-icons--n9 {
	grid-template-columns: repeat(3, 1fr);
}

/* Einzelne Rest-Icons zentriert über die volle Breite statt alleine in der Ecke */
div.theme-product-icons--n1 > div,
div.theme-product-icons--n7 > div:last-child {
	grid-column: 1 / -1;
	justify-self: center;
}

.theme-product-icons__item,
div.theme-product-icons>div {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	min-width: 0;
	padding: 0;
	box-sizing: border-box;
}

div.theme-product-icons i {
	font-family: "theme-icons" !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	display: inline-block;
	/* Feste Box, damit das Nachladen der Iconfont keine Positionen verschiebt */
	width: 2.8rem;
	text-align: center;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 2.8rem;
	color: #126194;
	margin-bottom: .45rem;
}

.theme-product-icons__label,
div.theme-product-icons i span,
div.theme-product-icons span {
	font-family: var(--theme-font-body);
	font-size: .65rem;
	background-color: #126194;
	padding: 4px 6px 2px;
	border-radius: 4px;
	color: #fff;
	white-space: nowrap;
	display: inline-block;
	line-height: 1.2;
	box-sizing: border-box;
}

@media (max-width: 47.9375rem) {
	/* Vier Icons bilden zwei ausgeglichene Reihen (2x2) statt 3+1 */
	div.theme-product-icons {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem .5rem;
	}

	/* 3er-Matrizen: Icons und Labels leicht verkleinert, damit die Labels in die schmalen Spalten passen */
	div.theme-product-icons--n3,
	div.theme-product-icons--n5,
	div.theme-product-icons--n6,
	div.theme-product-icons--n7,
	div.theme-product-icons--n9 {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem .35rem;
	}

	div.theme-product-icons--n3 i,
	div.theme-product-icons--n5 i,
	div.theme-product-icons--n6 i,
	div.theme-product-icons--n7 i,
	div.theme-product-icons--n9 i {
		width: 2.5rem;
		font-size: 2.5rem;
	}

	div.theme-product-icons--n3 span,
	div.theme-product-icons--n5 span,
	div.theme-product-icons--n6 span,
	div.theme-product-icons--n7 span,
	div.theme-product-icons--n9 span {
		font-size: .6rem;
		padding: 3px 4px 2px;
	}
}

/* Schmale Zusammenfassung (Tablets zwischen Handy- und Desktop-Layout, z. B. 769-1023px):
   Hier bleiben nur ~334-460px Breite - die 4-Spalten-Matrix würde die nowrap-Labels
   überlappen lassen.    Deshalb gilt die gleiche ausgeglichene Matrix wie auf Handys,
   gesteuert über die reale Container-Breite statt über den Viewport. */
@container (max-width: 459.98px) {
	div.theme-product-icons {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem .5rem;
	}

	div.theme-product-icons--n3,
	div.theme-product-icons--n5,
	div.theme-product-icons--n6,
	div.theme-product-icons--n7,
	div.theme-product-icons--n9 {
		grid-template-columns: repeat(3, 1fr);
		gap: 1rem .35rem;
	}

	div.theme-product-icons--n3 i,
	div.theme-product-icons--n5 i,
	div.theme-product-icons--n6 i,
	div.theme-product-icons--n7 i,
	div.theme-product-icons--n9 i {
		width: 2.5rem;
		font-size: 2.5rem;
	}

	div.theme-product-icons--n3 span,
	div.theme-product-icons--n5 span,
	div.theme-product-icons--n6 span,
	div.theme-product-icons--n7 span,
	div.theme-product-icons--n9 span {
		font-size: .6rem;
		padding: 3px 4px 2px;
	}
}

/* Sehr schmale Handys (Summary unter ~330px): zwei Spalten, ein ungerader Rest
   wird zentriert über die volle Breite gesetzt, statt klein in der Ecke zu stehen */
@media (max-width: 361.98px) {
	div.theme-product-icons,
	div.theme-product-icons--n3,
	div.theme-product-icons--n5,
	div.theme-product-icons--n6,
	div.theme-product-icons--n7,
	div.theme-product-icons--n9 {
		grid-template-columns: repeat(2, 1fr);
	}

	div.theme-product-icons--n3 > div:last-child,
	div.theme-product-icons--n5 > div:last-child,
	div.theme-product-icons--n7 > div:last-child,
	div.theme-product-icons--n9 > div:last-child {
		grid-column: 1 / -1;
		justify-self: center;
	}
}

.theme-icon-aqua-stop:before {
	content: "\e900";
	color: #126194;
}

.theme-icon-auto-membrane-rinse:before {
	content: "\e901";
	color: #126194;
}

.theme-icon-direct-filtration:before {
	content: "\e902";
	color: #126194;
}

.theme-icon-ice-maker:before {
	content: "\e903";
	color: #126194;
}

.theme-icon-chilled:before {
	content: "\e904";
	color: #126194;
}

.theme-icon-hot-water:before {
	content: "\e905";
	color: #126194;
}

.theme-icon-carbonated:before {
	content: "\e906";
	color: #126194;
}

.theme-icon-room-temperature:before {
	content: "\e907";
	color: #126194;
}

.theme-icon-self-priming:before {
	content: "\e908";
	color: #126194;
}

.theme-icon-rinse-96h:before {
	content: "\e909";
	color: #126194;
}

/* Payment Trust */
.theme-payment-trust {
	margin-top: 1.5rem;
	padding-top: .25rem;
	/* Größen-Container, damit die Logo-Reihe ihre Höhe aus der verfügbaren Breite ableiten kann */
	container-type: inline-size;
}

.theme-payment-trust__title {
	margin: 0 0 .65rem;
	color: #465664;
	font-size: var(--theme-text-small);
	font-weight: 600;
}

/* Zahlungsarten immer in einer Reihe. Die Höhe leitet sich über
   Container-Query-Einheiten aus der verfügbaren Breite ab: Die Reihe füllt die volle
   Breite (Summenverhältnis der Logos: 10,86) und wächst bis zur Desktop-Größe. */
.product-payment-icons {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(.4rem, 1vw, .6rem);
}

.product-payment-icons img {
	/* Fallback für Browser ohne Container-Query-Einheiten */
	height: clamp(.8125rem, 4.1vw, 1.95rem);
	height: clamp(1rem, calc((100cqw - 2rem) / 10.86), 1.95rem);
	width: auto;
	object-fit: contain;
}

/* Produktreiter am etablierten Theme-Bild ausgerichtet. */
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
	grid-column: 1 / -1;
	width: 100%;
}

.woocommerce div.product .woocommerce-tabs {
	margin-top: 2.5rem;
	border-radius: 10px;
	box-shadow: 0 1rem 6rem -1.5rem rgb(0 0 0 / 30%);
	background: transparent;
	overflow: hidden;
	border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
	margin: 0;
	border: 0;
	background-color: #f4f4f4;
	list-style: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::after {
	display: block;
	flex: 0 0 100%;
	height: 0;
	margin-top: -1px;
	border-top: 1px solid #d9d9d9;
	content: "";
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: .375rem;
	border: 0;
	border-radius: 0;
	background-color: #0075ad;
	border-right: 1px solid #d9d9d9;
	transition: background var(--theme-transition);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:last-child {
	border-right: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-flex;
	align-items: center;
	padding: .25rem 1.875rem;
	color: #fff !important;
	font-family: var(--theme-font-body);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 2.125rem;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background-color: #003973;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:not(.active):hover {
	background-color: #00608e;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs .panel {
	background-color: #fff;
	padding: clamp(1.2rem, 2.5vw, 2.25rem);
	margin-top: 0;
	border: none;
	box-shadow: none;
	border-radius: 0;
}

@media (max-width: 47.9375rem) {
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		display: block;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs::after {
		display: none;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li {
		display: block;
		border-right: 0;
		border-bottom: 1px solid #d9d9d9;
		padding: .25rem;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li:last-child {
		border-bottom: 0;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		display: flex;
		width: 100%;
		min-height: 2.75rem;
		justify-content: center;
		padding: .25rem 1rem;
		text-align: center;
	}
}

.woocommerce-Tabs-panel--description>h2:first-of-type,
.woocommerce-Tabs-panel--description>h2:first-child {
	display: none !important;
}

.woocommerce-Tabs-panel h2 {
	color: var(--theme-color-ink);
	font-family: var(--theme-font-heading);
	font-size: clamp(1.4rem, 2.5vw, 1.75rem);
	margin: 2rem 0 1rem;
	line-height: 1.3;
}

.woocommerce-Tabs-panel h2:first-of-type {
	margin-top: 0;
}

.woocommerce-Tabs-panel p {
	color: #555;
	font-size: 1.15rem;
	line-height: 1.7;
	margin: 0 0 1.25rem;
}

.woocommerce div.product .woocommerce-Tabs-panel a,
.woocommerce div.product .entry-content a,
.woocommerce div.product .woocommerce-Tabs-panel p a,
.woocommerce div.product .woocommerce-Tabs-panel li a,
.woocommerce div.product .entry-content p a,
.woocommerce div.product .entry-content li a,
.woocommerce-Tabs-panel a,
.woocommerce-Tabs-panel p a,
.woocommerce-Tabs-panel li a {
	color: inherit !important;
	font-weight: inherit !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	text-decoration-color: rgb(85 85 85 / 45%) !important;
	transition: text-decoration-color var(--theme-transition);
}

.woocommerce div.product .woocommerce-Tabs-panel a:hover,
.woocommerce div.product .entry-content a:hover,
.woocommerce div.product .woocommerce-Tabs-panel p a:hover,
.woocommerce div.product .woocommerce-Tabs-panel li a:hover,
.woocommerce-Tabs-panel a:hover,
.woocommerce-Tabs-panel p a:hover,
.woocommerce-Tabs-panel li a:hover {
	color: inherit !important;
	text-decoration-color: currentcolor !important;
}

.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol {
	color: #555;
	font-size: 1.15rem;
	line-height: 1.7;
	margin: 0 0 1.5rem 1.5rem;
	padding: 0;
}

.woocommerce-Tabs-panel li {
	margin-bottom: .5rem;
}

/* Vorteile auf einen Blick (Osmoseanlagen-Produkte) */
.woocommerce-Tabs-panel .theme-usp-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	font-size: 1rem;
	color: inherit;
}

.woocommerce-Tabs-panel li.theme-usp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .75rem;
	margin: 0;
	padding: 1.25rem 1.5rem;
	text-align: center;
	border: 1px solid rgb(16 35 62 / 12%);
	border-radius: var(--theme-radius);
	background: linear-gradient(315deg, #ecf1f6 0%, #ffffff 72%);
	box-shadow: var(--theme-card-shadow);
}

/* Sprite: 950 x 633 px, 5 Kreise à 225 px (Reihe 1: x 62|362|663, Reihe 2: x 62|362, y 52|343) */
.woocommerce-Tabs-panel .theme-usp-card__icon {
	--usp-size: 4rem;
	flex: 0 0 auto;
	width: var(--usp-size);
	aspect-ratio: 1;
	background-image: url("../media/wellblue-usp-icons.webp");
	background-repeat: no-repeat;
	background-size: calc(950 * var(--usp-size) / 225) calc(633 * var(--usp-size) / 225);
	background-position: calc(var(--usp-x) * var(--usp-size) * -1 / 225) calc(var(--usp-y) * var(--usp-size) * -1 / 225);
}

.theme-usp-card--filtration .theme-usp-card__icon { --usp-x: 62; --usp-y: 52; }
.theme-usp-card--guarantee .theme-usp-card__icon { --usp-x: 362; --usp-y: 52; }
.theme-usp-card--expertise .theme-usp-card__icon { --usp-x: 663; --usp-y: 52; }
.theme-usp-card--customers .theme-usp-card__icon { --usp-x: 62; --usp-y: 343; }
.theme-usp-card--service .theme-usp-card__icon { --usp-x: 362; --usp-y: 343; }

.woocommerce-Tabs-panel .theme-usp-card__title {
	margin: 0;
	color: var(--theme-color-ink);
	font-family: var(--theme-font-heading);
	font-weight: bold;
	font-size: 1.0625rem;
	line-height: 1.35;
}

.woocommerce-Tabs-panel .theme-usp-card__text {
	margin: 0;
	color: var(--theme-color-muted);
	font-size: var(--theme-text-small);
	line-height: 1.5;
}

@media (min-width: 48rem) {
	.woocommerce-Tabs-panel .theme-usp-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}

	.woocommerce-Tabs-panel li.theme-usp-card {
		padding: 1.5rem 1rem;
	}

	.woocommerce-Tabs-panel .theme-usp-card__icon { --usp-size: 4.5rem; }
}

@media (min-width: 64rem) {
	.woocommerce-Tabs-panel .theme-usp-cards {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.woocommerce-Tabs-panel li.theme-usp-card {
		padding: 1.5rem .625rem;
	}

	.woocommerce-Tabs-panel .theme-usp-card__icon { --usp-size: 5rem; }

	.woocommerce-Tabs-panel .theme-usp-card__title { font-size: .9375rem; }

	.woocommerce-Tabs-panel .theme-usp-card__text { font-size: .8125rem; }
}

/* Technische Informationen Tabelle (shop_attributes und woocommerce-product-attributes
   sind dieselbe Tabelle auf Produktdetailseiten); Regeln liegen ausschließlich hier. */
.woocommerce-Tabs-panel--additional_information h2 {
	color: var(--theme-color-ink) !important;
	font-family: var(--theme-font-heading) !important;
	font-size: clamp(1.4rem, 2.5vw, 1.75rem) !important;
	margin: 0 0 1.25rem !important;
}

.woocommerce table.shop_attributes,
.woocommerce-page table.shop_attributes,
.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes,
table.shop_attributes,
table.woocommerce-product-attributes {
	width: 100% !important;
	border-collapse: collapse !important;
	border: none !important;
	border-top: 1px dotted #d0d5dd !important;
	border-bottom: 1px dotted #d0d5dd !important;
	margin: 1rem 0 !important;
	font-size: 1.05rem !important;
	display: table !important;
}

.woocommerce table.shop_attributes tbody,
.woocommerce-page table.shop_attributes tbody {
	display: table-row-group !important;
}

.woocommerce table.shop_attributes tr,
.woocommerce-page table.shop_attributes tr,
.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes tr,
table.shop_attributes tr,
table.woocommerce-product-attributes tr {
	display: table-row !important;
}

.woocommerce table.shop_attributes tr th,
.woocommerce-page table.shop_attributes tr th,
.woocommerce table.shop_attributes th,
.woocommerce-page table.shop_attributes th,
.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes th,
.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes tr th,
table.shop_attributes th,
table.woocommerce-product-attributes th,
table.shop_attributes tr th {
	display: table-cell !important;
	width: 44% !important;
	min-width: 14rem !important;
	padding: .8rem 1.25rem !important;
	border: none !important;
	border-bottom: 1px dotted #e5e5e5 !important;
	background-color: transparent !important;
	color: #555 !important;
	font-family: var(--theme-font-heading) !important;
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	text-align: left !important;
	vertical-align: middle !important;
}

.woocommerce table.shop_attributes tr td,
.woocommerce-page table.shop_attributes tr td,
.woocommerce table.shop_attributes td,
.woocommerce-page table.shop_attributes td,
.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes td,
.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes tr td,
table.shop_attributes td,
table.woocommerce-product-attributes td,
table.shop_attributes tr td {
	display: table-cell !important;
	width: 56% !important;
	padding: .8rem 1.25rem .8rem 2.5rem !important;
	border: none !important;
	border-bottom: 1px dotted #e5e5e5 !important;
	background-color: transparent !important;
	color: #555 !important;
	font-family: var(--theme-font-body) !important;
	font-size: 1.05rem !important;
	font-style: italic !important;
	line-height: 1.4 !important;
	text-align: left !important;
	vertical-align: middle !important;
}

table.shop_attributes p,
table.woocommerce-product-attributes p {
	margin: 0 !important;
	font-size: 1.05rem !important;
	line-height: inherit !important;
	font-style: italic !important;
}

table.shop_attributes tr:nth-child(even),
table.woocommerce-product-attributes tr:nth-child(even) {
	background-color: #f9f9f9 !important;
}

table.shop_attributes tr:nth-child(odd),
table.woocommerce-product-attributes tr:nth-child(odd) {
	background-color: #fff !important;
}

table.shop_attributes tr:last-child th,
table.shop_attributes tr:last-child td,
table.woocommerce-product-attributes tr:last-child th,
table.woocommerce-product-attributes tr:last-child td {
	border-bottom: none !important;
}

@media (max-width: 47.9375rem) {

	.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
	.woocommerce div.product .woocommerce-tabs .panel {
		border-radius: 8px;
		border-top: 1px solid rgb(0 57 115 / 6%);
		padding: 1.25rem .85rem;
	}

	.woocommerce table.shop_attributes tr th,
	.woocommerce-page table.shop_attributes tr th,
	.woocommerce table.shop_attributes th,
	.woocommerce-page table.shop_attributes th,
	.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes th,
	.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes tr th,
	table.shop_attributes th,
	table.woocommerce-product-attributes th,
	table.shop_attributes tr th {
		display: table-cell !important;
		width: 45% !important;
		min-width: 0 !important;
		font-size: var(--theme-text-small) !important;
		padding: .65rem .4rem !important;
	}

	.woocommerce table.shop_attributes tr td,
	.woocommerce-page table.shop_attributes tr td,
	.woocommerce table.shop_attributes td,
	.woocommerce-page table.shop_attributes td,
	.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes td,
	.woocommerce div.product .woocommerce-Tabs-panel table.shop_attributes tr td,
	table.shop_attributes td,
	table.woocommerce-product-attributes td,
	table.shop_attributes tr td {
		display: table-cell !important;
		width: 55% !important;
		font-size: var(--theme-text-small) !important;
		padding: .65rem .4rem .65rem 1.25rem !important;
	}

	table.shop_attributes p,
	table.woocommerce-product-attributes p {
		font-size: var(--theme-text-small) !important;
	}
}

/* Single Product Gallery - Saubere Lupe und abgerundete Bilder */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	border-radius: 6px;
	overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
	border-radius: 6px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	position: absolute;
	z-index: 9;
	top: 1rem;
	right: 1rem;
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border: 1px solid var(--theme-color-line);
	border-radius: 50%;
	background: rgb(255 255 255 / 92%);
	box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
	font-size: 0 !important;
	color: transparent !important;
	text-indent: -9999px;
	overflow: hidden;
	transition: background-color var(--theme-transition);
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1rem;
	height: 1rem;
	background-color: #333;
	transform: translate(-50%, -50%);
	-webkit-mask: var(--theme-icon-search) center / contain no-repeat;
	mask: var(--theme-icon-search) center / contain no-repeat;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after {
	display: none;
	content: none;
}

.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	padding: 0;
	margin: .75rem 0 0;
	list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li {
	flex: 0 0 calc(14.285% - .45rem);
	max-width: 4.75rem;
	cursor: pointer;
}

/* Bis 56.25rem (900px) alle Thumbnails gleichmaessig in einer Zeile (schrumpffahig, kein 5+1-Umbruch) */
@media (max-width: 56.25rem) {
	.woocommerce div.product div.images .flex-control-thumbs li {
		flex: 1 1 calc(16.666% - .45rem);
		min-width: 0;
		max-width: 4.25rem;
	}
}

.woocommerce div.product div.images .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--theme-color-line);
	border-radius: 6px;
	object-fit: cover;
	opacity: .7;
	transition: opacity var(--theme-transition), border-color var(--theme-transition);
}

.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover {
	border-color: #cbd5e1;
	opacity: 1;
}


.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: .65rem;
	margin: 0 0 .75rem 0;
	font-size: var(--theme-text-small);
}

.woocommerce-product-rating .woocommerce-review-link {
	color: #64748b;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woocommerce-product-rating .woocommerce-review-link:hover {
	color: var(--theme-color-blue);
}

.woocommerce-Tabs-panel--reviews #reviews #comments {
	margin-bottom: 2rem;
}

.woocommerce-Tabs-panel--reviews #reviews #comments h2 {
	margin-bottom: 1.25rem;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 1.25rem;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review {
	background: #f8fafc;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	padding: 1.25rem 1.5rem;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment_container {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review img.avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 1px solid #cbd5e1;
	flex-shrink: 0;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment-text {
	flex: 1 1 auto;
	min-width: 0;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment-text .star-rating {
	float: right;
	margin-left: 1rem;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment-text .meta {
	margin: 0 0 .5rem 0;
	color: #64748b;
	font-size: var(--theme-text-small);
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment-text .meta strong {
	color: var(--theme-color-ink);
	font-family: var(--theme-font-heading);
	font-weight: 700;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment-text .description {
	color: #555;
	font-size: 1.05rem;
	line-height: 1.6;
}

.woocommerce-Tabs-panel--reviews #reviews ol.commentlist li.review .comment-text .description p:last-child {
	margin-bottom: 0;
}

.woocommerce-Tabs-panel--reviews #review_form_wrapper {
	background: #ffffff;
	border: 1px solid var(--theme-color-line);
	border-radius: var(--theme-radius-s);
	padding: clamp(1.25rem, 3vw, 2rem);
	margin-top: 1.5rem;
	box-shadow: 0 2px 8px rgb(16 35 62 / 4%);
}

.woocommerce-Tabs-panel--reviews #review_form .comment-reply-title {
	display: block;
	margin: 0 0 1rem 0;
	color: var(--theme-color-blue-dark);
	font-family: var(--theme-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating label {
	margin: 0;
	font-family: var(--theme-font-heading);
	font-weight: 700;
	color: var(--theme-color-ink);
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating .stars {
	margin: 0;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating .stars span {
	display: inline-flex;
	gap: .25rem;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating .stars span a {
	position: relative;
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	color: #cbd5e1;
	text-decoration: none;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating .stars span a::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background-color: currentColor;
	-webkit-mask: var(--theme-icon-star) center / contain no-repeat;
	mask: var(--theme-icon-star) center / contain no-repeat;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating .stars span a:hover,
.woocommerce-Tabs-panel--reviews #review_form .comment-form-rating .stars span a.active {
	color: #f5a623;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form p {
	margin-bottom: 1.15rem;
}

.woocommerce-Tabs-panel--reviews #review_form .comment-form label {
	display: block;
	margin-bottom: .35rem;
	font-family: var(--theme-font-heading);
	font-weight: 700;
	color: var(--theme-color-ink);
}

.woocommerce-Tabs-panel--reviews #review_form .form-submit input#submit {
	display: inline-flex;
	min-height: 3.1rem;
	align-items: center;
	justify-content: center;
	padding: .78rem 1.5rem;
	border: 1px solid #002244;
	border-radius: var(--theme-radius-s);
	color: #fff;
	background: var(--theme-color-blue) linear-gradient(180deg, #004b8d 0%, #003366 100%);
	box-shadow: 0 2px 6px rgb(0 34 68 / 25%), inset 0 1px 0 rgb(255 255 255 / 15%);
	font-family: var(--theme-font-heading);
	font-weight: 700;
	cursor: pointer;
	transition: all var(--theme-transition);
}

.woocommerce-Tabs-panel--reviews #review_form .form-submit input#submit:hover {
	border-color: #001933;
	background: var(--theme-color-blue-dark) linear-gradient(180deg, #005a9e 0%, #002850 100%);
	box-shadow: 0 4px 12px rgb(0 34 68 / 35%), inset 0 1px 0 rgb(255 255 255 / 20%);
	transform: translateY(-1px);
}

/* Ähnliche Produkte (Related Products Slider) */
.woocommerce .related.products,
.woocommerce div.product .related {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
	clear: both !important;
	box-sizing: border-box !important;
}

.theme-related-slider__header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 1rem !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin-bottom: 1.25rem !important;
	box-sizing: border-box !important;
}

.theme-related-slider__title,
.woocommerce .related.products>h2,
.woocommerce div.product .related>h2 {
	margin: 0 !important;
	color: var(--theme-color-ink) !important;
	font-family: var(--theme-font-heading) !important;
	font-weight: 700 !important;
	font-size: 1.65rem !important;
	line-height: 1.3 !important;
	text-wrap: balance;
}

.theme-related-slider__controls {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	flex-shrink: 0 !important;
}

/* JS-blendet die Steuerung aus, wenn kein Scroll-Overflow besteht; muss gegen die !important-Flex-Regel gewinnen */
.theme-related-slider__controls[hidden] {
	display: none !important;
}

.theme-related-slider__control {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	padding: 0 !important;
	border: 1px solid #d7e5f1 !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	color: var(--theme-color-blue-dark) !important;
	box-shadow: 0 2px 8px rgb(0 20 40 / 10%) !important;
	cursor: pointer !important;
	transition: border-color var(--theme-transition), color var(--theme-transition), background-color var(--theme-transition), box-shadow var(--theme-transition), opacity var(--theme-transition) !important;
}

.theme-related-slider__control svg {
	width: 0.85rem !important;
	height: 0.85rem !important;
	display: block !important;
	fill: currentColor !important;
}

.theme-related-slider__control:hover:not(:disabled) {
	border-color: #288cbf !important;
	color: #003973 !important;
	background: #f0f7fc !important;
	box-shadow: 0 4px 12px rgb(0 20 40 / 18%) !important;
}

.theme-related-slider__control:disabled,
.theme-related-slider__control[aria-disabled="true"] {
	opacity: 0.35 !important;
	cursor: default !important;
	pointer-events: none !important;
}

.theme-related-slider__track-wrapper {
	position: relative !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.woocommerce .related.products ul.products,
.woocommerce div.product .related ul.products,
body.site-layout .woocommerce .related ul.products,
body.site-layout .woocommerce div.product .related ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	scroll-behavior: smooth !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	gap: 1.25rem !important;
	padding: 0.25rem 0.25rem 0.75rem !important;
	margin: 0 !important;
	list-style: none !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
}

.woocommerce .related.products ul.products::-webkit-scrollbar,
.woocommerce div.product .related ul.products::-webkit-scrollbar,
body.site-layout .woocommerce .related ul.products::-webkit-scrollbar {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
}

.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after,
.woocommerce div.product .related ul.products::before,
.woocommerce div.product .related ul.products::after,
body.site-layout .woocommerce .related ul.products::before,
body.site-layout .woocommerce .related ul.products::after,
.related ul.products::before,
.related ul.products::after {
	display: none !important;
	content: none !important;
}

.woocommerce .related.products ul.products li.product,
.woocommerce div.product .related ul.products li.product,
body.site-layout .woocommerce .related ul.products li.product,
body.site-layout .woocommerce div.product .related ul.products li.product,
.woocommerce .related.products ul.products[class*="columns-"] li.product {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	flex: 0 0 calc((100% - 3 * 1.25rem) / 4) !important;
	min-width: calc((100% - 3 * 1.25rem) / 4) !important;
	max-width: calc((100% - 3 * 1.25rem) / 4) !important;
	scroll-snap-align: start !important;
	scroll-margin-left: 0.25rem !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e5edf5 !important;
	border-radius: 12px !important;
	background: #ffffff !important;
	overflow: hidden !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	transition: transform var(--theme-transition), box-shadow var(--theme-transition), border-color var(--theme-transition) !important;
}

.woocommerce .related.products ul.products li.product:hover {
	border-color: #288cbf !important;
	box-shadow: 0 8px 20px rgb(0 20 40 / 8%) !important;
	transform: translateY(-2px) !important;
}

.woocommerce .related.products ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce .related.products ul.products li.product a {
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
	width: 100% !important;
	text-decoration: none !important;
}

.woocommerce .related.products ul.products li.product img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	/* Kein aspect-ratio setzen: Der Browser reserviert die Höhe vor dem Laden aus den HTML-Breite-/Höhe-Attributen und verhindert so Layout-Shift. */
	max-height: none !important;
	border-radius: 0 !important;
	object-fit: initial !important;
	background-color: transparent !important;
	padding: 0 !important;
	margin: 0 0 0.65rem !important;
}

.woocommerce .related.products ul.products li.product .onsale {
	position: absolute !important;
	z-index: 3 !important;
	top: 0.65rem !important;
	left: 0.65rem !important;
	right: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0.35rem 0.6rem !important;
	border-radius: 4px !important;
	background-color: #003973 !important;
	color: #fff !important;
	font-family: var(--theme-font-heading) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	box-shadow: 0 2px 6px rgb(0 34 68 / 20%) !important;
}

.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 0.35rem !important;
	padding: 0 0.75rem !important;
	color: var(--theme-color-ink) !important;
	font-family: var(--theme-font-heading) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	min-height: 2.6em !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-wrap: balance !important;
}

.woocommerce .related.products ul.products li.product .price,
body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .price {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: baseline !important;
	gap: 0.25rem 0.5rem !important;
	margin: auto 0 0 !important;
	padding: 0 0.75rem 0.75rem !important;
	color: #555555 !important;
	font-family: var(--theme-font-body) !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
}

.woocommerce .related.products ul.products li.product .price del,
body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .price del {
	/* 4.6:1 auf Weiss, bleibt deutlich heller als der gueltige Preis */
	color: #6b7780 !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	text-decoration: line-through !important;
	white-space: nowrap !important;
	opacity: 1 !important;
}

.woocommerce .related.products ul.products li.product .price ins,
body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .price ins {
	color: #003973 !important;
	font-family: var(--theme-font-heading) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}

.woocommerce .related.products ul.products li.product .button,
.woocommerce .related.products ul.products li.product a.button,
.woocommerce .related.products ul.products li.product .added_to_cart,
.woocommerce .related.products ul.products li.product .woocommerce-product-details__short-description,
.woocommerce .related.products ul.products li.product>span:not(.price):not(.onsale) {
	display: none !important;
}

/* Upsells Products Grid */
.woocommerce .upsells.products ul.products,
body.site-layout .woocommerce .upsells ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.5rem !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	float: none !important;
	width: 100% !important;
}

@media (max-width: 56.25rem) {
	.woocommerce .related.products ul.products,
	.woocommerce div.product .related ul.products,
	body.site-layout .woocommerce .related ul.products,
	body.site-layout .woocommerce div.product .related ul.products {
		gap: 1rem !important;
	}

	.woocommerce .related.products ul.products li.product,
	.woocommerce div.product .related ul.products li.product,
	body.site-layout .woocommerce .related ul.products li.product,
	body.site-layout .woocommerce div.product .related ul.products li.product,
	.woocommerce .related.products ul.products[class*="columns-"] li.product {
		flex: 0 0 calc((100% - 2 * 1rem) / 3) !important;
		min-width: calc((100% - 2 * 1rem) / 3) !important;
		max-width: calc((100% - 2 * 1rem) / 3) !important;
	}

	.woocommerce .related.products ul.products li.product img {
		max-height: 155px !important;
		object-fit: contain !important;
	}

	.woocommerce .upsells.products ul.products,
	body.site-layout .woocommerce .upsells ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.25rem !important;
	}
}

@media (max-width: 48rem) {
	.woocommerce .related.products ul.products,
	.woocommerce div.product .related ul.products,
	body.site-layout .woocommerce .related ul.products,
	body.site-layout .woocommerce div.product .related ul.products {
		gap: 0.75rem !important;
	}

	.woocommerce .related.products ul.products li.product,
	.woocommerce div.product .related ul.products li.product,
	body.site-layout .woocommerce .related ul.products li.product,
	body.site-layout .woocommerce div.product .related ul.products li.product,
	.woocommerce .related.products ul.products[class*="columns-"] li.product {
		flex: 0 0 calc((100% - 0.75rem) / 2.3) !important;
		min-width: calc((100% - 0.75rem) / 2.3) !important;
		max-width: calc((100% - 0.75rem) / 2.3) !important;
		padding: 0.65rem !important;
	}

	.woocommerce .related.products ul.products li.product img {
		max-height: 135px !important;
		padding: 0.35rem !important;
		object-fit: contain !important;
	}

	.theme-related-slider__title,
	.woocommerce .related.products>h2,
	.woocommerce div.product .related>h2 {
		font-size: 1.35rem !important;
	}
}

@media (max-width: 33.75rem) {
	.woocommerce .related.products,
	.woocommerce div.product .related {
		margin-top: 0 !important;
	}

	.woocommerce .related.products ul.products,
	.woocommerce div.product .related ul.products,
	body.site-layout .woocommerce .related ul.products,
	body.site-layout .woocommerce div.product .related ul.products {
		gap: 0.65rem !important;
	}

	.woocommerce .related.products ul.products li.product,
	.woocommerce div.product .related ul.products li.product,
	body.site-layout .woocommerce .related ul.products li.product,
	body.site-layout .woocommerce div.product .related ul.products li.product,
	.woocommerce .related.products ul.products[class*="columns-"] li.product {
		flex: 0 0 160px !important;
		min-width: 160px !important;
		max-width: 160px !important;
		padding: 0 !important;
		border-radius: 10px !important;
	}

	.woocommerce .related.products ul.products li.product img {
		max-height: none !important;
		padding: 0 !important;
		margin-bottom: 0.4rem !important;
	}

	.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
	body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .woocommerce-loop-product__title {
		font-size: 0.88rem !important;
		line-height: 1.25 !important;
		min-height: 2.5em !important;
	}

	.woocommerce .related.products ul.products li.product .price,
	body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .price {
		font-size: 0.88rem !important;
	}

	.woocommerce .related.products ul.products li.product .price ins,
	body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .price ins {
		font-size: 0.92rem !important;
	}

	.woocommerce .related.products ul.products li.product .price del,
	body.site-layout .woocommerce :is(.related, .upsells) ul.products li.product .price del {
		font-size: 0.8rem !important;
	}

	.theme-related-slider__control {
		width: 2.25rem !important;
		height: 2.25rem !important;
	}

	.theme-related-slider__title,
	.woocommerce .related.products>h2,
	.woocommerce div.product .related>h2 {
		font-size: 1.25rem !important;
	}

	.woocommerce .upsells.products ul.products,
	body.site-layout .woocommerce .upsells ul.products {
		grid-template-columns: 1fr !important;
		gap: 1.25rem !important;
	}
}

/* Preisfarben: Produktdetailseite in Primärfarbe, Kategorieseiten in dezentem Grau */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins,
body.single-product .woocommerce div.product p.price,
body.single-product .woocommerce div.product span.price,
body.single-product .woocommerce div.product p.price ins,
body.single-product .woocommerce div.product span.price ins {
	color: var(--theme-color-ink) !important;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del,
body.single-product .woocommerce div.product p.price del,
body.single-product .woocommerce div.product span.price del {
	/* 4.6:1 auf Weiss, bleibt deutlich heller als der gueltige Preis */
	color: #6b7780 !important;
	text-decoration: line-through !important;
	opacity: 1 !important;
}


/* Couponaktionsansicht & Urgency */
@keyframes theme-urgency-pulse {

	0%,
	100% {
		color: #003973;
	}

	50% {
		color: #3695bf;
	}
}

.theme-urgency-today {
	display: inline;
	animation: theme-urgency-pulse 1.6s ease-in-out infinite;
	font-weight: 700;
}

.woocommerce :where(.saved-amount, .best-price-legal-note),
.theme-product-card .price :where(.saved-amount, .best-price-legal-note),
body.site-layout .woocommerce ul.products li.product .price :where(.saved-amount, .best-price-legal-note),
body.single-product .woocommerce div.product .price :where(.saved-amount, .best-price-legal-note) {
	position: static;
	display: block;
	flex: 1 0 100%;
	width: 100%;
	margin-top: .25rem;
	white-space: normal !important;
	overflow-wrap: break-word !important;
	word-break: normal !important;
}

.woocommerce .saved-amount,
.theme-product-card .price .saved-amount,
body.site-layout .woocommerce ul.products li.product .price .saved-amount,
body.single-product .woocommerce div.product .price .saved-amount {
	font-size: .8rem !important;
	color: var(--theme-color-blue-dark) !important;
	font-weight: 600;
	line-height: 1.35;
	max-inline-size: 20.5rem;
}

.theme-product-card .price .saved-amount,
body.site-layout .woocommerce ul.products li.product .price .saved-amount {
	margin-inline-start: auto;
}

.woocommerce .saved-amount b,
.woocommerce .saved-amount strong {
	font-family: var(--theme-font-heading);
	font-weight: 700;
}

.woocommerce .best-price-legal-note,
.theme-product-card .price .best-price-legal-note,
body.site-layout .woocommerce ul.products li.product .price .best-price-legal-note,
body.single-product .woocommerce div.product .price .best-price-legal-note {
	font-size: .72rem !important;
	color: #666666 !important;
	font-weight: 400 !important;
	line-height: 1.3;
	margin-top: .15rem;
}

/* Zubehör Tab Styling */
.woocommerce-Tabs-panel--wellblue_accessories .products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 1.5rem;
	padding: 0;
	margin: 1.5rem 0 0;
	list-style: none;
}

.woocommerce-Tabs-panel--wellblue_accessories .products li.product {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.25rem;
	border: 1px solid #e8edf2;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 8px rgb(0 57 115 / 4%);
}

.woocommerce-Tabs-panel--wellblue_accessories .products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 6px;
	margin-bottom: .75rem;
}

.woocommerce-Tabs-panel--wellblue_accessories .products li.product .woocommerce-loop-product__title,
.woocommerce-Tabs-panel--wellblue_accessories .wellblue-accessories-title {
	color: var(--theme-color-blue-dark) !important;
	font-family: var(--theme-font-heading);
	font-size: 1.05rem;
	font-weight: 700 !important;
	margin: 0 0 .5rem;
	line-height: 1.3;
}

.woocommerce div.product .woocommerce-Tabs-panel--wellblue_accessories .woocommerce-loop-product__title a,
.woocommerce div.product .woocommerce-Tabs-panel--wellblue_accessories .wellblue-accessories-title-link,
.woocommerce-Tabs-panel--wellblue_accessories .woocommerce-loop-product__title a,
.woocommerce-Tabs-panel--wellblue_accessories .wellblue-accessories-title-link {
	color: var(--theme-color-blue-dark) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

.woocommerce-Tabs-panel--wellblue_accessories .products li.product .price {
	color: #555;
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

.woocommerce-Tabs-panel--wellblue_accessories .discount-note,
.woocommerce-Tabs-panel .discount-note {
	display: block;
	margin-top: 1.75rem;
	padding: .85rem 1.25rem;
	border-radius: 6px;
	background-color: var(--theme-color-blue);
	color: #fff;
	font-family: var(--theme-font-heading);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
}
