/**
 * Shop & Produkt (Besitzer: Agent B).
 * Farben: Primär #956695, Akzent #814081, Dunkel #1C1044, Text #222222, Rahmen #EFEFEF.
 */

/* ---------- Breite wie Header: Inhalt 1300 px, Kanten bündig mit Logo bzw. Warenkorb/Button ----------
 * Glozin setzt .elementor .e-con { --container-max-width: 1410px } → hier Kit-Breite 1300 px.
 * Seitenabstand bleibt Glozins --gz-container-spacing (30 px ab 1025, sonst 15) = Innenabstand des Headers.
 * Gemessen (DOM): 1496 → 98…1398, 1440 → 70…1370, 1280 → 30…1250, 1150 → 30…1120, 1024 → 15…1009, 390 → 15…375. */
.elementor .e-con.baylan-shop-rahmen,
.elementor .baylan-shop-rahmen .e-con {
	--container-max-width: 1300px;
}

/* ---------- Archiv: Werkzeugleiste ---------- */
.baylan-shop-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 14px;
	color: #555;
}
.baylan-shop-toolbar__aktionen {
	margin-left: auto;
}
.baylan-shop-toolbar .catalog-toolbar__filter-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ---------- Leere Shortcode-Widgets (z. B. keine Termine) belegen keinen Abstand ---------- */
.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode:empty),
.elementor-widget-shortcode:has(> .elementor-shortcode:empty) {
	display: none;
}

/* ---------- Preis auf Anfrage ---------- */
.baylan-preis-anfrage {
	font-weight: 600;
	color: #814081;
}
ul.products li.product .price .baylan-preis-anfrage {
	font-size: 14px;
}

/* ---------- Grundpreis (Germanized) nicht wie der Preis ---------- */
.price.price-unit,
ul.products li.product .price.price-unit {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #555;
}
.price.price-unit .amount,
.price.price-unit bdi {
	font-weight: 400;
}

/* ---------- Karten: Germanized-Angaben kompakt ---------- */
ul.products li.product .product-summary .wc-gzd-additional-info {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #666;
}
ul.products li.product .product-summary .price + .wc-gzd-additional-info {
	margin-top: 4px;
}
ul.products li.product .product-summary .wc-gzd-additional-info a {
	color: inherit;
	text-decoration: underline;
}
ul.products li.product .product-summary .price.price-unit {
	font-size: 12px;
}

/* ---------- Produktseite: Bilder füllen die Spalte ---------- */
.baylan-produkt-bilder .woocommerce-product-gallery__image img,
.baylan-produkt-bilder .woocommerce-product-gallery__image a {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Produktseite: Kaufbereich ---------- */
.baylan-produkt-kauf .glozin-product-price .price {
	margin: 0;
}
/* V-14 (Agent F): Kaufbox nicht auf Galeriehöhe strecken (Elementor setzt align-self über --align-self, deshalb
   höhere Spezifität) und beim Scrollen durch die Galerie mitlaufen lassen. Bis 1199 px fester Mobil-Kopf (75 px),
   darüber ist der Kopf nicht sticky. 20-shop.js Nr. 7 setzt --bm-kauf-top, wenn die Box höher als das Fenster ist. */
@media (min-width: 768px) {
	.elementor .e-con.baylan-produkt-kauf {
		--align-self: flex-start;
		align-self: flex-start;
		position: sticky;
		top: var(--bm-kauf-top, 95px);
	}
}
@media (min-width: 1200px) {
	.elementor .e-con.baylan-produkt-kauf {
		top: var(--bm-kauf-top, 30px);
	}
}
.baylan-produkt-pflicht {
	margin-top: -8px;
}
.baylan-pflichtangaben {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
.baylan-pflichtangaben .wc-gzd-additional-info {
	margin: 0;
}
.baylan-pflichtangaben .wc-gzd-additional-info-placeholder:empty {
	display: none;
}
.baylan-pflichtangaben .price-unit {
	flex-basis: 100%;
}
.baylan-pflichtangaben a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Termine & Orte ---------- */
.baylan-termine {
	border: 1px solid #EFEFEF;
	border-radius: 10px;
	padding: 16px 18px;
	background: #fff;
}
.baylan-termine__titel {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	color: #1C1044;
}
.baylan-termine__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.baylan-termine__eintrag {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 12px;
	padding-top: 12px;
	border-top: 1px solid #EFEFEF;
}
.baylan-termine__eintrag:first-child {
	padding-top: 0;
	border-top: 0;
}
.baylan-termine__name {
	grid-row: 1;
	grid-column: 1;
	font-weight: 600;
	color: #222;
}
.baylan-termine__plaetze {
	grid-row: 1;
	grid-column: 2;
	font-size: 13px;
	font-weight: 600;
	color: #814081;
	white-space: nowrap;
}
.baylan-termine__details {
	grid-row: 2;
	grid-column: 1 / -1;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
.baylan-termine__eintrag.is-ausgebucht .baylan-termine__name,
.baylan-termine__eintrag.is-ausgebucht .baylan-termine__plaetze {
	color: #8a8a8a;
}
@media (max-width: 400px) {
	.baylan-termine__eintrag {
		grid-template-columns: minmax(0, 1fr);
	}
	.baylan-termine__plaetze {
		grid-row: 3;
		grid-column: 1;
	}
}

/* Termin-Auswahl (WCBoost-Buttons): lange Datumstexte dürfen umbrechen */
.baylan-seite--termin .wcboost-variation-swatches--button .wcboost-variation-swatches__item {
	height: auto;
	min-height: 40px;
	padding: 8px 16px;
	white-space: normal;
	line-height: 1.3;
	text-align: left;
}

/* ---------- Angebot anfragen (Produktseite) ---------- */
.baylan-anfrage {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.baylan-anfrage__button.gz-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	text-decoration: none;
}
.baylan-anfrage-icon {
	display: inline-flex;
	line-height: 0;
}
.baylan-anfrage-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
}
.baylan-anfrage__hinweis {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

/* Karten: Anfrage-Button (Glozin zeichnet Icons gefüllt) */
ul.products li.product .baylan-anfrage-button svg {
	fill: none;
	stroke: currentColor;
}

/* ---------- Persönliche Beratung ---------- */
.baylan-produkt-beratung .elementor-icon-list-item a {
	color: inherit;
}
.baylan-produkt-beratung .elementor-icon-list-item a:hover,
.baylan-produkt-beratung .elementor-icon-list-item a:focus-visible {
	color: #814081;
	text-decoration: underline;
}

/* ---------- Vorteile (Laufband, Band in Inhaltsbreite) ---------- */
.baylan-produkt-vorteile {
	overflow: hidden;
}
.baylan-produkt-vorteile .glozin-marquee {
	border: 0;
}
@media (prefers-reduced-motion: reduce) {
	.baylan-produkt-vorteile .glozin-marquee__inner {
		animation: none !important;
		transform: none !important;
	}
}

/* ---------- Sticky „In den Warenkorb“: über der Navigationsleiste (Leiste bis 1199 px, Agent A) ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
	body.mobile-has-navigation-bar .glozin-sticky-add-to-cart {
		bottom: var(--gz-navigation-bar-height, 64px);
	}
}
.glozin-sticky-atc__price .price {
	margin: 2px 0 0;
	font-size: 14px;
}

/* ---------- Merkliste (Seite 2323): Breite wie Header (1300 px), Baylan-Look ---------- */
body.baylan-merkliste {
	--gz-container-xxl-width: 1300px;
	--gz-container-width: 1300px;
}
body.baylan-merkliste .site-content {
	padding-top: 40px;
	padding-bottom: 80px;
}
.baylan-merkliste .wishlist-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #EFEFEF;
}
.baylan-merkliste .wishlist-share__title {
	margin: 0;
	font-weight: 700;
	color: #1C1044;
}
.baylan-merkliste .wishlist-share__buttons a {
	color: #814081;
	border-color: #e6d9e6;
}
.baylan-merkliste .wishlist-share__buttons a:hover,
.baylan-merkliste .wishlist-share__buttons a:focus-visible {
	color: #fff;
	background: #814081;
	border-color: #814081;
}
.baylan-merkliste .wishlist-empty .woocommerce-info {
	background: none;
	border: 0;
	padding: 0;
	font-size: 16px;
	color: #222;
}
.baylan-merkliste .return-to-shop {
	text-align: center;
}

/* Variante fehlt (z. B. Termin): Inline-Hinweis statt alert() – 20-shop.js Nr. 6 (Review 3, R3-11) */
.baylan-auswahl-hinweis {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #FDECEC;
	color: #A61B1B;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
}
.baylan-auswahl-hinweis::before {
	content: "!";
	flex: 0 0 20px;
	height: 20px;
	border-radius: 50%;
	background: #C62828;
	color: #fff;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
}
form.baylan-auswahl-fehlt table.variations .wcboost-variation-swatches__wrapper {
	outline: 2px solid #C62828;
	outline-offset: 4px;
	border-radius: 8px;
}
/* Glozin setzt deaktivierte Buttons auf pointer-events:none → Klick ohne Termin blieb ohne Rückmeldung. Klickbar machen, 20-shop.js zeigt den Hinweis. */
form.variations_form .single_add_to_cart_button.disabled.wc-variation-selection-needed,
form.variations_form .single_add_to_cart_button.disabled.wc-variation-is-unavailable,
.single-product:has(form.variations_form) #glozin-sticky-add-to-cart .single_add_to_cart_button.disabled {
	pointer-events: auto !important;
	cursor: pointer;
}

/* Gast-Shopseite „Demnächst“ (inc/23-demnaechst.php, Review 1 V-02) */
.baylan-demnaechst {
	padding: 90px 20px 110px;
	background: linear-gradient(180deg, #F7F1F7 0%, #fff 100%);
	font-family: Lato, sans-serif;
	text-align: center;
}
.baylan-demnaechst__inner {
	max-width: 720px;
	margin: 0 auto;
}
.baylan-demnaechst__kicker {
	margin: 0 0 12px;
	color: #814081;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.baylan-demnaechst__titel {
	margin: 0 0 18px;
	color: #1C1044;
	font-family: Lato, sans-serif;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.15;
}
.baylan-demnaechst__text {
	margin: 0 auto 32px;
	max-width: 600px;
	color: #222;
	font-size: 18px;
	line-height: 1.6;
}
.baylan-demnaechst__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}
.baylan-demnaechst__btn {
	min-width: 220px;
}
.baylan-demnaechst__kontakt {
	margin: 26px 0 0;
	color: #555;
	font-size: 15px;
}
.baylan-demnaechst__kontakt a {
	color: #814081;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
@media (max-width: 575px) {
	.baylan-demnaechst { padding: 56px 16px 72px; }
	.baylan-demnaechst__text { font-size: 16px; }
	.baylan-demnaechst__btn { width: 100%; }
}

/* =========================================================================
 * Agent F – Feinschliff Shop (16.11.2026, Reviews 1/2/4)
 * ========================================================================= */

/* V-15 / V-14: einheitliche Bildkachel (Farbe = Grund der Suisselle-Packshots). Freisteller auf Weiß
   (Klasse aus inc/20-shop.php Nr. 7) werden per multiply auf die Kachel gelegt, Fotos bleiben unverändert. */
ul.products li.product .product-thumbnail,
ul.products li.product .product-thumbnail > a,
.baylan-produkt-bilder .woocommerce-product-gallery__image,
.baylan-produkt-bilder .glozin-product-gallery-thumbnails .woocommerce-product-gallery__image {
	background-color: #EEE8EC;
}
ul.products li.product img.baylan-bild--freigestellt,
.baylan-produkt-bilder img.baylan-bild--freigestellt {
	mix-blend-mode: multiply;
}

/* R4-07: Brotkrumen-Links Kontrast (#888 = 3,54:1 → #666 = 5,74:1). Glozin färbt sie über die Variable. */
.woocommerce-breadcrumb,
.site-breadcrumb {
	--gz-site-breadcrumb-link-color: #666;
}
.woocommerce-breadcrumb a,
.site-breadcrumb a {
	color: #666;
}
.woocommerce-breadcrumb a:hover,
.woocommerce-breadcrumb a:focus-visible,
.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible {
	color: #814081;
}

/* M2-12: Karten-Icons mobil 44 px mit 8 px Abstand (Fehltipp Merkliste ↔ Warenkorb) */
@media (max-width: 767px) {
	body ul.products li.product .product-featured-icons--primary {
		gap: 8px;
	}
	/* body: Glozins WooCommerce-CSS lädt nach dem Child-CSS */
	body ul.products li.product .product-thumbnail .product-featured-icons--primary .gz-button-icon,
	body ul.products li.product .product-thumbnail .product-featured-icons--primary .product-loop-button-atc {
		--gz-button-width: 44px;
		--gz-button-height: 44px;
		width: 44px;
		height: 44px;
		min-width: 44px;
	}
}

/* M2-18: Filter/Sortieren mobil 44 px, Filterliste antippbar, „Alle zurücksetzen“ einzeilig */
.baylan-shop-toolbar .catalog-toolbar__filter-button,
.baylan-shop-toolbar .catalog-toolbar__orderby-button {
	min-height: 44px;
}
.products-filter-widget .products-filter__options > li.products-filter__option.filter-list-item {
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
	align-items: center;
}
.products-filter__button .reset-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	white-space: nowrap;
}

/* M2-19: Tooltips des Ansicht-Umschalters ragten rechts aus dem Bild (3 px Seitenüberlauf bei 768/1024).
   Die rechten Symbole bekommen rechtsbündige Tooltips, auf Touch-Geräten gar keine. */
.glozin-toolbar-view .gz-shop-view-item:nth-last-child(-n+2)::after {
	--transform-x: 0;
	left: auto;
	right: 0;
}
.glozin-toolbar-view .gz-shop-view-item:nth-last-child(-n+2)::before {
	--transform-x: 50%;
	left: auto;
	right: 50%;
}
@media (hover: none) {
	.glozin-toolbar-view .gz-shop-view-item::after,
	.glozin-toolbar-view .gz-shop-view-item::before {
		display: none;
	}
}

/* Geschlossene Kaufleiste nicht fokussierbar (Glozin verschiebt sie nur, Skill 7g) */
.glozin-sticky-add-to-cart:not(.open) {
	visibility: hidden;
	transition: transform .3s, visibility 0s linear .3s;
}
.glozin-sticky-add-to-cart.open {
	visibility: visible;
	transition: transform .3s, visibility 0s;
}

/* M2-10: Kaufleiste mobil einzeilig (Produktname + Preis | Button). Auswahl und Menge stehen im Formular oben;
   ohne Termin heißt der Button „Termin wählen“ und führt zur Auswahl (20-shop.js Nr. 6 + 10). */
@media (max-width: 767px) {
	#glozin-sticky-add-to-cart .glozin-sticky-atc__content {
		justify-content: space-between;
		gap: 12px;
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}
	#glozin-sticky-add-to-cart .glozin-sticky-atc__product-info {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		padding-inline-end: 0 !important;
	}
	#glozin-sticky-add-to-cart .glozin-sticky-atc__title {
		overflow: hidden;
		font-size: 14px !important;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	#glozin-sticky-add-to-cart .glozin-sticky-atc__price .price {
		margin: 0;
		overflow: hidden;
		font-size: 13px;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	#glozin-sticky-add-to-cart .glozin-sticky-atc__price .wc-gzd-additional-info,
	#glozin-sticky-add-to-cart .glozin-sticky-atc__variations,
	#glozin-sticky-add-to-cart form.cart .quantity {
		display: none;
	}
	#glozin-sticky-add-to-cart .glozin-sticky-atc__actions,
	#glozin-sticky-add-to-cart .glozin-sticky-atc__actions form {
		flex: 0 0 auto;
		width: auto;
	}
	#glozin-sticky-add-to-cart .glozin-sticky-atc__buttons {
		width: auto;
		margin-top: 0 !important;
	}
	#glozin-sticky-add-to-cart .single_add_to_cart_button {
		flex: 0 0 auto;
		width: auto;
		min-width: 0;
		height: 46px;
		margin: 0;
		padding: 0 20px;
		white-space: nowrap;
	}
	#glozin-sticky-add-to-cart .single_add_to_cart_button.baylan-sticky-waehlen {
		opacity: 1;
	}
}

/* Produktkarten mobil: nur der Warenkorb-Button, kein Merklisten-Herz (User-Entscheidung 16.11.2026, Orchestrator).
   Desktop unverändert. Merken geht mobil weiter auf der Produktseite. */
@media (max-width: 767px) {
	body ul.products li.product .product-thumbnail .product-featured-icons--primary .wcboost-wishlist-button {
		display: none !important;
	}
}
