/**
 * Pax Shop – Produktseite im Shopify-Stil (nur geladen, wenn eingeschaltet).
 * Farben/Schriften aus den CSS-Variablen des Themes (--pax-…), sonst Standardwerte.
 */

:where(.pax-buybar) .pax-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 30px; font-weight: 700;
	text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
:where(.pax-buybar) .pax-btn--accent { background: var(--pax-accent, #F2B630); color: var(--pax-dark, #0B1E45); }
.pax-product-kicker { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--pax-blue, #163E8C); }
.woocommerce div.product .product_title { font-family: var(--pax-font-heading, var(--pax-font-display, inherit)); }

/* ==========================================================================
   Produktseite (Shopify-Stil, ohne Bild-Zoom)
   ========================================================================== */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	column-gap: clamp(32px, 5vw, 72px);
	row-gap: 72px;
	align-items: start;
}
.single-product div.product > * { grid-column: 1 / -1; min-width: 0; }
.single-product div.product > .pax-gallery { grid-column: 1; grid-row: 1; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1; margin: 0; float: none; width: auto; }

.pax-product-crumbs { font-size: 14px; color: var(--pax-muted, #4A5878); margin: 0 0 20px; }
.pax-product-crumbs a { color: var(--pax-muted, #4A5878); }

/* Galerie */
.pax-gallery { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pax-gallery.is-sticky { position: sticky; top: 108px; }
.admin-bar .pax-gallery.is-sticky { top: 140px; }
.pax-gallery__main { position: relative; border-radius: 18px; overflow: hidden; background: var(--gallery-bg, #fff); border: 1px solid var(--pax-line, #DCE3EF); }
.pax-gallery__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	aspect-ratio: var(--gallery-ratio, 1 / 1); scrollbar-width: none; overscroll-behavior-x: contain;
}
.pax-gallery__track::-webkit-scrollbar { display: none; }
.pax-gallery__track:focus-visible { outline: 3px solid var(--pax-accent, #F2B630); outline-offset: -3px; }
.pax-gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pax-gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 6%; border-radius: 0; }
.pax-gallery--cover .pax-gallery__slide img { object-fit: cover; padding: 0; }
.pax-gallery__slide--empty .pax-label { width: 56%; box-shadow: 0 24px 50px rgba(11,30,69,.25); }

.pax-gallery__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 46px; height: 46px; border-radius: 23px; border: 0; cursor: pointer;
	background: rgba(255,255,255,.92); color: var(--pax-dark, #0B1E45); box-shadow: 0 6px 18px rgba(11,30,69,.18);
	display: inline-flex; align-items: center; justify-content: center;
	opacity: 0; transition: opacity .2s ease;
}
.pax-gallery__nav--prev { left: 14px; }
.pax-gallery__nav--next { right: 14px; }
.pax-gallery__main:hover .pax-gallery__nav, .pax-gallery__nav:focus-visible { opacity: 1; }
.pax-gallery__count {
	position: absolute; right: 12px; bottom: 12px; z-index: 2; display: none;
	background: rgba(11,30,69,.75); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 12px;
}
.pax-gallery__badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	background: var(--pax-accent, #F2B630); color: var(--pax-dark, #0B1E45); font-weight: 800; font-size: 14px;
	padding: 6px 12px; border-radius: 14px;
}
.pax-gallery__expand {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 21px; border: 0;
	background: rgba(255,255,255,.92); color: var(--pax-dark, #0B1E45); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(11,30,69,.15);
}

.pax-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pax-gallery__thumbs::-webkit-scrollbar { display: none; }
.pax-gallery__thumb {
	flex: 0 0 76px; width: 76px; aspect-ratio: var(--gallery-ratio, 1 / 1); padding: 0; cursor: pointer;
	border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--gallery-bg, #fff);
	box-shadow: 0 0 0 1px var(--pax-line, #DCE3EF); opacity: .7; transition: opacity .15s ease, border-color .15s ease;
}
.pax-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pax-gallery--cover .pax-gallery__thumb img { object-fit: cover; }
.pax-gallery__thumb:hover { opacity: 1; }
.pax-gallery__thumb.is-active { border-color: var(--pax-blue, #163E8C); opacity: 1; box-shadow: none; }

@media (min-width: 901px) {
	.pax-gallery--thumbs-left.has-multiple { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
	.pax-gallery--thumbs-left .pax-gallery__main { grid-column: 2; grid-row: 1; }
	.pax-gallery--thumbs-left .pax-gallery__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; overflow-x: hidden; overflow-y: auto; max-height: 640px; }
	.pax-gallery--thumbs-left .pax-gallery__thumb { flex: 0 0 auto; }
}

/* Großansicht (ohne Zoom) */
.pax-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.pax-lightbox::backdrop { background: rgba(11,30,69,.88); }
.pax-lightbox img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; background: #fff; }
.pax-lightbox__close {
	position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 22px; border: 0; cursor: pointer;
	background: #fff; color: var(--pax-dark, #0B1E45); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

/* Kaufspalte */
.single-product .summary .pax-product-kicker { margin-bottom: 10px; }
.single-product .summary .pax-product-kicker a { color: inherit; text-decoration: none; }
.single-product .summary .pax-product-kicker a:hover { text-decoration: underline; }
.woocommerce div.product .product_title {
	font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: .5px;
	font-size: clamp(38px, 4.6vw, 62px); margin: 0 0 14px; padding: 0;
}
.woocommerce div.product .woocommerce-product-rating { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.woocommerce div.product .woocommerce-product-rating .star-rating { margin: 0; color: var(--pax-accent, #F2B630); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--pax-blue, #163E8C); font-size: 30px; font-weight: 700; margin: 4px 0 4px; }
.woocommerce div.product p.price del, .woocommerce div.product span.price del { color: var(--pax-muted, #4A5878); font-size: .65em; font-weight: 500; opacity: 1; margin-right: 8px; }
.woocommerce div.product p.price ins, .woocommerce div.product span.price ins { text-decoration: none; }
.single-product .summary .wc-gzd-additional-info, .single-product .summary .price-unit, .single-product .summary .delivery-time-info,
.single-product .summary .shipping-costs-info, .single-product .summary .tax-info, .single-product .summary .wgm-info,
.pax-price-note { font-size: 13px; color: var(--pax-muted, #4A5878); margin: 0 0 4px; }
.pax-price-note a { color: var(--pax-muted, #4A5878); }
.woocommerce-product-details__short-description { font-size: 16px; line-height: 1.65; color: #2B3A5C; margin: 20px 0 24px; }
.woocommerce-product-details__short-description > *:last-child { margin-bottom: 0; }

.woocommerce div.product p.stock { font-size: 14px; font-weight: 600; margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.woocommerce div.product p.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.woocommerce div.product p.stock.in-stock { color: #1F7A4D; }
.woocommerce div.product p.stock.out-of-stock { color: #B42318; }
.woocommerce div.product p.stock.available-on-backorder { color: var(--pax-warm, #8A5A00); }

.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 8px 0 24px; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button, .woocommerce div.product form.cart .single_add_to_cart_button {
	float: none; flex: 1 1 220px; min-height: 56px; border-radius: 30px; font-size: 17px; padding: 14px 28px;
}
.woocommerce div.product form.cart .single_add_to_cart_button.disabled { opacity: .5; }
/* Varianten */
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { width: 100%; margin: 0 0 16px; border: 0; }
.woocommerce div.product form.cart .variations tbody, .woocommerce div.product form.cart .variations tr { display: block; }
.woocommerce div.product form.cart .variations tr { margin-bottom: 14px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations th label { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: block; }
.woocommerce div.product form.cart .variations select { width: 100%; min-width: 0; max-width: 100%; min-height: 50px; border-radius: 12px; margin: 0; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product form.cart .woocommerce-variation-price { margin-bottom: 12px; }
.woocommerce div.product form.cart .group_table { width: 100%; margin-bottom: 12px; }



/* Vorteile */
.pax-trust { list-style: none; margin: 0 0 20px; padding: 16px 0; border-top: 1px solid var(--pax-line, #DCE3EF); border-bottom: 1px solid var(--pax-line, #DCE3EF); display: flex; flex-direction: column; gap: 10px; }
.pax-trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #2B3A5C; }
.pax-trust svg { flex: 0 0 auto; color: var(--pax-blue, #163E8C); }


/* Akkordeon */
.pax-acc-group { border-top: 1px solid var(--pax-line, #DCE3EF); margin: 4px 0 0; }
.pax-acc { border-bottom: 1px solid var(--pax-line, #DCE3EF); }
.pax-acc > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 2px; font-weight: 700; font-size: 17px; color: var(--pax-dark, #0B1E45);
	font-family: var(--pax-font-content-h, var(--pax-font-body, inherit));
}
.pax-acc > summary::-webkit-details-marker { display: none; }
.pax-acc > summary:hover { color: var(--pax-blue, #163E8C); }
.pax-acc__icon { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.pax-acc__icon::before, .pax-acc__icon::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor;
	transform: translate(-50%, -50%); transition: transform .2s ease;
}
.pax-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.pax-acc[open] .pax-acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.pax-acc__body { padding: 0 2px 22px; color: #2B3A5C; font-size: 15px; line-height: 1.65; }
.pax-acc__body > *:first-child { margin-top: 0; }
.pax-acc__body table.shop_attributes { width: 100%; border: 0; margin: 0; }
.pax-acc__body table.shop_attributes th, .pax-acc__body table.shop_attributes td { border: 0; border-bottom: 1px solid var(--pax-line, #DCE3EF); padding: 10px 0; background: none !important; font-style: normal; text-align: left; }
.pax-acc__body table.shop_attributes th { width: 40%; font-weight: 700; }
.pax-acc__body table.shop_attributes td p { margin: 0; }
.pax-acc__body #reviews #comments h2, .pax-acc__body .woocommerce-Reviews-title { font-size: 16px; }
.single-product .product_meta { font-size: 13px; color: var(--pax-muted, #4A5878); margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.single-product .product_meta a { color: var(--pax-muted, #4A5878); }

/* Darunter: Zusatzverkäufe & ähnliche Produkte */
.single-product div.product .up-sells, .single-product div.product .related { margin: 0; padding-top: 48px; border-top: 1px solid var(--pax-line, #DCE3EF); }
.single-product div.product .up-sells > h2, .single-product div.product .related > h2 {
	font-family: var(--pax-font-heading, var(--pax-font-display, inherit)); font-weight: 900; text-transform: uppercase;
	font-size: clamp(28px, 3.5vw, 42px); line-height: 1; margin: 0 0 24px;
}

/* Mobile Kaufleiste */
.pax-buybar { display: none; }

@media (max-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
	.single-product div.product > .pax-gallery { grid-column: 1; grid-row: 1; }
	.single-product div.product > .summary { grid-column: 1; grid-row: 2; }
	.single-product div.product .up-sells, .single-product div.product .related { padding-top: 32px; margin-top: 16px; }
	.pax-gallery.is-sticky { position: static; }
	.pax-gallery__main { margin: 0 calc(-1 * var(--pax-gutter, 0px)); border-radius: 0; border-left: 0; border-right: 0; }
	.pax-gallery__count { display: block; }
	.pax-gallery__thumb { flex-basis: 60px; width: 60px; border-radius: 10px; }
	.pax-product-crumbs { margin-bottom: 14px; }
}
@media (hover: none) {
	.pax-gallery__nav { display: none; }
}
@media (max-width: 860px) {
	.pax-product-page.pax-has-buybar { padding-bottom: 76px; }
	.pax-product-page.pax-has-buybar.pax-has-mobilebar { padding-bottom: 148px; }
	.pax-buybar {
		display: flex; align-items: center; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
		padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--pax-line, #DCE3EF); box-shadow: 0 -8px 24px rgba(11,30,69,.12);
		opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.pax-has-mobilebar .pax-buybar { bottom: 68px; padding-bottom: 10px; }
	.pax-buybar.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
	.pax-buybar__thumb { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--pax-bg, #EEF2F8); }
	.pax-buybar__thumb img { width: 100%; height: 100%; object-fit: contain; }
	.pax-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
	.pax-buybar__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pax-buybar__price { font-size: 15px; font-weight: 700; color: var(--pax-blue, #163E8C); }
	.pax-buybar__price del { color: var(--pax-muted, #4A5878); font-weight: 500; font-size: 13px; }
	.pax-buybar__price ins { text-decoration: none; }
	.pax-buybar__btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.pax-gallery__track { scroll-behavior: auto; }
}
