/* Treebay Shop: dieselbe Brandspur wie die Startseite (assets/css/site.css).
   Gilt nur mit body.treebay-design, also in der Vorschau oder wenn TREEBAY_DESIGN_LIVE an ist. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

body.treebay-design {
  --wand: #F3F2EE;
  --schatten: #E8E5DD;
  --hauch: #D9B98F;
  --mittel: #8A5530;
  --text: #5A3A26;
  --tief: #481B01;
  --tief-hover: #642708;
  --glut: #D09A40;
  --schrift-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --schrift-text: "Manrope", system-ui, sans-serif;
  --seitenrand: clamp(1rem, 5vw, 4.5rem);
  --kopf-h: 5.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Astra-Farben auf die Brandtöne umbiegen, damit auch Theme-Teile ohne eigene Regel passen */
  --ast-global-color-0: var(--tief);
  --ast-global-color-1: var(--tief-hover);
  --ast-global-color-2: var(--tief);
  --ast-global-color-3: var(--text);
  --ast-global-color-4: var(--wand);
  --ast-global-color-5: var(--wand);
  --ast-global-color-6: var(--schatten);
  --ast-global-color-7: var(--tief);
  --ast-global-color-8: var(--text);
  --ast-border-color: var(--hauch);

  /* Modern Cart (Seitenleiste nach „In den Warenkorb“) */
  --moderncart-primary-color: var(--tief);
  --moderncart-highlight-color: var(--tief);
  --moderncart-heading-color: var(--tief);
  --moderncart-body-color: var(--text);
  --moderncart-background-color: var(--wand);
  --moderncart-header-background-color: var(--wand);
  --moderncart-header-font-color: var(--tief);
  --moderncart-quantity-background-color: var(--schatten);
  --moderncart-quantity-font-color: var(--tief);
  --moderncart-floating-count-bg-color: var(--tief);

  background: var(--wand);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body.treebay-design #page,
body.treebay-design .site-content,
body.treebay-design .ast-separate-container,
body.treebay-design .ast-plain-container { background: var(--wand); }
body.treebay-design ::selection { background: var(--hauch); color: var(--tief); }
body.treebay-design :focus-visible { outline: 2px solid var(--tief); outline-offset: 3px; }

body.treebay-design :is(h1, h2, h3, h4, .entry-title, .product_title, .page-title, .widget-title) {
  font-family: var(--schrift-display); color: var(--tief); letter-spacing: -0.01em;
}
body.treebay-design :is(h1, .entry-title, .product_title, .page-title) { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
body.treebay-design .entry-content a:not(.button),
body.treebay-design .woocommerce-product-details__short-description a,
body.treebay-design .woocommerce-breadcrumb a { color: var(--tief); text-decoration-color: var(--hauch); text-underline-offset: .2em; }

/* ---------- Kopf (wie Startseite, immer im gescrollten Zustand) ---------- */
body.treebay-design .kopf {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50;
  height: var(--kopf-h);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-inline: var(--seitenrand);
  background: var(--wand); box-shadow: 0 1px 0 var(--hauch);
}
body.treebay-design .kopf .icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
body.treebay-design .kopf__logo { flex: none; display: block; }
body.treebay-design .kopf__logo img { display: block; height: 3.25rem; width: auto; }
body.treebay-design .kopf__nav ul { display: flex; gap: clamp(1rem, 2vw, 1.9rem); margin: 0; padding: 0; list-style: none; }
body.treebay-design .kopf__nav a {
  display: block; padding-block: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--mittel); text-decoration: none;
  background: linear-gradient(var(--glut), var(--glut)) left bottom / 0% 2px no-repeat;
  transition: color .2s, background-size .35s var(--ease);
}
body.treebay-design .kopf__nav a:hover,
body.treebay-design .kopf__nav a[aria-current="page"] { color: var(--tief); background-size: 100% 2px; }
body.treebay-design .kopf__shop {
  margin-left: auto; padding-block: .4rem;
  font-weight: 700; font-size: .95rem; color: var(--tief); text-decoration: none;
  border-bottom: 2px solid var(--hauch);
  transition: border-color .2s;
}
body.treebay-design .kopf__shop:hover { border-bottom-color: var(--glut); color: var(--tief); }
/* Im Shop ist „Shop“ immer markiert, so sieht man, wo man ist */
body.treebay-design .kopf__shop[aria-current] { border-bottom-color: var(--tief); color: var(--tief); }
body.treebay-design .kopf__korb {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--tief); text-decoration: none;
  padding-block: .4rem; border-bottom: 2px solid var(--tief);
}
body.treebay-design .kopf__korb:hover { border-bottom-color: var(--glut); }
body.treebay-design .kopf__korb-zahl {
  min-width: 1.4rem; height: 1.4rem; padding-inline: .3rem; border-radius: 1rem;
  background: var(--tief); color: var(--wand); font-size: .75rem; font-weight: 700;
  display: inline-grid; place-items: center;
}
body.treebay-design .kopf__korb-zahl[hidden] { display: none; }
body.treebay-design .kopf__menue {
  display: none; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .4rem .2rem; background: none; border: 0; cursor: pointer;
  color: var(--tief); font-family: var(--schrift-text); font-weight: 700; font-size: 1rem;
}
body.treebay-design .kopf__menue:hover, body.treebay-design .kopf__menue:focus { background: none; color: var(--tief); }
body.treebay-design .kopf__menue .icon { width: 1.5rem; height: 1.5rem; }
body.treebay-design .kopf__menue .icon--zu { display: none; }
body.treebay-design .kopf__menue[aria-expanded="true"] .icon--zu { display: inline-block; }
body.treebay-design .kopf__menue[aria-expanded="true"] .icon--auf { display: none; }

@media (max-width: 74rem) {
  body.treebay-design { --kopf-h: 4.25rem; }
  body.treebay-design .kopf__logo img { height: 3.1rem; }
  body.treebay-design .kopf__menue { display: inline-flex; }
  body.treebay-design .kopf__korb { border-bottom: 0; }
  body.treebay-design .kopf__nav {
    position: fixed; inset: calc(var(--kopf-h) + var(--wp-admin--admin-bar--height, 0px)) 0 0; z-index: 49;
    background: var(--wand);
    padding: 2rem var(--seitenrand) 3rem;
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  body.treebay-design .kopf__nav.ist-offen { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  body.treebay-design .kopf__nav ul { flex-direction: column; gap: 0; }
  body.treebay-design .kopf__nav a {
    font-family: var(--schrift-display); font-weight: 700; font-size: clamp(1.75rem, 7vw, 2.4rem);
    color: var(--tief); padding-block: .55rem; border-bottom: 1px solid var(--hauch);
    background: none;
  }
}
@media (max-width: 30rem) {
  body.treebay-design :is(.kopf__korb-text, .kopf__menue-text) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.treebay-design .kopf__korb .icon { width: 1.6rem; height: 1.6rem; }
}
body.treebay-design.menue-offen { overflow: hidden; }

/* ---------- Shop-Leiste: Navigation innerhalb des Shops, unter dem Kopf ---------- */
body.treebay-design .shopleiste {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem;
  border-bottom: 1px solid var(--hauch); background: var(--schatten);
}
body.treebay-design .shopleiste ul {
  flex: 1 1 0; min-width: 0;
  display: flex; gap: clamp(1.25rem, 2.2vw, 2rem); margin: 0; padding: 0 var(--seitenrand); list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
/* Suchfeld (2026-11-20): wie die Formularfelder nur eine Hauch-Linie, Fokus brennt sie ein. Am Handy eine eigene Zeile. */
body.treebay-design .shopleiste__suche {
  flex: 0 0 auto; display: flex; align-items: center; gap: .25rem;
  width: 15rem; margin: 0 var(--seitenrand) 0 0;
  border-bottom: 2px solid var(--hauch); transition: border-color .2s;
}
body.treebay-design .shopleiste__suche:focus-within { border-bottom-color: var(--tief); }
body.treebay-design .shopleiste__suche input[type="search"] {
  flex: 1; min-width: 0; height: 2.5rem; padding: 0 .1rem; margin: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
  font-family: var(--schrift-text, inherit); font-size: 1rem; color: var(--tief);
}
body.treebay-design .shopleiste__suche input[type="search"]::placeholder { color: var(--mittel); opacity: 1; }
body.treebay-design .shopleiste__suche button {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; margin: 0;
  border: 0; border-radius: 3px; background: transparent; color: var(--tief); cursor: pointer;
}
body.treebay-design .shopleiste__suche button:hover { color: var(--tief-hover); background: transparent; }
body.treebay-design .shopleiste__suche .icon { width: 1.3rem; height: 1.3rem; }
/* Neun Bereiche brauchen die ganze Breite: das Suchfeld steht darunter, erst auf sehr breiten Bildschirmen daneben */
@media (max-width: 109.99rem) {
  body.treebay-design .shopleiste__suche { order: 2; flex: 1 1 100%; width: auto; max-width: 26rem; margin: 0 var(--seitenrand) .75rem; }
  body.treebay-design .shopleiste ul { flex-basis: 100%; }
}
@media (max-width: 47.99rem) {
  body.treebay-design .shopleiste__suche { max-width: none; }
}
body.treebay-design .shopleiste ul::-webkit-scrollbar { display: none; }
body.treebay-design .shopleiste a {
  display: block; padding-block: .8rem; white-space: nowrap;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1rem; color: var(--mittel); text-decoration: none;
  background: linear-gradient(var(--tief), var(--tief)) left bottom / 0% 2px no-repeat;
  transition: color .2s, background-size .35s var(--ease);
}
body.treebay-design .shopleiste a:hover,
body.treebay-design .shopleiste a[aria-current="page"] { color: var(--tief); background-size: 100% 2px; }

/* ---------- Fußzeile (wie Startseite) ---------- */
body.treebay-design .fuss { background: var(--wand); color: var(--text); border-top: 1px solid var(--hauch); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; }
body.treebay-design .fuss__raster { display: grid; gap: 2.25rem; width: min(100% - 2 * var(--seitenrand), 84rem); margin-inline: auto; }
body.treebay-design .fuss ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; align-content: start; }
body.treebay-design .fuss li { margin: 0; line-height: 1.6; }
body.treebay-design .fuss p { margin: 0; }
body.treebay-design .fuss a { color: var(--tief); text-decoration: underline; text-decoration-color: var(--hauch); text-decoration-thickness: 1px; text-underline-offset: .2em; }
body.treebay-design .fuss a:hover { text-decoration-color: var(--tief); }
body.treebay-design .fuss__name { font-family: var(--schrift-display); font-weight: 700; font-size: 1.35rem; color: var(--tief); }
body.treebay-design .fuss__links a { color: var(--mittel); }
body.treebay-design .fuss__links a:hover { color: var(--tief); }
body.treebay-design .fuss__copy { color: var(--mittel); font-size: .875rem; padding-top: 1.75rem; border-top: 1px solid var(--hauch); }
@media (min-width: 48rem) {
  body.treebay-design .fuss__raster { grid-template-columns: 2fr 1fr 1fr; }
  body.treebay-design .fuss__copy { grid-column: 1 / -1; }
}

/* Rücktrittsknopf (Plugin EU Order Withdrawal Button) bleibt, sitzt aber ruhig unter der Fußzeile */
body.treebay-design .eu-owb-order-withdraw-from-contract-button { margin: 0; padding: 0 var(--seitenrand) 2.5rem; background: var(--wand); }
body.treebay-design .eu-owb-order-withdraw-from-contract-button .button {
  min-height: 2.75rem; padding: .55rem 1.2rem; font-size: 1rem;
  background: transparent; color: var(--tief); box-shadow: inset 0 0 0 2px var(--tief);
}
body.treebay-design .eu-owb-order-withdraw-from-contract-button .button:hover { background: var(--tief); color: var(--wand); }

/* Der grüne schwebende Warenkorb entfällt, der Warenkorb sitzt im Kopf */
body.treebay-design #moderncart-floating-cart { display: none; }

/* ---------- Knöpfe ---------- */
body.treebay-design :is(.button, button.button, a.button, input.button, input[type="submit"], .single_add_to_cart_button, .checkout-button, #place_order, .wc-block-components-button, .moderncart-slide-out-footer a, .moderncart-slide-out-footer button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  background: var(--tief); color: var(--wand);
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.1rem; line-height: 1.1;
  text-transform: none; letter-spacing: 0;
  border: 0; border-radius: 3px; box-shadow: none;
  transition: background-color .25s var(--ease);
}
body.treebay-design :is(.button, button.button, a.button, input.button, input[type="submit"], .single_add_to_cart_button, .checkout-button, #place_order, .wc-block-components-button):hover {
  background: var(--tief-hover); color: var(--wand);
}
body.treebay-design :is(.button, .single_add_to_cart_button, #place_order):active { box-shadow: inset 0 -3px 0 var(--glut); }
body.treebay-design :is(.button, .single_add_to_cart_button):disabled,
body.treebay-design .button.disabled { opacity: .6; }

/* ---------- Formulare (wie das Anfrageformular) ---------- */
body.treebay-design :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], select, textarea, .select2-container .select2-selection--single) {
  min-height: 3rem; padding: .6rem .1rem;
  background: transparent; color: var(--tief);
  border: 0; border-bottom: 2px solid var(--hauch); border-radius: 0; box-shadow: none;
  font-family: var(--schrift-text); font-size: 1.05rem;
  transition: border-color .25s;
}
body.treebay-design textarea { padding: .6rem .5rem; border: 2px solid var(--hauch); border-radius: 3px; }
body.treebay-design :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):hover { border-color: var(--mittel); }
body.treebay-design :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):focus { outline: none; border-color: var(--tief); box-shadow: 0 2px 0 var(--tief); }
body.treebay-design .select2-container .select2-selection--single .select2-selection__rendered { color: var(--tief); line-height: 1.8; padding-left: 0; }
body.treebay-design :is(.form-row label, .wcpa_form_item > label, .wcpa_field_label, label.wcpa_field_label) { font-weight: 700; color: var(--tief); font-size: .95rem; }
body.treebay-design :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--tief); width: 1.15rem; height: 1.15rem; }
body.treebay-design .quantity .qty { width: 4.5rem; text-align: center; border: 2px solid var(--hauch); border-radius: 3px; }

/* ---------- Shop-Seiten ---------- */
body.treebay-design .site-content > .ast-container { padding-top: clamp(1.5rem, 4vw, 3rem); }
body.treebay-design .woocommerce-breadcrumb { color: var(--mittel); font-size: .9rem; }
body.treebay-design .woocommerce-products-header__title,
body.treebay-design .entry-title { font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.4rem); }

/* Kategorie-Kacheln und Produktkarten: Foto auf der Wand, Name darunter */
body.treebay-design ul.products li.product { text-align: left; background: none; }
/* Fotos per multiply auf die Wand, weiße Hintergründe verschwinden wie auf der Startseite */
body.treebay-design :is(ul.products li.product img, .woocommerce-product-gallery img, .woocommerce-cart-form img) { mix-blend-mode: multiply; }
/* Die Galerie verschiebt ihre Bilder (transform) und bildet damit eine eigene Ebene: multiply verrechnete dort
   mit „durchsichtig“, Weiß blieb als Kasten stehen (aufgefallen an der Angolo 65). Die Wand gehört in die Ebene. */
body.treebay-design .woocommerce-product-gallery__image { background: var(--wand); }
/* Der Größenvergleich hat die Wand schon im Bild, nicht noch einmal verrechnen */
body.treebay-design .woocommerce-product-gallery :is(.woocommerce-product-gallery__image, .flex-control-thumbs) img[src*="groessenvergleich"] { mix-blend-mode: normal; }
/* Astra legt den Namen über das Foto, hier steht er darunter wie eine Bildunterschrift */
body.treebay-design ul.products li.product.product-category a { display: grid; align-content: start; gap: .75rem; height: auto; text-decoration: none; }
body.treebay-design ul.products li.product.product-category a img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; }
body.treebay-design ul.products li.product-category .woocommerce-loop-category__title {
  position: static; inset: auto; width: auto; transform: none; opacity: 1;
  margin: 0; padding: .9rem 0 0; background: none; border-top: 2px solid var(--tief);
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.5rem; text-transform: none; color: var(--tief);
  text-align: left;
}
body.treebay-design ul.products li.product-category .woocommerce-loop-category__title .count {
  display: block; margin-top: .2rem; background: none; color: var(--mittel);
  font-family: var(--schrift-text); font-size: .9rem; font-weight: 500;
}
body.treebay-design ul.products li.product-category a:hover .woocommerce-loop-category__title { border-top-color: var(--glut); }
/* Am Handy zwei Kacheln nebeneinander, sonst wird die Übersicht eine lange Strecke */
@media (max-width: 34rem) {
  body.treebay-design.woocommerce ul.products:not(.elementor-grid):has(> li.product-category),
  body.treebay-design.woocommerce-page ul.products:not(.elementor-grid):has(> li.product-category) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  body.treebay-design ul.products li.product-category .woocommerce-loop-category__title { font-size: 1.15rem; }
}
body.treebay-design .astra-shop-summary-wrap { padding-top: .75rem; text-align: left; }
body.treebay-design .ast-woo-product-category { color: var(--mittel); font-size: .8rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
body.treebay-design .woocommerce-loop-product__title { font-family: var(--schrift-display); font-weight: 700; font-size: 1.3rem; color: var(--tief); }
body.treebay-design :is(.price, .amount) { color: var(--tief); }
body.treebay-design ul.products .price { font-weight: 700; }

/* ---------- Seitenleiste: Kategorien und Filter ---------- */
/* Gruppen nur durch Geisterlinien getrennt, keine Kästen */
body.treebay-design #secondary .widget { margin: 0; padding-block: 1.75rem; border-top: 1px solid var(--hauch); }
body.treebay-design #secondary .widget:first-child { padding-top: 0; border-top: 0; }
body.treebay-design #secondary .widget-title { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
body.treebay-design #secondary .count { font-family: var(--schrift-text); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mittel); }

/* Kategorien: die Unterkategorien der aktuellen, aktuelle mit gebrannter Unterlinie */
body.treebay-design #secondary .product-categories,
body.treebay-design #secondary .product-categories .children { margin: 0; padding: 0; list-style: none; }
body.treebay-design #secondary .product-categories li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; margin: 0; padding: 0; }
body.treebay-design #secondary .product-categories li::before { content: none; }
body.treebay-design #secondary .product-categories a {
  padding-block: .35rem; color: var(--tief); text-decoration: none;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25;
  background: linear-gradient(var(--tief), var(--tief)) left bottom / 0% 2px no-repeat;
  transition: background-size .35s var(--ease);
}
body.treebay-design #secondary .product-categories a:hover,
body.treebay-design #secondary .product-categories .current-cat > a { background-size: 100% 2px; }
body.treebay-design #secondary .product-categories .count { font-size: .875rem; }
body.treebay-design #secondary .product-categories .children { flex-basis: 100%; margin: .2rem 0 .6rem; padding-left: 1rem; border-left: 1px solid var(--hauch); }
body.treebay-design #secondary .product-categories .children a { font-family: var(--schrift-text); font-weight: 600; font-size: 1rem; color: var(--text); }
body.treebay-design #secondary .product-categories .children .current-cat > a { color: var(--tief); }

/* Filter als Chips, wie die Größen-Chips der Startseite: die ganze Pille ist der Link */
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list, .widget_layered_nav_filters ul) {
  display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none;
}
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li) {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.75rem; margin: 0; padding: .35rem 1rem;
  border: 1.5px solid var(--hauch); border-radius: 2rem; background: var(--wand);
  transition: border-color .2s, background-color .2s;
}
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li) a {
  color: var(--mittel); text-decoration: none;
  font-family: var(--schrift-display); font-weight: 700; font-size: 1rem; line-height: 1.1;
}
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li) a:focus-visible { outline: none; }
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li):has(a:focus-visible) { outline: 2px solid var(--tief); outline-offset: 3px; }
body.treebay-design #secondary .woocommerce-widget-layered-nav-list__item .count { font-size: .8rem; }
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li):hover { border-color: var(--glut); }
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item, .widget_layered_nav_filters li):hover a { color: var(--tief); }
/* gewählt: vollflächig gebrannt, das Kreuz zeigt, dass ein Klick den Filter wieder löst */
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item--chosen, .widget_layered_nav_filters li.chosen) { border-color: var(--tief); background: var(--tief); }
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item--chosen, .widget_layered_nav_filters li.chosen) :is(a, a:hover, .count) { color: var(--wand); }
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item--chosen, .widget_layered_nav_filters li.chosen)::after {
  content: ""; width: .7rem; height: .7rem; flex: none; background: var(--wand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2 2 10' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 2l8 8M10 2 2 10' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.treebay-design #secondary :is(.woocommerce-widget-layered-nav-list__item--chosen, .widget_layered_nav_filters li.chosen):hover { background: var(--tief-hover); border-color: var(--tief-hover); }
/* WooCommerce setzt vor gewählte Filter ein eigenes rotes Kreuz, das übernimmt hier die Pille */
body.treebay-design #secondary li.chosen a::before { content: none; display: none; }
body.treebay-design #secondary .filter-zuruecksetzen {
  display: inline-block; margin-top: .9rem; padding-bottom: .15rem;
  color: var(--tief); font-weight: 700; font-size: .95rem; text-decoration: none;
  border-bottom: 2px solid var(--hauch); transition: border-color .2s;
}
body.treebay-design #secondary .filter-zuruecksetzen:hover { border-bottom-color: var(--tief); }

/* Handy und Tablet: Filter stehen unter dem Titel über den Produkten (shop.js setzt sie dorthin),
   eingeklappt hinter einem Knopf */
body.treebay-design .filter-knopf { display: none; }
@media (max-width: 921px) {
  body.treebay-design #secondary { width: 100%; margin: 0 0 1.75rem; padding: 0; border: 0; }
  body.treebay-design #secondary .sidebar-main { padding: 0; border: 0; }
  body.treebay-design .filter-knopf {
    display: inline-flex; align-items: center; gap: .6rem;
    min-height: 3rem; padding: .6rem 1.2rem;
    background: transparent; color: var(--tief); box-shadow: inset 0 0 0 2px var(--tief); border: 0; border-radius: 3px;
    font-family: var(--schrift-display); font-weight: 700; font-size: 1.1rem; text-transform: none; letter-spacing: 0; cursor: pointer;
  }
  body.treebay-design .filter-knopf:hover,
  body.treebay-design .filter-knopf:focus { background: transparent; color: var(--tief); }
  body.treebay-design .filter-knopf:active { box-shadow: inset 0 0 0 2px var(--tief), inset 0 -3px 0 var(--glut); }
  body.treebay-design .filter-knopf .icon { width: 1.2rem; height: 1.2rem; transition: transform .3s var(--ease); }
  body.treebay-design .filter-knopf[aria-expanded="true"] .icon { transform: rotate(180deg); }
  body.treebay-design .filter-knopf__zahl {
    min-width: 1.4rem; height: 1.4rem; padding-inline: .3rem; border-radius: 1rem;
    background: var(--tief); color: var(--wand); font-family: var(--schrift-text); font-size: .75rem; font-weight: 700;
    display: inline-grid; place-items: center;
  }
  body.treebay-design #secondary.hat-filterknopf:not(.ist-offen) .sidebar-main { display: none; }
  body.treebay-design #secondary.ist-offen .sidebar-main { margin-top: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--hauch); }
}

/* Produktfotos: Klick öffnet die große Ansicht */
body.treebay-design .woocommerce-product-gallery__image a { cursor: zoom-in; }

/* Produktseite */
body.treebay-design .summary .price { font-family: var(--schrift-display); font-weight: 700; font-size: 1.75rem; }
body.treebay-design .single_add_to_cart_button { white-space: nowrap; }
body.treebay-design .stock.in-stock { color: var(--mittel); font-weight: 600; }
body.treebay-design .woocommerce-tabs ul.tabs li { border: 0; }
body.treebay-design .woocommerce-tabs ul.tabs li.active { border-top: 2px solid var(--tief); }
body.treebay-design .woocommerce-tabs ul.tabs li a { color: var(--tief); font-family: var(--schrift-display); font-weight: 700; }
body.treebay-design :is(table.shop_table, .woocommerce-product-attributes, table.shop_attributes) { border-color: var(--hauch); border-radius: 0; }
body.treebay-design :is(table.shop_table, .woocommerce-product-attributes, table.shop_attributes) :is(th, td) { border-color: var(--hauch); background: none; }
body.treebay-design .treebay-preis-hinweis { color: var(--mittel); }

/* Meldungen */
body.treebay-design :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  background: var(--schatten); color: var(--text); border: 0; border-left: 3px solid var(--tief); border-radius: 0;
}
body.treebay-design :is(.woocommerce-message, .woocommerce-info)::before { color: var(--tief); }

/* Warenkorb und Kasse */
body.treebay-design :is(.cart_totals, #order_review, .woocommerce-checkout-review-order) { background: none; }
body.treebay-design #payment { background: var(--schatten); border-radius: 0; }
body.treebay-design #payment div.payment_box { background: var(--wand); color: var(--text); }
body.treebay-design #payment div.payment_box::before { border-bottom-color: var(--wand); }
