/* ==========================================================
   BT Single Product CSS (SSOT)
   Zweck:
   - Single-Product Styles aus bt-ui.css auslagern
   - nur auf is_product laden -> reduziert Render-Delay (LCP)
   PATCH 2026-02-05: Migration aus ehem. Customizer/bt-ui Abschnitt
   ========================================================== */

   body.single-product {
    margin: 0;
    padding: 0;
}

/* Produktname auf der Einzelproduktseite */
.single-product h1.product_title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--bt-accent-text);
  font-weight: 700;
  font-size: 35px !important;
  letter-spacing: 2.3px;
  margin-bottom: 20px;
}

h1.produkt-hinweis {
  font-size: 30px !important;
}

#bt-beschreibung p a {
  color: var(--bt-accent);
  text-decoration-line: none;
}

#bt-beschreibung p a:hover {
  color: var(--bt-accent);
  text-decoration-line: underline;
  text-underline-offset: 2px;
}

/* Produktbild Border */
.woocommerce div.product div.images img {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   PATCH 2026-03-03: Woo Gallery LCP Render-Delay Kill (Single Product)
   Zweck:
   - Woo setzt inline style "opacity:0 + transition" auf .woocommerce-product-gallery
   - Das verzögert das Paint des Hero-Bildes => Lighthouse "Element render delay"
   Warum:
   - LCP-Bild soll sofort painten, ohne Fade/JS-Reveal (keine Nebenwirkungen, CLS=0)
   ========================================================== */
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper {
  opacity: 1 !important;
  transition: none !important;
}

/* ==========================================================
   Mobile Product Gallery – stabile LCP-/Viewport-Geometrie
   Zweck:
   - Galerie darf mobil niemals breiter als der Viewport werden.
   - Produktbild bleibt innerhalb der Galerie.
   - Verhindert horizontalen Overflow.
   ========================================================== */

@media (max-width: 768px) {

  body.single-product .woocommerce-product-gallery,
  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image,
  body.single-product .woocommerce-product-gallery__image a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.single-product .woocommerce-product-gallery__image img,
  body.single-product img.wp-post-image {
    display: block !important;
    width: min(86vw, 451px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Summary Box Wrapper */
.summary.entry-summary {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1% !important;
}

/* Unterer Preisblock */
.bt-price-bottom {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(0 0 0 / 27%);
}

.bt-price-bottom .price {
  font-size: 1.2em;
  font-weight: 700;
}

/* Cart Form Borders */
.woocommerce div.product form.cart {
  padding-top: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  margin-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


/* ==========================================================
   SUMMARY – TRUST BLOCK (Brand Checks + Responsive)
   ========================================================== */

.bt-product-summary-box {
  color: var(--bt-accent-text);
}

/* START PATCH 2026-05-26: Summary-Box zweispaltig – Kaufzone links, Fakten rechts
   Warum:
   - Titel, Preis und Kaufaktion bleiben als geschlossene Kaufzone zusammen.
   - Fakten nutzen den rechten Raum und reduzieren die Gesamthöhe der Summary.
*/
.bt-product-summary-box__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(295px, 375px);
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto;

  grid-template-areas:
    "title title"
    "buy facts"
    "cart cart";

  column-gap: 30px;
  row-gap: 8px;
  align-items: start;

  /*
   * Stabile Gesamtfläche:
   * Titeländerungen verbrauchen die flexible mittlere Höhe,
   * während Cart und Trustbox ihre Position behalten.
   */

  /* min-height: 315px; */
}

.bt-product-summary-box__title {
  grid-area: title;
  display: block;
  min-width: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  padding-right: 30px;
}

.bt-product-summary-box__buy {
  grid-area: buy;
}

.bt-product-summary-box__facts {
  grid-area: facts;
}

.bt-product-summary-box__cart {
  grid-area: cart;
  align-self: end;
}

.bt-product-summary-box__buy,
.bt-product-summary-box__facts,
.bt-product-summary-box__cart {
  min-width: 0;
}

.bt-product-summary-box__facts {
  position: relative;
  padding-top: 12px;
  padding-left: 30px;
  border-left: 0;
}

.bt-product-summary-box__facts::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.bt-product-summary-box__cart {
  margin-top: 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-product-summary-box__facts-title {
  margin: 0 0 12px;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--bt-accent);
    display: block;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
}



.bt-product-summary-box__facts-title:hover,
.bt-product-summary-box__facts-title:focus-visible {
  color: var(--bt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* START PATCH 2026-05-27: Preis + MwSt. als echte Preiszeile
   Warum:
   - Die PHP-Ausgabe trennt Steuer und Versand jetzt strukturell.
   - CSS muss nur noch die neue saubere Struktur ruhig ausrichten.
*/
.bt-product-summary-box__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

.bt-product-summary-box__price {
  margin: 0;
  font-size: 1.32em;
  line-height: 1.2;
}

.bt-product-summary-box__tax,
.bt-product-summary-box__shipping {
  font-size: 0.92em;
  line-height: 1.35;
}

.bt-product-summary-box__tax p,
.bt-product-summary-box__shipping p {
  display: inline;
  margin: 0;
}

.bt-product-summary-box__tax .wc-gzd-additional-info,
.bt-product-summary-box__shipping .wc-gzd-additional-info {
  margin: 0;
}

.bt-product-summary-box__shipping {
  margin-top: 4px;
}
/* END PATCH 2026-05-27 */

.bt-product-summary-box__cart form.cart {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0 !important;
  border-bottom: 0 !important;
}



/* START PATCH 2026-05-27: Quantity + Button als voller CTA-Streifen
   Warum:
   - Variable Produkte haben Quantity/Button in .woocommerce-variation-add-to-cart.
   - Einfache Produkte haben Quantity/Button direkt in form.cart.
   - Nach Add-to-Cart wickelt bt-atc-inline-feedback.js den Button in .bt-atc-inline-wrap.
   - Die Summary-CTA muss deshalb beide DOM-Zustände stabil abdecken.
*/
.bt-product-summary-box__cart .woocommerce-variation-add-to-cart,
.bt-product-summary-box__cart > form.cart:not(.variations_form) {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.bt-product-summary-box__cart .woocommerce-variation-add-to-cart > .quantity,
.bt-product-summary-box__cart > form.cart:not(.variations_form) > .quantity {
  display: block !important;
  float: none !important;
  clear: none !important;
  flex: 0 0 92px;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  margin: 0 !important;
}

.bt-product-summary-box__cart
  .woocommerce-variation-add-to-cart
  > .quantity
  input.qty,
.bt-product-summary-box__cart
  > form.cart:not(.variations_form)
  > .quantity
  input.qty {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
}

.bt-product-summary-box__cart
  .woocommerce-variation-add-to-cart
  > button.single_add_to_cart_button,
.bt-product-summary-box__cart
  > form.cart:not(.variations_form)
  > button.single_add_to_cart_button,
.bt-product-summary-box__cart
  .woocommerce-variation-add-to-cart
  > .bt-atc-inline-wrap,
.bt-product-summary-box__cart
  > form.cart:not(.variations_form)
  > .bt-atc-inline-wrap {
  display: flex !important;
  float: none !important;
  clear: none !important;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px;
  margin: 0 !important;
}

.bt-product-summary-box__cart
  .bt-atc-inline-wrap
  > button.single_add_to_cart_button {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px;
  margin: 0 !important;
}
/* END PATCH 2026-05-27 */

@media (max-width: 1160px) {
  .bt-product-summary-box__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      auto
      auto
      auto
      minmax(0, 1fr)
      auto;

    grid-template-areas:
      "title"
      "facts"
      "buy"
      "."
      "cart";

    gap: 5px;
    /* min-height: 380px; */
  }

  .bt-product-summary-box__facts {
    padding-top: 0;
    padding-left: 0;
  }

  .bt-product-summary-box__facts::before {
    display: none;
  }

  .bt-product-summary-box__facts-title {
    display: none;
  }
}

@media (max-width: 600px) {
  .bt-product-summary-box__cart .woocommerce-variation-add-to-cart,
  .bt-product-summary-box__cart > form.cart:not(.variations_form) {
    gap: 10px;
  }

  .bt-product-summary-box__cart .woocommerce-variation-add-to-cart > .quantity,
  .bt-product-summary-box__cart > form.cart:not(.variations_form) > .quantity {
    flex-basis: 78px;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }
}
/* END PATCH 2026-05-26 */

/* START PATCH 2026-05-26: Variable Durchmesser-Summary
   Warum:
   - Durchmesser und Flugzeit werden bei variablen Produkten als aktive Auswahl gezeigt.
   - Woo-Variationsbeschreibung dient als Datenquelle, soll aber nicht doppelt sichtbar sein.
*/
.bt-product-summary-box__row--variation {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 10px;
  align-items: baseline;
}

.bt-product-summary-box__label {
  font-weight: 600;
  white-space: nowrap;
}

.bt-product-summary-box__value {
  min-width: 0;
}

/* START PATCH 2026-05-27: Leere dynamische Summary-Zeilen sicher ausblenden
   Warum:
   - JS setzt hidden, wenn ein Variationswert wie Umfang nicht vorhanden ist.
   - Die Summary-Facts nutzen Grid; hidden soll dort zuverlässig gewinnen.
*/
.bt-product-summary-box__row[hidden] {
  display: none !important;
}
/* END PATCH 2026-05-27 */

.bt-product-summary-box [data-bt-summary-variation-price]:empty {
  display: none;
}

@media (max-width: 600px) {
  .bt-product-summary-box__row--variation {
    grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
    gap: 8px;
  }
}
/* END PATCH 2026-05-26 */

.bt-product-summary-trust__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bt-product-summary-trust__list li {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 10px;

  font-size: 15px;
  line-height: 1.55;
  color: #333;
}

/* Hervorhebungen */
.bt-product-summary-trust__list strong {
  font-weight: 600;
  color: #111;
}

/* ==========================================================
   Responsive: ab <=900px sauber stapeln (kein “kaputt” bei ~890)
   ========================================================== */
@media (max-width: 830px) {
  .bt-product-summary-trust__list li {
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Trust Check – SVG in Brandfarbe (erzwingt sichtbares ::before) */
.bt-product-summary-box .bt-product-summary-trust__list li::before {
  content: " " !important; /* wichtig: nicht leer, sonst „verschwindet“ ::before */
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  background-image: url(/wp-content/uploads/2026/03/check-icon-pink.svg);

  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
}
.bt-product-summary-box__variation-message {
  margin-top: 4px;
  font-weight: 600;
}

.bt-product-summary-box__variation-message-value {
  color: var(--bt-accent);
}

.bt-product-summary-box__variation-message--placeholder {
  visibility: hidden;
  pointer-events: none;
}




/* ==========================================================
   START: Product Service Panel
   Zweck:
   - Regionalen Serviceblock als ruhige Informationseinheit darstellen.
   - Optisch von Kurzbeschreibung und Swatches trennen,
     ohne die Product Summary zu dominieren.
   ========================================================== */


body.single-product .summary.entry-summary .bt-product-service-panel {
  position: relative;
  margin: 16px 0 18px;
  padding: 18px 28px 18px 82px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.025);
}

body.single-product .summary.entry-summary .bt-product-service-panel::before {
  content: "i";
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 2px solid currentColor;
  border-radius: 50%;

  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  font-style: normal;
}

body.single-product .summary.entry-summary .bt-product-service {
  font-size: 14px;
  line-height: 1.55;
}

body.single-product .summary.entry-summary .bt-product-service p {
  margin: 0;
}


@media (max-width: 600px) {
  body.single-product .summary.entry-summary .bt-product-service-panel {
    margin: 14px 0 16px;
    padding: 16px 16px 16px 62px;
  }

  body.single-product .summary.entry-summary .bt-product-service-panel::before {
    left: 16px;
    width: 34px;
    height: 34px;
    font-size: 21px;
  }
}













body.single-product .bt-product-top-wrap {
   width: 100%;
}

body.single-product .bt-product-top-wrap .bt-product-gallery-stack,
body.single-product .bt-product-top-wrap .summary.entry-summary {
   min-width: 0;
}

body.single-product .bt-product-top-wrap .summary.entry-summary {
   box-sizing: border-box;
}






/* ==========================================================
   Product Gallery Stack
   Zweck:
   - Galerie und Hinweis als gemeinsame visuelle Einheit führen
   - Woo-Gallery innerhalb des eigenen Stacks neutral halten
   ========================================================== */

body.single-product .bt-product-gallery-stack {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.single-product .bt-product-gallery-stack .woocommerce-product-gallery,
body.single-product .bt-product-gallery-stack .woocommerce-product-gallery__wrapper,
body.single-product .bt-product-gallery-stack .woocommerce-product-gallery__image,
body.single-product .bt-product-gallery-stack .woocommerce-product-gallery__image a,
body.single-product .bt-product-gallery-stack .woocommerce-product-gallery__image img {
  background: #fff !important;
}

body.single-product .bt-product-gallery-stack .woocommerce-product-gallery {
  padding: 0 !important;
  border-radius: 0 !important;
}

body.single-product .bt-product-gallery-stack .woocommerce-product-gallery__wrapper {
  margin-bottom: 0 !important;
}

@media (min-width: 769px) {
  body.single-product
  .bt-product-gallery-stack
  img.wp-post-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}
/* ==========================================================
   Hinweis unter Produktgalerie
   ========================================================== */
.bt-product-gallery-note {
  display: block;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #666;
  background-color: var(--base-2);
}

.bt-product-gallery-note__label {
  font-weight: 600;
  color: #444;
}


@media (min-width: 701px) {
  body.single-product .bt-product-top-wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 32px;
  }

body.single-product .bt-product-top-wrap .bt-product-gallery-stack {
  flex: 0 0 38%;
  width: 38%;
  max-width: 38%;
  min-width: 0;
  align-self: flex-start !important;

  position: sticky !important;
  top: 152px !important;
}

  body.single-product
    .bt-product-top-wrap
    .bt-product-gallery-stack
    .woocommerce-product-gallery {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    margin-bottom: 8px;
  }

  body.single-product .bt-product-top-wrap .summary.entry-summary {
    float: none !important;
    clear: none !important;
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
   body.single-product .bt-product-top-wrap {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
   }

   body.single-product .bt-product-top-wrap .bt-product-gallery-stack,
   body.single-product .bt-product-top-wrap .summary.entry-summary {
      width: 100% !important;
      max-width: 100% !important;
   }
}










/* ==========================================================
   Single Product – Desktop Product-Top Layout

   Stabile zweispaltige Geometrie:
   - Galerie: 38 %
   - Summary: verbleibende Breite
   - min-width: 0 verhindert horizontale Layout-Ausdehnung
   - Galerie bleibt auf Desktop sticky

   Ursprünglich während der PSI-Diagnose eingeführt und
   anschließend als stabiler Produktionszustand beibehalten.
   ========================================================== */

@media (min-width: 769px) {
  body.single-product .bt-product-top-wrap {
    display: grid !important;
    grid-template-columns: 38% minmax(0, 1fr) !important;
    gap: 32px !important;
    align-items: start !important;
  }

  body.single-product .bt-product-top-wrap .bt-product-gallery-stack {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    position: sticky !important;
  }

  body.single-product .bt-product-top-wrap .summary.entry-summary {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }
}
