/* Fancy Labs 2 — Black Friday (fl-black-friday.php). Loaded only while the promo is on.
   Black and honey gold, the colours of the bees; honeycomb texture on the dark surfaces.
   Everything hangs on body.fl-bf: switched off, the site is untouched. */
.fl-bf {
  --fl-bf-black: #0d0c0b;
  --fl-bf-coal: #1b1916;
  --fl-bf-line: #36312b;
  --fl-bf-gold: #f5b700;
  --fl-bf-gold-light: #ffd659;
  --fl-bf-gold-dark: #c48f00;
  --fl-bf-text: #f4eee7;
  --fl-bf-muted: #bdb2a7;
  --fl-bf-gold-fill: linear-gradient(180deg, #ffe7a3 0%, #ffc933 45%, #e09e00 100%);
  --fl-bf-stripes: repeating-linear-gradient(-45deg, var(--fl-bf-gold) 0 10px, var(--fl-bf-black) 10px 20px);
  --fl-bf-comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66 0 50V16L28 0l28 16v34L28 66v34M28 0v34L0 50v34l28 16 28-16V50L28 34' fill='none' stroke='%23f5b700' stroke-opacity='.09' stroke-width='1.2'/%3E%3C/svg%3E");
}
.fl-bf-ribbon[hidden], .fl-bf-hero[hidden] { display: none; }
.fl-bf-countdown { font-variant-numeric: tabular-nums; }

/* ---------- Ribbon (every page but cart and checkout) ---------- */
.fl-bf-ribbon { position: relative; background: var(--fl-bf-comb), var(--fl-bf-black); color: var(--fl-bf-text); font-size: 14px; line-height: 1.35; }
.fl-bf-ribbon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--fl-bf-stripes); }
.fl-bf-ribbon-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; min-height: 50px; padding-block: 8px 12px; text-align: center; }
.fl-bf-tag { display: inline-block; padding: 3px 10px 2px; border-radius: 3px; background: var(--fl-bf-gold-fill); color: var(--fl-bf-black); font-family: var(--fl-display); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; }
.fl-bf-ribbon-text strong { color: var(--fl-bf-gold-light); font-weight: 800; white-space: nowrap; }
.fl-bf-ribbon .fl-bf-countdown { color: var(--fl-bf-muted); white-space: nowrap; }
.fl-bf-ribbon .fl-bf-countdown b { color: #fff; font-weight: 700; }
.fl-bf a.fl-bf-ribbon-cta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--fl-bf-gold); color: var(--fl-bf-gold-light); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.fl-bf a.fl-bf-ribbon-cta:hover { background: var(--fl-bf-gold); color: var(--fl-bf-black); }

/* ---------- Top bar, header, menu ---------- */
.fl-bf .fl-topbar { background: var(--fl-bf-coal); }
.fl-bf .fl-topbar-contacts .fl-icon, .fl-bf .fl-topbar-rating .fl-icon, .fl-bf .fl-topbar a:hover { color: var(--fl-bf-gold-light); }
.fl-bf .fl-cart-count { background: var(--fl-bf-gold); color: var(--fl-bf-black); }
.fl-bf .fl-nav { background: var(--fl-bf-black); color: var(--fl-bf-text); border-image: var(--fl-bf-stripes) 1; box-shadow: none; }
.fl-bf .fl-mega > summary, .fl-bf .fl-nav-link { color: var(--fl-bf-text) !important; }
.fl-bf .fl-mega > summary:hover, .fl-bf .fl-nav-link:hover { background: var(--fl-bf-coal); }
.fl-bf .fl-mega[open] > summary { background: #fff; color: var(--fl-ink) !important; }
.fl-bf .fl-mega.is-current > summary, .fl-bf .fl-nav-link.is-current { box-shadow: inset 0 -3px 0 var(--fl-bf-gold); }
.fl-bf .fl-mega-all > summary { background: var(--fl-bf-gold); color: var(--fl-bf-black) !important; }
.fl-bf .fl-mega-all > summary:hover, .fl-bf .fl-mega-all[open] > summary { background: var(--fl-bf-gold-light); color: var(--fl-bf-black) !important; }
.fl-bf .fl-mega-panel { border-top-color: var(--fl-bf-gold); }

/* ---------- Product cards: gold edge, black and gold discount badge ---------- */
.fl2.fl-bf ul.products li.product.sale:not(.outofstock)::before { content: ""; position: absolute; top: -1px; left: 16px; right: 16px; z-index: 1; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--fl-bf-gold-dark), var(--fl-bf-gold-light), var(--fl-bf-gold-dark)); }
.fl2.fl-bf ul.products li.product.sale:not(.outofstock):hover { border-color: var(--fl-bf-gold); box-shadow: 0 0 0 1px var(--fl-bf-gold), var(--fl-shadow-lg); }
.fl2.fl-bf span.onsale.fl-sale-pct { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px 5px; border-radius: 6px; background: var(--fl-bf-black); color: var(--fl-bf-gold-light); font-family: var(--fl-display); font-size: 22px; font-weight: 700; line-height: 1; box-shadow: 0 6px 16px rgba(13, 12, 11, 0.28); }
/* WooCommerce's ".woocommerce ul.products li.product .onsale" (top right) is more specific than the theme: top left, clear of the green "extra discount" label. */
.fl2.fl-bf ul.products li.product span.onsale.fl-sale-pct { top: 10px; left: 10px; right: auto; margin: 0; }
.fl2.fl-bf span.onsale.fl-sale-pct em { font-family: var(--fl-font); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fl-bf-text); }
.fl2.fl-bf span.onsale.fl-sale-pct small { font-family: var(--fl-font); font-size: 10px; font-weight: 600; color: var(--fl-bf-muted); }
.fl2.fl-bf ul.products li.product .price del, .fl2.fl-bf div.product .price del { text-decoration-color: var(--fl-red); text-decoration-thickness: 1.5px; }
.fl2.fl-bf ul.products li.product.sale .button:hover { background: var(--fl-bf-gold); color: var(--fl-bf-black); }

/* ---------- Home: "In offerta" on black ---------- */
.fl-bf .fl-band { background: var(--fl-bf-comb), var(--fl-bf-black); border-color: var(--fl-bf-black); }
.fl2.fl-bf .fl-band .fl-section-head h2 { color: #fff; }
.fl-bf .fl-band .fl-section-head h2::after { width: 72px; background: var(--fl-bf-stripes); }
.fl2.fl-bf .fl-band a.fl-link { color: var(--fl-bf-gold-light); }
.fl-bf .fl-band ul.products li.product { border-color: transparent; }

/* ---------- Offers page: banner and the products on black ---------- */
.fl-bf.fl-offers article > h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.fl-bf.fl-offers .bg-dark { padding: clamp(12px, 2.4vw, 28px); border-radius: var(--fl-radius); background: var(--fl-bf-comb), var(--fl-bf-black) !important; }
.fl-bf.fl-offers .bg-dark .woocommerce-result-count, .fl-bf.fl-offers .bg-dark .fl-offers-status { color: var(--fl-bf-muted); }
.fl-bf.fl-offers .bg-dark .fl-offers-prev { color: var(--fl-bf-gold); }
.fl2.fl-bf.fl-offers nav.woocommerce-pagination ul li a:hover { border-color: var(--fl-bf-gold); }
.fl2.fl-bf.fl-offers nav.woocommerce-pagination ul li span.current { background: var(--fl-bf-gold); border-color: var(--fl-bf-gold); color: var(--fl-bf-black); }

.fl-bf-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(24px, 4vw, 56px); margin: 0 0 18px; padding: clamp(26px, 4.5vw, 56px) clamp(20px, 4.5vw, 60px) clamp(32px, 4.5vw, 62px); border-radius: var(--fl-radius); background: radial-gradient(120% 140% at 100% 0%, rgba(245, 183, 0, 0.2), transparent 55%), var(--fl-bf-comb), var(--fl-bf-black); color: var(--fl-bf-text); }
.fl-bf-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--fl-bf-stripes); }
.fl-bf-hero-word { margin: 0 0 8px; font-family: var(--fl-display); font-size: clamp(46px, 9vw, 104px); font-weight: 700; line-height: 0.9; letter-spacing: -0.01em; text-transform: uppercase; background: var(--fl-bf-gold-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fl2 .fl-bf-hero-title { margin: 0 0 10px; color: #fff; font-size: clamp(22px, 2.6vw, 32px); }
.fl-bf-hero-text { max-width: 58ch; margin: 0 0 22px; color: var(--fl-bf-muted); font-size: 16px; }
.fl-bf-countdown.is-boxes { display: flex; gap: 10px; }
.fl-bf-unit { display: grid; justify-items: center; min-width: 70px; padding: 10px 8px 8px; border-radius: 8px; background: var(--fl-bf-coal); box-shadow: inset 0 0 0 1px var(--fl-bf-line); }
.fl-bf-unit b { font-family: var(--fl-display); font-size: 34px; font-weight: 700; line-height: 1; color: #fff; }
.fl-bf-unit small { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fl-bf-gold); }
/* Honeycomb cell: a pointy-top hexagon (height = width × 2/√3). */
.fl-bf-seal { display: grid; place-content: center; justify-items: center; width: clamp(150px, 18vw, 210px); aspect-ratio: 1 / 1.1547; margin: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--fl-bf-gold-fill); color: var(--fl-bf-black); text-align: center; }
.fl-bf-seal small { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.fl-bf-seal strong { font-family: var(--fl-display); font-size: clamp(48px, 6vw, 74px); font-weight: 700; line-height: 0.95; }

@media (max-width: 767px) {
  .fl-bf-ribbon { font-size: 13px; }
  .fl-bf-ribbon-inner { gap: 6px 10px; }
  .fl-bf-ribbon-title, .fl-bf-countdown-label { display: none; }
  .fl-bf a.fl-bf-ribbon-cta { padding: 3px 12px; }
  .fl-bf-hero { grid-template-columns: minmax(0, 1fr); }
  .fl-bf-hero-text { font-size: 15px; }
  .fl-bf-unit { flex: 1; min-width: 0; }
  .fl-bf-unit b { font-size: 28px; }
  /* On phones the seal becomes a gold bar under the countdown. */
  .fl-bf-seal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 10px; width: auto; aspect-ratio: auto; padding: 10px 16px; clip-path: none; border-radius: 8px; }
  .fl-bf-seal strong { font-size: 40px; }
  .fl2.fl-bf ul.products li.product span.onsale.fl-sale-pct { top: 6px; left: 6px; padding: 5px 8px 4px; font-size: 18px; }
  .fl2.fl-bf span.onsale.fl-sale-pct em { font-size: 8px; letter-spacing: 0.1em; }
}
