/* Black Friday 20.11.2026 — loaded only while the promo runs (black-friday.php). Figma: "work" → section "20.11 ЧП". */
/* Every rule starts with body.bf-on: the theme's style.css is linked a second time in footer.php, after this file,
   so equal-specificity cover rules (p margins, colours) would otherwise win. */

/* ---------- Home hero (both covers) ---------- */
body.bf-on .index-banner.bf-cover .bf-hero{color:#fff;font-family:var(--font-family-subheading);text-transform:none;text-align:left}
body.bf-on .index-banner.bf-cover .bf-hero img{display:block;max-width:none;height:auto}
body.bf-on .index-banner.bf-cover .bf-hero a{text-decoration:none}
body.bf-on .index-banner.bf-cover .bf-hero p{margin:0;color:#fff;font-family:var(--font-family-subheading);line-height:1.2}
body.bf-on .index-banner.bf-cover .bf-hero__card{position:relative;border:1px solid #000;border-radius:25px;background:linear-gradient(178deg,rgb(18 25 43 / .7) 3.6%,rgb(31 42 68 / .7) 96.4%);-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px)}
body.bf-on .index-banner.bf-cover .bf-hero__card::after{content:"";position:absolute;left:0;right:0;height:1px;background:#cce2f7}
body.bf-on .index-banner.bf-cover .bf-hero__lead strong{font-weight:500}
body.bf-on .index-banner.bf-cover .bf-hero__buy{display:inline-flex;align-items:center;justify-content:center;height:29px;padding:0 15px;background:#fff;border:1px solid #bfdaf5;border-radius:10px;color:#0e1622;font:500 10px/1 var(--font-family-subheading);text-transform:uppercase;white-space:nowrap;transition:background-color .2s}
body.bf-on .index-banner.bf-cover .bf-hero__buy:hover{background-color:#e4edf7}
body.bf-on .index-banner.bf-cover .bf-hero__terms{font:400 10px/1 var(--font-family);text-transform:uppercase;color:#fff}
body.bf-on .index-banner.bf-cover .bf-hero__terms strong{font-weight:600}

@media (min-width:768px){
  body.bf-on .index-banner.bf-cover .wp-block-cover__image-background{min-height:760px;object-fit:cover}
  /* Same top line as the live menu (it is centred in the cover): title and menu start together, as in the design. */
  body.bf-on .index-banner.bf-cover .bf-hero--desktop{position:absolute;z-index:1;right:0;top:calc(50% - 179px);width:min(617px,calc(100% - 290px))}
  body.bf-on .index-banner.bf-cover .bf-hero__head{position:relative;height:107px}
  body.bf-on .index-banner.bf-cover .bf-hero__title{position:absolute;left:11px;top:21px;font:500 30px/1.2 var(--font-family-subheading);text-transform:uppercase}
  body.bf-on .index-banner.bf-cover .bf-hero--desktop .bf-hero__pct{position:absolute;left:58.3%;top:0;width:179px}
  body.bf-on .index-banner.bf-cover .bf-hero--desktop .bf-hero__card{height:240px}
  body.bf-on .index-banner.bf-cover .bf-hero--desktop .bf-hero__card::after{top:77px}
  body.bf-on .index-banner.bf-cover .bf-hero--desktop .bf-hero__lead{position:absolute;left:25px;top:22px;font-size:14px}
  body.bf-on .index-banner.bf-cover .bf-hero__items{position:absolute;left:0;right:0;top:66px;margin:0;padding:0;list-style:none;display:flex;justify-content:space-between}
  body.bf-on .index-banner.bf-cover .bf-hero__item{flex:0 1 124px;display:flex;flex-direction:column;align-items:center}
  body.bf-on .index-banner.bf-cover .bf-hero__img{height:133px;display:flex;align-items:flex-end;justify-content:center}
  body.bf-on .index-banner.bf-cover .bf-hero__item img{max-width:100%}
  body.bf-on .index-banner.bf-cover .bf-hero__item--case img{width:116px}
  body.bf-on .index-banner.bf-cover .bf-hero__item--pornstar img,
  body.bf-on .index-banner.bf-cover .bf-hero__item--agrumi img{width:86px;margin-bottom:21px}
  body.bf-on .index-banner.bf-cover .bf-hero__item--discovery img{width:118px;margin-bottom:-5px}
  body.bf-on .index-banner.bf-cover .bf-hero__price{margin-top:-3px;font:400 16px/1.2 var(--font-family-subheading);text-transform:uppercase;white-space:nowrap}
  body.bf-on .index-banner.bf-cover .bf-hero__item .bf-hero__buy{margin-top:9px}
  body.bf-on .index-banner.bf-cover .bf-hero--desktop .bf-hero__terms{margin-top:73px}
}

@media (max-width:767px){
  body.bf-on .index-banner.bf-cover .wp-block-cover__image-background{height:max(100dvh,850px) !important;object-fit:cover}
  /* The design has a plain "PARFOHOLIC" in the top bar instead of the big logo at the bottom of the photo. */
  body.bf-on .index-banner.bf-cover .wp-block-cover__inner-container .wp-block-image:not(.sales-img){display:none}
  body.bf-on .index-banner.bf-cover .bf-hero__brand{position:absolute;top:56px;left:50%;transform:translateX(-50%);font:500 15px/1.2 var(--font-family-subheading);text-transform:uppercase;letter-spacing:.02em}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile{position:absolute;left:0;right:0;top:0;height:850px;pointer-events:none}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile a{pointer-events:auto}
  body.bf-on .index-banner.bf-cover .bf-hero__title-img{position:absolute;top:106px;left:50%;width:283px;transform:translateX(-50%)}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__pct{position:absolute;top:166px;left:calc(50% - 117.5px);width:219.5px}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__card{position:absolute;top:243px;left:50%;width:283px;height:330px;margin-left:-141.5px;background:linear-gradient(174deg,rgb(18 25 43 / .7) 3.6%,rgb(31 42 68 / .7) 96.4%)}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__card::after{top:73px}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__lead{position:absolute;left:25px;top:24px;font-size:10px}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__img{position:absolute;top:24px;left:50%;width:188px;margin-left:-94px}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__img img{width:188px}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__prices{position:absolute;left:0;right:0;top:253px;font-size:16px;text-align:center;text-transform:uppercase}
  body.bf-on .index-banner.bf-cover .bf-hero__prices del{display:block;color:rgb(255 255 255 / .7)}
  body.bf-on .index-banner.bf-cover .bf-hero__prices span{font-weight:500}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile > .bf-hero__buy{position:absolute;top:559px;left:50%;transform:translateX(-50%)}
  body.bf-on .index-banner.bf-cover .bf-hero--mobile .bf-hero__terms{position:absolute;top:637px;left:50%;width:283px;margin-left:-141.5px;font-size:8px}
}

/* ---------- Catalog: product blocks on sale ---------- */
/* Zero-height holder in the column flow: the badge must not change the column's size (Splide measures it). */
body.bf-on .bf-sale .bf-badge-wrap{position:relative;z-index:3;display:block;height:0;pointer-events:none}
body.bf-on .bf-sale .bf-badge{position:absolute;top:20px;right:20px;display:flex;align-items:center;justify-content:center;width:123px;height:39px;background:#0e1622;color:#fff;font:500 12px/1 var(--font-family-subheading);text-transform:uppercase}
body.bf-on .grid-prod .wp-block-columns h5 s.bf-old{color:#6c6c6c;text-transform:none;font-weight:500}
body.bf-on .bf-sale h5 .bf-new{display:block}

/* ---------- Home "Discovery set" block: WooCommerce prints <del>old</del><ins>new</ins> for a sale ---------- */
body.bf-on .index-prod.bf-sale .wc-block-grid__product-price del{display:block;margin-bottom:4px;font-size:.56em;opacity:.5}
body.bf-on .index-prod.bf-sale .wc-block-grid__product-price ins{text-decoration:none;text-transform:uppercase}
body.bf-on .index-prod.bf-sale .alt-price{display:none}
@media (max-width:767px){
  body.bf-on .bf-sale .bf-badge{top:10px;right:10px;width:67px;height:20px;font-size:6.5px}
}
