/* Credo Shop – seitenweit (Merkliste, Zähler-Badges). Farben/Schriften aus dem Bricks-Stylemanager (--c-*, --f-*). */

/* Zähler am Header-Icon (Merkliste, Warenkorb) */
.c-badge { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--c-red); color: var(--c-on-accent); font: 600 var(--ui-xs)/18px var(--f-sans); text-align: center; pointer-events: none; }
.c-badge[hidden] { display: none; }

/* Herz-Button (Produktkarten, Produktseite, Merkliste) */
.c-wish-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c-on-accent) 92%, transparent); color: var(--c-ink); cursor: pointer; box-shadow: var(--shadow-soft); transition: color var(--dur-fast), transform var(--dur) var(--ease-out); }
.c-wish-btn::before { content: ""; width: 19px; height: 19px; background-color: currentColor; -webkit-mask: var(--ico-heart) center / contain no-repeat; mask: var(--ico-heart) center / contain no-repeat; }
.c-wish-btn:hover, .c-wish-btn.is-active { color: var(--c-red); }
.c-wish-btn.is-active::before { -webkit-mask: none; mask: none; clip-path: path("M9.5 17.2C4.2 13.4 1.5 10.6 1.5 7.4 1.5 4.9 3.4 3 5.8 3c1.5 0 2.9.7 3.7 1.9C10.3 3.7 11.7 3 13.2 3c2.4 0 4.3 1.9 4.3 4.4 0 3.2-2.7 6-8 9.8z"); }
.c-wish-btn.is-bump { animation: c-wish-bump var(--dur-slow) var(--ease-out); }
.c-wish-btn:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }
@keyframes c-wish-bump { 40% { transform: scale(1.25); } }

/* Seite „Merkliste“ */
.c-wishlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 20px; max-width: none; margin-top: 8px; }
.c-wishlist__item { position: relative; display: flex; flex-direction: column; gap: 4px; }
.c-wishlist__media { display: grid; place-items: center; aspect-ratio: 1 / .78; margin-bottom: 10px; border-radius: var(--radius-xs); background: var(--c-tile); box-shadow: var(--shadow-soft); }
.c-wishlist__media img { width: 78%; height: 82%; object-fit: contain; }
.c-wishlist__item .c-wish-btn { position: absolute; top: 10px; right: 10px; }
.c-prose .c-wishlist__name, .c-wishlist__name { font: 500 var(--ui-l)/1.35 var(--f-sans); color: var(--c-ink); text-decoration: none; }
.c-wishlist__name:hover { color: var(--c-red); }
.c-wishlist__sub { font-size: var(--ui-s); color: var(--c-muted); }
.c-wishlist__price { margin-top: 4px; font: 600 var(--ui-m)/1 var(--f-sans); color: var(--c-ink); }
.c-wishlist__empty { grid-column: 1 / -1; color: var(--c-muted); }

/* Video mit Ton in der Lightbox (Startseite + Themenwelten) */
.hp-video-dialog { width: min(1200px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; border-radius: var(--radius-m); overflow: hidden; background: #000; box-shadow: var(--shadow-float); }
.hp-video-dialog::backdrop { background: rgba(12, 10, 9, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hp-video-dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.hp-video-dialog__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c-on-accent) 90%, transparent); cursor: pointer; }
.hp-video-dialog__close::before, .hp-video-dialog__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; background: var(--c-brown-900); transform: translate(-50%, -50%) rotate(45deg); }
.hp-video-dialog__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Meldung (Warenkorb, Merkliste) */
.c-toast { position: fixed; left: 50%; bottom: 26px; z-index: 9999; max-width: min(92vw, 460px); padding: 14px 22px; border-radius: var(--radius-s); background: var(--c-brown-900); color: var(--c-on-accent); font: 500 var(--ui-m)/1.4 var(--f-sans); box-shadow: var(--shadow-card); transform: translate(-50%, 140%); visibility: hidden; transition: transform var(--dur-slow) cubic-bezier(.16, 1, .3, 1), visibility var(--dur-slow); }
.c-toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* Mini-Warenkorb: Off-Canvas rechts (Bricks „woocommerce-mini-cart“, Klasse c-cart) */
.c-cart .cart-detail.off-canvas { width: min(420px, 100vw); max-width: 100vw; background: var(--c-bg); color: var(--c-ink); box-shadow: var(--shadow-float); }
body.admin-bar .c-cart .cart-detail.off-canvas { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) { body.admin-bar .c-cart .cart-detail.off-canvas { top: 46px; height: calc(100% - 46px); } }
.c-cart .off-canvas-overlay { background: color-mix(in srgb, var(--c-brown-900) 38%, transparent); }
/* oben beginnen (Bricks: space-between → Leer-Meldung rutschte nach unten); Summe + Buttons bleiben unten, weil die Artikelliste den Rest füllt */
.c-cart .cart-detail .widget_shopping_cart_content { display: flex; flex-direction: column; justify-content: flex-start; height: 100%; padding: 0; }
.c-minicart__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--c-line); }
.c-minicart__title { margin: 0; font: 500 var(--ui-xl)/1.2 var(--f-sans); color: var(--c-ink); }
.c-minicart__title span { font-weight: 400; color: var(--c-muted); }
.c-minicart__close { position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color var(--dur-fast); }
.c-minicart__close::before, .c-minicart__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: var(--c-ink); transform: translate(-50%, -50%) rotate(45deg); }
.c-minicart__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.c-minicart__close:hover { background: color-mix(in srgb, var(--c-ink) 7%, transparent); }
.c-minicart__close:focus-visible { outline: 2px solid var(--c-red); outline-offset: 2px; }
.c-cart .cart-detail .woocommerce-mini-cart { flex: 1 1 auto; min-height: 0; margin: 0; padding: 4px 28px; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.c-cart .cart-detail .woocommerce-mini-cart-item { position: relative; display: block; min-height: 105px; margin: 0; padding: 16px 40px 16px 90px; border-bottom: 1px solid var(--c-line); list-style: none; text-align: left; }
.c-cart .cart-detail .woocommerce-mini-cart-item:last-child { border-bottom: 0; }
.c-cart .cart-detail .woocommerce-mini-cart-item a:not(.remove) { display: block; padding: 0; font: 500 var(--ui-m)/1.35 var(--f-sans); color: var(--c-ink); text-decoration: none; transition: color var(--dur-fast); }
.c-cart .cart-detail .woocommerce-mini-cart-item a:not(.remove):hover { color: var(--c-red); }
.c-cart .cart-detail .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 16px; width: 72px; height: 72px; margin: 0; padding: 6px; border-radius: var(--radius-xs); background: var(--c-tile); object-fit: contain; box-shadow: var(--shadow-soft); }
.c-cart .cart-detail .woocommerce-mini-cart-item .quantity { display: block; margin: 6px 0 0; font: 400 var(--ui-s)/1.3 var(--f-sans); color: var(--c-muted); }
.c-cart .cart-detail .woocommerce-mini-cart-item .quantity .amount { font-weight: 600; color: var(--c-ink); }
.c-cart .cart-detail .woocommerce-mini-cart-item .variation { margin: 4px 0 0; font-size: var(--ui-s); color: var(--c-muted); }
.c-cart .cart-detail .woocommerce-mini-cart-item a.remove { position: absolute; right: 0; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 400 var(--text-l)/1 var(--f-sans); color: var(--c-muted); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.c-cart .cart-detail .woocommerce-mini-cart-item a.remove:hover { background: color-mix(in srgb, var(--c-ink) 7%, transparent); color: var(--c-red); }
.c-cart .cart-detail .woocommerce-mini-cart__total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0; padding: 20px 28px 0; border-top: 1px solid var(--c-line); font: 500 var(--ui-l)/1.3 var(--f-sans); color: var(--c-ink); }
.c-cart .cart-detail .woocommerce-mini-cart__total strong { font-weight: 500; }
.c-cart .cart-detail .woocommerce-mini-cart__total .amount { font-size: var(--text-l); font-weight: 600; }
.c-cart .cart-detail .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 16px 28px 28px; }
.c-cart .cart-detail .woocommerce-mini-cart__buttons .button { display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h-m); margin: 0; padding: 0 16px; border: 1px solid var(--c-ink); border-radius: var(--radius-pill); background: transparent; color: var(--c-ink); font: 500 var(--ui-s)/1 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; text-align: center; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.c-cart .cart-detail .woocommerce-mini-cart__buttons .button:hover { background: var(--c-ink); color: var(--c-bg); }
.c-cart .cart-detail .woocommerce-mini-cart__buttons .button.checkout { border-color: var(--c-red); background: var(--c-red); color: var(--c-on-accent); box-shadow: var(--shadow-red); }
.c-cart .cart-detail .woocommerce-mini-cart__buttons .button.checkout:hover { border-color: var(--c-red-700); background: var(--c-red-700); }
.c-cart .cart-detail .woocommerce-mini-cart__empty-message { margin: 0; padding: 28px; font-size: var(--ui-m); color: var(--c-muted); }

/* Fortschritt bis zum kostenlosen Versand (Warenkorb-Summe und Mini-Warenkorb) */
.c-freeship { padding: 14px 16px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-pink) 65%, transparent); }
.c-freeship__text { margin: 0 0 10px; font: 400 var(--ui-m)/1.4 var(--f-sans); color: var(--c-ink); }
.c-freeship__text strong { font-weight: 600; }
.c-freeship__bar { height: 6px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.c-freeship__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c-red) 35%, var(--c-pink)), var(--c-red)); transition: width var(--dur-slow) var(--ease-out); }
.c-freeship.is-done .c-freeship__text { font-weight: 500; }
.c-cart .cart-detail .c-freeship { order: 1; margin: 16px 28px 0; }
.c-cart .cart-detail .woocommerce-mini-cart__total { order: 2; margin-top: 16px; }
.c-cart .cart-detail .woocommerce-mini-cart__buttons { order: 3; }


/* WooCommerce-Hinweise im Credo-Stil: Erfolg (ruhiges Grün), Info (neutral), Fehler (Credo-Rot).
   Selektoren mit „html body“, damit Bricks-/Woo-Standardstile (grüne Fläche, Icon-Schrift) nicht durchschlagen. */
:root { --ico-n-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8.5'/%3E%3C/svg%3E"); --ico-n-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.2v.1'/%3E%3C/svg%3E"); --ico-n-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6'/%3E%3Cpath d='M12 16.8v.1'/%3E%3C/svg%3E"); }
html body .woocommerce-message, html body .woocommerce-info, html body .woocommerce-error, html body .wc-block-components-notice-banner {
  --n-c: #3b7a57; --n-ico: var(--ico-n-check);
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; width: 100%; margin: 0 0 12px; padding: 15px 20px 15px 60px; border: 0; border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--n-c) 8%, var(--c-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--n-c) 18%, transparent);
  font: 400 var(--ui-m)/1.5 var(--f-sans); letter-spacing: .01em; color: var(--c-ink); list-style: none; text-align: left;
}
html body .woocommerce-info, html body .wc-block-components-notice-banner.is-info { --n-c: var(--c-ink); --n-ico: var(--ico-n-info); }
html body .woocommerce-error, html body .wc-block-components-notice-banner.is-error { --n-c: var(--c-red); --n-ico: var(--ico-n-alert); flex-direction: column; align-items: flex-start; gap: 4px; }
html body .woocommerce-message::before, html body .woocommerce-info::before, html body .woocommerce-error::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 26px; height: 26px; margin: 0; border-radius: 50%; background: var(--n-c); transform: translateY(-50%); font-family: inherit;
}
html body .woocommerce-message::after, html body .woocommerce-info::after, html body .woocommerce-error::after {
  content: ""; position: absolute; left: 23px; top: 50%; width: 16px; height: 16px; background: var(--c-on-accent); transform: translateY(-50%);
  -webkit-mask: var(--n-ico) center / contain no-repeat; mask: var(--n-ico) center / contain no-repeat;
}
html body .woocommerce-error:has(li + li)::before, html body .woocommerce-error:has(li + li)::after { top: 28px; }
html body .woocommerce-error li { margin: 0; padding: 0; list-style: none; }
html body .woocommerce-message a:not(.button), html body .woocommerce-info a:not(.button), html body .woocommerce-error a:not(.button) { padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 500; color: var(--c-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-ink) 35%, transparent); text-underline-offset: 3px; }
html body .woocommerce-message .button, html body .woocommerce-info .button, html body .woocommerce-error .button {
  order: 2; display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h-s); margin: 0 0 0 auto; padding: 0 18px; float: none; border: 1px solid var(--c-ink); border-radius: var(--radius-pill);
  background: transparent; color: var(--c-ink); font: 500 var(--ui-xs)/1 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; text-decoration: none; box-shadow: none; transition: background-color var(--dur-fast), color var(--dur-fast);
}
html body .woocommerce-message .button:hover, html body .woocommerce-info .button:hover, html body .woocommerce-error .button:hover { background: var(--c-ink); color: var(--c-bg); }
html body .woocommerce-notices-wrapper:empty { display: none; }
html body .woocommerce-notices-wrapper > :last-child { margin-bottom: 0; }
html body .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
@media (max-width: 600px) {
  html body .woocommerce-message .button, html body .woocommerce-info .button { margin-left: 0; }
}

/* Kein Fokus-Rahmen, wenn WooCommerce/Bricks den Fokus per Skript setzen (Hinweise nach „Warenkorb
   aktualisiert“, Fehlergruppen der Kasse, Panels mit tabindex="-1"). Diese Elemente sind nicht per Tab
   erreichbar; Screenreader lesen sie trotzdem vor. Tastatur-Fokus auf Links/Buttons bleibt unverändert. */
html body .woocommerce-notices-wrapper:is(:focus, :focus-visible),
html body .woocommerce-NoticeGroup:is(:focus, :focus-visible),
html body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner):is(:focus, :focus-visible),
html body [tabindex="-1"]:is(:focus, :focus-visible) { outline: 0 !important; }

/* „Rückgängig machen?“ (Artikel entfernt) wie die übrigen Hinweis-Buttons: Pille rechts */
html body :is(.woocommerce-message, .woocommerce-info) a.restore-item {
  order: 2; display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h-s); margin: 0 0 0 auto; padding: 0 18px; border: 1px solid var(--c-ink); border-radius: var(--radius-pill);
  background: transparent !important; color: var(--c-ink) !important; font: 500 var(--ui-xs)/1 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; text-decoration: none !important; box-shadow: none; transition: background-color var(--dur-fast), color var(--dur-fast);
}
html body :is(.woocommerce-message, .woocommerce-info) a.restore-item:hover { background: var(--c-ink) !important; color: var(--c-bg) !important; }
@media (max-width: 600px) { html body :is(.woocommerce-message, .woocommerce-info) a.restore-item { margin-left: 0; } }

/* Footer: die Bubble-Leinwand von „Quality First“ (bubbles.js) ist größer als der Schriftzug und ragte
   unten über den Footer hinaus – das erzeugte eine leere Fläche unter der Seite. Alles jenseits des
   Footers abschneiden (clip erzeugt keinen Scroll-Container). */
#brx-footer { overflow: hidden; }
@supports (overflow: clip) { #brx-footer { overflow: clip; } }

/* Footer bleibt bei kurzen Seiten unten: Seite mindestens fensterhoch, Inhalt füllt den Rest.
   Fixierte/absolute Kinder von body (Header, Popups, Dialoge) sind davon nicht betroffen. */
body.brx-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.brx-body.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
@media (max-width: 782px) { body.brx-body.admin-bar { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); } }
body.brx-body > #brx-content { flex: 1 0 auto; width: 100%; }
body.brx-body > #brx-header, body.brx-body > #brx-footer { flex-shrink: 0; width: 100%; }

/* Produktname mit Zusatzzeile (Filter woocommerce_cart_item_name) und Produktbild in der Bestellübersicht der Kasse.
   PHP-Markup ohne eigenes Bricks-Element – deshalb hier statt in einer globalen Klasse. */
.c-ci__sub { display: block; margin-top: 3px; font: 400 var(--ui-m)/1.4 var(--f-sans); color: var(--c-muted); }
.c-ri__img { position: relative; flex: none; }
.c-ri__img img { display: block; width: 58px; height: 58px; padding: 6px; border-radius: var(--radius-s); background: var(--c-tile); object-fit: contain; box-shadow: var(--shadow-soft); }
.c-ri__name { flex: 1 1 120px; min-width: 0; }
.c-ri__name .c-ci__sub { font-size: var(--ui-s); font-weight: 400; }

/* Produktseite: „Passende Zusatzprodukte“ im Warenkorb-Formular (credo-pdp.php, wie BPE). Häkchen standardmäßig aus. */
.c-pdp__cart form.cart > .c-extras, .c-pdp__cart form.cart > .c-bundle-color, .c-pdp__cart form.variations_form > .single_variation_wrap { flex: 1 1 100%; min-width: 0; }
.c-extras { display: grid; gap: 10px; min-width: 0; margin: 0 0 4px; padding: 0; border: 0; }
.single_variation_wrap .c-extras { margin: 6px 0 18px; }
.c-extras__title { margin-bottom: 4px; padding: 0; font: 600 var(--ui-s)/1 var(--f-sans); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--c-ink); }
.c-extras__item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "box text price" "box text more"; align-items: center; gap: 2px 14px; padding: 13px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-tile); cursor: pointer; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.c-extras__item:hover { border-color: color-mix(in srgb, var(--c-ink) 30%, transparent); }
.c-extras__item:has(input:checked) { border-color: var(--c-red); box-shadow: 0 0 0 1px var(--c-red); }
.c-extras__item input { position: absolute; opacity: 0; pointer-events: none; }
.c-extras__box { grid-area: box; position: relative; width: 22px; height: 22px; border-radius: var(--radius-xs); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-ink) 40%, transparent); transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.c-extras__box::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--c-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity var(--dur-fast); }
.c-extras__item input:checked + .c-extras__box { background: var(--c-red); box-shadow: none; }
.c-extras__item input:checked + .c-extras__box::after { opacity: 1; }
.c-extras__item input:focus-visible + .c-extras__box { outline: 2px solid var(--c-red); outline-offset: 2px; }
.c-extras__text { grid-area: text; display: grid; gap: 2px; min-width: 0; }
.c-extras__name { font: 500 var(--ui-l)/1.3 var(--f-sans); color: var(--c-ink); }
.c-extras__sub { font: 400 var(--ui-s)/1.4 var(--f-sans); color: var(--c-muted); }
.c-extras__nk { justify-self: start; margin-top: 4px; padding: 3px 8px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--c-red) 9%, transparent); font: 600 var(--ui-xs)/1.2 var(--f-sans); white-space: nowrap; color: var(--c-red); }
.c-extras__price { grid-area: price; justify-self: end; font: 600 var(--ui-l)/1 var(--f-sans); color: var(--c-ink); white-space: nowrap; }
.c-extras__price .woocommerce-Price-amount { font: inherit; color: inherit; }
.c-extras__more { grid-area: more; justify-self: end; font: 500 var(--ui-s)/1.2 var(--f-sans); color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
.c-extras__more:hover { color: var(--c-red); }
.c-extras__sum { margin: 2px 0 0; font: 400 var(--ui-m)/1.4 var(--f-sans); color: var(--c-muted); }
.c-extras__sum strong { color: var(--c-ink); font-weight: 600; }
.c-extras__sum[hidden] { display: none; }

/* Aktion „Nachkaufvorteil“ auf der Produktseite (credo-nachkauf.php) */
.c-nk { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; padding: 16px 18px; border-radius: var(--radius-s); background: color-mix(in srgb, var(--c-red) 6%, var(--c-tile)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-red) 22%, transparent); }
.c-nk__badge { display: grid; place-items: center; align-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-red); color: var(--c-on-accent); font: 600 var(--ui-xs)/1.1 var(--f-sans); letter-spacing: .02em; text-transform: uppercase; text-align: center; box-shadow: var(--shadow-red); }
.c-nk__badge b { display: block; font: 400 var(--text-m)/1 var(--f-display); letter-spacing: 0; text-transform: none; }
.c-nk__body { display: grid; gap: 4px; min-width: 0; }
.c-nk__eyebrow { font: 600 var(--ui-xs)/1.2 var(--f-sans); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--c-red); }
.c-nk__title { font: 600 var(--ui-l)/1.35 var(--f-sans); color: var(--c-ink); }
.c-nk__text, .c-nk__parts { font: 400 var(--ui-m)/1.5 var(--f-sans); color: var(--c-text); }
.c-nk__parts { color: var(--c-muted); }
.c-nk a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.c-nk a:hover { color: var(--c-red); }
.c-nk-order { border-color: var(--c-red) !important; border-radius: var(--radius-s) !important; background: color-mix(in srgb, var(--c-red) 5%, var(--c-tile)); }
.c-nk-order h2 { font: 500 var(--ui-xl)/1.3 var(--f-sans) !important; color: var(--c-ink); }
.c-nk-order__code { padding: 2px 8px; border-radius: var(--radius-xs); background: var(--c-ink); color: var(--c-bg); font-family: ui-monospace, monospace; letter-spacing: .04em; }

@media (max-width: 478px) {
  .c-extras__item { gap: 2px 12px; padding: 12px 14px; }
  .c-nk { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .c-nk__badge { width: 52px; height: 52px; font-size: 0; }
  .c-nk__badge b { font: 600 var(--ui-l)/1 var(--f-sans); }
}

/* Bundle-Produktseite: Inhalt mit Einzelpreisen (credo-pdp.php) */
/* Bundle-Produktseite: Farbauswahl (--sw kommt aus dem Attribut „Farbe“) */
.c-bundle-color { min-width: 0; margin: 0 0 4px; padding: 0; border: 0; }
.c-bundle-color__title { margin-bottom: 10px; padding: 0; font: 400 var(--ui-m)/1.3 var(--f-sans); color: var(--c-text); }
.c-bundle-color__title strong { font-weight: 600; color: var(--c-ink); }
.c-bundle-color__opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.c-bundle-color__opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 2px 8px; border: 1px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); font: 500 var(--ui-s)/1.2 var(--f-sans); color: var(--c-ink); cursor: pointer; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.c-bundle-color__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.c-bundle-color__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 12%, transparent); }
.c-bundle-color__opt:hover { border-color: color-mix(in srgb, var(--c-ink) 30%, transparent); }
.c-bundle-color__opt:has(input:checked) { border-color: var(--c-red); box-shadow: 0 0 0 1px var(--c-red), var(--shadow-soft); }
.c-bundle-color__opt:has(input:focus-visible) { outline: 2px solid var(--c-red); outline-offset: 2px; }
.c-bundle-list { padding: 18px; border-radius: var(--radius-s); background: var(--c-tile); box-shadow: inset 0 0 0 1px var(--c-line); }
.c-bundle-list__title { margin: 0 0 10px; font: 600 var(--ui-s)/1 var(--f-sans); letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--c-ink); }
.c-bundle-list ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.c-bundle-list__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.c-bundle-list__img img { display: block; width: 44px; height: 44px; padding: 4px; border-radius: var(--radius-xs); background: var(--c-bg); object-fit: contain; }
.c-bundle-list__text { display: grid; min-width: 0; font: 500 var(--ui-m)/1.3 var(--f-sans); }
.c-bundle-list__text a { color: var(--c-ink); }
.c-bundle-list__text a:hover { color: var(--c-red); }
.c-bundle-list__step { font: 600 var(--ui-xs)/1.3 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-red); }
.c-bundle-list__price { font: 500 var(--ui-m)/1 var(--f-sans); color: var(--c-muted); }
.c-bundle-list__save { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--c-line); font: 400 var(--ui-m)/1.5 var(--f-sans); color: var(--c-text); }
.c-bundle-list__save strong { color: var(--c-red); }
.c-bundle-list__note { margin: 4px 0 0; font: 400 var(--ui-s)/1.4 var(--f-sans); color: var(--c-muted); }

/* Mobile Kaufleiste (credo-shop.js): erscheint, sobald der Warenkorb-Button aus dem Bild scrollt */
.c-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 24px -12px color-mix(in srgb, var(--c-brown-900) 30%, transparent); transform: translateY(110%); transition: transform var(--dur) var(--ease-out); }
.c-stickybuy.is-on { transform: none; }
.c-stickybuy__text { display: grid; flex: 1 1 auto; min-width: 0; }
.c-stickybuy__name { overflow: hidden; font: 500 var(--ui-m)/1.3 var(--f-sans); color: var(--c-ink); white-space: nowrap; text-overflow: ellipsis; }
.c-stickybuy__price { font: 600 var(--ui-l)/1.2 var(--f-sans); color: var(--c-ink); }
.c-stickybuy__price .woocommerce-Price-amount { font: inherit; }
.c-stickybuy__btn { flex: none; height: var(--btn-h-m); padding: 0 22px; border: 0; border-radius: var(--radius-pill); background: var(--c-red); color: var(--c-on-accent); font: 600 var(--ui-s)/1 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; box-shadow: var(--shadow-red); cursor: pointer; }
@media (min-width: 768px) { .c-stickybuy { display: none; } }
body.has-stickybuy { padding-bottom: 76px; }

/* Produktfarben (Attribut „Farbe“) als Akzente */
:root { --c-farbe-blau: #0199cc; --c-farbe-gelb: #ffcc00; --c-farbe-gruen: #94c11c; --c-farbe-orange: #ef7c00; --c-farbe-pink: #d6007e; }

/* Dankeseite: Produktbild in den Bestelldetails */
.c-oitem__img { display: block; grid-row: 1 / span 3; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius-xs); background: var(--c-tile); box-shadow: inset 0 0 0 1px var(--c-line); }
.c-oitem__img img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* SEO-Text: „Weiterlesen“ (der Button entsteht in credo-shop.js) */
.c-seo__more { display: none; position: absolute; left: 18px; bottom: 8px; z-index: 1; padding: 6px 0 0; border: 0; background: none; font: 500 var(--ui-s)/1.3 var(--f-sans); color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 4px; cursor: pointer; }
.c-seo__more:hover { color: var(--c-red); }
.is-clipped > .c-seo__more { display: block; }
.is-open > .c-seo__more { position: static; }

/* Schriftzug aus Farbpulver (bubbles.js), seitenweit */
.is-bubbles { position: relative; overflow: visible !important; }
.is-bubbles, .is-bubbles * { color: transparent !important; }
.bubble-text__canvas { position: absolute; left: 0; width: 100%; pointer-events: none; }

/* Fotos groß ansehen (credo-shop.js, [data-lightbox]) */
.c-lightbox { width: min(92vw, 1400px); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-m); background: transparent; overflow: visible; }
.c-lightbox::backdrop { background: rgb(0 0 0 / .82); }
.c-lightbox img { display: block; width: 100%; max-height: 92vh; border-radius: var(--radius-m); object-fit: contain; }
.c-lightbox button { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); cursor: pointer; box-shadow: var(--shadow-soft); }
.c-lightbox button::before { content: ""; width: 24px; height: 24px; background-color: currentColor; -webkit-mask: var(--lb-ico) center / contain no-repeat; mask: var(--lb-ico) center / contain no-repeat; }
.c-lightbox button:hover { background: var(--c-red); color: var(--c-on-accent); }
.c-lightbox [data-lb-prev] { left: 12px; --lb-ico: var(--ico-chevron-left); }
.c-lightbox [data-lb-next] { right: 12px; --lb-ico: var(--ico-chevron-right); }
.c-lightbox [data-lb-close] { top: 12px; right: 12px; margin-top: 0; --lb-ico: var(--ico-x); }

/* Danke-Seite ohne Anmeldung: WooCommerce zeigt das Login-Formular als Shortcode ohne Seitenrand */
.woocommerce-order-received #brx-content .brxe-shortcode > .woocommerce {
	width: min(100% - 2 * var(--gutter), 560px);
	margin-inline: auto;
	padding-block: clamp(32px, 4vw, 56px);
}

/* =====================================================================
   Weiche Seitenwechsel (Wunsch 24.11.): Cross-Document View Transitions.
   Header und Fachhändler-Reiter bleiben stehen, nur der Inhalt blendet über.
   Browser ohne Unterstützung wechseln wie bisher; bei reduzierter Bewegung kein Übergang.
   ===================================================================== */
/* Typ „credo-nav“: die eigenen Animationen gelten nur für Seitenwechsel, nicht für den Hell/Dunkel-Kreis (main.js) */
@view-transition { navigation: auto; types: credo-nav; }
#brx-header { view-transition-name: credo-header; }
.c-dealer-nav { view-transition-name: credo-dealer-nav; }
html:active-view-transition-type(credo-nav)::view-transition-group(credo-header),
html:active-view-transition-type(credo-nav)::view-transition-group(credo-dealer-nav) { animation-duration: .25s; }
html:active-view-transition-type(credo-nav)::view-transition-old(root) { animation: credo-vt-out .22s ease both; }
html:active-view-transition-type(credo-nav)::view-transition-new(root) { animation: credo-vt-in .32s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes credo-vt-out { to { opacity: 0; } }
@keyframes credo-vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Händlerfunktionen (credo-haendler.php, Kundenwunsch 25.11.) */
.c-pdp-dealer__btn { display: inline-flex; align-items: center; gap: 10px; height: var(--btn-h-s); padding: 0 18px 0 16px; border: 1px solid color-mix(in srgb, var(--c-ink) 8%, transparent); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--c-paper) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-card); font: 500 var(--ui-s)/1 var(--f-sans); white-space: nowrap; color: var(--c-ink); text-decoration: none; transition: border-color var(--dur-fast), color var(--dur-fast); }
@media (max-width: 478px) { .c-pdp-dealer__long { display: none; } }
.c-pdp-dealer__btn::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ico-download) center / contain no-repeat; mask: var(--ico-download) center / contain no-repeat; }
.c-pdp-dealer__btn:hover, .c-pdp-dealer__btn:focus-visible { border-color: var(--c-red); color: var(--c-red); }
.c-cart-anfrage { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.c-cart-anfrage__title { margin: 0; font: 500 var(--ui-l)/1.3 var(--f-sans); color: var(--c-ink); }
.c-cart-anfrage__text { margin: 0; font: 400 var(--ui-s)/1.5 var(--f-sans); color: var(--c-muted); }
.c-cart-anfrage__label { margin-top: 4px; font: 500 var(--ui-xs)/1.3 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-ink); }
.c-cart-anfrage__field { width: 100%; min-height: 84px; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-bg); font: 400 var(--ui-m)/1.45 var(--f-sans); color: var(--c-ink); resize: vertical; }
.c-cart-anfrage__field:focus { outline: none; border-color: var(--c-ink); }
.c-cart-anfrage__btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: var(--btn-h-m); padding: 0 24px; border: 1px solid var(--c-ink); border-radius: var(--radius-pill); background: transparent; font: 500 var(--ui-m)/1 var(--f-sans); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--c-ink); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast); }
.c-cart-anfrage__btn:hover, .c-cart-anfrage__btn:focus-visible { background: var(--c-ink); color: var(--c-bg); }

