/* Produkt-Einzelseite (Template 168 nachgebaut). Basis bleibt legacy/168.css; hier nur, was das neue Markup braucht. */

/* Galerie: zwei Bilder nebeneinander wie das Oxygen-Karussell (Zellbreite 50 %), feste 2:3-Flaeche gegen Layoutverschiebung */
#div_block-58-168 .woocommerce-product-gallery {
	float: none;
	width: 100%;
	margin: 0;
	position: relative;
	/* zwei 2:3-Zellen nebeneinander = 4:3; haelt die Hoehe auch waehrend der Slider sich aufbaut */
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
/* Flex statt Float: Woo laedt kein Flexslider-CSS, ohne Clearfix faellt die Hoehe sonst nach dem Start auf 0 und springt */
#div_block-58-168 .woocommerce-product-gallery__wrapper {
	display: flex;
	margin: 0;
}
#div_block-58-168 .flex-viewport .woocommerce-product-gallery__image {
	flex: none; /* Breite setzt Flexslider inline */
}
/* vor dem Start des Sliders (danach liegt der Wrapper in .flex-viewport) */
#div_block-58-168 .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	overflow: hidden;
}
#div_block-58-168 .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	flex: 0 0 50%;
}
#div_block-58-168 .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}
#div_block-58-168 .flex-direction-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}
/* Pfeile wie die OxyExtras-Pfeile nach Codeblock 34: transparent, Primaerfarbe, rund, ab 768 px 25 px vom Rand */
#div_block-58-168 .flex-direction-nav a {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5em;
	height: 2.5em;
	font-size: 18px;
	color: var(--primary);
	background: transparent;
	border-radius: 50px;
	overflow: hidden;
	text-indent: -999em;
	transition: color 0.4s;
}
#div_block-58-168 .flex-direction-nav a::before {
	content: "";
	flex: none;
	width: 0.6em;
	height: 0.6em;
	text-indent: 0;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
}
#div_block-58-168 .flex-direction-nav .flex-prev { left: 0; }
#div_block-58-168 .flex-direction-nav .flex-prev::before { transform: translateX(15%) rotate(135deg); }
#div_block-58-168 .flex-direction-nav .flex-next { right: 0; }
#div_block-58-168 .flex-direction-nav .flex-next::before { transform: translateX(-15%) rotate(-45deg); }
#div_block-58-168 .flex-direction-nav .flex-disabled {
	cursor: default;
}
@media (min-width: 768px) {
	#div_block-58-168 .flex-direction-nav .flex-prev { left: 25px; }
	#div_block-58-168 .flex-direction-nav .flex-next { right: 25px; }
}

/* Akkordeon: <details> statt OxyExtras pro-accordion, Optik aus legacy/168.css (.active -> [open]) */
#-pro-accordion-236-168 summary.oxy-pro-accordion_header {
	list-style: none;
}
#-pro-accordion-236-168 summary.oxy-pro-accordion_header::-webkit-details-marker {
	display: none;
}
#-pro-accordion-236-168 h5.oxy-pro-accordion_title {
	margin: 0;
}
#-pro-accordion-236-168 .oxy-pro-accordion_content {
	box-sizing: border-box; /* width 100 % plus Innenabstand lief mobil ueber den Rand */
}
#-pro-accordion-236-168 details[open] > .oxy-pro-accordion_body {
	display: block;
}
#-pro-accordion-236-168 details[open] .oxy-pro-accordion_close-icon {
	opacity: 1;
}
#-pro-accordion-236-168 details[open] .oxy-pro-accordion_toggle-icon {
	opacity: 0;
}
#-pro-accordion-236-168 details[open] .oxy-pro-accordion_icon svg {
	transform: rotateX(180deg);
}

@media (prefers-reduced-motion: reduce) {
	#div_block-58-168 .flex-direction-nav a,
	#-pro-accordion-236-168 .oxy-pro-accordion_header svg {
		transition: none;
	}
}


/* Abstand Warenkorb-Button zu PayPal/Express (Kevin 2026-11-20) */
.oxy-product-cart-button .ppc-button-wrapper, #ppc-button-ppcp-gateway { margin-top: 24px !important; }

/* Scroll-Effekt wie festival-faecher: Bildspalte bleibt am Desktop stehen, die Infos rechts laufen weiter. */
@media (min-width: 992px) {
	#div_block-56-168 { align-items: start; }
	#div_block-58-168 { position: sticky; top: 100px; align-self: start; }
}

/* Mobile Kaufleiste: gleitet ein, sobald der Warenkorb-Button aus dem Bild ist (wie festival-faecher). */
.at-sticky-atc { display: none; }
@media (max-width: 991px) {
	.at-sticky-atc {
		display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 450;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #d3ced2;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .28s cubic-bezier(.4, 0, .2, 1);
	}
	.at-sticky-atc.is-visible { transform: translateY(0); }
	.at-sticky-atc__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.at-sticky-atc__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.at-sticky-atc__price { font-size: 14px; }
	.at-sticky-atc__price del { opacity: .7; margin-right: 4px; }
	.at-sticky-atc__btn { flex: 0 0 auto; font: 700 12px/1 Inter, sans-serif; letter-spacing: 1px; text-transform: uppercase; padding: 14px 18px; border-radius: 4px; background: #1f2123; color: #fff; border: 0; }
	.at-sticky-atc__btn:hover { background: #45484b; }
}
@media (prefers-reduced-motion: reduce) { .at-sticky-atc { transition: none; } }
