/* ==========================================================================
   Black Friday 2026: homepage sale hero + BUY 1 GET 1 FREE badges.
   Enqueued only while adr_bf26_active() is true (functions.php), so it stops
   loading on its own when the sale ends at 2026-12-02 04:59 UTC.

   Markup: parts/bf26-hero.php (hero), template-parts/product-card.php (card
   badge), woocommerce/single-product.php (PDP pill + note).

   Hero layout: the art and the live text share one grid cell, so the overlay
   can never clip or spill out of the section. Sizes scale with the hero's own
   width (cqw), with a vw fallback for browsers without container units.
   Desktop (768px and up): button + subtext in a row, RUO line under it, laid
   over the empty lower-left of the art. 768-1023px adds a short fade at the
   image foot. Phone: everything stacks centred on a matching band under the
   vials.

   Fonts: overrides.css forces the body font on every a, p and span in the
   theme (!important), so the live hero text renders in it; declared here as
   such. The two badges are the exception and use the display face, which
   needs the scoped !important rule at the bottom to win.
   ========================================================================== */

/* ---- Hero ---- */
.adr-bf26-hero{position:relative;container-type:inline-size;display:grid;grid-template-columns:100%;background:#FCF1F9;overflow:hidden}
.adr-bf26-hero>.adr-bf26-hero__img,.adr-bf26-hero>.adr-bf26-hero__live{grid-area:1/1}
.adr-bf26-hero__img{position:relative;align-self:start}
.adr-bf26-hero__img,.adr-bf26-hero picture,.adr-bf26-hero img{display:block;width:100%;max-width:none;height:auto}
.adr-bf26-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.adr-bf26-hero__live{position:relative;z-index:1;align-self:start;justify-self:start;display:flex;flex-direction:column;box-sizing:border-box;pointer-events:none;font-family:var(--font-body)}
.adr-bf26-hero__live a{pointer-events:auto}
.adr-bf26-cta{display:inline-flex;align-items:center;gap:.55em;padding:.8em 1.2em .74em 1.3em;border-radius:999px;background:#15111D;color:#FCF6F9;font-family:var(--font-body);font-weight:900;letter-spacing:.09em;text-transform:uppercase;line-height:1;white-space:nowrap;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.adr-bf26-cta:hover,.adr-bf26-cta:focus-visible{color:#fff;text-decoration:none;transform:translateY(-1px);box-shadow:0 8px 22px rgba(244,84,240,.35)}
.adr-bf26-cta:focus-visible{outline:2px solid #5ACBF7;outline-offset:3px}
.adr-bf26-cta svg{width:1.05em;height:1.05em;flex:none}
.adr-bf26-sub{color:#15111D;font-weight:500;line-height:1.4;margin:0;text-wrap:balance}
.adr-bf26-sub strong{display:block;font-weight:700;color:#15111D}
.adr-bf26-ruo{color:#15111D;font-weight:500;line-height:1.3;margin:0}

@media (min-width:768px){
  .adr-bf26-hero__live{margin:31.7% 0 0 7%;width:47%;align-items:flex-start;gap:clamp(8px,calc(5.2vw - 24px),52px);gap:clamp(8px,calc(5.2cqw - 24px),52px);padding-bottom:.8vw;padding-bottom:.8cqw}
  .adr-bf26-hero__row{display:flex;align-items:center;gap:1.4vw;gap:1.4cqw}
  .adr-bf26-cta{font-size:clamp(14px,1.15vw,22px);font-size:clamp(14px,1.15cqw,22px)}
  .adr-bf26-sub{font-size:clamp(12.5px,.98vw,18px);font-size:clamp(12.5px,.98cqw,18px)}
  .adr-bf26-ruo{font-size:clamp(13px,.9vw,17px);font-size:clamp(13px,.9cqw,17px)}
}
@media (min-width:768px) and (max-width:1023px){
  .adr-bf26-hero__img::after{content:"";position:absolute;left:0;right:0;bottom:0;height:7%;background:linear-gradient(rgba(252,241,249,0),#FCF1F9);pointer-events:none}
}
@media (max-width:767px){
  .adr-bf26-hero{background:#FBF1FA}
  .adr-bf26-hero__live{margin-top:108%;width:100%;padding:0 16px 16px;align-items:center;text-align:center;gap:9px}
  .adr-bf26-hero__row{display:contents}
  .adr-bf26-cta{font-size:clamp(13px,3.6vw,20px);font-size:clamp(13px,3.6cqw,20px)}
  .adr-bf26-sub{font-size:clamp(12.5px,3.4vw,17px);font-size:clamp(12.5px,3.4cqw,17px);max-width:30em}
  .adr-bf26-ruo{font-size:clamp(11.5px,3.05vw,16px);font-size:clamp(11.5px,3.05cqw,16px);text-align:center}
}

/* ---- Product card badge: top-left of the image. The sale-% badge (top-right) never shows with it. ---- */
.ad-card__bogo{position:absolute;top:12px;left:12px;z-index:3;display:inline-flex;align-items:center;padding:5px 11px 4px;border-radius:999px;background:linear-gradient(90deg,#F454F0,#5ACBF7);color:#0B0B10;font-weight:900;font-size:11px;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;box-shadow:0 4px 14px rgba(244,84,240,.35);pointer-events:none}
@media (max-width:560px){
  .ad-card__bogo{top:9px;left:9px;padding:4px 9px 3px;font-size:10px}
}

/* ---- Product page: pill + one line under the price ---- */
.adr-bf26-pdp{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:-6px 0 18px}
.adr-bf26-pill{display:inline-flex;align-items:center;padding:6px 13px 5px;border-radius:999px;background:linear-gradient(90deg,#F454F0,#5ACBF7);color:#0B0B10;font-weight:900;font-size:12px;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;box-shadow:0 4px 14px rgba(244,84,240,.3)}
.adr-bf26-pdp__note{font-size:13px;font-weight:500;line-height:1.35;color:#4A4A55}

/* Badges use the display face. overrides.css sets the body font on every span with !important,
   so this needs the same weight and a more specific selector to win. */
body.theme-ad-research .ad-card__bogo,
body.theme-ad-research .adr-bf26-pill{font-family:'Futura Cyrillic','Poppins',system-ui,sans-serif !important}
