/* ============================================================
   bestAnimalCARE — Design 2026, Teil 2: Shop (shop.css)
   Archiv, Produktliste, Produktseite, Warenkorb.
   Markup der Liste kommt aus den Template-Ersatzdateien (woocommerce/):
   ul.products.bac-products > li.bac-card.product
   Kasse und Konto: keine Regeln hier, sie erben nur die Tokens aus base.css.
   ============================================================ */

/* Seitenfläche: das Theme färbt Shop und Kategorie bläulich, wir bleiben weiß */
body.bac-design.woocommerce-shop,
body.bac-design.tax-product_cat,
body.bac-design.post-type-archive-product {
  background: #fff;
}

/* Wrapper aus archive-product.php; fängt die Floats von Ergebniszeile und Sortierung */
body.bac-design .bac-shop { display: flow-root; }

/* ---------- Archiv-Kopf ---------- */
body.bac-design .woocommerce-products-header { margin: 0 0 1.75rem; }
body.bac-design .woocommerce-products-header__title.page-title {
  margin: 0;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem);   /* wie .h-section der Landingpage */
  line-height: 1.04;
  letter-spacing: -0.02em;
}
body.bac-design .woocommerce-products-header .term-description {
  max-width: 58ch;
  margin-top: 0.9rem;
  color: rgba(46, 54, 64, 0.75);
  line-height: 1.6;
}
body.bac-design .woocommerce-products-header .term-description > * { margin: 0 0 0.5rem; }
body.bac-design .woocommerce-products-header .term-description > :last-child { margin-bottom: 0; }

/* ---------- Ergebniszeile und Sortierung: eine Zeile ---------- */
body.bac-design .woocommerce-result-count {
  float: none;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 2.75rem;
  color: rgba(46, 54, 64, 0.7);
}
body.bac-design .woocommerce-ordering { float: none; margin: 0 0 1.5rem; }
body.bac-design .woocommerce-ordering select.orderby {
  width: 100%;
  height: 2.75rem;
  padding: 0 2.5rem 0 0.9rem;
  font-size: 0.9375rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232e3640' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}
@media (min-width: 36rem) {
  body.bac-design .woocommerce-result-count { float: left; margin-bottom: 1.5rem; }
  body.bac-design .woocommerce-ordering { float: right; }
  body.bac-design .woocommerce-ordering select.orderby { width: auto; min-width: 14rem; }
}

/* ---------- Hinweise (Erfolg, Info, Fehler) ---------- */
body.bac-design .woocommerce-message,
body.bac-design .woocommerce-info,
body.bac-design .woocommerce-error {
  background: #eef1f3;
  color: #2e3640;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-top-width: 1px;
  border-radius: 1rem;
}
body.bac-design .woocommerce-message::before,
body.bac-design .woocommerce-info::before { color: #a81858; }

/* ---------- Produktliste: Raster ---------- */
body.bac-design ul.products.bac-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  clear: both;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
@media (min-width: 36rem) {
  body.bac-design ul.products.bac-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  body.bac-design ul.products.bac-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* WooCommerce hängt ::before/::after (clearfix) an die Liste, im Raster wären das leere Zellen */
body.bac-design ul.products.bac-products::before,
body.bac-design ul.products.bac-products::after { content: none; display: none; }

/* ---------- Karte ---------- */
body.bac-design ul.products.bac-products > li.bac-card.product {
  /* Floats, Prozentbreiten und Ränder der WooCommerce-Layoutdatei zurücknehmen */
  float: none;
  clear: none;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 1rem;
  box-shadow: none;
  transition: border-color 200ms ease, transform 200ms var(--bac-ease, ease);
}
/* Hover nur auf Geräten mit Maus, Anheben nur ohne reduzierte Bewegung */
@media (hover: hover) {
  body.bac-design ul.products.bac-products > li.bac-card.product:hover {
    border-color: rgba(168, 24, 88, 0.35);
  }
  body.bac-design ul.products.bac-products > li.bac-card.product:hover .woocommerce-loop-product__title {
    color: #a81858;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.bac-design ul.products.bac-products > li.bac-card.product:hover { transform: translateY(-2px); }
}

/* Link umschließt Bild, Titel, Preis und German-Market-Zeilen (WC schließt ihn erst nach dem Preis).
   flex: 1 schiebt den Button darunter an den Kartenboden. */
body.bac-design ul.products.bac-products > li.bac-card.product > .woocommerce-LoopProduct-link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}
/* Bildfläche Mist als Platte hinter dem Bild; multiply macht weiße Produktfotos auf Mist unsichtbar */
body.bac-design ul.products.bac-products > li.bac-card.product > .woocommerce-LoopProduct-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1 / 1;
  background: #eef1f3;
  border-radius: 0.75rem;
}
body.bac-design ul.products.bac-products > li.bac-card.product > .woocommerce-LoopProduct-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0.5rem;
  object-fit: contain;
  border-radius: 0.75rem;
  mix-blend-mode: multiply;
}
body.bac-design ul.products.bac-products > li.bac-card.product .onsale {
  top: 0.75rem;
  left: 0.75rem;
  right: auto;
  min-width: 0;
  min-height: 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #a81858;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Titel: kein fester Höhenblock mehr (das Theme erzwingt sonst eine Höhe von 100px) */
body.bac-design ul.products.bac-products > li.bac-card.product .woocommerce-loop-product__title {
  height: auto;
  min-height: 0;
  margin: 1rem 0 0.4rem;
  padding: 0;
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #2e3640;
  transition: color 200ms ease;
}

/* Preiszeile mit Betrag: Graphite 600, German-Market-Zeilen klein und zart */
body.bac-design ul.products.bac-products > li.bac-card.product .price,
body.bac-design.single-product div.product .summary .price {
  display: block;
  margin: 0.15rem 0 0;
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #2e3640;
  font-variant-numeric: tabular-nums;
}
body.bac-design ul.products.bac-products > li.bac-card.product .wgm-info,
body.bac-design.single-product div.product .summary .wgm-info {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7681;                 /* Slate, für Lesbarkeit etwas abgedunkelt */
}
body.bac-design ul.products.bac-products > li.bac-card.product .wgm-info a,
body.bac-design.single-product div.product .summary .wgm-info a {
  display: inline;                /* German Market setzt den Versand-Link auf block */
  color: inherit;
  text-decoration: underline;
}
body.bac-design.single-product div.product .summary .wgm-info small { font-size: inherit; }

/* E7: Preiszeile ohne Betrag (Gast: "Nur für bestätigte Nutzer"): klein, ruhig, mit Schloss */
body.bac-design ul.products.bac-products > li.bac-card.product .price:not(:has(.woocommerce-Price-amount)),
body.bac-design.single-product div.product .summary .price:not(:has(.woocommerce-Price-amount)) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(46, 54, 64, 0.7);
}
body.bac-design ul.products.bac-products > li.bac-card.product .price:not(:has(.woocommerce-Price-amount)):not(:has(.bac-preis-hinweis))::before,
body.bac-design.single-product div.product .summary .price:not(:has(.woocommerce-Price-amount)):not(:has(.bac-preis-hinweis))::before,
body.bac-design .bac-preis-hinweis::before {
  content: "";
  display: inline-block;
  vertical-align: -0.12em;
  margin-right: 0.4rem;
  flex: none;
  width: 1em;
  height: 1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Freischalt-Hinweis (bac_design_preis_hinweis): Text klein und ruhig, Link als dezenter Raspberry-Textlink */
body.bac-design .bac-preis-hinweis { font-size: 0.9rem; font-weight: 400; color: rgba(46, 54, 64, 0.7); }
body.bac-design .bac-preis-hinweis__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #a81858;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 200ms ease;
}
body.bac-design .bac-preis-hinweis__link:hover,
body.bac-design .bac-preis-hinweis__link:focus-visible { color: #7c1241; }

/* Falls der Hide-Prices-Text selbst noch einmal in .price steckt: nur ein Schloss, kein doppeltes Format */
body.bac-design ul.products.bac-products > li.bac-card.product .price .price,
body.bac-design.single-product div.product .summary .price .price {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
}
body.bac-design ul.products.bac-products > li.bac-card.product .price .price::before,
body.bac-design.single-product div.product .summary .price .price::before { content: none; }

/* E7: ohne Betrag auch keine MwSt.-/Versandzeile. Reine CSS-Lösung, kein Eingriff in den Preisweg.
   :has() lässt sich nicht verschachteln, daher "Karte ohne Betrag" statt "Karte mit Preiszeile ohne Betrag". */
body.bac-design ul.products.bac-products > li.bac-card.product:not(:has(.woocommerce-Price-amount)) .wgm-info {
  display: none;
}
/* Produktseite: nur die preisbezogenen Zeilen, die Lieferzeit bleibt */
body.bac-design.single-product div.product .summary:not(:has(.woocommerce-Price-amount)) :is(.woocommerce-de_price_taxrate, .woocommerce_de_versandkosten) {
  display: none;
}

/* Button in der Karte: Sekundär-Pille, links, am Kartenboden */
body.bac-design ul.products.bac-products > li.bac-card.product a.button {
  align-self: flex-start;
  margin: 1.1rem 0 0;
  gap: 0.5em;
  background: #fff;
  color: #2e3640;
  border: 1px solid rgba(46, 54, 64, 0.2);
}
body.bac-design ul.products.bac-products > li.bac-card.product a.button:hover,
body.bac-design ul.products.bac-products > li.bac-card.product a.button:focus-visible {
  background: #fff;
  border-color: #a81858;
  color: #a81858;
}
/* Pfeil wie auf der Landingpage, nur bei "Details"; Alternativtext leer für Screenreader */
body.bac-design ul.products.bac-products > li.bac-card.product a.button:not(.add_to_cart_button)::after {
  content: "\2192";
  content: "\2192" / "";
  margin-left: 0.4em;
  transition: transform 200ms var(--bac-ease, ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.bac-design ul.products.bac-products > li.bac-card.product a.button:hover::after { transform: translateX(3px); }
}
body.bac-design ul.products.bac-products > li.bac-card.product .added_to_cart {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: #a81858;
}

/* ---------- Seitennummerierung als Pillen ---------- */
body.bac-design nav.woocommerce-pagination { margin: 2rem 0 0; text-align: center; }
body.bac-design nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: normal;
}
body.bac-design nav.woocommerce-pagination ul.page-numbers::before,
body.bac-design nav.woocommerce-pagination ul.page-numbers::after { content: none; display: none; }
body.bac-design nav.woocommerce-pagination ul.page-numbers li {
  float: none;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}
body.bac-design nav.woocommerce-pagination .page-numbers:is(a, span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(46, 54, 64, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #2e3640;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}
body.bac-design nav.woocommerce-pagination a.page-numbers:hover,
body.bac-design nav.woocommerce-pagination a.page-numbers:focus-visible {
  background: #fff;
  border-color: #a81858;
  color: #a81858;
}
body.bac-design nav.woocommerce-pagination span.page-numbers.current {
  background: #a81858;
  border-color: #a81858;
  color: #fff;
}
body.bac-design nav.woocommerce-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Produktseite ---------- */
body.bac-design.single-product div.product .product_title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.1;
}
body.bac-design.single-product div.product .woocommerce-product-details__short-description {
  margin-bottom: 1.25rem;
  color: rgba(46, 54, 64, 0.75);
}
/* Preis mit Betrag auf der Produktseite etwas größer */
body.bac-design.single-product div.product .summary p.price,
body.bac-design.single-product div.product .summary span.price { font-size: 1.5rem; }
/* (Die Gast-Zeile ohne Betrag bleibt klein: die Regel oben hat höhere Spezifität.) */

/* Galerie: Mist-Fläche mit Radius, Produktfoto per multiply eingepasst */
body.bac-design.single-product div.product div.images .woocommerce-product-gallery__image {
  background: #eef1f3;
  border-radius: 1rem;
  overflow: hidden;
}
body.bac-design.single-product div.product div.images .woocommerce-product-gallery__image a { display: block; }
body.bac-design.single-product div.product div.images .woocommerce-product-gallery__image img { mix-blend-mode: multiply; }
body.bac-design.single-product div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
body.bac-design.single-product div.product div.images .flex-control-thumbs li { width: calc(25% - 0.375rem); float: none; }
body.bac-design.single-product div.product div.images .flex-control-thumbs li img {
  background: #eef1f3;
  border-radius: 0.75rem;
}

/* Meta: Kategorien als Pillen mit Haarlinie.
   Die Kategorie-Liste hat Kommas zwischen den Links (WC-Standard). font-size: 0 blendet die
   Kommas und das englische/deutsche Label aus; das Label setzt ::before neu. */
body.bac-design.single-product div.product .product_meta {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  font-size: 0.9rem;
}
body.bac-design.single-product div.product .product_meta .sku_wrapper { display: block; color: rgba(46, 54, 64, 0.7); }
/* Artikelnummer ausblenden (SHOP_TODO 2.2, erst nach Zustimmung von Michi):
   body.bac-design.single-product div.product .product_meta .sku_wrapper { display: none; } */
body.bac-design.single-product div.product .product_meta :is(.posted_in, .tagged_as) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0;
  line-height: 0;
}
body.bac-design.single-product div.product .product_meta .posted_in::before,
body.bac-design.single-product div.product .product_meta .tagged_as::before {
  flex: 0 0 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  color: rgba(46, 54, 64, 0.7);
}
body.bac-design.single-product div.product .product_meta .posted_in::before { content: "Kategorien"; }
body.bac-design.single-product div.product .product_meta .tagged_as::before { content: "Schlagw\00F6 rter"; }
body.bac-design.single-product div.product .product_meta :is(.posted_in, .tagged_as) a {
  padding: 0.3rem 0.8rem;
  background: #fff;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #2e3640;
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease;
}
body.bac-design.single-product div.product .product_meta :is(.posted_in, .tagged_as) a:hover,
body.bac-design.single-product div.product .product_meta :is(.posted_in, .tagged_as) a:focus-visible {
  border-color: rgba(168, 24, 88, 0.35);
  color: #a81858;
}

/* Reiter als Unterstrich-Tabs in Raspberry */
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  overflow: visible;
  border-bottom: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
}
/* Die Linie und Ecken der WC-Standardreiter (::before/::after) wären sonst Flex-Einträge */
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs::after { content: none; display: none; }
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  margin-bottom: -1px;
  padding: 0.75rem 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: rgba(46, 54, 64, 0.7);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: #a81858; }
body.bac-design.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #a81858;
  border-bottom-color: #a81858;
}
/* Panel-Überschrift (wiederholt den Reiternamen) ruhiger, in Satzschreibung */
body.bac-design.woocommerce div.product .woocommerce-Tabs-panel > h2:first-child {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  text-transform: none;
}
/* Eigenschaften-Tabelle: Haarlinien statt Kästen */
body.bac-design.woocommerce table.woocommerce-product-attributes {
  width: 100%;
  border: 0;
  border-collapse: collapse;
}
body.bac-design.woocommerce table.woocommerce-product-attributes :is(th, td) {
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  background: none;
  text-align: left;
  font-style: normal;
  vertical-align: top;
}
body.bac-design.woocommerce table.woocommerce-product-attributes th {
  width: 35%;
  padding-right: 1rem;
  font-weight: 700;
  color: rgba(46, 54, 64, 0.75);
}
body.bac-design.woocommerce table.woocommerce-product-attributes td p { margin: 0; }

/* Ähnliche Produkte und Zusatzverkäufe: dieselben Karten (loop-start liefert auch dort bac-products) */
body.bac-design section.related.products,
body.bac-design section.up-sells.products { margin-top: 3.5rem; }
body.bac-design :is(section.related.products, section.up-sells.products) > h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  text-transform: none;
}

/* ---------- Warenkorb (Block) ---------- */
/* Leerer Warenkorb: ruhig, ohne Smiley */
body.bac-design .wc-block-cart__empty-cart__title {
  margin: 2rem 0 1rem;
  font-family: var(--font-secondary);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #2e3640;
}
body.bac-design .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { display: none; }
body.bac-design .wp-block-woocommerce-empty-cart-block .wp-block-separator { color: rgba(46, 54, 64, 0.25); }

/* Satzschreibung in Kopfzeile und Summenbox (WC setzt dort Versalien) */
body.bac-design table.wc-block-cart-items .wc-block-cart-items__header,
body.bac-design .wc-block-cart .wc-block-cart__totals-title {
  text-transform: none;
  letter-spacing: 0;
}

/* Weiter zur Kasse: Raspberry-Pille (die übrigen Block-Buttons bleiben beim Theme) */
body.bac-design .wp-block-woocommerce-cart .wc-block-cart__submit-button {
  background-color: #a81858;
  border: 1px solid #a81858;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease;
}
body.bac-design .wp-block-woocommerce-cart .wc-block-cart__submit-button:hover,
body.bac-design .wp-block-woocommerce-cart .wc-block-cart__submit-button:focus-visible {
  background-color: #7c1241;
  border-color: #7c1241;
  color: #fff;
}

/* Hinweisbox unter dem Warenkorb: Mist statt Rosa */
body.bac-design .page-content .bg-accent.text-component {
  padding: 1.25rem 1.5rem;
  background: #eef1f3;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 1rem;
  color: rgba(46, 54, 64, 0.85);
}
body.bac-design .page-content .bg-accent.text-component h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
body.bac-design .page-content .bg-accent.text-component > :last-child { margin-bottom: 0; }

/* Cross-Sells im Warenkorb (Block-Raster): gleiche Haarlinien-Optik */
body.bac-design .wc-block-grid__product {
  padding: 1rem;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 1rem;
  box-shadow: none;
}

/* ---------- Praxis-Hinweisbox auf Kategorien ---------- */
body.bac-design .bac-praxis-hinweis {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: #eef1f3;
  border: 1px solid var(--bac-line, rgba(46, 54, 64, 0.12));
  border-radius: 1rem;
}
body.bac-design .bac-praxis-hinweis p { margin: 0; max-width: 40rem; color: rgba(46, 54, 64, 0.85); }
body.bac-design .bac-praxis-hinweis strong { font-family: var(--font-secondary); font-weight: 600; color: #2e3640; }

/* ---------- Kasse (klassisch, wooccm) ----------
   checkout.js/wooccm markieren leere Pflichtfelder schon beim Laden als ungültig.
   Rot erst, wenn das Feld berührt wurde (.bac-beruehrt), nach einem Absendeversuch
   (.bac-versucht) oder wenn WooCommerce Fehler meldet. Die Validierung bleibt aktiv. */
body.bac-design form.checkout:not(.bac-versucht):not(:has(.woocommerce-NoticeGroup-checkout, .woocommerce-error)) .form-row.woocommerce-invalid-required-field:not(.bac-beruehrt) :is(label, .required) { color: inherit; }
body.bac-design form.checkout:not(.bac-versucht):not(:has(.woocommerce-NoticeGroup-checkout, .woocommerce-error)) .form-row.woocommerce-invalid-required-field:not(.bac-beruehrt) :is(input.input-text, textarea, select, .select2-container .select2-selection) {
  border-color: rgba(46, 54, 64, 0.2);
  box-shadow: none;
}
body.bac-design form.checkout:not(.bac-versucht):not(:has(.woocommerce-NoticeGroup-checkout, .woocommerce-error)) .form-row.woocommerce-invalid-required-field:not(.bac-beruehrt) .checkout-inline-error-message { display: none; }
/* Rot, wenn aktiv: ruhiges Fehlerrot aus base.css */
body.bac-design form.checkout .form-row.woocommerce-invalid :is(input.input-text, textarea, select, .select2-container .select2-selection) {
  border-color: var(--color-error, #c0392b);
}

/* select2 (Land, Bundesland): Höhe und Textlage wie die übrigen Felder aus base.css
   (Padding 0,65rem, Zeilenhöhe 1,3, Rahmen 1px) */
body.bac-design .select2-container .select2-selection--single {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: auto;
  min-height: 2.725rem;
  background-color: #fff;
  border: 1px solid rgba(46, 54, 64, 0.2);
  border-radius: 0.75rem;
}
body.bac-design .select2-container .select2-selection--single .select2-selection__rendered {
  flex: 1;
  padding: 0.65rem 2rem 0.65rem 0.9rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.3;
  color: #2e3640;
}
body.bac-design .select2-container .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 0.5rem;
  height: 100%;
}
body.bac-design .select2-container--open .select2-selection--single,
body.bac-design .select2-container--focus .select2-selection--single {
  border-color: #a81858;
  box-shadow: 0 0 0 3px rgba(168, 24, 88, 0.18);
}
body.bac-design .select2-dropdown { border-color: rgba(46, 54, 64, 0.2); border-radius: 0.75rem; overflow: hidden; }
