/**
 * Mitochondriak DE - content section vocabulary (W9G).
 *
 * WHAT THIS IS. The Shoptet storefronts author their product pages with a
 * small, fixed set of section classes: container_product_page,
 * columns_wrapper_product_page, image-slider_product_page,
 * vlastnosti-slider-wrapper, responsive-banner_* and so on. The editor writes
 * that markup once and it renders the same way everywhere.
 *
 * CONTRACT VERSION: Mitochondriak Content Contract v1
 * Specification: docs/content/MITOCHONDRIAK-CONTENT-CONTRACT.md
 *
 * W9K: every var() in this file now carries a fallback, so the stylesheet
 * renders standalone - it used to consume 16 tokens and define none, which
 * meant it was unusable outside this WordPress theme. Breakpoints follow one
 * convention only: max-width N / min-width N+1 (see the contract, section 8).
 *
 * The goal for mitochondriak.de is that ONE piece of product HTML works on
 * both platforms. So this theme implements the SAME class vocabulary. The
 * markup is the portable contract; this file is this platform's renderer for
 * it. Nothing here is copied from Shoptet - the rules are rewritten against
 * the theme's own tokens, and the source's broken/unclosed media queries are
 * not reproduced. Measurements that carry the design (the 3.5 / 2.5 / 1.5
 * card rail, the 66.66% image slider, radius 15px cards, the grey band at
 * 3% black) are matched deliberately.
 *
 * Headings: the source markup uses <h1> inside these sections, which is wrong
 * for a document outline. Every rule here accepts h1, h2 and h3 equally, so
 * pasted source HTML looks right while content authored here can use correct
 * levels.
 *
 * No JavaScript is required. assets/js/sections.js only adds the img-count
 * classes and optional arrows; without it every rail is still a native
 * scroll-snap row.
 */

/* ---------------------------------------------------------------------
 * 0. The horizontal contract (W65-B)
 * ------------------------------------------------------------------ */

/*
 * W65-B - ONE GUTTER, AND THE ELEMENT THAT ALREADY PAID IT SAYS SO.
 *
 * The vocabulary has two shapes of top-level section, and until now only
 * one of them knew how wide it was allowed to be:
 *
 *   BANDS  .container_product_page[_grey] - full-bleed by design, paint
 *          edge to edge, and pay the gutter as their own padding-inline.
 *
 *   BOXES  .vlastnosti-slider-wrapper, .responsive-banner_full_round,
 *          .responsive-banner_product_guide - capped at the shell and
 *          PAINTED (background, 30px radius, a scroll track). Their gutter
 *          cannot be padding, because padding is inside the paint: it has
 *          to be expressed as the width they are allowed to reach.
 *
 * Boxes carried `max-width: var(--mitode-shell); margin-inline: auto` and
 * nothing else, so below the shell width they were exactly as wide as
 * their parent and their gutter came from WHOEVER HAPPENED TO WRAP THEM.
 * Measured on 08.09.2026, the same three components on the same site:
 *
 *   route                          320   360   390   430   1440
 *   category (inside .mitode-shell)  16    16    16  17.2    100
 *   product  (inside .mitode-longdesc--sections)
 *                                     0     0     0   0.2     60
 *
 * The category page is not more correct - it is luckier. Its wrapper is a
 * .mitode-shell, which pays a gutter; the product page's wrapper is
 * deliberately full-bleed, because bands need it to be, and so the boxes
 * that are not bands ran to the edge of the phone.
 *
 * THE FIX IS A CONSTRAINT, NOT A PADDING, AND IT IS ONE RULE.
 *
 *   max-width: min(var(--mitode-shell), 100% - 2 * var(--mitode-gut-self))
 *
 * `100%` is the parent's content width, so the box can never come closer
 * to it than one gutter, at any viewport, under any wrapper. Above the
 * shell width the shell cap wins and `margin-inline: auto` centres it, so
 * the desktop geometry is byte-for-byte what it was.
 *
 * `--mitode-gut-self` IS WHAT STOPS THE GUTTER BEING PAID TWICE.
 *
 * It is the gutter THIS element still owes. Any wrapper that has already
 * paid one - the site shell, a band, a band inner - sets it to 0 for its
 * subtree, so a box inside them keeps the wrapper's gutter and adds none.
 * A new wrapper in a cloned market gets the behaviour by declaring the
 * same thing; nothing here knows about a page, a product or a banner.
 *
 * Scroll-snap footnote: a rail's own track pads by a gutter, but
 * `scroll-snap-type: x mandatory` aligns the first card to the SCROLL
 * CONTAINER's content edge and eats it (measured: scrollLeft settles at
 * exactly one gutter on both routes). So the inset has to be on the
 * scroller, which is what this rule does - the track padding still gives
 * the last card its trailing space.
 */
:root {
	--mitode-gut-self: var(--mitode-gut, clamp(1rem, 4vw, 2.5rem));
}

/*
 * Wrappers that have already paid the gutter. Listed here rather than in
 * each wrapper's own stylesheet so the contract is readable in one place;
 * a wrapper is on this list if and only if it insets its children.
 */
.mitode-shell,
.mitode-band__inner,
.container_product_page,
.container_product_page_grey {
	--mitode-gut-self: 0px;
}

/*
 * W65-B - AUTHORED CONTENT IS BORDER-BOX, BECAUSE THE SOURCE IS.
 *
 * main.css resets box-sizing per class (`[class^="mitode-"]`, and each of
 * the vocabulary classes in this file). Arbitrary markup INSIDE a section
 * therefore keeps the CSS default, content-box - and the source pack's HTML
 * is written against a platform with a global border-box reset. So a block
 * the editor wrote as
 *
 *     <div style="width:100%;padding:24px;border:1px solid #eceff3">
 *
 * computes 50 px wider than the column it is in. Measured on the ear-loops
 * product page at 834: parent 752, child 802, and the document scrolled
 * sideways by 17 px. The same markup on the source platform does not,
 * which is the whole point of calling the markup a portable contract.
 *
 * The reset is scoped to the containers of the vocabulary, so it reaches
 * every authored block and nothing else - not WooCommerce Blocks, not a
 * plugin's markup, not the theme chrome that already has its own rule.
 *
 * This is the same defect main.css:224 documents for the theme's own
 * chrome, one layer further in.
 */
:is(
	.container_product_page,
	.container_product_page_grey,
	.vlastnosti-slider-wrapper,
	.responsive-banner_full_round,
	.responsive-banner_product_guide,
	.responsive-banner_split_category_textvlavo,
	.mitode-longdesc--sections,
	.mitode-category-content__inner
) *,
:is(
	.container_product_page,
	.container_product_page_grey,
	.vlastnosti-slider-wrapper,
	.responsive-banner_full_round,
	.responsive-banner_product_guide,
	.responsive-banner_split_category_textvlavo,
	.mitode-longdesc--sections,
	.mitode-category-content__inner
) *::before,
:is(
	.container_product_page,
	.container_product_page_grey,
	.vlastnosti-slider-wrapper,
	.responsive-banner_full_round,
	.responsive-banner_product_guide,
	.responsive-banner_split_category_textvlavo,
	.mitode-longdesc--sections,
	.mitode-category-content__inner
) *::after {
	box-sizing: border-box;
}

/* The one rule. Every shell-capped, painted section of the vocabulary. */
.vlastnosti-slider-wrapper,
.responsive-banner_full_round,
.responsive-banner_product_guide {
	width: 100%;
	max-width: min(var(--mitode-shell, 1320px), 100% - 2 * var(--mitode-gut-self, clamp(1rem, 4vw, 2.5rem)));
	margin-inline: auto;
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------
 * 1. Bands
 * ------------------------------------------------------------------ */

.container_product_page,
.container_product_page_grey {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding-block: clamp(2rem, 4vw, 2.5rem);
	padding-inline: var(--mitode-gut, clamp(1rem, 4vw, 2.5rem));
}

/*
 * W65-B - a band nested inside a wrapper that already paid the gutter.
 *
 * NOT `var(--mitode-gut-self)` on the rule above, and the reason is worth
 * writing down: a custom property set ON an element is also read BY that
 * element, whatever the source order. `.container_product_page` is on the
 * paying-wrappers list (it insets its own children), so reading
 * --mitode-gut-self for its own padding would resolve to its own 0px and
 * every band on the site would lose its gutter. The descendant selector
 * says the same thing without the self-reference.
 *
 * The product page keeps bands full-bleed, which is the design; this is
 * for a category or a page whose authored HTML lands inside the shell.
 */
:is(.mitode-shell, .mitode-band__inner) :is(.container_product_page, .container_product_page_grey) {
	padding-inline: 0;
}

.container_product_page_grey {
	background-color: rgba(0, 0, 0, .03);
}

/* the source relies on the tab pane for its width; here the band is
   full-bleed, so the inner wrapper carries the shell */
.overlay-content_product_page {
	width: 100%;
	max-width: var(--mitode-shell, 1320px);
	margin-inline: auto;
	box-sizing: border-box;
}

.center_row_product_page {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 1.25rem .625rem;
}

/* ---------------------------------------------------------------------
 * 2. Two-column rows
 * ------------------------------------------------------------------ */

.columns_wrapper_product_page {
	display: flex;
	flex-wrap: nowrap;
	gap: clamp(1.25rem, 2.4vw, 1.875rem);
	margin-top: 1.25rem;
	align-items: center;
}

.left_column_product_page,
.right_column_product_page {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	text-align: left;
}

.left_column_product_page > *:not(:last-child),
.right_column_product_page > *:not(:last-child) { margin-bottom: .3rem; }

.left_column_product_page img,
.right_column_product_page img {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: cover;
	border-radius: var(--mitode-radius-lg, 20px);
}

@media (max-width: 950px) {
	.columns_wrapper_product_page { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------------
 * 3. Typography inside the sections
 * ------------------------------------------------------------------ */

.center_row_product_page :is(h1, h2),
.left_column_product_page :is(h1, h2),
.right_column_product_page :is(h1, h2) {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	margin: 0 0 .35rem;
	letter-spacing: -.01em;
}

.center_row_product_page h3,
.left_column_product_page h3,
.right_column_product_page h3 {
	font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	margin: 0 0 .35rem;
}

.center_row_product_page :is(p, li, div),
.left_column_product_page :is(p, li, div),
.right_column_product_page :is(p, li, div) {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast-2, #4d4d4d);
}

.center_row_product_page p,
.left_column_product_page p,
.right_column_product_page p { margin: 0 0 .5rem; }

.center_row_product_page strong,
.left_column_product_page strong,
.right_column_product_page strong,
.center_row_product_page b,
.left_column_product_page b,
.right_column_product_page b { color: var(--wp--preset--color--contrast, #0f0f0f); font-weight: 700; }

.left_column_product_page :is(ul, ol),
.right_column_product_page :is(ul, ol),
.center_row_product_page :is(ul, ol) { margin: .35rem 0 .5rem; padding-left: 1.15rem; }

.left_column_product_page li,
.right_column_product_page li,
.center_row_product_page li { margin-block: .3rem; }

/*
 * W27.4 - THIS RULE IS FOR BODY-COPY LINKS, AND ONLY FOR THOSE.
 *
 * Without the exclusion it is (0,1,1) and out-specifies `.buttonred`
 * (0,1,0), so every CTA the source content drops into one of these columns
 * was painted in the accent red it already uses as its BACKGROUND. Measured
 * on /produkt/mitochondriak-maxi/: color rgb(248,1,32) on background
 * rgb(248,1,32), contrast ratio 1.0 - the "empty red buttons" the owner
 * reported. The label was in the DOM the whole time ("Zertifikate ansehen",
 * "So funktioniert die Rückgabe"); it was simply invisible.
 *
 * Confirmed by the browser's own cascade, not by inspection:
 * tools/w27-4/browser/cta-rules.mjs reads CSS.getMatchedStylesForNode and
 * named this selector as the last matching `color` rule.
 *
 * The `.buttonred`/`.buttonblack` colour declarations below are also raised
 * to `a.buttonred` for the same reason, so a component that can be dropped
 * anywhere out-specifies the containers it may land in.
 */
.left_column_product_page a:not([class*="button"]),
.right_column_product_page a:not([class*="button"]),
.center_row_product_page a:not([class*="button"]) { color: var(--wp--preset--color--accent, #f80120); }

/*
 * W43 - the same reset, one level up.
 *
 * The rule below covered a rule that sits INSIDE a source section. The v4
 * catalogue pack also puts one directly in the description body, written the
 * way the source authors it: `<hr size="50" width="100%">`. The legacy
 * `width` attribute makes it exactly as wide as its container and the UA's
 * default 1px border on each side then makes it two pixels wider - so five
 * product pages scrolled sideways by 2 px at EVERY width, which is a smaller
 * number than the table defect and just as much a horizontal scrollbar.
 * Zeroing the border is what removes the two pixels; the `border-top` is the
 * line itself.
 */
.container_product_page hr,
.container_product_page_grey hr,
.mitode-longdesc hr,
.mitode-category-content hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border, #dcdfe5);
	margin-block: 1.25rem;
	width: 100%;
	box-sizing: border-box;
}

/* the source centres some headings with a legacy <center> element */
.mitode-longdesc center { display: block; text-align: center; }
.tabulka-porovnanie-generacie-title {
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	margin: 0 0 .5rem;
}

/* ---------------------------------------------------------------------
 * 4. Image slider inside a column
 * ------------------------------------------------------------------ */

.image-slider_product_page {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: .625rem;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.image-slider_product_page::-webkit-scrollbar { display: none; }

.image-slider_product_page img {
	flex: 0 0 auto;
	width: calc(50% - 12px);
	max-height: 80vh;
	height: auto;
	object-fit: cover;
	border-radius: var(--mitode-radius-lg, 20px);
	scroll-snap-align: start;
}

/*
 * A single image never scrolls. Two images are sized to fit exactly, gap
 * included - the source rounds this to a flat 50% each, which with the 16 px
 * gap overflows by exactly one gap and, together with its overflow:hidden,
 * left the second image clipped and unreachable (measured 374 px of content
 * in a 358 px box at 390 px wide).
 */
.image-slider_product_page.img-count-1 { overflow-x: hidden; }
.image-slider_product_page.img-count-1 img,
.image-slider_product_page img:only-child { width: 100%; }
.image-slider_product_page.img-count-2 img { width: calc(50% - 8px); }

/* three or more: show one and two thirds, so the next one is visibly there */
@media (min-width: 951px) {
	.image-slider_product_page:not(.img-count-1):not(.img-count-2) img {
		width: 66.66%;
		max-height: 50vh;
	}
}
@media (max-width: 950px) and (min-width: 701px) {
	.image-slider_product_page:not(.img-count-1):not(.img-count-2) img { width: 33.33%; }
}
@media (max-width: 700px) {
	.image-slider_product_page:not(.img-count-1):not(.img-count-2) img { width: 66.66%; }
}

/* ---------------------------------------------------------------------
 * 5. Feature card rail ("vlastnosti")
 * ------------------------------------------------------------------ */

.vlastnosti-slider-wrapper {
	/* width, max-width and margin-inline: section 0, the horizontal contract */
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.vlastnosti-slider-wrapper::-webkit-scrollbar { display: none; }

.vlastnosti-slider-track {
	display: flex;
	gap: 1.25rem;
	padding: 1.25rem var(--mitode-gut, clamp(1rem, 4vw, 2.5rem));
	justify-content: flex-start;
	align-items: stretch;
}

.vlastnosti-slider-wrapper-column {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--base, #ffffff);
	border: 1px solid var(--wp--preset--color--border, #dcdfe5);
	border-radius: 15px;
	box-shadow: var(--mitode-shadow-card, 0 6px 12px rgba(15, 15, 15, .08));
	scroll-snap-align: start;
}

/* 3.5 / 2.5 / 1.5 cards in view - the half card is what says "scrollable" */
@media (min-width: 951px) {
	.vlastnosti-slider-wrapper-column { width: calc((100% - 40px) / 3.5); }
	/* three or fewer fit: centre them instead of leaving a gap on the right */
	.vlastnosti-slider-track:not(:has(> .vlastnosti-slider-wrapper-column:nth-child(4))) { justify-content: center; }
}
@media (max-width: 950px) and (min-width: 701px) {
	.vlastnosti-slider-wrapper-column { width: calc((100% - 20px) / 2.5); }
	.vlastnosti-slider-track:not(:has(> .vlastnosti-slider-wrapper-column:nth-child(3))) { justify-content: center; }
}
@media (max-width: 700px) {
	.vlastnosti-slider-wrapper-column { width: calc(100% / 1.5); }
	.vlastnosti-slider-track:not(:has(> .vlastnosti-slider-wrapper-column:nth-child(2))) { justify-content: center; }
}

/* 3:2 image box */
.vlastnosti-slider-image-container {
	position: relative;
	width: 100%;
	padding-top: 66.6667%;
	overflow: hidden;
	background: var(--wp--preset--color--surface, #f5f6f8);
}
/*
 * W79-B - A CARD WITHOUT A PICTURE SHOWS ITS TEXT, NOT A GREY 3:2 BOX.
 *
 * The container above reserves a 3:2 box by padding, which is right when
 * an image fills it and wrong when nothing does: Office's third
 * "Voreingestellte Programme" card arrives from the source with an EMPTY
 * image container (raw post_content, not a render step - measured W79-B,
 * docs/qa/w79b/08-content-image-audit.txt) and drew a blank grey slab the
 * owner's screenshot flagged. The picture itself is a content gap for the
 * copywriter pass; the slab is the theme's, and it goes. The mirror case -
 * a card with a picture and no text - is already pruned server-side
 * (inc/content-cards.php, W51). `:has()` rather than `:empty` so a stray
 * whitespace text node from the editor cannot keep the box.
 */
.vlastnosti-slider-image-container:not(:has(img, picture, video, iframe, svg)) {
	display: none;
}
.vlastnosti-slider-image-container img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vlastnosti-slider-overlay-content {
	background: var(--wp--preset--color--surface, #f5f6f8);
	padding: .9375rem;
	text-align: center;
	flex-grow: 1;
}
.vlastnosti-slider-overlay-content + .vlastnosti-slider-overlay-content { padding-top: 0; flex-grow: 1; }

.vlastnosti-slider-overlay-content :is(h1, h2, h3) {
	/* the source renders these at 22 px; scaled down a little because German
	   headings run longer and the cards here are 345 px rather than 362 px */
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	margin: 0 0 .625rem;
}
.vlastnosti-slider-overlay-content p,
.vlastnosti-slider-overlay-content li,
.vlastnosti-slider-overlay-content strong {
	font-size: .8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-2, #4d4d4d);
	margin: 0;
}
.vlastnosti-slider-overlay-content strong { color: var(--wp--preset--color--contrast, #0f0f0f); }
.vlastnosti-slider-overlay-content ul { margin: .35rem 0 0; padding-left: 1.1rem; text-align: left; }
.vlastnosti-slider-overlay-content li { margin-block: .25rem; }

/* ---------------------------------------------------------------------
 * 6. Banners
 * ------------------------------------------------------------------ */

/*
 * The source paints these with a photographic background JPEG hosted on the
 * Shoptet CDN. Here the default is a painted brand gradient, so the band
 * needs no external asset and cannot break when one is missing - but a
 * background <img> is still honoured when the markup carries one.
 */
.responsive-banner_full_round {
	position: relative;
	/* width, max-width and margin-inline: section 0, the horizontal contract */
	min-height: 150px;
	overflow: hidden;
	border-radius: 30px;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(120% 140% at 85% 15%, rgba(248, 1, 32, .16) 0%, rgba(248, 1, 32, 0) 60%),
		linear-gradient(135deg, var(--wp--preset--color--surface, #f5f6f8) 0%, #f7eaec 100%);
}
.responsive-banner_full_round > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
}
.responsive-banner_full_round .overlay-content {
	position: relative;
	z-index: 2;
	min-height: 150px;
	padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 10%, 5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.responsive-banner_full_round :is(h1, h2) {
	font-size: clamp(1.25rem, 2.6vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	margin: 0;
}
.responsive-banner_full_round p {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast-2, #4d4d4d);
	margin: .625rem 0;
	max-width: 62ch;
}

/* icon + text banner */
.responsive-banner_product_guide {
	position: relative;
	/* width, max-width and margin-inline: section 0, the horizontal contract */
	overflow: hidden;
	border-radius: var(--mitode-radius-lg, 20px);
	display: flex;
	justify-content: center;
	align-items: stretch;
	background:
		radial-gradient(120% 140% at 10% 20%, rgba(248, 1, 32, .14) 0%, rgba(248, 1, 32, 0) 62%),
		linear-gradient(135deg, #f7eaec 0%, var(--wp--preset--color--surface, #f5f6f8) 100%);
}
.responsive-banner_product_guide > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	display: none;
}
.img_ntb_product_guide { display: block; }
@media (max-width: 550px) {
	.responsive-banner_product_guide > .img_ntb_product_guide { display: none; }
	.responsive-banner_product_guide > .img_mobile_product_guide { display: block; }
}

.overlay-content_product_guide {
	position: relative;
	z-index: 2;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: clamp(1rem, 3vw, 2rem);
	padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4%, 2.5rem);
}
.column-left_product_guide {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
}
.column-left_product_guide .banner-icon {
	display: block;
	width: auto;
	height: auto;
	max-height: 180px;
	max-width: 100%;
	object-fit: contain;
}
.column-right_product_guide {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: .625rem;
}
.column-right_product_guide :is(h1, h2) {
	font-size: clamp(1.125rem, 2.2vw, 1.375rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	margin: 0;
}
.column-right_product_guide p {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast-2, #4d4d4d);
	margin: 0;
}
@media (max-width: 550px) {
	.overlay-content_product_guide { flex-direction: column; text-align: center; }
	.column-left_product_guide .banner-icon { max-height: 120px; }
}

/* ---------------------------------------------------------------------
 * 7. Buttons
 * ------------------------------------------------------------------ */

.button-row_center,
.button-row_product_page,
.button-row_product_guide {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: .9375rem;
}
.button-row_center,
.button-row_product_guide { justify-content: center; }
.button-row_product_page { justify-content: flex-start; }
@media (max-width: 700px) {
	.button-row_product_page { justify-content: center; }
}

.buttonred,
.buttonblack,
.buttonred_product_page,
.buttonblack_product_page,
.buttonred_product_guide,
.buttonblack_product_guide {
	display: inline-block;
	padding: .75rem 2rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	border: 2px solid transparent;
	border-radius: var(--mitode-radius-pill, 999px);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: var(--mitode-shadow-btn, 0 3px 6px rgba(15, 15, 15, .12));
	transition: background .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1)), transform .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1));
}
/*
 * W27.4: `a.` on the colour rules, deliberately.
 *
 * These buttons are placed by CONTENT, so they land inside containers this
 * sheet does not control. A bare `.buttonred` (0,1,0) loses to any
 * `.some_container a` (0,1,1) body-link rule - which is exactly how the
 * accent-on-accent CTA above happened. `a.buttonred` is (0,1,1) and, being
 * later in the sheet, survives that class of collision instead of
 * depending on nobody ever writing such a rule again.
 */
a.buttonred,
a.buttonred_product_page,
a.buttonred_product_guide,
.buttonred,
.buttonred_product_page,
.buttonred_product_guide {
	background: var(--wp--preset--color--accent, #f80120);
	color: #fff;
}
.buttonred:hover,
.buttonred_product_page:hover,
.buttonred_product_guide:hover {
	background: var(--wp--preset--color--accent-dark, #bb0101);
	color: #fff;
	transform: translateY(-1px);
}
a.buttonblack,
a.buttonblack_product_page,
a.buttonblack_product_guide,
.buttonblack,
.buttonblack_product_page,
.buttonblack_product_guide {
	background: var(--wp--preset--color--contrast, #0f0f0f);
	color: #fff;
}
.buttonblack:hover,
.buttonblack_product_page:hover,
.buttonblack_product_guide:hover { background: #000; color: #fff; transform: translateY(-1px); }

:is(.buttonred, .buttonblack, .buttonred_product_page, .buttonblack_product_page, .buttonred_product_guide, .buttonblack_product_guide):focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast, #0f0f0f);
	outline-offset: 3px;
}

@media (max-width: 700px) {
	.buttonred, .buttonblack,
	.buttonred_product_page, .buttonblack_product_page,
	.buttonred_product_guide, .buttonblack_product_guide { padding: .625rem 1.5rem; font-size: .875rem; }
}

/* ---------------------------------------------------------------------
 * 8. Rail arrows (progressive enhancement, assets/js/sections.js)
 * ------------------------------------------------------------------ */

.mitode-rail { position: relative; }
.mitode-rail__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--border, #dcdfe5);
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--wp--preset--color--contrast, #0f0f0f);
	cursor: pointer;
	box-shadow: var(--mitode-shadow-pop, 0 10px 28px rgba(15, 15, 15, .12));
	backdrop-filter: blur(4px);
	transition: background .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1)), opacity .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1));
}
.mitode-rail.is-scrollable .mitode-rail__btn { display: flex; }
.mitode-rail__btn[disabled] { opacity: .35; cursor: default; }
.mitode-rail__btn:not([disabled]):hover { background: #fff; }
.mitode-rail__btn:focus-visible { outline: 3px solid var(--wp--preset--color--accent, #f80120); outline-offset: 2px; }
.mitode-rail__btn--prev { left: .35rem; }
.mitode-rail__btn--next { right: .35rem; }
.mitode-rail__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* pointer-driven rails only: on touch the native swipe is the control */
@media (hover: none) {
	.mitode-rail.is-scrollable .mitode-rail__btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.image-slider_product_page,
	.vlastnosti-slider-wrapper { scroll-behavior: auto; }
	.buttonred, .buttonblack,
	.buttonred_product_page, .buttonblack_product_page,
	.buttonred_product_guide, .buttonblack_product_guide,
	.mitode-rail__btn { transition: none; }
	.buttonred:hover, .buttonblack:hover,
	.buttonred_product_page:hover, .buttonred_product_guide:hover { transform: none; }
}

/* ---------------------------------------------------------------------
 * 9. Host: the long-description wrapper when it holds authored sections
 * ------------------------------------------------------------------ */

/*
 * Authored sections are full-bleed bands that bring their own padding, so the
 * wrapper adds none. The anchor is an empty target offset by the sticky
 * header, so jumping to #beschreibung does not hide the first heading under it.
 */
.mitode-longdesc--sections { margin-block: 0; }
.mitode-longdesc--sections > .container_product_page:first-of-type { padding-block-start: clamp(2.25rem, 5vw, 3.5rem); }
.mitode-longdesc__anchor {
	display: block;
	height: 0;
	scroll-margin-top: calc(var(--mitode-header-h, 8rem) + 1rem);
}

/* stray empty paragraphs from the authoring tool must not open gaps */
.mitode-longdesc--sections > p:empty { display: none; }
/* W78-A: `margin-block`, not `margin` - the inline margin is the pane's (below). */
.mitode-longdesc--sections > p { margin-block: 0; }

/*
 * W78-A - LOOSE CONTENT AT THE TOP LEVEL OF THE HOST GETS THE PANE THE
 * SOURCE PLATFORM GIVES IT.
 *
 * The host is full-bleed on purpose: bands paint edge to edge and pay
 * their own gutter, boxes cap themselves (section 0). That contract
 * assumed every top-level child is one or the other. The catalogue is
 * not written that way. Measured on 14.09.2026 across every published
 * product whose description uses the vocabulary: 14 of 19 carry nodes
 * at the top level that are neither - a heading and its paragraphs
 * between two card rails (Office, Advanced, Maxi, Maxi UVB, mini), the
 * `mito-key-features` / `mito-trust-strip` / `mito-compare-mini`
 * components, a Shoptet `dm-flex` pair, an `<hr>`. On the source
 * platform those sit inside the tab pane, which is a padded container;
 * here they had no container at all, so they inherited the host's zero
 * inset and were laid out from the viewport edge. Owner's screenshot:
 * "Warum sollten Sie die neuen Mitochondriak® Geräte…" starting at x=0
 * on a 1440 px desktop; tools/w78a/browser/layout.mjs measured left=0 on
 * 4 of 5 products at every width, 0 px at 390 as well.
 *
 * THE FIX IS THE SAME CONSTRAINT SECTION 0 GIVES A BOX, applied to
 * whatever is left over: never wider than the shell, never closer to the
 * edge than the gutter this element still owes, centred. `width` rather
 * than `max-width`, deliberately - three of the loose nodes carry an
 * inline `max-width: 760px; margin: 30px auto 0` from the source, and an
 * inline max-width would win over a stylesheet max-width and let the
 * block fill the phone (760 > 390). A stylesheet `width` is not
 * contradicted by an inline max-width: the two compose, the smaller
 * wins, and the gutter survives on every width.
 *
 * Excluded: the two band classes and three box classes (they have their
 * own rule), the anchor (zero-height target), the cart popup overlay
 * (position: fixed - a width on it would break the dialog), and replaced
 * or empty elements a width would stretch. `:not()` rather than
 * `:where()` so the rule is (0,2,0): above `.mitode-longdesc hr` and
 * above the section-13 components' own `width: 100%`, whatever the
 * print order. The band and box geometry is untouched, byte for byte.
 */
.mitode-longdesc--sections > :not(
	.container_product_page,
	.container_product_page_grey,
	.vlastnosti-slider-wrapper,
	.responsive-banner_full_round,
	.responsive-banner_product_guide,
	.mitode-longdesc__anchor,
	.popup-overlay_JL,
	img, br, script, style
) {
	box-sizing: border-box;
	width: min(var(--mitode-shell, 1320px), 100% - 2 * var(--mitode-gut-self, clamp(1rem, 4vw, 2.5rem)));
	margin-inline: auto;
}

/* consecutive bands of the same colour read as one; alternate the seam */
.mitode-longdesc--sections .container_product_page + .container_product_page { padding-block-start: 0; }

/*
 * W9H - banners are inset boxes, not full-bleed bands, so they carry no
 * padding of their own. Without a margin the rounded bottom of the last
 * banner sat flush on the grey "Technische Daten" band that follows the
 * description (measured gap: 0 px), which read as a rendering fault.
 */
.mitode-longdesc--sections > .responsive-banner_full_round,
.mitode-longdesc--sections > .responsive-banner_product_guide {
	margin-block: clamp(1.5rem, 3.2vw, 2.5rem);
}

/*
 * A margin on the last child would collapse out through the wrapper, so the
 * closing gap is padding on the wrapper itself - but only when the section
 * flow really does end on a banner. A band already brings its own padding.
 */
.mitode-longdesc--sections:has(> .responsive-banner_full_round:last-child),
.mitode-longdesc--sections:has(> .responsive-banner_product_guide:last-child) {
	padding-block-end: clamp(2rem, 4vw, 3.25rem);
}


/* ---------------------------------------------------------------------
 * 10. Category promo tile (W9I)
 * ------------------------------------------------------------------ */

/*
 * The tile that closes the category grid. Class names and the visual
 * measurements are the source's (image wrapper radius 25 px, shadow
 * 0 2px 10px rgba(0,0,0,.08), overlay padding 40px 15px, content pinned to the
 * bottom, white pill button), so the same markup renders the same on both
 * platforms.
 *
 * One deliberate difference: the source fixes the tile at `height: 95vh`,
 * which only lines up with its own very tall product cards and would tower
 * over this grid. Here it simply fills its grid cell, so it always matches the
 * row it sits in - at any card height, on any screen.
 *
 * W9N.3 - the paint box. The source gives the tile `padding:10px` and paints
 * the artwork on `inset:10px`, because Shoptet's own product cells carry an
 * inner gutter it must match. This grid's cards paint to the edge of their
 * <li> (border + radius ON the li), so the same inset made the tile draw
 * 10 px smaller than every card in its row: DOM boxes measured 0-2 px apart
 * while the owner's screenshot showed a shrunken tile. The probe that only
 * reads getBoundingClientRect can never see this - the fix is in the paint,
 * padding/inset 0 and the cards' own radius, so the visible tile edge IS the
 * li edge, exactly like a card.
 */
.product-category-page_product-banner {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	padding: 0;
	min-height: 420px;
	height: 100%;
	overflow: hidden;
	list-style: none;
	border-radius: var(--mitode-radius-lg, 20px);
}

.product-category-page_product-banner_image-wrapper {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: var(--mitode-radius-lg, 20px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	overflow: hidden;
}

/*
 * Contrast scrim. The source artwork carries its own dark foot, but the tile
 * here is narrower, so the image crops differently and the white heading
 * landed on the bright product line-up. Painting the gradient guarantees the
 * text is legible whatever image a category sets, and at any tile size.
 */
.product-category-page_product-banner_image-wrapper::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 0, 2, 0) 8%, rgba(10, 0, 2, .35) 32%, rgba(10, 0, 2, .72) 58%, rgba(10, 0, 2, .88) 100%);
}

.product-category-page_product-banner_overlay {
	position: relative;
	z-index: 10;
	margin-top: auto;
	box-sizing: border-box;
	width: 100%;
	/* bottom = the cards' CTA inset, so the tile button stands on the same
	   foot line as the "In den Warenkorb" row beside it (W9N.3) */
	padding: 40px 15px var(--mitode-card-pad, 1rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	color: #fff;
}

.product-category-page_product-banner_overlay :is(h3, h4) {
	margin: 0 0 10px;
	font-size: clamp(1.25rem, 2.1vw, 1.875rem);
	font-weight: 700;
	line-height: 1.22;
	color: #fff;
}

.product-category-page_product-banner_overlay p {
	margin: 0 0 15px;
	padding: 0 15px;
	font-size: clamp(.875rem, 1.1vw, 1rem);
	line-height: 1.5;
	color: #f0f0f0;
}

/* white pill, same shape as the red/black buttons above */
.buttonCATEGORYwhite,
.buttonPULSEwhite {
	display: inline-block;
	padding: .85rem 2rem;
	border: 2px solid transparent;
	border-radius: var(--mitode-radius-pill, 999px);
	background: #fff;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: var(--mitode-shadow-btn, 0 3px 6px rgba(15, 15, 15, .12));
	transition: transform .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1)), background .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1));
}
.buttonCATEGORYwhite:hover,
.buttonPULSEwhite:hover { background: #fff; color: var(--wp--preset--color--accent, #f80120); transform: translateY(-1px); }
.buttonCATEGORYwhite:focus-visible,
.buttonPULSEwhite:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 960px) {
	.product-category-page_product-banner { min-height: 380px; }
}
@media (max-width: 767px) {
	.product-category-page_product-banner { min-height: 340px; }
	.product-category-page_product-banner_overlay { padding: 28px 12px; }
}

/*
 * W53 - THE TILE ON A PHONE, BESIDE THE COMPACT CARD.
 *
 * Measured before this block, on the category archive at 390 / 360 / 320:
 * the heading, the paragraph and the button each measured 185.75px inside
 * a 171px tile and ran 26px past its right edge, where the tile's own
 * overflow:hidden cut them. The cause is the same one that clipped the
 * product cards: the overlay is a flex column, its children default to
 * `min-width: auto` = min-content, and a German compound like
 * "Produktratgeber" plus a 2rem-padded pill simply does not have a
 * min-content that fits a 147px content box.
 *
 * So the children are allowed to shrink, the words are allowed to break
 * at real syllable boundaries, and the type comes down to a size that
 * belongs beside a 14px card title rather than above it.
 */
@media (max-width: 600px) {
	.product-category-page_product-banner { min-height: 0; }

	.product-category-page_product-banner_overlay {
		padding: 2rem .625rem .625rem;
		align-items: stretch;
	}
	.product-category-page_product-banner_overlay > * { min-width: 0; max-width: 100%; }

	.product-category-page_product-banner_overlay :is(h3, h4) {
		margin-bottom: .35rem;
		font-size: 1rem;
		line-height: 1.25;
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.product-category-page_product-banner_overlay p {
		margin-bottom: .6rem;
		padding: 0;
		font-size: .75rem;
		line-height: 1.4;
		hyphens: auto;
		overflow-wrap: break-word;
	}
	.product-category-page_product-banner .buttonCATEGORYwhite {
		display: block;
		padding: .5rem .5rem;
		font-size: .75rem;
		line-height: 1.3;
		hyphens: auto;
		overflow-wrap: break-word;
	}
}

@media (prefers-reduced-motion: reduce) {
	.buttonCATEGORYwhite, .buttonPULSEwhite { transition: none; }
	.buttonCATEGORYwhite:hover, .buttonPULSEwhite:hover { transform: none; }
}

/* ---------------------------------------------------------------------
 * 11. Category hero split banner (W9N.3)
 * ------------------------------------------------------------------ */

/*
 * The source category opens with `.responsive-banner_split_category_textvlavo`:
 * one full-width photograph behind, the copy in a left column of 70%, two
 * icon pill buttons below. Measurements from the archived
 * JL_Responsive_containers_and_banners.css (docs/reference/mitochondriak-com):
 * overlay padding 40px/10%, H1 20pt, p 12pt capped at 600px, icon 28px.
 *
 * Deliberately NOT ported: the source's `width:100vw;
 * margin-left:calc(-50vw + 50%)` full-bleed hack - that is what gives the
 * source page its own 8px horizontal overflow at 1440. This block sits
 * directly in <main>, outside .mitode-shell, so it is full-width already;
 * the overlay re-centres the copy on the shell grid instead.
 */
.responsive-banner_split_category_textvlavo {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: block;
}

.image-wrapper_category_textvlavo {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/*
 * Scoped under the wrapper on purpose: the theme's own `img {height:auto}`
 * and WooCommerce's `.woocommerce img {height:auto}` are (0,1,1) and beat a
 * bare class - measured at 390 px as a banner photo 177 px tall floating on
 * the gradient while the copy ran over its dark half. (0,2,0) restores the
 * cover behaviour. object-position stays default center, like the source -
 * pinning the right edge kept the dark photography under the mobile copy.
 */
.image-wrapper_category_textvlavo .banner-image_category_textvlavo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.overlay-content_category_textvlavo {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	max-width: var(--mitode-shell, 1320px);
	margin-inline: auto;
	padding: clamp(2rem, 4vw, 3.25rem) var(--mitode-gut-self, var(--mitode-gut, 20px));
	color: var(--wp--preset--color--contrast, #0f0f0f);
}

.overlay-content_category_textvlavo .column_category_textvlavo { flex: 1; }

.overlay-content_category_textvlavo .left {
	flex-basis: 70%;
	max-width: 70%;
	text-align: left;
}

.overlay-content_category_textvlavo .left h1,
.overlay-content_category_textvlavo .left h2,
.overlay-content_category_textvlavo .left p {
	color: inherit;
	margin: 0 0 15px;
}

/* 20pt in the source; kept close, on the site's type scale */
.overlay-content_category_textvlavo .left h1 { font-size: clamp(1.375rem, 2.4vw, 1.6875rem); line-height: 1.2; font-weight: 700; }
.overlay-content_category_textvlavo .left h2 { font-size: clamp(1.25rem, 2.1vw, 1.5rem); }
.overlay-content_category_textvlavo .left p { font-size: 1rem; line-height: 1.6; max-width: 600px; }
.overlay-content_category_textvlavo .left p:last-of-type { margin-bottom: 0; }

.button-row_category_textvlavo {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 1.1rem;
}

.buttonCATEGORYred,
.buttonCATEGORYblack {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	max-width: 100%;
	padding: 12px clamp(1.25rem, 3vw, 2.5rem);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: var(--mitode-radius-pill, 999px);
	box-shadow: var(--mitode-shadow-btn, 0 3px 6px rgba(15, 15, 15, .12));
	transition: background .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1)), transform .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1));
}
.buttonCATEGORYred { background: var(--wp--preset--color--accent, #f80120); color: #fff; }
.buttonCATEGORYred:hover { background: var(--wp--preset--color--accent-dark, #bb0101); color: #fff; transform: translateY(-1px); }
.buttonCATEGORYblack { background: var(--wp--preset--color--contrast, #0f0f0f); color: #fff; }
.buttonCATEGORYblack:hover { background: #000; color: #fff; transform: translateY(-1px); }
.buttonCATEGORYred:focus-visible,
.buttonCATEGORYblack:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast, #0f0f0f);
	outline-offset: 3px;
}

.buttonCATEGORYred .button-icon,
.buttonCATEGORYblack .button-icon,
.buttonCATEGORYwhite .button-icon {
	height: 28px;
	width: auto;
	margin-right: 8px;
	vertical-align: middle;
}

@media (max-width: 960px) {
	.overlay-content_category_textvlavo { padding-block: 1.5rem; }
	.overlay-content_category_textvlavo .left { flex-basis: 100%; max-width: 100%; }
	.buttonCATEGORYred, .buttonCATEGORYblack { padding: 10px 1.5rem; font-size: .875rem; }
}

@media (max-width: 767px) {
	.overlay-content_category_textvlavo .left h1 { font-size: 1.25rem; }
	.overlay-content_category_textvlavo .left p { font-size: .9375rem; }
	.buttonCATEGORYred, .buttonCATEGORYblack { font-size: .8125rem; }
	.buttonCATEGORYred .button-icon, .buttonCATEGORYblack .button-icon { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.buttonCATEGORYred, .buttonCATEGORYblack { transition: none; }
	.buttonCATEGORYred:hover, .buttonCATEGORYblack:hover { transform: none; }
}

/* ---------------------------------------------------------------------
 * 12. Cart popup (W9N.3)
 * ------------------------------------------------------------------ */

/*
 * The brand popup, class-compatible with the source's JL_popup.css
 * (archived in docs/reference/mitochondriak-com/css/): fixed overlay,
 * rounded white panel, red/black pill pair. Adapted onto the theme tokens;
 * the recommendation rail is this theme's addition and carries mitode-
 * classes only.
 */
.popup-overlay_JL {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, .6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 99999;
	overflow: auto;
	padding: 1rem;
}

.popup-content_JL {
	background-color: #fff;
	border-radius: 30px;
	padding: 28px 24px 24px;
	max-width: 800px;
	width: 92%;
	box-shadow: var(--mitode-shadow-pop, 0 10px 28px rgba(0, 0, 0, .12));
	text-align: center;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.popup-close_JL {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	padding: 4px 8px;
	border-radius: var(--mitode-radius, 8px);
}
.popup-close_JL:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast, #0f0f0f);
	outline-offset: 2px;
}

.button-row_center_popup_JL {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 20px;
	justify-content: center;
}

.buttonred_popup_JL,
.buttonblack_popup_JL {
	border: 2px solid transparent;
	border-radius: var(--mitode-radius-pill, 999px);
	padding: 12px 32px;
	font: inherit;
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	display: inline-block;
	transition: background .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1)), transform .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1));
	box-shadow: var(--mitode-shadow-btn, 0 3px 6px rgba(15, 15, 15, .12));
}
.buttonred_popup_JL { background-color: var(--wp--preset--color--accent, #f80120); color: #fff !important; }
.buttonred_popup_JL:hover { background-color: var(--wp--preset--color--accent-dark, #bb0101); transform: translateY(-1px); }
.buttonblack_popup_JL { background-color: var(--wp--preset--color--contrast, #0f0f0f); color: #fff !important; }
.buttonblack_popup_JL:hover { background-color: #000; transform: translateY(-1px); }
.buttonred_popup_JL:focus-visible,
.buttonblack_popup_JL:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast, #0f0f0f);
	outline-offset: 3px;
}

/* confirmation head */
.mitode-cart-popup__check {
	margin: 0 auto .5rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--success, #009901);
	color: #fff;
	font-size: 1.5rem;
	line-height: 44px;
	font-weight: 700;
}
.mitode-cart-popup__title {
	margin: 0 0 .35rem;
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	color: var(--wp--preset--color--contrast, #0f0f0f);
}
.mitode-cart-popup__product {
	margin: 0;
	color: var(--wp--preset--color--contrast-2, #40424e);
	font-weight: 500;
}

/* recommendation rail */
.mitode-cart-popup__related { margin-top: 1.5rem; }
.mitode-cart-popup__related-title {
	margin: 0 0 .9rem;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--contrast, #0f0f0f);
}
.mitode-cart-popup__rail {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.mitode-cart-popup__item { min-width: 0; }
.mitode-cart-popup__link {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--border, #e3e5ea);
	border-radius: var(--mitode-radius-lg, 20px);
	background: #fff;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	transition: box-shadow .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1)), border-color .18s var(--mitode-ease, cubic-bezier(.2, .7, .3, 1));
	height: 100%;
	box-sizing: border-box;
}
.mitode-cart-popup__link:hover {
	box-shadow: var(--mitode-shadow-card, 0 6px 12px rgba(0, 0, 0, .08));
	border-color: #c9cdd6;
}
/*
 * W9N.4 - the media box is now a positioning context, so the badge stack
 * can sit over the thumbnail exactly as it does on a listing card.
 */
.mitode-cart-popup__media { position: relative; display: block; }
.mitode-cart-popup__link img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--mitode-radius, 8px);
	background: var(--wp--preset--color--surface, #f5f6f8);
	display: block;
}
.mitode-cart-popup__flags .mitode-pbadges { top: .4rem; left: .4rem; gap: .25rem; }
.mitode-cart-popup__flags .mitode-pbadge { font-size: .625rem; padding: .2rem .45rem; }
.mitode-cart-popup__name {
	font-size: .8125rem;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mitode-cart-popup__price { font-size: .875rem; font-weight: 700; }
.mitode-cart-popup__price del { color: var(--wp--preset--color--contrast-3, #7c7e8f); font-weight: 400; margin-right: .35em; }
.mitode-cart-popup__price ins { text-decoration: none; color: var(--wp--preset--color--accent, #f80120); }

@media (max-width: 600px) {
	.popup-content_JL { padding: 24px 16px 16px; }
	.mitode-cart-popup__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.button-row_center_popup_JL { gap: 12px; }
	.buttonred_popup_JL, .buttonblack_popup_JL { padding: 10px 8vw; font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
	.buttonred_popup_JL, .buttonblack_popup_JL, .mitode-cart-popup__link { transition: none; }
	.buttonred_popup_JL:hover, .buttonblack_popup_JL:hover { transform: none; }
}

/* ---------------------------------------------------------------------
 * W27 - a table in editorial content scrolls inside its own box.
 *
 * THE DEFECT. The Office product page carries a comparison table from the
 * source ("Mitochondriak® Office" against typical panels). At 390 px it is
 * 465 px wide, so the DOCUMENT was 465 px wide and the whole page scrolled
 * sideways - the one thing this shop's layout rule forbids at every width.
 * Measured before the fix: scrollWidth 465, clientWidth 390, overflow 75 px,
 * and the offending boxes were the <th>/<td> of that table.
 *
 * WHY IT IS SOLVED HERE AND NOT IN PHP. main.css already has a working rule,
 * but it applies to `.mitode-longdesc__table`, a wrapper the BAND PARSER
 * emits. Content that carries the section vocabulary takes the pass-through
 * branch instead, and the contract (section 10) is explicit that the
 * renderer must not re-parse that content - a parser that chops editorial
 * HTML into theme wrappers destroys exactly the parity this vocabulary
 * exists for. So the fix belongs in the stylesheet, where it also holds on
 * the Shoptet side of the contract.
 *
 * `display: block` turns the table into its own scroll container; the rows
 * keep their layout in an anonymous table box, and `width: max-content`
 * stops the columns from being squeezed into the viewport.
 *
 * W43 - AND THE SOURCE'S OWN `min-width` HAS TO GO WITH IT.
 *
 * The v4 catalogue pack authors its comparison tables with an inline
 * `style="width: 100%; min-width: 620px"`. `min-width` beats `max-width` in
 * the cascade AND an inline declaration beats a stylesheet one, so the rule
 * above stopped working the moment that content landed: the table's own box
 * could not shrink below 620 px and the DOCUMENT scrolled sideways again at
 * 430, 390 and 360 px - the same defect this block was written to fix, from
 * a new direction. Measured on /produkt/mitochondriak-office/ at 390 px:
 * overflow 231 px, culprit `div.mito-compare-mini > table`, `min-width:
 * 620px`.
 *
 * `!important` is load-bearing here and not laziness: nothing else can
 * outrank an inline style. The intent behind the source's min-width is not
 * lost - `width: max-content` still lays the columns out at their natural
 * width, and the overflow now scrolls inside the table instead of taking the
 * page with it.
 * ------------------------------------------------------------------ */

.mitode-longdesc table,
.mitode-category-content table,
.overlay-content_product_page table {
	display: block;
	width: max-content;
	max-width: 100%;
	min-width: 0 !important;
	/*
	 * W78-A - `!important` here for the same reason as min-width above.
	 * One record (Maxi UVB) authors its two comparison tables with an
	 * inline `border-radius: 18px; overflow: hidden` for the rounded
	 * corners. Inline beats the rule, the table's overflow computed to
	 * hidden, and at 390 px the third column ("Typische
	 * Vergleichsprodukte") was cut off with no way to reach it - clipped,
	 * not scrolled. A scroll container clips to its border-radius just
	 * the same, so the corners the source wanted survive.
	 */
	overflow-x: auto !important;
	border-collapse: collapse;
}

.mitode-longdesc table th,
.mitode-longdesc table td,
.mitode-category-content table th,
.mitode-category-content table td,
.overlay-content_product_page table th,
.overlay-content_product_page table td {
	padding: .7rem .9rem;
	text-align: left;
	border-bottom: 1px solid var(--wp--preset--color--border, rgba(0, 0, 0, .12));
}

/* ---------------------------------------------------------------------
 * W47 - CONTENT ICONS
 *
 * The drawing is injected into the tile the content pack already styled,
 * so this stylesheet must NOT restate the tile: its size, radius, pastel
 * fill and shadow are inline attributes of the author's markup and the
 * icon simply fills them. All this rule does is make the glyph sit in the
 * middle at a sensible size and take the brand colour.
 *
 * Size is 55% of the tile, expressed in the tile's own font-size-free
 * terms: the wrapper is the flex child of a box whose width is fixed in
 * px, so `width: 55%` scales with whatever tile the author drew - 46px
 * tiles get a 25px icon, and a 64px tile gets 35px, with no breakpoints.
 *
 * The stroke is NOT scaled down with the icon. A vector stroke that
 * shrinks with its box goes thin and grey at 25px; `vector-effect:
 * non-scaling-stroke` is the wrong tool here (it fixes the stroke to
 * device pixels and breaks zoom), so the drawings are authored at a
 * weight that reads at tile size and the box does the scaling.
 * ------------------------------------------------------------------ */

.mitode-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 55%;
	height: 55%;
	max-width: 32px;
	max-height: 32px;
	color: var(--wp--preset--color--accent, #f80120);
	flex: 0 0 auto;
	line-height: 0;
}

.mitode-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	/* The drawings are stroke geometry on `currentColor`; an inherited
	   `fill` from a content style would flood them solid. */
	fill: none;
	stroke: currentColor;
}

/*
 * A tile whose own background is the brand red needs the glyph to be the
 * paper, not the ink. The pack uses `background: #f80120` on exactly
 * those, so match on the inline value rather than adding a class the
 * content does not carry.
 */
[style*="background: #f80120"] > .mitode-icon,
[style*="background:#f80120"] > .mitode-icon,
[style*="background: rgb(248, 1, 32)"] > .mitode-icon {
	color: #fff;
}

@media (forced-colors: active) {
	.mitode-icon { color: CanvasText; }
}

/*
 * W50 - THE GOOGLE TRANSLATE ARTIFACT THAT MADE ONE PAGE SCROLL SIDEWAYS.
 *
 * Four imported descriptions carry
 *
 *   <div id="gtx-trans" style="position: absolute; left: 542px; …"> </div>
 *
 * left behind in the source HTML by the Google Translate BROWSER
 * EXTENSION on the machine the content was authored on. It is empty apart
 * from one space, so it draws nothing - but it is absolutely positioned at
 * a hard-coded 542 px, which sets the document's scroll width on any
 * viewport narrower than that. Measured on
 * /produkt/mitochondriak-uv-portable/ at 390: scrollWidth 546, i.e. 156 px
 * of horizontal scrolling on a phone, with and without JavaScript.
 *
 * Hidden here rather than deleted from the four rows: it is somebody
 * else's stray markup, the descriptions are the imported record, and a
 * CSS rule fixes every future import of the same artifact as well. It
 * carries a single space, so `:empty` does not match it - the id is the
 * precise handle and it is the extension's own fixed id.
 */
#gtx-trans { display: none !important; }

/* ---------------------------------------------------------------------
 * 13. W68 - the four `mito-*` components, styled once instead of 2 245 times
 * ------------------------------------------------------------------ */

/*
 * WHAT THESE ARE. The four categories the DE shop added after the Shoptet
 * import (Besser schlafen, Blaulichtfilter-Brillen, Innenbeleuchtung,
 * Grounding-Barfußschuhe) and eighteen product descriptions carry a second
 * component vocabulary that this stylesheet never knew about:
 *
 *   .mito-faq-list        a question/answer list
 *   .mito-key-features    an eyebrow + heading + intro over a card row
 *   .mito-trust-strip     a row of bordered promise tiles
 *   .mito-product-params  a parameter panel
 *
 * They rendered - because every single one of them carried its whole layout
 * in `style=""` attributes. Measured across the stored content on
 * 09.09.2026: 2 245 inline style attributes, and the SAME component written
 * differently in almost every record that uses it:
 *
 *   .mito-faq-list      max-width 860px (11×) / 900px (1×);
 *                       margin 26px (11×) / 28px (1×); grid in two records,
 *                       flex in another two
 *   .mito-trust-strip   minmax(280px, 360px) / minmax(280px, 1fr) /
 *                       minmax(240px, 1fr); gap 16px / 12px; grid and flex
 *   heading             font-size 20px (6×) / 21px (1×) / 26px / 28px
 *
 * That is why /produkt-kategorie/innenbeleuchtung/ and
 * /produkt-kategorie/rotlichttherapie/ do not look like the same shop: the
 * one had a component and the other had a paragraph, and where both had one
 * they were two hand-typed approximations of it.
 *
 * WHY THIS BELONGS HERE AND NOT IN THE CONTENT. An inline style cannot
 * answer to a breakpoint, cannot read a design token, and cannot be
 * corrected anywhere except in every row that repeats it. `#f80120` written
 * out 11 times is the brand red with no way to change the brand red. The
 * geometry below is the value that appears most often in the source, so the
 * majority of records keep exactly the rendering they have today and the
 * outliers stop being outliers.
 *
 * ORDER. Appended to a stylesheet that is already enqueued, deliberately -
 * W53 measured that adding one more enqueue re-sorted main.css by nine slots
 * and changed 119 elements. Nothing here changes the load order.
 *
 * Migration 03-normalise-components.php removes the inline attributes these
 * rules replace. Until it has run for a given row, the inline style still
 * wins on specificity and that row renders exactly as before - so this file
 * is safe on its own.
 */

.mito-faq-list,
.mito-key-features,
.mito-trust-strip,
.mito-product-params {
	/* Never wider than the gutter allows. See section 0. */
	width: 100%;
	max-width: min(100%, 1080px);
	margin-inline: auto;
	box-sizing: border-box;
}

/* --- FAQ list ----------------------------------------------------- */

.mito-faq-list {
	max-width: min(100%, 860px);
	margin-block: 1.625rem 0;
	text-align: left;
}
.mito-faq-list > div {
	padding-block: 1.125rem;
	border-bottom: 1px solid var(--wp--preset--color--border, #dcdfe5);
}
.mito-faq-list > div:last-child {
	border-bottom: 0;
}
.mito-faq-list :is(h2, h3, h4) {
	margin: 0 0 .5rem;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	font-size: 1.125rem;
	line-height: 1.35;
}
.mito-faq-list p {
	margin: 0;
	color: var(--wp--preset--color--contrast-2, #4d4d4d);
	font-size: .9375rem;
	line-height: 1.65;
}

/*
 * Two records author the same list as a row of cards rather than a stack.
 * That is a real second shape, not drift - it carries an explicit card
 * background in the source - so it keeps its own modifier instead of being
 * flattened into the stack above.
 */
.mito-faq-list--cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1rem;
	max-width: min(100%, 900px);
}
.mito-faq-list--cards > div {
	flex: 1 1 22.5rem;
	max-width: 26.875rem;
	min-width: 0;
	padding: 1.375rem 1.25rem;
	border: 1px solid var(--wp--preset--color--border, #dcdfe5);
	border-bottom: 1px solid var(--wp--preset--color--border, #dcdfe5);
	border-radius: var(--mitode-radius-lg, 20px);
	background: var(--wp--preset--color--base, #fff);
	box-shadow: 0 10px 28px rgba(15, 15, 15, .05);
}

/* --- key features ------------------------------------------------- */

.mito-key-features {
	margin-block: 2.625rem;
	text-align: center;
}
.mito-key-features > div {
	max-width: min(100%, 47.5rem);
	margin: 0 auto 1.625rem;
}
.mito-key-features :is(h2, h3) {
	margin: 0 0 .5rem;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	font-size: clamp(1.375rem, 3vw, 1.625rem);
	line-height: 1.2;
}
.mito-key-features p {
	margin: 0;
	color: var(--wp--preset--color--contrast-3, #767676);
	font-size: .9375rem;
	line-height: 1.55;
}

/*
 * The eyebrow. Every record draws it as a filled accent pill; one draws it
 * as a tinted pill instead. Same element, so one rule, and the tinted
 * variant keeps its modifier.
 */
.mito-key-features > span,
.mito-key-features .mito-eyebrow {
	display: inline-block;
	margin-bottom: .625rem;
	padding: .375rem .875rem;
	border-radius: var(--mitode-radius-pill, 999px);
	background: var(--wp--preset--color--accent, #f80120);
	color: var(--wp--preset--color--base, #fff);
	font-size: .75rem;
	font-weight: 900;
	letter-spacing: .03em;
	text-transform: uppercase;
}

/* --- trust strip -------------------------------------------------- */

.mito-trust-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: 1rem;
	margin-block: 2.125rem;
	justify-content: center;
}
.mito-trust-strip > div {
	padding: 1.125rem;
	border: 1px solid var(--wp--preset--color--border, #dcdfe5);
	border-radius: var(--mitode-radius-lg, 20px);
	background: var(--wp--preset--color--base, #fff);
	box-shadow: 0 10px 26px rgba(15, 15, 15, .05);
	min-width: 0;
}
.mito-trust-strip :is(h2, h3) {
	margin: 0 0 .5rem;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	font-size: 1.25rem;
	line-height: 1.25;
}
.mito-trust-strip p {
	margin: 0 0 .75rem;
	color: var(--wp--preset--color--contrast-2, #4d4d4d);
}
.mito-trust-strip p:last-child {
	margin-bottom: 0;
}

/*
 * The accent tile. The source marks it with a pink hairline and ground
 * rather than a class; the migration gives it this modifier so the tint
 * survives the removal of the inline style. No token: it is a wash of the
 * accent, not one of the palette entries.
 */
.mito-trust-strip > .mito-tile--accent {
	border-color: #ffd3d8;
	background: #fff7f7;
}

/* --- product parameters ------------------------------------------- */

.mito-product-params {
	max-width: min(100%, 61.25rem);
	margin-block: 2.25rem;
	padding: 2rem 1.5rem;
	border: 1px solid var(--wp--preset--color--border, #dcdfe5);
	border-radius: 24px;
	background: linear-gradient(180deg, var(--wp--preset--color--surface, #f5f6f8) 0%, var(--wp--preset--color--base, #fff) 100%);
	box-shadow: 0 12px 30px rgba(15, 15, 15, .06);
}
.mito-product-params > div {
	max-width: min(100%, 37.5rem);
	margin: 0 auto 1.5rem;
	text-align: center;
}
.mito-product-params :is(h2, h3) {
	margin: 0 0 .375rem;
	color: var(--wp--preset--color--contrast, #0f0f0f);
	font-size: 1.375rem;
}
.mito-product-params p {
	margin: 0;
	color: var(--wp--preset--color--contrast-3, #767676);
	font-size: .875rem;
}
.mito-product-params > span {
	display: inline-block;
	margin-bottom: .625rem;
	padding: .3125rem .875rem;
	border-radius: var(--mitode-radius-pill, 999px);
	background: var(--wp--preset--color--accent, #f80120);
	color: var(--wp--preset--color--base, #fff);
	font-size: .6875rem;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/*
 * Phones. The source geometry is written in px and has no breakpoint at
 * all, which is the other half of why these blocks overflow: a
 * `minmax(280px, …)` track and a 22px padding do not fit a 390 px viewport
 * once the shell gutter is paid.
 */
@media (max-width: 599px) {
	.mito-faq-list > div,
	.mito-faq-list--cards > div,
	.mito-trust-strip > div {
		padding-inline: 1rem;
	}
	.mito-product-params {
		padding: 1.5rem 1rem;
	}
	.mito-key-features,
	.mito-trust-strip,
	.mito-product-params {
		margin-block: 1.75rem;
	}
}
