/* ==========================================================================
   Product page hero – shop adjustments on top of product-hero.base.css
   (base = design draft, scoped to .bf-pdp). Markup: product_details/partials/hero.blade.php
   ========================================================================== */

/* Shop fonts (same files as fonts.css) as one family with real weights */
@font-face { font-family: "BF Open Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(fonts/open-sans-v17-latin-regular.woff2) format('woff2'), url(fonts/open-sans-v17-latin-regular.woff) format('woff'); }
@font-face { font-family: "BF Open Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url(fonts/open-sans-v17-latin-600.woff2) format('woff2'), url(fonts/open-sans-v17-latin-600.woff) format('woff'); }
@font-face { font-family: "BF Open Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url(fonts/open-sans-v17-latin-700.woff2) format('woff2'), url(fonts/open-sans-v17-latin-700.woff) format('woff'); }
@font-face { font-family: "BF Open Sans"; font-weight: 800; font-style: normal; font-display: swap;
  src: url(fonts/open-sans-v17-latin-800.woff2) format('woff2'), url(fonts/open-sans-v17-latin-800.woff) format('woff'); }

.bf-pdp {
  --font-head: "BF Open Sans", "Open Sans", Helvetica, Arial, sans-serif;
  --font-body: "BF Open Sans", "Open Sans", Helvetica, Arial, sans-serif;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--pf-dark-blue);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
.bf-pdp [hidden] { display: none !important; }
.bf-pdp label { margin-bottom: 0; font-weight: inherit; }
.bf-pdp fieldset { min-width: 0; }
.bf-pdp .pi-title { margin: 0; font-family: var(--font-head); color: var(--pf-dark-blue); }
.bf-pdp .seal text { font-family: var(--font-head); }
.bf-pdp .v6-seal text { font-family: "BF Open Sans", "Open Sans", Arial, sans-serif; }

/* Real Affilicon buttons: in the DOM (scripts and the widget need them), never visible */
.bf-pdp .pdp-carts { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Deal bar with 3+ coupons --------------------------------------
   Desktop/tablet: title above, coupons side by side.
   Phone: title above, one slim row per coupon. */
.bf-pdp .v6-deal--multi { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
.bf-pdp .v6-deal--multi .v6-deal__t { flex-direction: row; justify-content: center; gap: 6px; }
.bf-pdp .v6-deal--multi .v6-deal__tiers { grid-template-columns: repeat(var(--tiers, 3), minmax(0, 1fr)); }
.bf-pdp .v6-deal--multi .v6-tier { display: grid; justify-items: center; align-content: center; gap: 0; text-align: center; }
.bf-pdp .v6-deal--multi .v6-tier span { white-space: normal; }
.bf-pdp .v6-deal--multi[style*="--tiers:4"] .v6-deal__tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767.98px) {
  .bf-pdp .v6-deal--multi .v6-deal__tiers,
  .bf-pdp .v6-deal--multi[style*="--tiers:4"] .v6-deal__tiers { grid-template-columns: 1fr; gap: 5px; }
  .bf-pdp .v6-deal--multi .v6-tier,
  .bf-pdp .v6-deal--multi button.v6-tier {
    display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; align-items: center; justify-items: start;
    column-gap: 10px; padding: 6px 12px; text-align: left;
  }
  .bf-pdp .v6-deal--multi .v6-tier b { font-size: 16px; line-height: 20px; }
  .bf-pdp .v6-deal--multi .v6-tier span { font-size: 12.5px; line-height: 16px; }
  .bf-pdp .v6-deal--multi .v6-tier em { justify-self: end; text-align: right; font-size: 11px; line-height: 14px; }
}

/* copied feedback on the coupon buttons */
.bf-pdp .v6-tier.is-copied { border-color: #f6a58f !important; }

/* ---------- Not available ------------------------------------------------- */
.bf-pdp .pdp-soon {
  position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  margin: 0; padding: 10px 12px; background: rgba(29, 53, 40, .9); color: #fff;
  text-align: center; font-size: 16px; line-height: 22px; font-weight: 700; letter-spacing: .06em;
}
.bf-pdp .pi-cta.pdp-cta--soon { background: #9aa39d; cursor: not-allowed; min-height: 56px; }
.bf-pdp .pi-cta.pdp-cta--soon:hover { background: #9aa39d; }
.bf-pdp .pdp-soldout { margin: 10px 0 0; text-align: center; font-size: 13px; line-height: 18px; color: var(--pi-muted); }

/* quantity without Spar-Abo while Spar-Abo is chosen */
.bf-pdp .v4-qty.is-disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Flavor (composite products) ----------------------------------- */
.bf-pdp .pdp-flavor { margin-top: 22px; }
.bf-pdp .pdp-flavor__l { display: block; margin-bottom: 6px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--pf-dark-blue); }
.bf-pdp .pdp-flavor__s {
  width: 100%; height: 50px; padding: 0 40px 0 14px; border: 1px solid var(--v4-line, #e3e6e2); border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231d3528' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  font: inherit; font-size: 16px; color: var(--pf-dark-blue); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.bf-pdp .pdp-flavor__s:focus-visible { outline: 3px solid #b9c5bc; outline-offset: 2px; }
.bf-pdp .pdp-flavor__s.is-invalid { border-color: var(--pf-coral); box-shadow: inset 0 0 0 1px var(--pf-coral); }

/* ---------- Description accordion ----------------------------------------- */
.bf-pdp .pdp-desc { font-size: 15px; line-height: 1.6; color: var(--pi-text); }
.bf-pdp .pdp-desc p { margin: 0 0 .7em; }
.bf-pdp .pdp-desc ul { margin: 0 0 .7em 1.1em; list-style: disc; }
@media (max-width: 767.98px) {
  .bf-pdp .v6-galacc--m.pdp-acc-desc:not(.v8-zut) { display: block !important; }
  .bf-pdp .v6-galacc--m.pdp-acc-desc summary { font-size: 15px; justify-content: center; gap: 10px; }
}

/* the page already has a top margin under the header */
.bf-pdp.product-hero { padding-block: 32px 48px; }
@media (max-width: 767.98px) { .bf-pdp.product-hero { padding-block: 0 32px; } }
.bf-pdp.product-hero.is-normal { padding-top: 32px; }
@media (max-width: 767.98px) { .bf-pdp.product-hero.is-normal { padding-top: 16px !important; } }

/* ---------- Coupon list in the price box ----------------------------------
   All coupons of the promo, one per row; does not change with the chosen quantity. */
.bf-pdp .v8-box__bw.v8-bw-list { display: block; margin-bottom: 0; padding-left: 0; list-style: none; }
.bf-pdp .v8-bw-list li { display: flex; align-items: flex-start; gap: 6px; }
.bf-pdp .v8-bw-list li + li { margin-top: 6px; }
.bf-pdp .v8-bw-list .v8-plus { flex-shrink: 0; margin: 1px 0 0; }
@media (max-width: 479.98px) {
  .bf-pdp .v8-bw-list li { gap: 8px; }
  .bf-pdp .v8-bw-list li + li { margin-top: 8px; }
  .bf-pdp .v8-bw-list .v8-bw__t .v8-code { display: inline-block; margin: 2px 0 0 2px; padding: 1px 7px; }
}

/* ---------- Quantity rows: unit column as wide as its word ------------------
   The design reserved 3.6em ("Dosen"); "Packungen"/"Flaschen" ran into the Spar-Abo interval. */
/* Spar-Abo: interval on the same row, in its own column (4) right after the unit.
   Column 4 is 0 wide when the interval is hidden (one-time purchase). */
.bf-pdp .v4-qty { grid-template-columns: 20px auto max-content auto minmax(0, 1fr) auto !important; }
.bf-pdp .v4-qtys.is-abo .v8-int { grid-column: 4 !important; grid-row: 1 / span 2 !important; margin-left: 8px !important; white-space: nowrap; }
/* Narrow buy box in Spar-Abo (tablet column, phones): make room for the interval
   instead of letting the row overflow. Measured against the buy box width (container 'pi'). */
@container pi (max-width: 519.98px) {
  .bf-pdp .v4-qtys.is-abo .v4-qty__price s { display: none; }
}
@container pi (max-width: 389.98px) {
  .bf-pdp .v4-qtys.is-abo .v4-qty__price { text-align: right; line-height: 1.15; }
  .bf-pdp .v4-qtys.is-abo .v4-qty__price small { display: block; margin-top: 2px; }
  .bf-pdp .v4-qtys.is-abo .v8-int { margin-left: 6px !important; font-size: 12px !important; }
}
@container pi (max-width: 329.98px) {
  .bf-pdp .v4-qtys.is-abo .v8-int { font-size: 11px !important; letter-spacing: -.01em; }
  .bf-pdp .v4-qtys.is-abo .v4-qty__n,
  .bf-pdp .v4-qtys.is-abo .v4-qty__u { font-size: 15px !important; }
}

/* ---------- Deal bar with ONE offer -----------------------------------------
   Single coupon (promo type 2) or price discount (promo type 1):
   title above, one full-width row: percent · condition · code. */
.bf-pdp .v6-deal--single { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
.bf-pdp .v6-deal--single .v6-deal__t { flex-direction: row; justify-content: center; gap: 6px; }
.bf-pdp .v6-deal--single .v6-deal__tiers { grid-template-columns: minmax(0, 1fr); }
.bf-pdp .v6-deal--single .v6-tier,
.bf-pdp .v6-deal--single button.v6-tier {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 4px 12px;
  padding: 8px 14px; text-align: left;
}
.bf-pdp .v6-deal--single .v6-tier b { font-size: 20px; line-height: 24px; }
.bf-pdp .v6-deal--single .v6-tier span { font-size: 14px; line-height: 18px; white-space: normal; }
.bf-pdp .v6-deal--single .v6-tier em { flex-basis: auto; margin-left: auto; font-size: 12px; line-height: 16px; white-space: nowrap; }
.bf-pdp .v6-deal--single .v6-tier--price { cursor: default; }
.bf-pdp .v6-deal--single .v6-tier--price:hover { border-color: rgba(255,255,255,.22); }
@media (max-width: 479.98px) {
  .bf-pdp .v6-deal--single .v6-tier,
  .bf-pdp .v6-deal--single button.v6-tier { gap: 2px 10px; padding: 6px 12px; }
  .bf-pdp .v6-deal--single .v6-tier b { font-size: 17px; line-height: 21px; }
  .bf-pdp .v6-deal--single .v6-tier span { font-size: 12.5px; line-height: 16px; }
  .bf-pdp .v6-deal--single .v6-tier em { font-size: 11px; }
}

/* ---------- Spar-Abo hint in the price box (normal page, one-time purchase) ---------- */
.bf-pdp .pdp-abohint { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e3e1d9; }
.bf-pdp .pdp-abohint__b {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; box-sizing: border-box;
  border: 1px dashed #9fc7cf; border-radius: 8px; background: #fff; color: var(--pf-dark-blue);
  font: inherit; font-size: 15px; line-height: 1.4; text-align: left; cursor: pointer;
}
.bf-pdp .pdp-abohint__b:hover { border-color: #22a565; }
.bf-pdp .pdp-abohint__b:focus-visible { outline: 3px solid #b9c5bc; outline-offset: 2px; }
.bf-pdp .pdp-abohint__t { flex: 1; min-width: 0; }
.bf-pdp .pdp-abohint__t b { font-weight: 700; }
.bf-pdp .pdp-abohint__s { color: #00895c; }
.bf-pdp .pdp-abohint__i, .bf-pdp .pdp-abohint__a { flex-shrink: 0; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bf-pdp .pdp-abohint__i { width: 20px; height: 20px; stroke: #22a565; }
.bf-pdp .pdp-abohint__a { width: 16px; height: 16px; stroke: var(--pf-dark-blue); }
@media (max-width: 479.98px) { .bf-pdp .pdp-abohint__b { font-size: 14px; padding: 10px; gap: 8px; } }

/* ---------- "Vorteile im Spar-Abo" (new location) ---------------------------------------
   One-time purchase: accordion right under "Zutaten & Anwendungshinweise" (all widths).
   Spar-Abo: accordion hidden, the benefits list shows under the Einmalkauf/Spar-Abo toggle. */
.bf-pdp.v8-is-abo .pdp-acc-abo { display: none !important; }
@media (max-width: 767.98px) {
  .bf-pdp:not(.v8-is-abo) .v6-galacc--m.pdp-acc-abo { display: block !important; }
  .bf-pdp .v6-galacc--m.pdp-acc-abo summary { font-size: 15px; justify-content: center; gap: 10px; }
}
.bf-pdp.v8-is-abo .v8-abom { display: block; margin: 12px 2px 0; animation: none !important; opacity: 1; }
.bf-pdp .v8-abom__h { margin: 0 0 6px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--pf-dark-blue); }
.bf-pdp .v8-abom ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--pi-text); }
.bf-pdp .v8-abom li { position: relative; padding-left: 22px; }
.bf-pdp .v8-abom li + li { margin-top: 4px; }
.bf-pdp .v8-abom li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #22a565 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
/* amounts and "weitere 30,00 €" stay on one line */
.bf-pdp .pdp-nowrap, .bf-pdp .pdp-abohint__s { white-space: nowrap; }

/* ==========================================================================
   Side cart (partials/side-car/cariton.blade.php): the buy box in compact form.
   The panel is 500px wide from 768px up and full width below, so the buy box
   always uses the phone layout here, whatever the viewport is.
   ========================================================================== */
/* hidden inline in cariton.blade.php until this file applies (no unstyled flash) */
.pdp-cart-wrap { opacity: 1 !important; }
.bf-pdp.pdp--cart { padding: 0 20px 28px !important; background: #fff; }
.bf-pdp.pdp--cart .product-hero__grid { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
.bf-pdp.pdp--cart .product-info { width: 100%; max-width: none; padding: 0 !important; }

/* deal bar: one compact bar above the product, also on phones */
.bf-pdp.pdp--cart .product-info .v6-deal:not(.v8-deal-m) { display: flex !important; margin: 0 0 16px !important; }
/* 500px panel on wide screens: the narrow-bar layout; phones keep the phone layout of the product page */
@media (min-width: 768px) {
  .bf-pdp.pdp--cart .product-info .v6-deal:not(.v8-deal-m) { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .bf-pdp.pdp--cart .v6-deal__t { flex-direction: row; justify-content: center; gap: 6px; }
  .bf-pdp.pdp--cart .v6-tier,
  .bf-pdp.pdp--cart button.v6-tier { display: grid; justify-items: center; gap: 0; text-align: center; }
  .bf-pdp.pdp--cart .v6-deal--single .v6-tier { display: flex; justify-items: initial; text-align: left; }
}

/* product image with the seal, name and rating beside it */
.bf-pdp.pdp--cart .pdp-cart-head { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 16px; }
.bf-pdp.pdp--cart .pdp-cart-head__img { position: relative; display: block; border: 1px solid var(--pi-line); border-radius: 12px; background: var(--pf-beige-shop); }
.bf-pdp.pdp--cart .pdp-cart-head__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 11px; }
.bf-pdp.pdp--cart .pdp-cart-head .v6-seal { top: -12px; right: -16px; width: 66px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.bf-pdp.pdp--cart .pi-head { container-type: normal; margin: 0; }
.bf-pdp.pdp--cart .pi-title { margin: 2px 0 0; white-space: normal; font-size: 20px !important; line-height: 1.25 !important; }
.bf-pdp.pdp--cart .pi-title a { color: inherit; text-decoration: none; }
.bf-pdp.pdp--cart .pi-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bf-pdp.pdp--cart .pi-sub { margin-top: 2px; font-size: 14px; line-height: 19px; }
.bf-pdp.pdp--cart .rating { margin-bottom: 2px; }

/* steps and price box: phone spacing */
/* room for the "Bester Preis" flag only; it sits about 15px below the product image */
.bf-pdp.pdp--cart .v4-step:first-of-type { margin-top: 0 !important; padding-top: 18px !important; }
.bf-pdp.pdp--cart .v4-step + .v4-step { margin-top: 22px !important; }
.bf-pdp.pdp--cart .v8-box { margin-top: 16px !important; }
.bf-pdp.pdp--cart .v4 .pi-buy { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.bf-pdp.pdp--cart .v4 .pi-cta + .pi-pay { margin-top: 14px; }
.bf-pdp.pdp--cart .v8-zw { display: none; }

/* Spar-Abo benefits under the toggle (no accordion in the side cart) */
.bf-pdp.pdp--cart.v8-is-abo .v8-abom { display: block; margin: 12px 2px 0; animation: none !important; opacity: 1; }
.bf-pdp.pdp--cart .v8-abom__h { margin: 0 0 6px; font-size: 14px; line-height: 19px; font-weight: 700; color: var(--pf-dark-blue); }
.bf-pdp.pdp--cart .v8-abom ul { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 19px; color: var(--pi-text); }
.bf-pdp.pdp--cart .v8-abom li { position: relative; padding-left: 21px; }
.bf-pdp.pdp--cart .v8-abom li + li { margin-top: 3px; }
.bf-pdp.pdp--cart .v8-abom li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #22a565 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* copy toast: centred in the panel */
.bf-pdp.pdp--cart .v6-toast { left: auto; right: 50vw; transform: translate(50%, 20px); }
.bf-pdp.pdp--cart .v6-toast.is-on { transform: translate(50%, 0); }
@media (min-width: 768px) {
  .bf-pdp.pdp--cart .v6-toast { right: 250px; }
}
@media (max-width: 399.98px) {
  .bf-pdp.pdp--cart { padding-inline: 14px !important; }
  .bf-pdp.pdp--cart .pdp-cart-head { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .bf-pdp.pdp--cart .pdp-cart-head .v6-seal { width: 58px; right: -12px; }
  .bf-pdp.pdp--cart .pi-title { font-size: 18px !important; }
}
