/*
Theme Name: Bonjour Ben (Whisper-Port)
Template: storefront
Version: 0.7.3
Description: Pixel-Port des Shopify-Whisper-Themes für WooCommerce
Author: Cobema UG
Text Domain: bonjourben
*/

/* ==================================================================
   IMPORTANT: This file is loaded AS `storefront-child-style` by
   Storefront's parent AFTER `storefront-woocommerce-style.css`.
   Put any rules here that need to defeat Storefront's WC layout.
   ================================================================== */

/* ---------- Product page two-column layout (image LEFT, summary RIGHT) ---------- */
.woocommerce div.product.product-layout,
body.single-product .woocommerce div.product.product-layout {
  display: grid !important;
  grid-template-columns: 1.15fr 1fr !important;
  gap: 48px !important;
  margin: 32px 0 48px !important;
}
.woocommerce div.product.product-layout::before,
.woocommerce div.product.product-layout::after { content: none !important; display: none !important; }

.woocommerce div.product.product-layout > .product-layout__media,
.woocommerce div.product.product-layout > .images,
body.single-product .woocommerce div.product.product-layout > .product-layout__media {
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  grid-column: 1 / 2 !important;
  grid-row: 1 / 2 !important;
  order: 1 !important;
}
.woocommerce div.product.product-layout > .product-layout__summary,
.woocommerce div.product.product-layout > .summary,
body.single-product .woocommerce div.product.product-layout > .summary {
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  grid-column: 2 / 3 !important;
  grid-row: 1 / 2 !important;
  order: 2 !important;
}
.woocommerce div.product.product-layout > .product-layout__after {
  grid-column: 1 / -1 !important;
  grid-row: 2 / 3 !important;
}
@media (max-width: 900px) {
  .woocommerce div.product.product-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .woocommerce div.product.product-layout > .product-layout__media,
  .woocommerce div.product.product-layout > .product-layout__summary {
    grid-column: 1 / -1 !important;
  }
  .woocommerce div.product.product-layout > .product-layout__media {
    grid-row: 1 / 2 !important;
  }
  .woocommerce div.product.product-layout > .product-layout__summary {
    grid-row: 2 / 3 !important;
  }
}

/* WC product gallery should fill its column */
.woocommerce div.product.product-layout .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* ---------- Accordion: only .bb-open expands ---------- */
.bb-acc .bb-bdy {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height .4s ease;
}
.bb-acc .bb-bdy.bb-open {
  max-height: 4000px !important;
}
.bb-acc .bb-hdr {
  cursor: pointer;
  padding: 18px 4px;
}
.bb-acc .bb-hdr h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.bb-acc .bb-bdy-inner {
  padding: 4px 4px 24px;
}
.bb-acc .bb-bdy-inner p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
}
.bb-acc .bb-bdy-inner p:last-child { margin-bottom: 0; }

/* Description block (right of image, after add-to-cart) */
.product-description-block {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid #efece6;
}

/* ---------- Archive grid: kill Storefront's clearfix pseudo-elements ---------- */
/* They become Grid-Items in our display:grid layout and occupy the 1st + last slot. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}

/* While we're at it, make the archive grid layout explicit (and ignore the clearfix) */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  list-style: none !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  float: none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}
@media (max-width: 1100px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}
@media (max-width: 600px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ---------- Cart + Checkout: green CTA buttons ---------- */
/* "Weiter zur Kasse" in cart-block + classic checkout proceed-to-checkout button */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-button.wc-block-cart__submit-button,
.wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
button.wc-block-components-checkout-place-order-button,
.wc-block-cart .wp-block-button .wp-block-button__link {
  background-color: #2e7d32 !important;
  border-color: #2e7d32 !important;
  color: #ffffff !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-button.wc-block-cart__submit-button:hover,
.wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #payment #place_order:hover,
button.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart .wp-block-button .wp-block-button__link:hover {
  background-color: #1b5e20 !important;
  border-color: #1b5e20 !important;
}

/* ---------- Cart + Checkout buttons: rounded like Whisper primary buttons ---------- */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-button.wc-block-cart__submit-button,
.wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
button.wc-block-components-checkout-place-order-button,
.wc-block-cart .wp-block-button .wp-block-button__link,
.wc-block-cart .wp-block-button__link,
.wc-block-checkout .wp-block-button__link {
  border-radius: var(--button-radius, 37px) !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* ---------- Product card on archive: equal-height layout for varying titles ---------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.product-card.product-grid__item {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
.woocommerce ul.products li.product > a:first-child,
.woocommerce-page ul.products li.product > a:first-child,
.product-card.product-grid__item > a:first-child {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  text-decoration: none;
}
.product-card__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.product-card__content .woocommerce-loop-product__title {
  min-height: 2.6em;          /* reserve ~2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.product-card__content .price {
  margin-top: auto;           /* push price + button group to bottom */
}
/* Add-to-cart / Ausführung wählen button: bottom-aligned in card */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
.product-card.product-grid__item a.button {
  margin-top: 12px !important;
  align-self: stretch;
  text-align: center;
  border-radius: var(--button-radius, 37px) !important;
}

/* ---------- Legal pages (Impressum, Datenschutz, AGB, Widerruf) ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 0 64px;
}
.legal-page .legal-intro {
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #efece6;
}
.legal-page .legal-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent, #c4703c);
  margin: 0 0 8px;
}
.legal-page .legal-lead {
  font-size: 17px;
  line-height: 1.55;
  color: #4a4541;
  margin: 0;
}
.legal-page .bb-acc {
  max-width: 100%;
  margin: 0;
}
.legal-page .bb-acc .bb-hdr {
  padding: 20px 4px;
}
.legal-page .bb-acc .bb-hdr h3 {
  font-size: 15px;
  letter-spacing: .6px;
}
.legal-page .bb-acc .bb-bdy-inner {
  padding: 4px 4px 28px;
}
.legal-page .bb-acc .bb-bdy-inner p,
.legal-page .bb-acc .bb-bdy-inner ul,
.legal-page .bb-acc .bb-bdy-inner ol {
  font-size: 15px;
  line-height: 1.7;
  color: #2c2825;
}
.legal-page .bb-acc .bb-bdy-inner ul,
.legal-page .bb-acc .bb-bdy-inner ol {
  padding-left: 22px;
}
.legal-page .bb-acc .bb-bdy-inner li {
  margin: 0 0 6px;
}
.legal-page .bb-acc .bb-bdy-inner a {
  color: #2c2825;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page .bb-acc .bb-bdy-inner a:hover {
  color: var(--color-accent, #c4703c);
}
.legal-page .legal-foot {
  margin-top: 24px;
  font-size: 13px;
  color: #8a7e74;
  text-align: right;
}
.legal-page .legal-form {
  background: #f5f3ef;
  padding: 24px;
  border-radius: 8px;
  margin: 16px 0 0;
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #4a4541;
}

/* Page title styling for legal pages (single-page template) */
body.page-template-default.page-legal h1.entry-title,
body.page-impressum h1.entry-title,
body.page-datenschutz h1.entry-title,
body.page-agb h1.entry-title,
body.page-widerruf h1.entry-title {
  max-width: 760px;
  margin: 32px auto 24px;
  font-size: clamp(28px, 4.5vw, 44px);
  text-align: left;
}

/* ============================================================
 * Quick-Wins: Sale Badge, Hover-Image, Sticky Header
 * ============================================================ */

/* Sale badge — small terracotta pill in top-left of product card */
.bb-sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: var(--color-accent, #c4703c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
/* On single-product page: bigger, top-right of main image */
.woocommerce div.product .bb-sale-badge {
  top: 16px;
  left: 16px;
  font-size: 12px;
  padding: 6px 14px;
}
/* Ensure product card has anchor for absolute badge */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.product-card.product-grid__item {
  position: relative;
}

/* Hover image swap on product cards */
.woocommerce ul.products li.product a img.bb-card-hover-image,
.product-card.product-grid__item a img.bb-card-hover-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transition: opacity .4s ease !important;
  pointer-events: none !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product a:first-child,
.product-card.product-grid__item a:first-child {
  position: relative !important;
}
/* Wrap first <img> in a relative box so absolute hover image overlays correctly */
.woocommerce ul.products li.product a img:not(.bb-card-hover-image):not(.custom-logo),
.product-card.product-grid__item a img:not(.bb-card-hover-image) {
  transition: opacity .4s ease;
}
@media (hover: hover) {
  .woocommerce ul.products li.product:hover a img.bb-card-hover-image,
  .product-card.product-grid__item:hover a img.bb-card-hover-image {
    opacity: 1 !important;
  }
}

/* Sticky header — slides into a compact bar on scroll */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #efece6;
  transition: padding .2s ease, box-shadow .2s ease;
  will-change: padding;
}
.site-header.is-scrolled {
  padding-top: 4px;
  padding-bottom: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.site-header.is-scrolled .site-branding .custom-logo {
  max-height: 36px;
  transition: max-height .2s ease;
}

body.drawer-open .site-header {
  pointer-events: none;
}

/* ============================================================
 * Size-Pills + Color-Swatches (replace WC <select> dropdown)
 * ============================================================ */

/* Hide WC's native <select> when our JS swaps in pills/swatches */
.variations select.bb-swatched {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Container that wraps the swatch buttons */
.bb-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}
.bb-swatch-row {
  margin: 12px 0;
}
.bb-swatch-row .bb-swatch-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--color-text, #0a1109);
}

/* Pill-style swatch (size, generic) */
.bb-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #fff;
  color: var(--color-text, #0a1109);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}
.bb-swatch:hover {
  border-color: var(--color-text, #0a1109);
}
.bb-swatch.is-active {
  background: var(--color-text, #0a1109);
  color: #fff;
  border-color: var(--color-text, #0a1109);
}
.bb-swatch.is-disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Color swatches: circular */
.bb-swatch.bb-swatch--color {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  border-width: 2px;
}
.bb-swatch.bb-swatch--color .bb-swatch-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bb-swatch.bb-swatch--color.is-active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--color-text, #0a1109);
  border-radius: 50%;
}

/* Hide variations table's stale reset link until selection is made */
.variations_form .reset_variations {
  font-size: 13px;
  color: var(--color-text-muted, #5a5a5a);
  text-decoration: underline;
}

/* ============================================================
 * Cart-Drawer (Slide-Out aus rechts)
 * ============================================================ */
.bb-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .3s, opacity .3s;
}
.bb-cart-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s, opacity .3s;
}
.bb-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  cursor: pointer;
}
.bb-cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(95vw, 420px);
  background: #fff;
  padding: 64px 24px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
}
.bb-cart-drawer.is-open .bb-cart-drawer__panel {
  transform: translateX(0);
}
.bb-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 16px;
  border-bottom: 1px solid #efece6;
  margin: -32px 0 16px;
}
.bb-cart-drawer__header h2 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0;
}
.bb-cart-drawer__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text, #0a1109);
  padding: 8px 12px;
}
.bb-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  margin: 0 -24px;
  padding: 0 24px;
}
.bb-cart-drawer__items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-cart-drawer__item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #efece6;
}
.bb-cart-drawer__item-image {
  width: 70px;
  height: 88px;
  object-fit: cover;
  background: #f5f3ef;
  border-radius: 4px;
}
.bb-cart-drawer__item-info {
  flex: 1;
  min-width: 0;
}
.bb-cart-drawer__item-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
}
.bb-cart-drawer__item-variation {
  font-size: 12px;
  color: var(--color-text-muted, #5a5a5a);
  margin: 0 0 6px;
}
.bb-cart-drawer__item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.bb-cart-drawer__remove {
  background: transparent;
  border: 0;
  color: var(--color-text-muted, #5a5a5a);
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}
.bb-cart-drawer__remove:hover { color: var(--color-accent, #c4703c); }
.bb-cart-drawer__empty {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-muted, #5a5a5a);
}
.bb-cart-drawer__footer {
  padding-top: 16px;
  border-top: 1px solid #efece6;
}
.bb-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 0 0 12px;
}
.bb-cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-cart-drawer__actions .bb-btn {
  display: block;
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--button-radius, 37px);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
}
.bb-cart-drawer__actions .bb-btn--primary {
  background: #2e7d32;
  color: #fff;
}
.bb-cart-drawer__actions .bb-btn--primary:hover { background: #1b5e20; }
.bb-cart-drawer__actions .bb-btn--secondary {
  background: transparent;
  color: var(--color-text, #0a1109);
  border: 1px solid #d8d2c8;
}
.bb-cart-drawer__loading {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-muted, #5a5a5a);
}

/* ============================================================
 * Quick-View Button + Modal
 * ============================================================ */
.bb-quick-view-trigger {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 4;
  background: #fff;
  color: var(--color-text, #0a1109);
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
.product-card.product-grid__item:hover .bb-quick-view-trigger,
.woocommerce ul.products li.product:hover .bb-quick-view-trigger {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bb-quick-view-trigger:hover { background: var(--color-text, #0a1109); color: #fff; }

@media (hover: none) {
  .bb-quick-view-trigger { display: none; }
}

/* Modal */
.bb-quick-view {
  position: fixed;
  inset: 0;
  z-index: 9997;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .3s, opacity .3s;
}
.bb-quick-view.is-open { visibility: visible; opacity: 1; transition: visibility 0s, opacity .3s; }
.bb-quick-view__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  cursor: pointer;
}
.bb-quick-view__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: min(94vw, 880px);
  max-height: 90vh;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
.bb-quick-view.is-open .bb-quick-view__panel {
  transform: translate(-50%, -50%);
  opacity: 1;
}
.bb-quick-view__close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  color: var(--color-text, #0a1109);
}
.bb-quick-view__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.bb-quick-view__body img { width: 100%; height: auto; display: block; }
.bb-quick-view__title { font-size: 24px; margin: 0 0 8px; }
.bb-quick-view__price { font-size: 20px; margin: 0 0 16px; }
.bb-quick-view__desc { font-size: 14px; color: #4a4541; line-height: 1.6; }
.bb-quick-view__cta { margin-top: 16px; }
.bb-quick-view__cta a {
  display: inline-block;
  background: var(--color-text, #0a1109);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--button-radius, 37px);
  text-decoration: none;
  font-weight: 600;
}
.bb-quick-view__cta a:hover { background: #2c2825; }
@media (max-width: 720px) {
  .bb-quick-view__body { grid-template-columns: 1fr; padding: 24px; }
  .bb-quick-view__panel { width: 96vw; }
}

/* ============================================================
 * Mega-Menu (hover-based dropdown on category nav items)
 * ============================================================ */
.main-nav__list {
  position: relative;
}
.main-nav__list > li {
  position: static; /* mega-menu takes full width */
}
.bb-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #efece6;
  border-bottom: 1px solid #efece6;
  padding: 32px 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  display: none;
  z-index: 90;
}
.main-nav__list > li:hover > .bb-mega,
.main-nav__list > li:focus-within > .bb-mega {
  display: block;
}
.bb-mega__inner {
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.bb-mega__card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 4/3;
  background: #f5f3ef;
}
.bb-mega__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.bb-mega__card:hover img { transform: scale(1.05); }
.bb-mega__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6));
}
.bb-mega__card-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 900px) {
  .bb-mega { display: none !important; }
}

/* Mega-Menu mit Spalten — wenn die Kategorie Sub-Kategorien hat */
.bb-mega--cols .bb-mega__inner {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
}
.bb-mega__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.bb-mega__col-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .6px;
  color: #2b2926;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid #efece6;
  transition: color .2s ease, border-color .2s ease;
}
.bb-mega__col-title:hover {
  color: #b54a3a;
  border-color: #b54a3a;
}
.bb-mega__col-arrow {
  font-size: 16px;
  transition: transform .2s ease;
}
.bb-mega__col-title:hover .bb-mega__col-arrow {
  transform: translateX(4px);
}
.bb-mega__col-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bb-mega__col-cards .bb-mega__card {
  aspect-ratio: 16/9;
  border-radius: 3px;
}
.bb-mega__col-cards .bb-mega__card-title {
  font-size: 13px;
  bottom: 10px;
  left: 12px;
  letter-spacing: .3px;
}

/* ============================================================
 * Announcement Bar
 * ============================================================ */
.bb-announcement {
  background: var(--color-text, #0a1109);
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .8px;
  padding: 8px 16px;
}
.bb-announcement__inner {
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
}

/* ============================================================
 * Final Polish: Focus rings, Touch feedback, transitions
 * ============================================================ */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--color-accent, #c4703c);
  outline-offset: 2px;
  border-radius: 4px;
}
button, a.button, .bb-swatch, .bb-quick-view-trigger, .bb-cart-drawer__close, .mobile-drawer__close {
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .product-card a:first-child img:not(.bb-card-hover-image) {
    transition: transform .35s ease;
  }
  .product-card:hover a:first-child img:not(.bb-card-hover-image) {
    transform: scale(1.02);
  }
}
/* Smoother scroll for in-page anchors */
html { scroll-behavior: smooth; }

/* Slightly tighter loop heading + price spacing */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  margin: 8px 4px 4px;
}
.woocommerce ul.products li.product .price {
  font-size: 14px;
  margin: 0 4px 12px;
}

/* ============================================================
 * Sale-Badge Anpassung: knallrot + "SALE" + WC "Angebot!"-Label hidden
 * Hover-Image: gleiche Größe, kein Card-Zoom
 * ============================================================ */

/* Sale-Badge in knallrot statt Terrakotta */
.bb-sale-badge {
  background: #dc2626 !important;
  font-size: 11px !important;
  letter-spacing: 1.4px !important;
  padding: 5px 12px !important;
}

/* WC-Standard "Angebot!"-Label unter dem Titel ausblenden — wir haben unsere Badge */
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale,
.product-card.product-grid__item .onsale,
span.onsale {
  display: none !important;
}

/* Card-Image-Zoom auf hover entfernen — wir haben den Bild-Swap */
@media (hover: hover) {
  .product-card a:first-child img:not(.bb-card-hover-image),
  .product-card:hover a:first-child img:not(.bb-card-hover-image) {
    transform: none !important;
  }
}

/* Hover-Image MUSS dieselbe Größe + Aspect-Ratio wie das primary haben */
.product-card__image,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > div:first-child,
.woocommerce ul.products li.product > a:first-child {
  position: relative !important;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.product-card__image img,
.woocommerce ul.products li.product a img:not(.custom-logo) {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.product-card__image img.bb-card-hover-image,
.woocommerce ul.products li.product a img.bb-card-hover-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0 !important;
  transition: opacity .4s ease !important;
  margin: 0 !important;
  transform: none !important;
}

/* Mobile (no hover): Hover-Bild + Quick-View-Button komplett ausblenden */
@media (hover: none), (pointer: coarse) {
  .bb-card-hover-image { display: none !important; }
  .bb-quick-view-trigger { display: none !important; }
}

/* ============================================================
 * Rabatt-Anzeige im Checkout: rot
 * ============================================================ */
/* Cart + Checkout discount line (block) */
.wc-block-components-totals-discount,
.wc-block-components-totals-discount__value,
.wc-block-components-totals-discount .wc-block-components-formatted-money-amount {
  color: #dc2626 !important;
}
/* Klassischer Checkout */
.cart-discount,
.cart-discount .amount,
.woocommerce-checkout .cart-discount,
.woocommerce-checkout .cart-discount .amount,
tr.cart-discount .amount,
.order-discount,
.discount {
  color: #dc2626 !important;
}
/* "Du hast X € gespart" label */
.wc-block-components-totals-discount__label,
.wc-block-components-totals-discount-section__label {
  color: #dc2626 !important;
  font-weight: 600 !important;
}

/* ============================================================
 * Predictive Search
 * ============================================================ */
.header-action--search {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text, #0a1109);
  display: inline-flex;
  align-items: center;
}
.header-action--search:hover { color: var(--color-accent, #c4703c); }

.bb-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #efece6;
  border-bottom: 1px solid #efece6;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
  z-index: 95;
}
.bb-search.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .2s, transform .2s, visibility 0s;
}
.bb-search__form {
  display: flex;
  align-items: center;
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid #efece6;
  position: relative;
}
.bb-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  outline: none !important;
  color: var(--color-text, #0a1109);
}
.bb-search__input::placeholder { color: #a09a90; font-weight: 400; }
.bb-search__close {
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
  color: var(--color-text-muted, #5a5a5a);
}
.bb-search__results {
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
  padding: 0 24px;
  max-height: 70vh;
  overflow-y: auto;
}
.bb-search__loading,
.bb-search__empty {
  padding: 32px 0;
  text-align: center;
  color: var(--color-text-muted, #5a5a5a);
}
.bb-search__empty .bb-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: var(--button-radius, 37px);
  background: transparent;
  color: var(--color-text, #0a1109);
  border: 1px solid #d8d2c8;
  text-decoration: none;
  font-size: 14px;
}
.bb-search__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.bb-search__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--color-text, #0a1109);
  border-bottom: 1px solid #f5f3ef;
}
.bb-search__item:hover { background: #fafaf7; }
.bb-search__item-image {
  width: 60px;
  height: 75px;
  object-fit: cover;
  background: #f5f3ef;
  border-radius: 2px;
  flex-shrink: 0;
}
.bb-search__item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bb-search__item-title { font-size: 15px; font-weight: 500; }
.bb-search__item-price { font-size: 13px; color: var(--color-text-muted, #5a5a5a); }
.bb-search__all {
  display: block;
  text-align: center;
  padding: 16px 0;
  color: var(--color-accent, #c4703c);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid #efece6;
  margin-top: 8px;
}
.bb-search__all:hover { text-decoration: underline; }
body.search-open .site-main,
body.search-open .site-footer { filter: blur(2px); transition: filter .2s; }

/* ============================================================
 * "Ausführung wählen" / Add-to-cart button (layout only — keep theme colors)
 * Desktop: zentriert. Mobile: kleinerer Text.
 * ============================================================ */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
.product-card.product-grid__item a.button {
  display: block !important;
  width: max-content !important;
  max-width: calc(100% - 16px);
  margin: 12px auto 4px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .4px;
  border-radius: var(--button-radius, 37px) !important;
  text-align: center;
}
@media (max-width: 600px) {
  .woocommerce ul.products li.product a.button,
  .woocommerce-page ul.products li.product a.button,
  .product-card.product-grid__item a.button {
    padding: 8px 14px !important;
    font-size: 11px !important;
    letter-spacing: .3px;
    margin-top: 10px !important;
  }
}

/* ============================================================
 * Carousels (Related Products, Recently Viewed)
 * ============================================================ */
.bb-carousel-section {
  padding: 48px 0;
  border-top: 1px solid #efece6;
  background: #fafaf7;
}
.bb-carousel-section + .bb-carousel-section { border-top: 0; padding-top: 0; }
.bb-carousel-section__inner {
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.bb-carousel-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
}
.bb-carousel-section__head h2 {
  font-size: clamp(20px, 2.5vw, 28px);
  margin: 0;
  font-weight: 600;
  letter-spacing: .3px;
}
.bb-carousel-section__nav {
  display: flex;
  gap: 8px;
}
.bb-carousel__nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d8d2c8;
  color: var(--color-text, #0a1109);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bb-carousel__nav:hover { background: var(--color-text, #0a1109); color: #fff; border-color: var(--color-text, #0a1109); }
.bb-carousel__nav:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 600px) {
  .bb-carousel-section__nav { display: none; }
}

.bb-carousel__track {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bb-carousel__track::-webkit-scrollbar { display: none; }
.bb-carousel__item {
  flex: 0 0 auto;
  width: clamp(160px, 22%, 240px);
  scroll-snap-align: start;
}
.bb-carousel__item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.bb-carousel__item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #f5f3ef;
  border-radius: 2px;
}
.bb-carousel__item-title {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}
.bb-carousel__item-price {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted, #5a5a5a);
}
.bb-carousel__item-price del { opacity: .55; }
.bb-carousel__item-price ins { text-decoration: none; color: #dc2626; margin-left: 4px; }

/* ============================================================
 * Free Shipping Progress Bar — terracotta-knallig, sticky
 * ============================================================ */
.bb-free-shipping-bar {
  background: linear-gradient(90deg, #d97706 0%, #ea580c 50%, #dc2626 100%);
  color: #fff;
  padding: 14px 16px;
  display: none;
  position: sticky;
  top: 0;
  z-index: 110;
  font-family: var(--font-h2--family, 'Merriweather Sans', sans-serif);
  box-shadow: 0 2px 16px rgba(220, 38, 38, .25);
}
.bb-free-shipping-bar.is-visible { display: block; }

.bb-fsb__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.bb-fsb__message {
  flex: 1;
  font-size: 16px;
  text-align: left;
  letter-spacing: .3px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.bb-fsb__message::before {
  content: "🚚";
  font-size: 24px;
  line-height: 1;
  animation: bb-truck-bounce 2.5s ease-in-out infinite;
}
@keyframes bb-truck-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.bb-fsb__message strong {
  font-weight: 900;
  color: #fff;
  font-size: 18px;
}

.bb-fsb__track {
  flex: 0 0 300px;
  height: 12px;
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.2);
}
.bb-fsb__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffd84d, #fbbf24);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.32,.72,0,1);
  position: relative;
  box-shadow: 0 0 14px rgba(255, 216, 77, .8);
}
.bb-fsb__progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  background-size: 200% 100%;
  animation: bb-fsb-shimmer 2s infinite;
}
@keyframes bb-fsb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bb-free-shipping-bar.is-complete {
  background: linear-gradient(90deg, #15803d, #16a34a 50%, #22c55e);
  box-shadow: 0 2px 16px rgba(34, 197, 94, .35);
}
.bb-free-shipping-bar.is-complete .bb-fsb__message::before { content: "✓"; font-size: 26px; font-weight: 900; animation: none; }
.bb-free-shipping-bar.is-complete .bb-fsb__progress {
  background: linear-gradient(90deg, #ffd84d, #ffffff);
  box-shadow: 0 0 14px rgba(255,255,255,.8);
}
.bb-free-shipping-bar.is-complete .bb-fsb__progress::after { display: none; }

@media (max-width: 720px) {
  .bb-free-shipping-bar { padding: 10px 12px; }
  .bb-fsb__inner { flex-direction: column; gap: 8px; }
  .bb-fsb__message { font-size: 14px; }
  .bb-fsb__message strong { font-size: 15px; }
  .bb-fsb__message::before { font-size: 20px; }
  .bb-fsb__track { flex-basis: auto; width: 100%; max-width: 360px; height: 8px; }
}

/* Inline FSB above checkout buttons (Cart-Page + Cart-Drawer + Checkout) */
.bb-fsb-inline {
  display: block;
  background: linear-gradient(90deg, #fef3e8 0%, #ffeacc 100%);
  border: 2px dashed #ea580c;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.bb-fsb-inline .bb-fsb__message {
  font-size: 14px;
  color: #9a3412;
  text-shadow: none;
  font-weight: 600;
  gap: 8px;
}
.bb-fsb-inline .bb-fsb__message::before { font-size: 20px; }
.bb-fsb-inline .bb-fsb__message strong { color: #c2410c; font-size: 15px; }
.bb-fsb-inline .bb-fsb__track {
  flex-basis: auto;
  width: 100%;
  height: 8px;
  background: rgba(234, 88, 12, .15);
  margin-top: 8px;
}
.bb-fsb-inline.is-complete {
  background: linear-gradient(90deg, #d4f0d8, #bbf7d0);
  border-color: #16a34a;
}
.bb-fsb-inline.is-complete .bb-fsb__message { color: #14532d; }
.bb-fsb-inline.is-complete .bb-fsb__message strong { color: #166534; }
.bb-fsb-inline .bb-fsb__inner {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

/* Cart-Drawer Variante: inline-style angepasst */
.bb-cart-drawer .bb-fsb-inline {
  margin: 0 0 12px;
}


/* ============================================================
 * Sticky Add-to-Cart (mobile only)
 * ============================================================ */
.bb-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: #fff;
  border-top: 1px solid #efece6;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.bb-sticky-atc.is-visible { transform: translateY(0); }

.bb-sticky-atc__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.bb-sticky-atc__image {
  width: 48px;
  height: 56px;
  object-fit: cover;
  background: #f5f3ef;
  border-radius: 4px;
  flex-shrink: 0;
}
.bb-sticky-atc__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bb-sticky-atc__title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text, #0a1109);
}
.bb-sticky-atc__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text, #0a1109);
}
.bb-sticky-atc__price del { opacity: .55; font-weight: 400; margin-right: 4px; }
.bb-sticky-atc__price ins { color: #dc2626; text-decoration: none; }
.bb-sticky-atc__btn {
  background: var(--color-text, #0a1109);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: var(--button-radius, 37px);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 132px;
}
.bb-sticky-atc__btn:active { transform: scale(.97); }

/* Hint: when user clicks but variation not selected, flash the picker */
form.cart.bb-needs-select table.variations {
  animation: bb-shake .35s ease-in-out 2;
  outline: 2px solid var(--color-accent, #c4703c);
  outline-offset: 8px;
  border-radius: 4px;
}
@keyframes bb-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 899px) {
  .bb-sticky-atc { display: block; }
  /* Add bottom padding to body when bar is visible so footer is not covered */
  body:has(.bb-sticky-atc.is-visible) { padding-bottom: 80px; }
}

/* ============================================================
 * Bundle Box (Häufig zusammen gekauft)
 * ============================================================ */
.bb-bundle-box {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid #efece6;
  border-radius: 8px;
  background: #fafaf7;
}
.bb-bundle-box__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--color-text, #0a1109);
}
.bb-bundle-box__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.bb-bundle-box__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #efece6;
}
.bb-bundle-box__item:hover { background: #fdfcfa; }
.bb-bundle-box__item img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  background: #f5f3ef;
  border-radius: 4px;
  flex-shrink: 0;
}
.bb-bundle-box__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bb-bundle-box__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.bb-bundle-box__price {
  font-size: 13px;
  color: var(--color-text-muted, #5a5a5a);
}
.bb-bundle-box__price del { opacity: .55; }
.bb-bundle-box__price ins { color: #dc2626; text-decoration: none; margin-left: 4px; }

.bb-bundle-box__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-bundle-box__discount {
  display: inline-block;
  align-self: flex-start;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.bb-bundle-box__btn {
  background: var(--color-text, #0a1109);
  color: #fff;
  border: 0;
  padding: 12px 22px;
  border-radius: var(--button-radius, 37px);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .4px;
  cursor: pointer;
  width: 100%;
}
.bb-bundle-box__btn:hover { background: #2c2825; }
.bb-bundle-box__btn:disabled { opacity: .6; cursor: not-allowed; }

/* Bundle Box: Size-Pills */
.bb-bundle-box__sizes {
  margin: 14px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #efece6;
  border-radius: 6px;
  transition: outline .2s;
}
.bb-bundle-box__sizes--need {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  animation: bb-shake .35s ease-in-out 2;
}
.bb-bundle-box__sizes-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 8px;
  color: var(--color-text-muted, #5a5a5a);
  text-transform: uppercase;
}
.bb-bundle-box__sizes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bb-bundle-box__size {
  min-width: 38px;
  padding: 7px 12px;
  border: 1px solid #d8d2c8;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text, #0a1109);
  transition: all .15s;
}
.bb-bundle-box__size:hover { border-color: var(--color-text, #0a1109); }
.bb-bundle-box__size.is-active {
  background: var(--color-text, #0a1109);
  color: #fff;
  border-color: var(--color-text, #0a1109);
}
.bb-bundle-box__btn:disabled { opacity: .45; }

/* Bundle-Box neue Struktur */
.bb-bundle-box__sub {
  font-size: 13px;
  color: var(--color-text-muted, #5a5a5a);
  margin: 0 0 14px;
  line-height: 1.5;
}
.bb-bundle-box__btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bb-bundle-box__btn-badge {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 999px;
}
.bb-bundle-box__btn-label { font-weight: 600; }
.bb-bundle-box__btn:disabled .bb-bundle-box__btn-badge { background: #9a9a9a; }

/* The old discount-pill above the button can stay hidden, since badge is in button now */
.bb-bundle-box__discount { display: none; }

/* ===== Bundle-Box Header: bigger, glowing ===== */
.bb-bundle-box {
  position: relative;
  background: linear-gradient(135deg, #fef3e8 0%, #fff8f0 60%, #fef3e8 100%);
  border: 2px solid #ea580c;
  box-shadow: 0 4px 20px rgba(234, 88, 12, .18);
  padding: 22px 20px 20px;
}
.bb-bundle-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #fbbf24, #ea580c, #dc2626);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .85;
  pointer-events: none;
  animation: bb-bundle-glow 3s ease-in-out infinite;
}
@keyframes bb-bundle-glow {
  0%, 100% { opacity: .7; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.15); }
}

.bb-bundle-box__title {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 8px !important;
  background: linear-gradient(90deg, #ea580c 0%, #dc2626 60%, #b91c1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bb-bundle-box__title::before {
  content: "✨";
  font-size: 22px;
  -webkit-text-fill-color: initial;
  animation: bb-sparkle 2s ease-in-out infinite;
}
@keyframes bb-sparkle {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.15); }
}
.bb-bundle-box__sub {
  margin: 0 0 16px !important;
  color: #78350f !important;
}

/* ============================================================
 * Size-Finder Modal
 * ============================================================ */
.bb-size-finder-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent, #c4703c);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 12px;
  display: inline-block;
  white-space: nowrap;
}
.bb-size-finder-link:hover { color: var(--color-text, #0a1109); }

.bb-sf {
  position: fixed;
  inset: 0;
  z-index: 9996;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s .3s, opacity .3s;
}
.bb-sf.is-open { visibility: visible; opacity: 1; transition: visibility 0s, opacity .3s; }

.bb-sf__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  cursor: pointer;
}

.bb-sf__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: min(94vw, 540px);
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  padding: 36px 28px 28px;
  overflow-y: auto;
  opacity: 0;
  transition: transform .3s, opacity .3s;
}
.bb-sf.is-open .bb-sf__panel {
  transform: translate(-50%, -50%);
  opacity: 1;
}

.bb-sf__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.bb-sf__title {
  margin: 0 0 20px;
  font-size: 22px;
}

.bb-sf__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #efece6;
  margin: 0 0 20px;
}
.bb-sf__tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted, #5a5a5a);
}
.bb-sf__tab.is-active {
  color: var(--color-text, #0a1109);
  border-bottom-color: var(--color-accent, #c4703c);
  font-weight: 600;
}

.bb-sf__tab-content label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--color-text, #0a1109);
  font-weight: 500;
}
.bb-sf__tab-content select,
.bb-sf__tab-content input[type=range] {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.bb-sf__tab-content select {
  padding: 10px;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}
.bb-sf__tab-content input[type=range] {
  accent-color: var(--color-accent, #c4703c);
}
.bb-sf__h-val,
.bb-sf__w-val {
  font-weight: 700;
  color: var(--color-accent, #c4703c);
}

.bb-sf__result {
  background: #fef3e8;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.bb-sf__pick {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}
.bb-sf__pick-label { font-size: 14px; color: var(--color-text, #0a1109); }
.bb-sf__pick-size {
  font-size: 36px;
  font-weight: 900;
  color: var(--color-accent, #c4703c);
  line-height: 1;
}
.bb-sf__pick-reason {
  font-size: 13px;
  color: var(--color-text, #0a1109);
  margin: 4px 0;
  line-height: 1.5;
}
.bb-sf__pick-fit {
  font-size: 13px;
  color: var(--color-text-muted, #5a5a5a);
  margin: 4px 0 0;
}

.bb-sf__actions {
  display: flex;
  justify-content: center;
  margin: 16px 0 8px;
}
.bb-sf__apply {
  background: var(--color-text, #0a1109);
  color: #fff;
  border: 0;
  padding: 14px 32px;
  border-radius: var(--button-radius, 37px);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .4px;
}
.bb-sf__apply:disabled { opacity: .35; cursor: not-allowed; }
.bb-sf__apply:not(:disabled):hover { background: #2c2825; }

.bb-sf__disclaimer {
  font-size: 11px;
  color: var(--color-text-muted, #5a5a5a);
  margin: 8px 0 0;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .bb-sf__panel { padding: 28px 18px 22px; }
  .bb-sf__title { font-size: 18px; }
  .bb-sf__tab { font-size: 12px; }
}

/* ============================================================
 * Trust Badges — Footer (Payments + Sustainability)
 * ============================================================ */
.footer-trust {
  background: #f5f3ef;
  border-top: 1px solid #e2ded7;
  border-bottom: 1px solid #e2ded7;
  padding: 28px 16px;
  color: var(--color-text, #0a1109);
}
.footer-trust__inner {
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.footer-trust__block {
  flex: 1 1 auto;
  min-width: 280px;
}
.footer-trust__title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-text-muted, #5a5a5a);
  margin-bottom: 12px;
}

/* Sustainability badges (text + leaf icon) */
.footer-trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}
.bb-tbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--color-text, #0a1109);
}
.bb-tbadge svg { flex-shrink: 0; }
.bb-tbadge--gots svg { color: #2e7d32; }
.bb-tbadge--fwf svg  { color: #6d4c41; }
.bb-tbadge--oeko svg { color: #1565c0; }
.bb-tbadge strong { font-weight: 700; }

/* Payment icons */
.footer-trust__pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bb-pay {
  display: inline-flex;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  overflow: hidden;
  line-height: 0;
}
.bb-pay svg { display: block; }

/* Service-Hint im Checkout (optional small variant inline) */
.bb-pay-inline {
  display: flex;
  gap: 6px;
  margin: 12px 0;
}
.bb-pay-inline .bb-pay { transform: scale(.85); transform-origin: left center; }

@media (max-width: 720px) {
  .footer-trust__inner { gap: 24px; flex-direction: column; align-items: flex-start; }
  .footer-trust__pay { gap: 6px; }
  .bb-pay svg { width: 34px; height: 20px; }
}
