/*
 * Shop: Übersicht und Kategorieseiten.
 *
 * Werte aus den Prototypen »Shop – Übersicht« und »Shop – Kategorieseite«. Aufbau, Abstände und Texte
 * kommen aus Avada-Elementen; hier steht nur, was Avada nicht kann: die Gestaltung der FacetWP-Facetten,
 * der Kategorie-Links und Details der Produktkarte (Mengenfeld, Button, Hover).
 * Die Datei wird nur auf der Shop-Übersicht und den Produktkategorien geladen.
 */

body {
	--as-ink: var(--awb-color4, #0f1450);
	--as-muted: #4a4e57;
	--as-accent: var(--as-theme-dark, #4b6ec8);
	--as-line: var(--as-theme-lighter, #c3eeee);
	--as-line-strong: var(--as-theme, #b9d4ee);
	--as-strong: var(--awb-typography1-font-family, inherit);

	/* Türkis der Section: Themenfarbe der Seite (Variablen --as-theme* aus dem Modul ThemeBodyClass), sonst Rückfall. */
	--as-teal: var(--as-theme, #9be3e3);
	--as-teal-light: var(--as-theme-light, #afe9e9);
	--as-teal-lighter: var(--as-theme-lighter, #c3eeee);
	--as-teal-dark: var(--as-theme-dark, #4e7272);
	--as-teal-text: var(--as-theme-text, #0f1450);
}

/* Labels »Produkte suchen«, »Kategorie«, »Sortieren« in der Medium-Schrift der Site. */
.as-shop-label,
.as-shop-label p {
	font-family: var(--as-strong, inherit);
	color: var(--as-ink);
}

/* ---------- Suche ---------- */

.as-shop-search .facetwp-facet {
	margin: 0;
}

.as-shop-search .facetwp-input-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.as-shop-search .facetwp-icon {
	position: absolute;
	top: 50%;
	right: auto;
	left: 14px;
	width: 18px;
	height: 18px;
	margin: 0;
	transform: translateY(-50%);
	pointer-events: none;
}

/* Lupe, Schliessen- und Lade-Symbol als SVG-Maske statt der kleinen PNGs von FacetWP (wirkten verpixelt). */
.as-shop-search .facetwp-input-wrap .facetwp-icon::before {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--as-ink) none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.as-shop-search .facetwp-input-wrap .facetwp-icon.f-reset::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.as-shop-search .facetwp-input-wrap .facetwp-icon.f-loading::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9'/%3E%3C/svg%3E");
}

.as-shop-search input.facetwp-search {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 44px;
	padding: 0 14px 0 42px;
	font-family: inherit;
	font-size: 16px;
	color: var(--as-ink);
	background: #fff;
	border: 1px solid var(--as-line-strong);
	border-radius: 10px;
}

.as-shop-search input.facetwp-search:focus {
	outline: 2px solid var(--as-accent);
	outline-offset: 1px;
}

/* ---------- Kategorie-Chips (FacetWP) ---------- */

.facetwp-facet-shop_kategorie {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.facetwp-facet-shop_kategorie .facetwp-radio {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	font-size: 15px;
	line-height: 1.2;
	color: var(--as-ink);
	cursor: pointer;
	background: #fff none;
	border: 1px solid var(--as-teal-lighter);
	border-radius: 999px;
}

.facetwp-facet-shop_kategorie .facetwp-radio .facetwp-counter {
	color: var(--as-muted);
}

.facetwp-facet-shop_kategorie .facetwp-radio.checked {
	font-family: var(--as-strong, inherit);
	color: var(--as-teal-text);
	background: var(--as-teal) none;
	border-color: var(--as-teal);
}

.facetwp-facet-shop_kategorie .facetwp-radio.checked .facetwp-counter {
	color: var(--as-teal-text);
	opacity: 0.75;
}

.facetwp-facet-shop_kategorie .facetwp-radio.disabled {
	opacity: 0.4;
	cursor: default;
}

.facetwp-facet-shop_kategorie .facetwp-radio:focus-visible {
	outline: 2px solid var(--as-ink);
	outline-offset: 2px;
}

@media (hover: hover) {
	.facetwp-facet-shop_kategorie .facetwp-radio:not(.checked):not(.disabled):hover {
		background: var(--as-theme-pale, #eef9f9) none;
		border-color: var(--as-teal);
	}
}

/* ---------- Sortierung ---------- */

.as-shop-sort .facetwp-facet {
	margin: 0;
}

.as-shop-sort select.as-shop-select {
	box-sizing: border-box;
	width: 100%;
	min-width: 200px;
	height: 44px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 15px;
	color: var(--as-ink);
	background-color: #fff;
	border: 1px solid var(--as-line-strong);
	border-radius: 10px;
}

.as-shop-sort select.as-shop-select:focus {
	outline: 2px solid var(--as-accent);
	outline-offset: 1px;
}

/* ---------- Intro der gewählten Kategorie ---------- */

.as-shop-info {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	margin: 0 0 24px;
}

.as-shop-info[hidden] {
	display: none;
}

.as-shop-info__body {
	display: flex;
	flex: 1 1 380px;
	flex-direction: column;
	gap: 14px;
	align-items: flex-start;
	min-width: 0;
}

.as-shop-info .as-shop-info__title {
	margin: 0;
	font-family: var(--as-strong, inherit);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--as-ink);
}

.as-shop-info .as-shop-info__text {
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.as-shop-info .as-shop-info__text p {
	margin: 0 0 14px;
}

.as-shop-info .as-shop-info__text p:last-child {
	margin-bottom: 0;
}

.as-shop-info__media {
	flex: 0 1 260px;
}

.as-shop-info .as-shop-info__img {
	display: block;
	width: 260px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 12px;
}
/* Text-Link mit Pfeil: Kategorie-Intro, Produktseite */
.as-shop-more,
.as-shop-more:hover,
.as-shop-more:focus,
.as-shop-more:visited {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	min-height: 36px;
	font-family: var(--as-strong, inherit);
	font-size: 15px;
	color: var(--as-accent);
}

.as-shop-more:hover {
	color: var(--as-ink);
}

/* ---------- Anzahl, Leerzustand ---------- */

.as-shop-count .facetwp-facet {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--as-muted);
}

.as-shop-empty {
	box-sizing: border-box;
	width: 100%;
	padding: 32px;
	font-size: 16px;
	font-weight: 300;
	color: var(--as-ink);
	text-align: center;
	border: 1px dashed var(--as-line-strong);
	border-radius: 12px;
}

/* ---------- Produktkarte ---------- */

.as-shop-card > .fusion-column-wrapper {
	height: 100%;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

@media (hover: hover) {
	.as-shop-card:hover > .fusion-column-wrapper {
		box-shadow: 0 10px 28px rgba(15, 20, 80, 0.1);
	}

	.as-shop-card:hover .as-shop-image img {
		transform: scale(1.03);
	}
}

.as-shop-image {
	overflow: hidden;
	background: linear-gradient(160deg, var(--as-theme-light, #5a7fd0) 0%, var(--as-theme, #7cceda) 100%);
}

.as-shop-image img {
	transition: transform 0.3s;
}

/* Kartenkörper füllt die Kartenhöhe; die Mengenzeile und der Button sitzen unten, auch bei kurzen Titeln. */
.as-shop-card > .fusion-column-wrapper > .fusion-builder-row-inner:last-child {
	flex: 1 1 auto;
	align-items: stretch;
}

.as-shop-card .as-shop-body {
	display: flex;
	flex-direction: column;
	align-self: stretch;
}

.as-shop-card .as-shop-body > .fusion-column-wrapper {
	flex: 1 1 auto;
}

.as-shop-card .as-shop-body .fusion-title a,
.as-shop-card .as-shop-body .fusion-title a:hover {
	color: var(--as-ink);
	text-decoration: none;
}

.as-shop-card .as-shop-price p {
	margin: 0;
	font-family: var(--as-strong, inherit);
	color: var(--as-ink);
}

#main .as-shop-card .as-shop-cart {
	margin-top: auto;
}

.fusion-body #main .as-shop-card .as-shop-cart .awb-post-card-cart-cart-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* Zeile »Anzahl  [− 1 +]« */
.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity {
	display: flex;
	flex-direction: row;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	margin: 0;
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity::before {
	content: "Anzahl";
	font-family: var(--as-strong, inherit);
	font-size: 14px;
	color: var(--as-ink);
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity .quantity {
	display: flex;
	align-items: center;
	height: 44px;
	margin: 0;
	overflow: hidden;
	background: #fff;

	/* Avada setzt am Mengenfeld der Post Cards `border: none !important`. */
	border: 1px solid var(--as-line-strong) !important;
	border-radius: 10px;
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity .quantity .minus,
.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity .quantity .plus {
	flex: 0 0 44px;
	width: 44px;
	height: 100%;
	padding: 0;
	font-size: 20px;
	color: var(--as-ink);
	cursor: pointer;
	background: #fff;
	border: 0;
	border-radius: 0;
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity .quantity input.qty {
	width: 40px;
	min-width: 0;
	height: 100%;
	padding: 0;
	font-family: var(--as-strong, inherit);
	font-size: 16px;
	color: var(--as-ink);
	text-align: center;
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity .quantity input.qty::-webkit-inner-spin-button,
.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-quantity .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Button »In den Warenkorb« in der Themenfarbe der Seite */
.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-button-wrapper {
	display: block;
	width: 100%;
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-add-to-cart,
.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-add-to-cart:visited {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0 16px;
	font-family: var(--as-strong, inherit);
	font-size: 15px;
	line-height: 1.2;
	color: var(--as-teal-text);
	text-decoration: none;
	background: var(--as-teal);
	border: 0;
	border-radius: 10px;
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-add-to-cart:hover {
	color: var(--as-teal-text);
	filter: brightness(0.93);
}

.fusion-body #main .as-shop-card .as-shop-cart .fusion-post-card-cart-add-to-cart:focus-visible {
	outline: 2px solid var(--as-ink);
	outline-offset: 2px;
}

/* »Warenkorb anzeigen« nach dem Hinzufügen (WooCommerce hängt den Link ohne Neuladen an) ausblenden: Er macht die Karten ungleich hoch. Rückmeldung geben Button-Zustand und Zähler im Header. */
.fusion-body #main .as-shop-card .as-shop-cart a.added_to_cart {
	display: none;
}

/* ---------- Seiten ---------- */

.as-shop-pager .facetwp-facet {
	margin: 0;
}

.as-shop-pager .facetwp-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	padding-top: 8px;
}

.as-shop-pager .facetwp-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	font-size: 15px;
	color: var(--as-ink);
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--as-line);
	border-radius: 10px;
}

.as-shop-pager .facetwp-page.active {
	font-family: var(--as-strong, inherit);
	color: var(--as-teal-text);
	background: var(--as-teal);
	border-color: var(--as-teal);
}

.as-shop-pager .facetwp-page.dots {
	cursor: default;
	border-color: transparent;
}

.as-shop-pager .facetwp-page:focus-visible {
	outline: 2px solid var(--as-ink);
	outline-offset: 2px;
}

@media (hover: hover) {
	.as-shop-pager .facetwp-page:not(.active):not(.dots):hover {
		background: var(--as-theme-pale, #eef9f9);
		border-color: var(--as-teal);
	}
}

/* ---------- Pill »Kategorie · n Produkte« ---------- */

.as-shop-pill {
	align-self: flex-start;
}

/* Gleiche Pill auf der Produktseite und im Kategorie-Intro: 12 px, ohne Absatzabstand des Themes. */
#main .as-shop-pill p {
	display: inline-block;
	margin: 0;
	padding: 5px 12px;
	font-family: var(--as-strong, inherit);
	font-size: 12px;
	line-height: 1.4;
	color: var(--as-ink);
	background: var(--as-teal-lighter);
	border-radius: 999px;
}

/* Abstand unter der Pill: 20 px wie auf der Produktseite (der Intro-Block hat 14 px Abstand zwischen den Teilen). */
.as-shop-info .as-shop-pill {
	margin-bottom: 6px;
}

/* ---------- Gut zu wissen ---------- */

.as-shop-know-text p {
	margin: 0;
}

.as-shop-know-text a {
	color: var(--as-accent);
}

.as-shop-know-text a:hover {
	color: var(--as-ink);
}

/* =====================================================================================================
 * Produktseite
 * Werte aus dem Prototyp »Shop – Produktdetail« (Produkt.dc.html). Aufbau, Texte und Abstände kommen aus
 * dem Layout »Shop Produkt«; hier stehen Bestellformular, Box »Im Set enthalten«, Kategorie-Kasten und Details.
 * ================================================================================================== */

/* Pill-Link (Kategorie des Produkts) */
/*
 * Das Theme unterstreicht Links mit `.awb-link-decoration #wrapper a:not(.awb-no-decoration, …)`; dessen :not()-Liste
 * enthält ID-Selektoren und ist nicht zu überbieten. Die Pill (vom Avada-Element ausgegebener Link ohne Klasse)
 * bekommt deshalb `!important`.
 */
.as-shop-pill a,
.as-shop-pill a:hover,
.as-shop-pill a:focus,
.as-shop-pill a:visited {
	color: var(--as-ink);
	text-decoration: none !important;
}

/* Preis und Hinweis */
#main .as-produkt-preis p {
	margin: 0;
	font-family: var(--as-strong, inherit);
	color: var(--as-ink);
}

#main .as-produkt-hinweis p,
/* Kurzbeschrieb: mehrere Absätze mit gleichem Abstand wie die Beschreibung, der letzte schliesst bündig ab. */
#main .as-produkt-intro p {
	margin: 0 0 16px;
}

#main .as-produkt-intro p:last-child {
	margin-bottom: 0;
}

#main .as-produkt-hinweis p {
	color: var(--as-muted);
}

/* Zurück zum Shop */
.as-produkt-zurueck {
	align-self: flex-start;
}

/* ---------- Box »Im Set enthalten« ---------- */

.as-produkt-inhalt {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	color: var(--as-ink);
	border: 1px solid var(--as-line);
	border-radius: 12px;
}

#main .as-produkt-inhalt .as-produkt-inhalt__title {
	margin: 0;
	font-family: var(--as-strong, inherit);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--as-ink);
}

#main .as-produkt-inhalt .as-produkt-inhalt__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 300;
	list-style: none;
}

#main .as-produkt-inhalt .as-produkt-inhalt__list > li {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.as-produkt-inhalt__list svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--as-accent);
}

/* ---------- Bestellformular: »Anzahl« über dem Mengenfeld, Button daneben ---------- */

.fusion-body #main .as-produkt-bestellung form.cart {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 12px;
	align-items: end;
	margin: 0;
}

.fusion-body #main .as-produkt-bestellung form.cart::before {
	grid-row: 1;
	grid-column: 1;
	font-family: var(--as-strong, inherit);
	font-size: 14px;
	color: var(--as-ink);
	content: "Anzahl";
}

.fusion-body #main .as-produkt-bestellung .quantity {
	grid-row: 2;
	grid-column: 1;
	display: flex;
	align-items: center;
	height: 48px;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--as-line-strong);
	border-radius: 10px;
}

.fusion-body #main .as-produkt-bestellung .quantity .minus,
.fusion-body #main .as-produkt-bestellung .quantity .plus {
	flex: 0 0 44px;
	width: 44px;
	height: 100%;
	padding: 0;
	font-size: 20px;
	color: var(--as-ink);
	cursor: pointer;
	background: #fff;
	border: 0;
	border-radius: 0;
}

.fusion-body #main .as-produkt-bestellung .quantity input.qty {
	width: 40px;
	min-width: 0;
	height: 100%;
	padding: 0;
	font-family: var(--as-strong, inherit);
	font-size: 16px;
	color: var(--as-ink);
	text-align: center;
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.fusion-body #main .as-produkt-bestellung .quantity input.qty::-webkit-inner-spin-button,
.fusion-body #main .as-produkt-bestellung .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.fusion-body #main .as-produkt-bestellung .single_add_to_cart_button {
	grid-row: 2;
	grid-column: 2;
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 20px;
	font-family: var(--as-strong, inherit);
	font-size: 16px;
	line-height: 1.2;
	color: var(--as-teal-text);
	text-transform: none;
	letter-spacing: normal;
	background: var(--as-teal);
	border: 0;
	border-radius: 10px;
}

/* Warenkorb-Icon wie auf den Karten der Übersicht (Font Awesome »fa-shopping-cart«, solid), in der Schriftfarbe des Buttons */
.fusion-body #main .as-produkt-bestellung .single_add_to_cart_button::before {
	display: block;
	flex: 0 0 auto;
	font-family: "Font Awesome 5 Free";
	font-size: 16px;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	content: "\f07a";
}

.fusion-body #main .as-produkt-bestellung .single_add_to_cart_button:hover {
	color: var(--as-teal-text);
	filter: brightness(0.93);
}

.fusion-body #main .as-produkt-bestellung .single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--as-ink);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.fusion-body #main .as-produkt-bestellung form.cart {
		grid-template-columns: 1fr;
	}

	.fusion-body #main .as-produkt-bestellung .single_add_to_cart_button {
		grid-row: 3;
		grid-column: 1;
	}
}

/* ---------- Meldung nach dem Hinzufügen ---------- */

.as-produkt-meldung .woocommerce-message,
.as-produkt-meldung .woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	margin: 0;
	font-size: 15px;
	color: var(--as-ink);
	background: var(--as-teal-lighter);
	border: 0;
	border-radius: 10px;
}

.as-produkt-meldung .woocommerce-message::before,
.as-produkt-meldung .woocommerce-info::before {
	display: none;
}

.as-produkt-meldung .woocommerce-error {
	padding: 14px 16px;
	margin: 0;
	font-size: 15px;
	color: var(--as-ink);
	list-style: none;
	background: #fff;
	border: 1px solid var(--as-ink);
	border-radius: 10px;
}

.as-produkt-meldung .woocommerce-error::before {
	display: none;
}

.as-produkt-meldung__link,
.as-produkt-meldung__link:hover,
.as-produkt-meldung__link:visited {
	font-family: var(--as-strong, inherit);
	color: var(--as-ink);
	text-decoration: underline;
}

/* ---------- Beschreibung ---------- */

.as-produkt-beschreibung {
	color: var(--as-ink);
}

/* Der Abstand kommt aus dem Theme (Absatz-Rand); nach dem letzten Absatz kein zusätzlicher Abstand. */
#main .as-produkt-beschreibung p:last-child {
	margin-bottom: 0;
}

/* ---------- Kategorie-Kasten ---------- */

.as-produkt-kasten {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	width: 100%;
	padding: 28px;
	box-sizing: border-box;
	color: var(--as-ink);
	background: var(--as-theme-pale, #eef9f9);
	border-radius: 12px;
}

.as-produkt-kasten .as-produkt-kasten__img {
	flex: 0 0 auto;
	width: 96px;
	max-width: 96px;
	height: 128px;
	object-fit: cover;
	border-radius: 8px;
}

.as-produkt-kasten__body {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
	min-width: 0;
}

#main .as-produkt-kasten .as-produkt-kasten__title {
	margin: 0;
	font-family: var(--as-strong, inherit);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--as-ink);
}

.as-produkt-kasten__text p {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.55;
}

.as-produkt-kasten__text p:last-child {
	margin-bottom: 0;
}

/* ---------- Verwandte Produkte ---------- */

.as-produkt-related > .fusion-column-wrapper {
	height: 100%;
	overflow: hidden;
	transition: box-shadow 0.2s;
}

@media (hover: hover) {
	.as-produkt-related:hover > .fusion-column-wrapper {
		box-shadow: 0 10px 28px rgba(15, 20, 80, 0.1);
	}
}

.as-produkt-related .as-produkt-related__body .fusion-title a,
.as-produkt-related .as-produkt-related__body .fusion-title {
	font-family: var(--as-strong, inherit);
	color: var(--as-ink);
	text-decoration: none;
}

#main .as-produkt-related .as-produkt-related__price p {
	margin: 0;
	color: var(--as-ink);
}

/* Bild behält sein Seitenverhältnis, der Textteil füllt die Karte (bei zweizeiligen Titeln wuchs sonst die Bildfläche). */
.as-produkt-related .as-shop-image {
	flex: 0 0 auto;
}

.as-produkt-related > .fusion-column-wrapper > .fusion-builder-row-inner:last-child {
	flex: 1 1 auto;
	align-items: stretch;
}

/* Meldungen im Block-Format von WooCommerce (ab 9): türkise Fläche statt grünem Rahmen, ohne Icon. */
.as-produkt-meldung .wc-block-components-notice-banner {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 14px 16px;
	margin: 0;
	font-size: 15px;
	color: var(--as-ink);
	background: var(--as-teal-lighter);
	border: 0;
	border-radius: 10px;
}

.as-produkt-meldung .wc-block-components-notice-banner > svg {
	display: none;
}

.as-produkt-meldung .wc-block-components-notice-banner .wc-block-components-notice-banner__content {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--as-ink);
}

.as-produkt-meldung .wc-block-components-notice-banner.is-error {
	background: #fff;
	border: 1px solid var(--as-ink);
}

/* WooCommerce setzt den Fokus nach dem Hinzufügen auf die Meldung (für Screenreader); der Rahmen darum stört nur. */
.as-produkt-meldung .wc-block-components-notice-banner:focus,
.as-produkt-meldung .wc-block-components-notice-banner:focus-visible {
	outline: none;
}
