/* ============================================================
   BauFaktura Shop Design – v1.8.0
   Primärfarbe: #2B44B0 (BauFaktura Blau)
   Kompatibel mit: OneQrew Timber-Theme + WooCommerce
   ============================================================ */

/* ── CSS-Variablen ─────────────────────────────────────────── */
:root {
  --bf-blue:        #2B44B0;
  --bf-blue-dark:   #1A2F7A;
  --bf-blue-light:  #e8edf8;
  --bf-blue-border: #c5cfe8;
  --bf-green:       #1D9E75;
  --bf-radius:      8px;
  --bf-radius-lg:   12px;
  --bf-border:      0.5px solid #e0e0e0;
  --bf-text:        #1a1a1a;
  --bf-muted:       #666;
  --bf-bg:          #fff;
  --bf-bg-alt:      #f9f9f9;
}

/* ── Wrapper & Layout ──────────────────────────────────────── */
.bf-shop {
  background: var(--bf-bg);
  min-height: 60vh;
}

.bf-shop .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.bf-shop__breadcrumb {
  padding: 10px 24px;
  font-size: 12px;
  color: var(--bf-muted);
  border-bottom: var(--bf-border);
}

.bf-shop__breadcrumb a,
.wc-breadcrumb a {
  color: var(--bf-blue);
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────── */
.bf-shop__hero {
  padding: 36px 24px 24px;
  border-bottom: var(--bf-border);
  background: var(--bf-bg-alt);
}

.bf-shop__hero-title {
  font-size: 26px !important;
  font-weight: 600 !important;
  color: var(--bf-text) !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}

.bf-shop__hero-sub {
  font-size: 14px;
  color: var(--bf-muted);
  margin: 0;
  max-width: 520px;
  line-height: 1.6;
}

/* ── Hero kompakt (Warenkorb / Kasse / Mein Konto) ────────── */
.bf-shop__hero--compact {
  padding: 14px 24px 12px;
  background: var(--bf-bg);
  border-bottom: var(--bf-border);
}

.bf-shop__hero--compact .bf-shop__hero-title {
  font-size: 18px !important;
}

/* ── "Zurück zum Shop"-Link im Warenkorb ──────────────────── */
.woocommerce .return-to-shop,
.woocommerce-page .return-to-shop {
  margin-top: 12px;
  text-align: left;
}

.woocommerce a.wc-backward,
.woocommerce-page a.wc-backward,
.woocommerce .return-to-shop a.button,
.woocommerce-page .return-to-shop a.button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: transparent !important;
  color: var(--bf-blue) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  width: auto !important;
  min-height: unset !important;
  line-height: 1.4 !important;
}

.woocommerce a.wc-backward:hover,
.woocommerce-page a.wc-backward:hover,
.woocommerce .return-to-shop a.button:hover,
.woocommerce-page .return-to-shop a.button:hover {
  background: transparent !important;
  color: var(--bf-blue-dark) !important;
  text-decoration: underline !important;
}

/* ── Filter-Pills ──────────────────────────────────────────── */
.bf-shop__filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: var(--bf-border);
}

.bf-filter-pill {
  display: inline-block;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 0.5px solid #e0e0e0;
  color: var(--bf-muted);
  background: var(--bf-bg);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.bf-filter-pill:hover {
  border-color: var(--bf-blue);
  color: var(--bf-blue);
}

.bf-filter-pill--active {
  background: var(--bf-blue);
  color: #fff !important;
  border-color: var(--bf-blue);
}

/* ── Shop-Inhalt ───────────────────────────────────────────── */
.bf-shop__content {
  padding: 0;
}

.bf-shop__content .woocommerce-notices-wrapper {
  padding: 16px 24px 0;
}

/* ── Produkt-Grid ──────────────────────────────────────────── */
.bf-shop__content ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 1fr !important;
  gap: 1px !important;
  background: #e8e8e8 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  clear: none !important;
  align-items: stretch !important;
}

/* WooCommerce clearfix-Pseudo-Elemente deaktivieren (wuerden Grid-Zellen belegen) */
.bf-shop__content ul.products::before,
.bf-shop__content ul.products::after {
  content: none !important;
  display: none !important;
}

/* WooCommerce + Hounker-Theme float-Layout neutralisieren */
.bf-shop__content ul.products > li,
.bf-shop__content ul.products li.product {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  /* padding kommt von .bf-product-card – hier KEIN override */
  clear: none !important;
  border-radius: 0 !important;
  border: none !important;
  overflow: visible !important;
  box-shadow: none !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Theme-Override: border-radius auf li.product nochmals erzwingen */
.bf-shop__content ul.products li.product,
.bf-shop__content ul.products li.product.type-product,
ul.products li.product.type-product {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bf-shop__content ul.products li.product:hover {
  box-shadow: none !important;
}

@media (max-width: 900px) {
  .bf-shop__content ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .bf-shop__content ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ── Produkt-Karte ─────────────────────────────────────────── */
.bf-product-card {
  position: relative;
  background: var(--bf-bg);
  padding: 24px 24px 20px !important;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.bf-product-card:hover {
  background: var(--bf-bg-alt);
}

.bf-product-card--featured {
  border-top: 2px solid var(--bf-blue);
}

.bf-product-card__link {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bf-product-card__cat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bf-blue);
  margin-bottom: 8px;
}

.bf-product-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--bf-blue-light);
  border: 0.5px solid var(--bf-blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.bf-product-card__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.bf-product-card__name-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.bf-product-card__name,
.bf-product-card__name.woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bf-text);
  margin: 0;
  line-height: 1.3;
}

.bf-product-card__name a {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.bf-product-card__desc {
  font-size: 12px;
  color: var(--bf-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 5.4em;
}

.bf-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.bf-product-card__price-wrap {
  display: flex;
  flex-direction: column;
}

.bf-product-card__price,
.bf-product-card__price .amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--bf-blue);
  line-height: 1.2;
}

.bf-product-card__price del {
  color: var(--bf-muted);
  font-weight: 400;
  font-size: 13px;
}

.bf-product-card__tax {
  font-size: 10px;
  color: #aaa;
  margin-top: 1px;
}

/* ── Badges ────────────────────────────────────────────────── */
.bf-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: .04em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.bf-badge--popular  { background: var(--bf-green);       color: #fff; }
.bf-badge--new      { background: var(--bf-blue-light);   color: var(--bf-blue); }
.bf-badge--required { background: #c0392b;                color: #fff; }
.bf-badge--sale     { background: #e67e22;                color: #fff; }

/* ── Card-Buttons ──────────────────────────────────────────── */
.bf-product-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bf-btn-card,
a.bf-btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1.5px solid var(--bf-blue);
  color: var(--bf-blue) !important;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  line-height: 1;
}

/* Primärer Button: "mehr Details" — gefüllt blau */
a.bf-btn-card.bf-btn-card--primary,
.bf-btn-card.bf-btn-card--primary {
  padding: 7px 13px;
  font-weight: 600;
  background: var(--bf-blue) !important;
  color: #fff !important;
  border-color: var(--bf-blue) !important;
}

a.bf-btn-card.bf-btn-card--primary:hover,
.bf-btn-card.bf-btn-card--primary:hover {
  background: var(--bf-blue-dark) !important;
  border-color: var(--bf-blue-dark) !important;
  color: #fff !important;
}

/* Sekundärer Button: Warenkorb-Icon */
.bf-btn-card--cart,
a.bf-btn-card--cart {
  width: 32px;
  height: 32px;
  padding: 0;
  border-color: #d0d0d0;
  color: var(--bf-muted) !important;
  background: var(--bf-bg-alt);
}

.bf-btn-card--cart:hover,
a.bf-btn-card--cart:hover {
  border-color: var(--bf-blue);
  background: var(--bf-blue-light);
  color: var(--bf-blue) !important;
}

.bf-btn-card--cart svg {
  display: block;
  flex-shrink: 0;
}

/* ── WooCommerce Standard-Buttons überschreiben ─────────────── */
.bf-shop .button.add_to_cart_button {
  background: transparent !important;
  color: var(--bf-blue) !important;
  border: 1.5px solid var(--bf-blue) !important;
  border-radius: 6px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.bf-shop .button.add_to_cart_button:hover {
  background: var(--bf-blue) !important;
  color: #fff !important;
}

/* ── WooCommerce Pagination ──────────────────────────────────── */
.bf-shop .woocommerce-pagination {
  border-top: var(--bf-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bf-shop .woocommerce-pagination .page-numbers {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bf-shop .woocommerce-pagination .page-numbers li a,
.bf-shop .woocommerce-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0.5px solid #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
  color: var(--bf-muted);
  text-decoration: none;
}

.bf-shop .woocommerce-pagination .page-numbers li .current {
  background: var(--bf-blue);
  color: #fff;
  border-color: var(--bf-blue);
}

/* ── Ordering / Result count ─────────────────────────────────── */
.bf-shop .woocommerce-result-count {
  font-size: 12px;
  color: var(--bf-muted);
  margin: 0;
}

.bf-shop .woocommerce-ordering {
  margin: 0;
}

.bf-shop .woocommerce-ordering select {
  font-size: 12px;
  border: 0.5px solid #e0e0e0;
  border-radius: 5px;
  padding: 4px 10px;
  color: var(--bf-muted);
  background: var(--bf-bg);
}

.bf-shop .woocommerce-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: var(--bf-border);
  gap: 12px;
}

/* ════════════════════════════════════════════════════════════
   EINZELPRODUKT (Single Product)
   ════════════════════════════════════════════════════════════ */

.bf-shop__content--single {
  padding: 0;
}

/* ── Produkt-Layout (2 Spalten) ──────────────────────────────── */
.bf-shop__content--single .product {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  border-bottom: var(--bf-border);
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  align-items: start !important;
}

/* WooCommerce float-Layout für Galerie + Summary neutralisieren */
.bf-shop__content--single .product .woocommerce-product-gallery,
.bf-shop__content--single .product div.images {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.bf-shop__content--single .product .summary,
.bf-shop__content--single .product div.summary {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Galerie-Bild vollbreit innerhalb der Spalte */
/* Galerie: nur Container-Breite vorgeben, Flexslider managt die Bilder intern */
.bf-shop__content--single .woocommerce-product-gallery {
  min-width: 0;
}
.bf-shop__content--single .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .bf-shop__content--single .product {
    grid-template-columns: 1fr;
  }
}

/* Spalte 1: Galerie */
.bf-shop__content--single .woocommerce-product-gallery {
  padding: 24px;
  border-right: var(--bf-border);
}

.bf-shop__content--single .woocommerce-product-gallery__wrapper img {
  border-radius: var(--bf-radius);
  border: 0.5px solid #e0e0e0;
  width: 100%;
  height: auto;
}

.bf-shop__content--single .flex-control-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.bf-shop__content--single .flex-control-thumbs li img {
  border-radius: 5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  width: 52px;
  height: 40px;
  object-fit: cover;
}

.bf-shop__content--single .flex-control-thumbs li img.flex-active {
  border-color: var(--bf-blue);
}

/* Spalte 2: Info */
.bf-shop__content--single .summary {
  padding: 24px;
}

/* Kategorie-Eyebrow */
.bf-shop__content--single .posted_in {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bf-muted);
  margin-bottom: 6px;
  display: block;
}

.bf-shop__content--single .posted_in a {
  color: var(--bf-muted);
  text-decoration: none;
}

/* Produkttitel */
.bf-shop__content--single .product_title {
  font-size: 22px;
  font-weight: 600;
  color: var(--bf-text);
  margin: 0 0 6px;
  line-height: 1.25;
}

/* Kurzbeschreibung */
.bf-shop__content--single .woocommerce-product-details__short-description {
  font-size: 14px;
  color: var(--bf-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Bewertungssterne */
.bf-shop__content--single .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bf-shop__content--single .star-rating span::before {
  color: var(--bf-blue);
}

.bf-shop__content--single .woocommerce-review-link {
  font-size: 12px;
  color: var(--bf-muted);
  text-decoration: none;
}

/* Divider */
.bf-shop__content--single .summary hr.divider {
  border: none;
  border-top: 0.5px solid #f0f0f0;
  margin: 14px 0;
}

/* Preis */
.bf-shop__content--single .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 28px;
  font-weight: 600;
  color: var(--bf-blue);
  background: var(--bf-bg-alt);
  border-radius: var(--bf-radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.bf-shop__content--single .price .amount {
  font-size: 28px;
  font-weight: 600;
  color: var(--bf-blue);
}

.bf-shop__content--single .price del .amount {
  font-size: 16px;
  font-weight: 400;
  color: var(--bf-muted);
}

.bf-shop__content--single .woocommerce-price-suffix {
  font-size: 13px;
  font-weight: 400;
  color: var(--bf-muted);
}

/* Variationen (ECO / Premium) */
.bf-shop__content--single table.variations {
  width: 100%;
  border: none;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.bf-shop__content--single table.variations label {
  font-size: 12px;
  font-weight: 600;
  color: var(--bf-muted);
  letter-spacing: .04em;
}

.bf-shop__content--single table.variations select {
  width: 100%;
  font-size: 13px;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--bf-text);
  background: var(--bf-bg);
}

/* Add-to-Cart */
.bf-shop__content--single .cart {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.bf-shop__content--single .cart .qty {
  width: 60px;
  border: 0.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 8px;
  font-size: 14px;
  text-align: center;
}

.bf-shop__content--single .single_add_to_cart_button,
.bf-shop__content--single .button.single_add_to_cart_button {
  flex: 1;
  background: var(--bf-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 11px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.15s !important;
}

.bf-shop__content--single .single_add_to_cart_button:hover {
  background: var(--bf-blue-dark) !important;
}

/* Kompatibilitäts-Hinweis */
.bf-shop__content--single .woocommerce-product-attributes-item--attribute_pa_kompatibel {
  font-size: 12px;
  color: var(--bf-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}

/* SKU / Meta */
.bf-shop__content--single .product_meta {
  font-size: 12px;
  color: #aaa;
  margin-top: 10px;
}

.bf-shop__content--single .product_meta a {
  color: var(--bf-blue);
  text-decoration: none;
}

/* Trust-Row */
.bf-trust-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bf-trust-item {
  flex: 1;
  background: var(--bf-bg-alt);
  border-radius: var(--bf-radius);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--bf-muted);
  text-align: center;
  border: 0.5px solid #e8e8e8;
}

/* ── Tabs ────────────────────────────────────────────────────── */
.bf-shop__content--single .woocommerce-tabs {
  border-top: 0.5px solid #e8e8e8;
  grid-column: 1 / -1;
}

.bf-shop__content--single .woocommerce-tabs ul.tabs {
  display: flex;
  padding: 0 24px;
  margin: 0;
  list-style: none;
  background: var(--bf-bg-alt);
  border-bottom: 0.5px solid #e8e8e8;
}

.bf-shop__content--single .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.bf-shop__content--single .woocommerce-tabs ul.tabs li::before,
.bf-shop__content--single .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.bf-shop__content--single .woocommerce-tabs ul.tabs li a {
  display: block;
  font-size: 13px;
  padding: 12px 18px;
  color: var(--bf-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: color 0.15s;
}

.bf-shop__content--single .woocommerce-tabs ul.tabs li.active a {
  color: var(--bf-blue);
  border-bottom-color: var(--bf-blue);
  font-weight: 600;
}

.bf-shop__content--single .woocommerce-tabs .panel {
  padding: 24px;
  background: var(--bf-bg);
}

/* ── Feature-Grid im Tab (Funktionsumfang) ──────────────────── */
.bf-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .bf-feature-grid { grid-template-columns: 1fr; }
}

.bf-feature-block {
  background: var(--bf-bg-alt);
  border-radius: var(--bf-radius);
  padding: 14px;
}

.bf-feature-block__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bf-text);
  margin: 0 0 4px;
}

.bf-feature-block__desc {
  font-size: 12px;
  color: var(--bf-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Systemvoraussetzungen Tab ───────────────────────────────── */
.bf-sys-req__table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--bf-radius);
  overflow: hidden;
  border: 0.5px solid #e0e0e0;
}

.bf-sys-req__table tr {
  border-bottom: 0.5px solid #f0f0f0;
}

.bf-sys-req__table tr:last-child { border-bottom: none; }

.bf-sys-req__key {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--bf-muted);
  background: var(--bf-bg-alt);
  border-right: 0.5px solid #f0f0f0;
  width: 40%;
}

.bf-sys-req__val {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--bf-text);
}

/* ── Verwandte Produkte (Related) ────────────────────────────── */
.bf-shop__content--single .related.products {
  grid-column: 1 / -1;
  padding: 20px 24px;
  background: var(--bf-bg-alt);
  border-top: 0.5px solid #e8e8e8;
}

.bf-shop__content--single .related.products h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bf-muted);
  margin: 0 0 14px;
}

.bf-shop__content--single .related ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
  background: #e8e8e8;
  border-radius: var(--bf-radius-lg);
  overflow: hidden;
}

/* ── WooCommerce Notices ──────────────────────────────────────── */
.bf-shop .woocommerce-message,
.bf-shop .woocommerce-info,
.bf-shop .woocommerce-error {
  border-radius: var(--bf-radius);
  border-top: 3px solid var(--bf-blue);
  padding: 12px 16px;
  margin: 16px 24px;
  font-size: 13px;
  background: var(--bf-blue-light);
  color: var(--bf-text);
}

/* ── Keine Produkte gefunden ──────────────────────────────────── */
.bf-shop .woocommerce-info {
  text-align: center;
  padding: 40px 24px;
}




/* ════════════════════════════════════════════════════════════
   BUY BOX v1.8 – Produktversion / Feature-Liste / CTA
   ════════════════════════════════════════════════════════════ */

/* Sicherstellen, dass das Variations-Formular vertikal stapelt */
.bf-variations-form {
  display: block !important;
  width: 100% !important;
}

.bf-variations-form > * {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Standard-WC Kurzbeschreibungs-Wrapper verstecken (bf_shop_single_description_text übernimmt) */
.bf-shop__content--single .woocommerce-product-details__short-description {
  display: none !important;
}

/* Standard-Preis in Summary verstecken (kommt im Variations-Block) */
.bf-shop__content--single .summary > .price,
.bf-shop__content--single .summary > p.price {
  display: none !important;
}

/* Standard-Variationen-Tabelle verstecken (ersetzt durch Toggle-Buttons) */
.bf-shop__content--single .variations_form table.variations {
  display: none !important;
}

/* ── Beschreibungstext ───────────────────────────────────────── */
.bf-product-description {
  margin: 0 0 20px;
}

.bf-product-desc-text {
  font-size: 14px;
  color: var(--bf-muted);
  line-height: 1.65;
  margin: 0 0 6px;
}

/* ── "Produktversion wählen" Label ───────────────────────────── */
.bf-variant-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  color: var(--bf-muted) !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

/* ── Verstecktes WC-Select ───────────────────────────────────── */


/* ── Toggle-Button-Gruppe (ECO / PREMIUM) ────────────────────── */
.bf-variant-switch-wrapper {
  margin-bottom: 20px;
}

.bf-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bf-toggle-btn {
  flex: 1;
  min-width: 90px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--bf-blue-border);
  border-radius: var(--bf-radius);
  background: var(--bf-bg);
  color: var(--bf-text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.3;
}

.bf-toggle-btn:hover {
  border-color: var(--bf-blue);
  color: var(--bf-blue);
  background: var(--bf-blue-light);
}

.bf-toggle-btn--active {
  border-color: var(--bf-blue) !important;
  background: var(--bf-blue) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(43,68,176,.22);
}

/* ── Feature-Liste (wie im Mockup) ──────────────────────────── */
.bf-feat-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.bf-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--bf-text);
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.45;
}

.bf-feat-item:last-child {
  border-bottom: none;
}

.bf-feat-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bf-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

/* ── Preis-Block (nach Varianten-Auswahl) ────────────────────── */
.single_variation_wrap {
  display: block !important;
  width: 100% !important;
}

.bf-variation-price-block {
  min-height: 0;
}

.bf-variation-price-block .woocommerce-variation-price {
  background: var(--bf-bg-alt);
  border-radius: var(--bf-radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.bf-variation-price-block .price,
.bf-variation-price-block .woocommerce-variation-price .price {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--bf-blue) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.bf-variation-price-block .price .amount {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--bf-blue) !important;
}

.bf-variation-price-block .woocommerce-price-suffix {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--bf-muted) !important;
}

.bf-variation-price-block .woocommerce-variation-description {
  display: none;
}

/* ── Warenkorb-Button (volle Breite) ─────────────────────────── */
.bf-atc-wrap {
  display: block !important;
  width: 100% !important;
}

.bf-atc-wrap .qty {
  display: none !important;
}

.bf-btn-atc,
.bf-shop__content--single .bf-btn-atc,
.bf-shop__content--single .single_add_to_cart_button.bf-btn-atc {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bf-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--bf-radius) !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
  cursor: pointer !important;
  letter-spacing: .02em !important;
  transition: background 0.15s !important;
  box-shadow: 0 2px 10px rgba(43,68,176,.20) !important;
  margin-bottom: 4px !important;
}

.bf-btn-atc:hover,
.bf-shop__content--single .bf-btn-atc:hover {
  background: var(--bf-blue-dark) !important;
}

/* ── Trust-Row ───────────────────────────────────────────────── */
.bf-trust-row {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.bf-trust-item {
  flex: 1;
  min-width: 90px;
  background: var(--bf-bg-alt);
  border-radius: var(--bf-radius);
  padding: 7px 8px;
  font-size: 11px;
  color: var(--bf-muted);
  text-align: center;
  border: 0.5px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ════════════════════════════════════════════════════════════
   USP-Strip, Promo-Card, Sticky Widget
   ════════════════════════════════════════════════════════════ */

/* ── USP-Strip ───────────────────────────────────────────────── */
.bf-usp-strip {
  background: var(--bf-blue-light);
  border-bottom: 0.5px solid var(--bf-blue-border);
}

.bf-usp-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 14px 24px;
  flex-wrap: wrap;
}

.bf-usp-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bf-text);
  white-space: nowrap;
}

.bf-usp-item svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .bf-usp-strip__inner {
    gap: 12px;
    justify-content: flex-start;
  }
  .bf-usp-item {
    white-space: normal;
  }
}

/* ── Promo-Card im Produkt-Grid ──────────────────────────────── */
.bf-promo-card {
  list-style: none;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.bf-promo-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bf-blue);
  border-radius: var(--bf-radius-lg);
  padding: 28px 24px;
  box-sizing: border-box;
}

.bf-promo-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 8px;
}

.bf-promo-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.bf-promo-card__text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0 0 20px;
}

.bf-promo-card__cta {
  display: inline-block;
  background: #fff;
  color: var(--bf-blue) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--bf-radius);
  text-decoration: none !important;
  width: fit-content;
  transition: background 0.15s, color 0.15s;
}

.bf-promo-card__cta:hover {
  background: var(--bf-blue-light);
  color: var(--bf-blue-dark) !important;
}

/* ── Sticky Demo-Widget ──────────────────────────────────────── */
.bf-sticky-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}

.bf-sticky-widget__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 0.5px solid var(--bf-blue-border);
  border-radius: 50px;
  padding: 10px 10px 10px 20px;
}

.bf-sticky-widget__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.bf-sticky-widget__text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--bf-text);
}

.bf-sticky-widget__text span {
  font-size: 11px;
  color: var(--bf-muted);
}

.bf-sticky-widget__cta {
  display: inline-block;
  background: var(--bf-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}

.bf-sticky-widget__cta:hover {
  background: var(--bf-blue-dark);
}

@media (max-width: 600px) {
  .bf-sticky-widget {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  .bf-sticky-widget__inner {
    border-radius: var(--bf-radius-lg);
    justify-content: space-between;
  }
}

/* ── Doppeltes "Beschreibung" im Tab-Panel verstecken ────────── */
.bf-shop__content--single .woocommerce-tabs .panel > h2:first-child {
  display: none !important;
}

/* ── Preis-Range bei ähnlichen Produkten verstecken ──────────── */
.bf-shop__content--single .related.products .price,
.bf-shop__content--single .related.products .woocommerce-Price-amount {
  display: none !important;
}

/* ── Kaufhinweis (Purchase Note) ─────────────────────────────── */
.bf-purchase-note {
  font-size: 12px;
  color: var(--bf-muted);
  background: var(--bf-bg-alt);
  border-left: 2px solid var(--bf-blue-border);
  border-radius: 0 var(--bf-radius) var(--bf-radius) 0;
  padding: 8px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Trust-Row: Inhalte kommen aus Plugin-Defaults ───────────── */
/* (kein weiterer CSS-Bedarf – bestehende Stile bleiben) */

/* WooCommerce Variations-Tabelle: im DOM lassen (JS braucht sie), visuell verstecken */
/* Screen-reader-only: WC-JS findet die Selects, aber Nutzer sehen die Tabelle nicht */
.bf-variations-wc-table {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  white-space: nowrap !important;
}

/* Attribut-Tabs: Inhalt */
.bf-attr-tab-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bf-attr-tab-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--bf-text);
  padding: 6px 0;
  border-bottom: 1px solid #f5f5f5;
  line-height: 1.5;
}

.bf-attr-tab-item:last-child {
  border-bottom: none;
}

.bf-attr-tab-item::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border-radius: 50%;
  background: var(--bf-blue);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 5L3.8 7.5L8.5 2.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 1px;
}

/* Einzel-Textwert (kein Listen-Attribut) */
.bf-attr-tab-text {
  font-size: 13px;
  color: var(--bf-text);
  line-height: 1.6;
  margin: 0;
}
