/* =====================================================================
   BG BLACK FRIDAY (BGBF_V1) - theme copy "kadence-black-friday" only.
   Presentation layer: black canvas, gold + hot red accents, floating
   discount tags. Cart / checkout forms stay on light panels for
   legibility (Woo block inputs are light by design).
   ===================================================================== */

html body.bgbf {
  --bf-black: #060607;
  --bf-ink: #0d0d10;
  --bf-card: #131317;
  --bf-card-2: #1a1a20;
  --bf-line: #2a2a32;
  --bf-gold: #d8b46a;
  --bf-gold-2: #f6e3a8;
  --bf-gold-3: #a47743;
  --bf-red: #ff2e4d;
  --bf-red-2: #c40f2c;
  --bf-text: #f5f0e7;
  --bf-muted: #a9a399;
  --bf-ivory: #fbf8f2;
  --bf-ivory-ink: #171a24;
  --bf-grad-gold: linear-gradient(135deg, #f6e3a8 0%, #d8b46a 45%, #a47743 100%);
  --bf-grad-hot: linear-gradient(135deg, #ff5a6e 0%, #ff2e4d 45%, #c40f2c 100%);

  /* Kadence palette flipped to dark */
  --global-palette1: #d8b46a;
  --global-palette2: #f6e3a8;
  --global-palette3: #fff8ec;
  --global-palette4: #ece6dc;
  --global-palette5: #cfc8bd;
  --global-palette6: #9a948b;
  --global-palette7: #1c1c22;
  --global-palette8: #0b0b0d;
  --global-palette9: #131317;
  --global-palette9rgb: 19, 19, 23;
  --global-palette-highlight: #d8b46a;
  --global-palette-highlight-alt: #f6e3a8;
  --global-palette-highlight-alt2: #0b0b0d;
  --global-palette-btn-bg: #d8b46a;
  --global-palette-btn-bg-hover: #f6e3a8;
  --global-palette-btn: #0b0b0d;
  --global-palette-btn-hover: #0b0b0d;

  /* existing bg-luxe (catalog) tokens flipped */
  --bg-ink: #f5f0e7;
  --bg-gold: #d8b46a;
  --bg-gold-dark: #f0d48e;
  --bg-paper: #060607;
  --bg-line: #2a2a32;

  background: radial-gradient(1200px 520px at 50% -120px, rgba(216, 180, 106, .16), transparent 70%), var(--bf-black) !important;
  background-attachment: fixed !important;
  color: var(--bf-text);
}

html body.bgbf #wrapper { position: relative; z-index: 1; background: transparent; }
html body.bgbf .site,
html body.bgbf .site-main,
html body.bgbf .content-area,
html body.bgbf .content-bg,
html body.bgbf .entry-content-wrap,
html body.bgbf .content-style-boxed .entry,
html body.bgbf .entry.single-entry,
html body.bgbf .entry-hero-container-inner {
  background: transparent !important;
  box-shadow: none !important;
}
html body.bgbf h1, html body.bgbf h2, html body.bgbf h3,
html body.bgbf h4, html body.bgbf h5, html body.bgbf h6 { color: var(--bf-text); }
html body.bgbf a { color: var(--bf-gold); }
html body.bgbf a:hover { color: var(--bf-gold-2); }
html body.bgbf ::selection { background: var(--bf-red); color: #fff; }
html body.bgbf .screen-reader-text { color: #000; }

/* ---------------------------------------------------------------------
   Announcement bar
   --------------------------------------------------------------------- */
html body.bgbf .bgbf-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 0 0 0 0;
  background: #000;
  border-bottom: 1px solid rgba(216, 180, 106, .35);
  color: #fff;
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
}
html body.bgbf .bgbf-bar-ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
html body.bgbf .bgbf-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: bgbf-ticker 38s linear infinite;
  will-change: transform;
}
html body.bgbf .bgbf-bar:hover .bgbf-ticker-track { animation-play-state: paused; }
html body.bgbf .bgbf-ticker-item { padding: 0 22px; }
html body.bgbf .bgbf-ticker-item strong { color: var(--bf-gold); font-weight: 800; }
html body.bgbf .bgbf-ticker-sep { color: var(--bf-red); font-size: 10px; }
html body.bgbf .bgbf-bar-clock {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  padding: 0 18px 0 22px;
  background: var(--bf-grad-hot);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}
html body.bgbf .bgbf-bar-label { font-size: 10px; opacity: .9; }
@keyframes bgbf-ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------------------------------------------------------------------
   Countdown (shared)
   --------------------------------------------------------------------- */
html body.bgbf .bgbf-countdown { display: inline-flex; align-items: stretch; gap: 6px; font-variant-numeric: tabular-nums; }
html body.bgbf .bgbf-cd-unit {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; padding: 7px 6px 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(216, 180, 106, .35);
  border-radius: 6px;
}
html body.bgbf .bgbf-cd-unit b { font: 800 18px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff; letter-spacing: 0; }
html body.bgbf .bgbf-cd-unit i { margin-top: 4px; font: 600 9px/1 system-ui, sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--bf-gold); }
html body.bgbf .bgbf-countdown.is-compact { gap: 3px; }
html body.bgbf .bgbf-countdown.is-compact .bgbf-cd-unit { min-width: 0; padding: 0; background: none; border: 0; flex-direction: row; align-items: baseline; }
html body.bgbf .bgbf-countdown.is-compact .bgbf-cd-unit b { font-size: 13px; }
html body.bgbf .bgbf-countdown.is-compact .bgbf-cd-unit i { margin: 0 4px 0 1px; font-size: 9px; color: rgba(255, 255, 255, .85); letter-spacing: .04em; }
html body.bgbf .bgbf-countdown.is-compact .bgbf-cd-unit i { font-size: 0; margin: 0 5px 0 1px; }
html body.bgbf .bgbf-countdown.is-compact .bgbf-cd-unit i::after { content: attr(data-s); font-size: 10px; text-transform: lowercase; }
html body.bgbf .bgbf-countdown.is-big .bgbf-cd-unit { min-width: 78px; padding: 14px 10px 11px; border-radius: 10px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
html body.bgbf .bgbf-countdown.is-big .bgbf-cd-unit b { font-size: clamp(28px, 4vw, 42px); }
html body.bgbf .bgbf-countdown.is-big .bgbf-cd-unit i { font-size: 10px; margin-top: 7px; }
html body.bgbf .bgbf-cd-unit b.is-tick { animation: bgbf-tick .35s ease-out; }
@keyframes bgbf-tick { 0% { transform: translateY(-3px); opacity: .4; } 100% { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------------
   Floating discounts ("prices flying in the air")
   --------------------------------------------------------------------- */
html body.bgbf .bgbf-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: strict; }
html body.bgbf .bgbf-p {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  display: inline-flex;
  align-items: center;
  padding: .32em .7em .32em 1.05em;
  font: 800 calc(14px * var(--s, 1))/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 112vh, 0) rotate(var(--r, 0deg));
  animation: bgbf-float var(--d, 18s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
  clip-path: polygon(.6em 0, 100% 0, 100% 100%, .6em 100%, 0 50%);
  border-radius: 0 4px 4px 0;
}
html body.bgbf .bgbf-p::before {
  content: "";
  width: .32em; height: .32em; margin-right: .42em;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
}
html body.bgbf .bgbf-p.is-gold { background: var(--bf-grad-gold); color: #1b1408; }
html body.bgbf .bgbf-p.is-red { background: var(--bf-grad-hot); color: #fff; }
html body.bgbf .bgbf-p.is-ghost {
  clip-path: none; padding: 0; background: none; border-radius: 0;
  color: transparent; -webkit-text-stroke: 1.2px rgba(216, 180, 106, .9);
  font-size: calc(30px * var(--s, 1)); font-weight: 900;
}
html body.bgbf .bgbf-p.is-ghost::before { display: none; }
@keyframes bgbf-float {
  0%   { opacity: 0;               transform: translate3d(0, 112vh, 0) rotate(var(--r, 0deg)); }
  8%   { opacity: var(--o, .5); }
  50%  {                            transform: translate3d(var(--sway, 30px), 45vh, 0) rotate(calc(var(--r, 0deg) + 12deg)); }
  88%  { opacity: var(--o, .5); }
  100% { opacity: 0;               transform: translate3d(calc(var(--sway, 30px) * -.6), -18vh, 0) rotate(calc(var(--r, 0deg) - 10deg)); }
}

/* Confetti burst (cart, once per session) */
html body.bgbf .bgbf-confetti { position: fixed; inset: 0; z-index: 99990; pointer-events: none; overflow: hidden; }
html body.bgbf .bgbf-confetti i {
  position: absolute; top: -20px; left: var(--x);
  width: var(--w, 8px); height: var(--h, 14px);
  background: var(--c, #d8b46a);
  border-radius: 2px;
  animation: bgbf-confetti var(--d, 2.6s) cubic-bezier(.2, .6, .4, 1) var(--delay, 0s) forwards;
}
@keyframes bgbf-confetti {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--sway, 40px), 105vh, 0) rotate(var(--rot, 540deg)); opacity: .9; }
}

/* ---------------------------------------------------------------------
   Header + navigation + footer
   --------------------------------------------------------------------- */
html body.bgbf #masthead,
html body.bgbf #masthead .site-header-row-container-inner,
html body.bgbf .site-header-upper-inner-wrap,
html body.bgbf #mobile-header .site-header-row-container-inner {
  background: rgba(6, 6, 7, .96) !important;
}
html body.bgbf #masthead { border-bottom: 1px solid rgba(216, 180, 106, .28); }
html body.bgbf .main-navigation .primary-menu-container > ul > li > a,
html body.bgbf .header-navigation .header-menu-container > ul > li > a,
html body.bgbf .site-header-item .header-cart-button,
html body.bgbf .site-header-item .search-toggle-open,
html body.bgbf .site-header-item .menu-toggle-open,
html body.bgbf .site-header-item .header-account-button {
  color: #f1ebe0 !important;
}
html body.bgbf .main-navigation .primary-menu-container > ul > li > a:hover,
html body.bgbf .main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--bf-gold) !important; }
html body.bgbf .header-navigation .header-menu-container ul ul.sub-menu,
html body.bgbf .header-navigation .header-menu-container ul ul.submenu {
  background: #0e0e11 !important;
  border: 1px solid var(--bf-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}
html body.bgbf .header-navigation .header-menu-container ul ul li.menu-item > a { color: #e9e2d6 !important; border-color: var(--bf-line) !important; }
html body.bgbf .header-navigation .header-menu-container ul ul li.menu-item > a:hover { color: var(--bf-gold) !important; background: #17171c !important; }
/* first menu item ("Shop") gets a small hot "SALE" flag */
html body.bgbf #primary-menu > li:first-child > a { position: relative; }
html body.bgbf #primary-menu > li:first-child > a::after {
  content: "SALE";
  position: absolute; top: 50%; right: -6px;
  transform: translate(100%, -135%);
  padding: 3px 5px 2px;
  border-radius: 3px;
  background: var(--bf-grad-hot);
  color: #fff;
  font: 800 8px/1 system-ui, sans-serif;
  letter-spacing: .1em;
  animation: bgbf-pulse 1.8s ease-in-out infinite;
}
html body.bgbf .header-cart-total { background: var(--bf-red) !important; color: #fff !important; }
@keyframes bgbf-pulse { 0%, 100% { transform: translate(100%, -135%) scale(1); } 50% { transform: translate(100%, -135%) scale(1.12); } }

html body.bgbf .site-footer,
html body.bgbf .site-footer-wrap,
html body.bgbf .site-footer .site-footer-row-container-inner {
  background: #030304 !important;
  border-color: rgba(216, 180, 106, .2) !important;
  color: var(--bf-muted);
}
html body.bgbf .site-footer a, html body.bgbf .site-footer .footer-navigation a { color: #d9d2c6 !important; }
html body.bgbf .site-footer a:hover { color: var(--bf-gold) !important; }

/* Drawers (mini cart, mobile menu, search) */
html body.bgbf .popup-drawer .drawer-inner { background: #0c0c0f !important; color: var(--bf-text); }
html body.bgbf .popup-drawer .drawer-header { border-color: var(--bf-line); }
html body.bgbf .mobile-navigation ul li > a,
html body.bgbf .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap { color: #efe8dc !important; border-color: var(--bf-line) !important; }
html body.bgbf .woocommerce-mini-cart-item { border-color: var(--bf-line) !important; }
html body.bgbf .woocommerce-mini-cart__total { border-color: var(--bf-line) !important; }
html body.bgbf .bgbf-mini-save {
  margin: 0 0 12px; padding: 11px 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 46, 77, .18), rgba(216, 180, 106, .14));
  border: 1px solid rgba(255, 46, 77, .45);
  color: #fff; font-size: 13px; text-align: center;
}
html body.bgbf .bgbf-mini-save strong { color: var(--bf-gold-2); }
html body.bgbf .bgbf-mini-save span { color: #ff8b9a; }

/* Buttons (generic Kadence / Woo) */
html body.bgbf .button,
html body.bgbf button.button,
html body.bgbf .wp-element-button,
html body.bgbf input[type="submit"] {
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   Sale badge
   --------------------------------------------------------------------- */
html body.bgbf span.onsale.bgbf-badge,
html body.bgbf.woocommerce.archive ul.products li.product .onsale.bgbf-badge,
html body.bgbf.bg-luxe-preview span.onsale.bgbf-badge {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto !important; height: auto !important;
  min-width: 0 !important; min-height: 0 !important;
  padding: 8px 11px !important;
  border-radius: 6px !important;
  background: var(--bf-grad-hot) !important;
  color: #fff !important;
  font: 900 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  box-shadow: 0 8px 22px rgba(255, 46, 77, .45), inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  transform: rotate(-4deg);
  overflow: hidden;
  z-index: 3;
}
html body.bgbf span.onsale.bgbf-badge small { display: block; margin-bottom: 3px; font-size: 8px; letter-spacing: .16em; opacity: .9; }
html body.bgbf span.onsale.bgbf-badge::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  animation: bgbf-shine 3.2s ease-in-out infinite;
}
@keyframes bgbf-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------------------------------------------------------------------
   Shop / category
   --------------------------------------------------------------------- */
html body.bgbf .bgbf-strip {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  margin: 0 0 26px; padding: 16px 22px;
  border-radius: 12px;
  background:
    linear-gradient(#0d0d10, #0d0d10) padding-box,
    linear-gradient(120deg, var(--bf-red), var(--bf-gold), var(--bf-red)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 40px rgba(255, 46, 77, .15);
}
html body.bgbf .bgbf-strip-copy { display: flex; flex-direction: column; gap: 4px; }
html body.bgbf .bgbf-strip-kicker { color: var(--bf-red); font: 800 11px/1 system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; }
html body.bgbf .bgbf-strip strong { color: #fff; font: 400 clamp(19px, 2vw, 26px)/1.2 Georgia, serif; }

html body.bgbf .bg-luxe-hero {
  position: relative; overflow: hidden;
  border: 1px solid rgba(216, 180, 106, .3) !important;
  background:
    radial-gradient(600px 220px at 85% 50%, rgba(255, 46, 77, .28), transparent 70%),
    radial-gradient(500px 200px at 10% 0%, rgba(216, 180, 106, .22), transparent 70%),
    #0b0b0d !important;
}
html body.bgbf .bg-luxe-hero h1 { color: #fff !important; }
html body.bgbf .bg-luxe-hero p { color: #d7d0c4 !important; }
html body.bgbf .bg-luxe-eyebrow { color: var(--bf-red) !important; }
html body.bgbf .bg-luxe-eyebrow::before { content: "BLACK FRIDAY · "; color: var(--bf-gold); }
html body.bgbf .woocommerce-breadcrumb, html body.bgbf .woocommerce-breadcrumb a,
html body.bgbf .woocommerce-result-count { color: var(--bf-muted) !important; }
html body.bgbf .woocommerce-ordering select,
html body.bgbf .bg-luxe-filters input[type="number"] { background: #111115 !important; color: var(--bf-text) !important; border-color: var(--bf-line) !important; }
html body.bgbf .bg-luxe-filters { background: #0e0e11 !important; border-color: var(--bf-line) !important; }
html body.bgbf .bg-luxe-filters label { color: var(--bf-text) !important; }

html body.bgbf ul.products li.product,
html body.bgbf.bg-luxe-preview ul.products li.product {
  position: relative;
  background: linear-gradient(180deg, #16161b, #0f0f12) !important;
  border: 1px solid var(--bf-line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease !important;
}
html body.bgbf ul.products li.product:hover,
html body.bgbf.bg-luxe-preview ul.products li.product:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(216, 180, 106, .75) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(216, 180, 106, .25), 0 0 34px rgba(255, 46, 77, .16) !important;
}
html body.bgbf ul.products li.product img,
html body.bgbf.bg-luxe-preview ul.products li.product img { background: #f6f1e9 !important; }
html body.bgbf ul.products li.product .woocommerce-loop-image-link { display: block; background: #f6f1e9; }
html body.bgbf ul.products li.product .woocommerce-loop-product__title,
html body.bgbf ul.products li.product .woocommerce-loop-product__title a,
html body.bgbf.bg-luxe-preview ul.products li.product .woocommerce-loop-product__title { color: #f7f1e6 !important; }
html body.bgbf ul.products li.product .product-excerpt,
html body.bgbf ul.products li.product .product-excerpt p { color: var(--bf-muted) !important; }
html body.bgbf ul.products li.product .price,
html body.bgbf.bg-luxe-preview ul.products li.product .price { color: #fff !important; font-weight: 700 !important; }
html body.bgbf ul.products li.product .price ins { text-decoration: none; color: #fff !important; font-size: 1.12em; }
html body.bgbf ul.products li.product .price del,
html body.bgbf.bg-luxe-preview ul.products li.product .price del { color: #8f897f !important; opacity: 1; }
html body.bgbf ul.products li.product .bgbf-save {
  display: inline-block;
  margin: 6px 0 2px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 46, 77, .14);
  border: 1px solid rgba(255, 46, 77, .4);
  color: #ff8b9a;
  font: 700 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .02em;
}
html body.bgbf ul.products li.product .bgbf-save .amount { color: #fff; }
html body.bgbf ul.products li.product .button,
html body.bgbf.bg-luxe-preview ul.products li.product .button {
  border: 1px solid rgba(216, 180, 106, .8) !important;
  background: transparent !important;
  color: var(--bf-gold) !important;
  border-radius: 6px !important;
}
html body.bgbf ul.products li.product .button:hover,
html body.bgbf.bg-luxe-preview ul.products li.product .button:hover {
  background: var(--bf-grad-gold) !important;
  color: #160f05 !important;
  border-color: transparent !important;
}
html body.bgbf .woocommerce-pagination .page-numbers a,
html body.bgbf .woocommerce-pagination .page-numbers span { color: var(--bf-text) !important; border-color: var(--bf-line) !important; background: #101013 !important; }
html body.bgbf .woocommerce-pagination .page-numbers .current { background: var(--bf-grad-gold) !important; color: #140e04 !important; }

/* ---------------------------------------------------------------------
   Single product
   --------------------------------------------------------------------- */
html body.bgbf.single-product .site-main,
html body.bgbf.bg-luxe-preview.single-product .site-main { background: transparent !important; }
html body.bgbf.single-product .summary,
html body.bgbf.bg-luxe-preview.single-product .summary {
  background: linear-gradient(180deg, #121216, #0c0c0f) !important;
  border: 1px solid var(--bf-line) !important;
  border-radius: 14px;
  color: var(--bf-text);
}
html body.bgbf.single-product .product_title,
html body.bgbf.bg-luxe-preview.single-product .product_title { color: #fff !important; }
html body.bgbf.single-product .woocommerce-product-details__short-description,
html body.bgbf.single-product .woocommerce-product-details__short-description p { color: #cfc8bd !important; }
html body.bgbf.single-product .summary > .price,
html body.bgbf.bg-luxe-preview.single-product .summary > .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  color: #fff !important;
}
html body.bgbf.single-product .summary > .price ins { order: -1; text-decoration: none; color: #fff !important; font-size: 1.45em; font-weight: 800; letter-spacing: -.01em; }
html body.bgbf.single-product .summary > .price del,
html body.bgbf.bg-luxe-preview.single-product .summary > .price del { color: #8f897f !important; text-decoration-color: var(--bf-red) !important; text-decoration-thickness: 2px; }
html body.bgbf.single-product .woocommerce-product-gallery__wrapper,
html body.bgbf.single-product .woocommerce-product-gallery__image,
html body.bgbf.single-product .woocommerce-product-gallery img { background: #f6f1e9 !important; }
html body.bgbf.single-product .woocommerce-product-gallery { border-radius: 14px; overflow: hidden; }
html body.bgbf.single-product .flex-control-thumbs li { background: #111115 !important; }
html body.bgbf.single-product .product_meta,
html body.bgbf.bg-luxe-preview.single-product .product_meta { color: var(--bf-muted) !important; border-color: var(--bf-line) !important; }
html body.bgbf.single-product .product_meta a { color: var(--bf-gold) !important; }
html body.bgbf.single-product .variations th,
html body.bgbf.single-product .variations label { color: #efe8dc !important; }
html body.bgbf.single-product .variations select,
html body.bgbf.single-product .quantity .qty,
html body.bgbf.bg-luxe-preview.single-product .quantity .qty {
  background: #fbf8f2 !important; color: #171a24 !important; border-color: rgba(216, 180, 106, .6) !important;
}
html body.bgbf.single-product .reset_variations { color: var(--bf-gold) !important; }
html body.bgbf.single-product .woocommerce-variation-price .price { color: #fff !important; }
html body.bgbf.single-product .woocommerce-variation-price .price ins { text-decoration: none; font-weight: 800; }
html body.bgbf.single-product .woocommerce-variation-price .price del { color: #8f897f !important; }
html body.bgbf.single-product .stock { color: #9fe3b0 !important; }
html body.bgbf.single-product .stock.out-of-stock { color: #ff8b9a !important; }

html body.bgbf .single_add_to_cart_button,
html body.bgbf.bg-luxe-preview .single_add_to_cart_button,
html body.bgbf.bg-luxe-preview form.cart .single_add_to_cart_button {
  position: relative; overflow: hidden;
  background: var(--bf-grad-gold) !important;
  color: #140e04 !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(216, 180, 106, .35) !important;
}
html body.bgbf .single_add_to_cart_button::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg);
  animation: bgbf-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
html body.bgbf .single_add_to_cart_button:hover { filter: brightness(1.06); transform: translateY(-1px); }
html body.bgbf .single_add_to_cart_button.disabled,
html body.bgbf .single_add_to_cart_button:disabled { filter: grayscale(.6); opacity: .6; box-shadow: none !important; }
html body.bgbf .single_add_to_cart_button.disabled::after { display: none; }
html body.bgbf .bg-direct-checkout {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  border-radius: 8px !important;
}
html body.bgbf .bg-direct-checkout:not(:disabled):hover { border-color: var(--bf-gold) !important; color: var(--bf-gold) !important; }

/* deal card */
html body.bgbf .bgbf-deal {
  position: relative;
  margin: 6px 0 22px;
  padding: 16px 18px 15px;
  border-radius: 12px;
  background:
    radial-gradient(420px 120px at 100% 0%, rgba(255, 46, 77, .25), transparent 70%),
    linear-gradient(#0a0a0c, #0a0a0c) padding-box,
    linear-gradient(120deg, var(--bf-red), var(--bf-gold) 55%, var(--bf-red)) border-box;
  border: 1.5px solid transparent;
  color: var(--bf-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html body.bgbf .bgbf-deal.is-plain { background: linear-gradient(#0a0a0c, #0a0a0c) padding-box, linear-gradient(120deg, var(--bf-gold-3), var(--bf-gold)) border-box; }
html body.bgbf .bgbf-deal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body.bgbf .bgbf-deal-tag { color: var(--bf-gold); font: 800 11px/1 system-ui, sans-serif; letter-spacing: .26em; text-transform: uppercase; }
html body.bgbf .bgbf-deal-pct {
  padding: 8px 12px 7px;
  border-radius: 6px;
  background: var(--bf-grad-hot);
  color: #fff;
  font: 900 20px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 8px 22px rgba(255, 46, 77, .45);
  animation: bgbf-pop 2.4s ease-in-out infinite;
}
html body.bgbf .bgbf-deal-save { margin: 10px 0 0; color: #e8e1d5; font-size: 15px; }
html body.bgbf .bgbf-deal-save strong, html body.bgbf .bgbf-deal-save .amount { color: var(--bf-gold-2); font-weight: 800; }
html body.bgbf .bgbf-deal-extra { margin: 8px 0 0; color: #ff9aa8; font-size: 14px; }
html body.bgbf .bgbf-deal-extra strong { color: #fff; }
html body.bgbf .bgbf-deal-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed rgba(216, 180, 106, .3); }
html body.bgbf .bgbf-deal-clock > span { color: var(--bf-muted); font: 700 10px/1 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
html body.bgbf .bgbf-deal .bgbf-cd-unit { min-width: 44px; padding: 6px 5px 5px; }
html body.bgbf .bgbf-deal .bgbf-cd-unit b { font-size: 16px; }
@keyframes bgbf-pop { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.06) rotate(1deg); } }

/* trust row + tabs */
html body.bgbf .bg-luxe-trust { border-color: var(--bf-line) !important; }
html body.bgbf .bg-luxe-trust-item { background: #101013 !important; border-color: var(--bf-line) !important; }
html body.bgbf .bg-luxe-trust-item strong { color: #f3ede2 !important; }
html body.bgbf .bg-luxe-trust-item small { color: var(--bf-muted) !important; }
html body.bgbf .bg-luxe-trust-icon { color: var(--bf-gold) !important; }
html body.bgbf.single-product .woocommerce-tabs ul.tabs li,
html body.bgbf.bg-luxe-preview.single-product .woocommerce-tabs ul.tabs li { background: #111115 !important; border-color: var(--bf-line) !important; }
html body.bgbf.single-product .woocommerce-tabs ul.tabs li.active,
html body.bgbf.bg-luxe-preview.single-product .woocommerce-tabs ul.tabs li.active { background: #19191e !important; border-bottom-color: var(--bf-gold) !important; }
html body.bgbf.single-product .woocommerce-tabs ul.tabs li a { color: #e9e2d6 !important; }
html body.bgbf.single-product .woocommerce-tabs .panel,
html body.bgbf.single-product .woocommerce-Tabs-panel {
  background: #0f0f12 !important; color: #d5cec3 !important; border-color: var(--bf-line) !important;
}
html body.bgbf.single-product .woocommerce-Tabs-panel h2,
html body.bgbf.single-product .woocommerce-Tabs-panel th { color: #fff !important; }
html body.bgbf.single-product .woocommerce-Tabs-panel td,
html body.bgbf.single-product .woocommerce-Tabs-panel table { color: #d5cec3 !important; border-color: var(--bf-line) !important; background: transparent !important; }
html body.bgbf .related.products > h2, html body.bgbf .upsells.products > h2 { color: #fff; }
html body.bgbf #reviews #comments, html body.bgbf #review_form { color: #d5cec3; }
html body.bgbf #review_form input, html body.bgbf #review_form textarea { background: #fbf8f2; color: #171a24; }

/* ---------------------------------------------------------------------
   Home page
   --------------------------------------------------------------------- */
html body.bgbf .bgbf-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 0;
  padding: clamp(56px, 8vw, 110px) 6vw clamp(60px, 8vw, 100px);
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(216, 180, 106, .22), transparent 65%),
    radial-gradient(800px 420px at 95% 100%, rgba(255, 46, 77, .30), transparent 60%),
    #050506;
  border-bottom: 1px solid rgba(216, 180, 106, .3);
  text-align: center;
  color: #fff;
}
html body.bgbf .bgbf-hero-glow {
  position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255, 46, 77, .0), rgba(255, 46, 77, .18), rgba(216, 180, 106, .18), rgba(255, 46, 77, .0));
  filter: blur(60px);
  animation: bgbf-spin 18s linear infinite;
}
@keyframes bgbf-spin { to { transform: rotate(360deg); } }
html body.bgbf .bgbf-hero-inner { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; }
html body.bgbf .bgbf-hero-kicker { margin: 0 0 14px; color: var(--bf-gold); font: 700 12px/1 system-ui, sans-serif; letter-spacing: .42em; text-transform: uppercase; }
html body.bgbf .bgbf-hero-title {
  margin: 0;
  color: #fff;
  font: 900 clamp(54px, 11vw, 150px)/.88 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
html body.bgbf .bgbf-outline { color: transparent; -webkit-text-stroke: 2px #fff; }
html body.bgbf .bgbf-gold {
  background: linear-gradient(100deg, #a47743 0%, #f6e3a8 25%, #d8b46a 50%, #fff3c9 62%, #a47743 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: bgbf-gold-sweep 5s ease-in-out infinite;
}
@keyframes bgbf-gold-sweep { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
html body.bgbf .bgbf-hero-sub { margin: 22px auto 26px; max-width: 640px; color: #e6dfd3; font: 400 clamp(17px, 1.8vw, 22px)/1.5 Georgia, serif; }
html body.bgbf .bgbf-hero-sub strong { color: #fff; font-weight: 700; background: var(--bf-grad-hot); padding: 0 .3em; border-radius: 4px; }
html body.bgbf .bgbf-hero-extra { display: inline-block; margin-top: 8px; color: var(--bf-gold-2); font-size: .9em; }
html body.bgbf .bgbf-hero-clock { margin: 0 0 30px; }
html body.bgbf .bgbf-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 34px;
  border-radius: 999px;
  background: var(--bf-grad-gold);
  color: #140e04 !important;
  font: 800 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none !important;
  box-shadow: 0 14px 40px rgba(216, 180, 106, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
html body.bgbf .bgbf-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-20deg); animation: bgbf-shine 3s ease-in-out infinite;
}
html body.bgbf .bgbf-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 50px rgba(216, 180, 106, .55); }
html body.bgbf .bgbf-hero-tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
html body.bgbf .bgbf-tag {
  position: absolute;
  padding: .35em .75em .35em 1.1em;
  font: 900 clamp(18px, 2.4vw, 30px)/1 system-ui, sans-serif;
  clip-path: polygon(.6em 0, 100% 0, 100% 100%, .6em 100%, 0 50%);
  animation: bgbf-bob 6s ease-in-out infinite;
}
html body.bgbf .bgbf-tag.t1 { top: 14%; left: 6%; background: var(--bf-grad-hot); color: #fff; transform: rotate(-12deg); }
html body.bgbf .bgbf-tag.t2 { top: 20%; right: 7%; background: var(--bf-grad-gold); color: #140e04; animation-delay: -2s; font-size: clamp(12px, 1.3vw, 16px); letter-spacing: .14em; }
html body.bgbf .bgbf-tag.t3 { bottom: 14%; left: 10%; background: var(--bf-grad-gold); color: #140e04; animation-delay: -4s; font-size: clamp(14px, 1.6vw, 20px); }
html body.bgbf .bgbf-tag.t4 { bottom: 18%; right: 11%; clip-path: none; padding: 0; color: transparent; -webkit-text-stroke: 2px rgba(255, 46, 77, .9); font-size: clamp(60px, 9vw, 120px); animation-delay: -1s; }
@keyframes bgbf-bob { 0%, 100% { translate: 0 0; rotate: -8deg; } 50% { translate: 0 -14px; rotate: 4deg; } }

/* existing premium homepage flipped to the black canvas */
html body.bgbf .bgp-home { background: transparent !important; color: var(--bf-text) !important; }
html body.bgbf .bgp-home h1, html body.bgbf .bgp-home h2, html body.bgbf .bgp-home h3 { color: #fff !important; }
html body.bgbf .bgp-home p { color: #d8d1c5; }
html body.bgbf .bgp-hero { background: #0b0b0d !important; }
html body.bgbf .bgp-hero-content > p, html body.bgbf .bgp-section-heading p { color: #cfc8bd !important; }
html body.bgbf .bgp-kicker { color: var(--bf-red) !important; }
html body.bgbf .bgp-button { background: var(--bf-grad-gold) !important; color: #140e04 !important; border-radius: 6px; }
html body.bgbf .bgp-button:hover { filter: brightness(1.06); }
html body.bgbf .bgp-text-link { color: var(--bf-gold) !important; }
html body.bgbf .bgp-marquee-dark { background: var(--bf-grad-hot) !important; color: #fff !important; }
html body.bgbf .bgp-marquee-dark b { color: #1a0006 !important; }
html body.bgbf .bgp-marquee-light { background: #0f0f12 !important; color: var(--bf-gold) !important; border-block: 1px solid var(--bf-line); }
html body.bgbf .bgp-story-editorial, html body.bgbf .bgp-story, html body.bgbf .bgp-service, html body.bgbf .bgp-collections { background: transparent !important; }
html body.bgbf.home .entry-content, html body.bgbf.home .site-content { background: transparent !important; }
html body.bgbf .bgp-campaign { box-shadow: inset 0 0 0 1px rgba(216, 180, 106, .25); }
html body.bgbf .bgp-story-copy { color: var(--bf-text) !important; }
html body.bgbf .bgp-campaign p { color: #f4e9dd !important; }
html body.bgbf .bgp-story-link { color: var(--bf-gold) !important; }
html body.bgbf .bgp-footer { background: #030304 !important; color: var(--bf-muted) !important; border-top: 1px solid rgba(216, 180, 106, .2); }
html body.bgbf .bgp-footer a { color: #ddd5c8 !important; }
html body.bgbf .bgp-footer p { color: var(--bf-muted) !important; }
html body.bgbf .bgp-footer h2, html body.bgbf .bgp-footer h3 { color: var(--bf-gold) !important; }
html body.bgbf .bgp-footer a:hover { color: var(--bf-gold) !important; }
html body.bgbf.home .entry-hero, html body.bgbf.home .entry-header { display: none !important; }

/* ---------------------------------------------------------------------
   Cart + Checkout: hero/savings panel above the block (outside React)
   --------------------------------------------------------------------- */
html body.bgbf .bgcp-hero { display: none !important; }
html body.bgbf.bgbf-cart .entry-hero, html body.bgbf.bgbf-checkout .entry-hero,
html body.bgbf.bgbf-cart .entry-header, html body.bgbf.bgbf-checkout .entry-header { display: none !important; }
html body.bgbf .bgbf-flow-hero {
  position: relative; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  grid-template-areas: "copy savings" "clock savings";
  align-items: center;
  gap: 14px 30px;
  margin: 18px clamp(0px, 2vw, 32px) 30px;
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3.5vw, 48px);
  border-radius: 16px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(255, 46, 77, .32), transparent 70%),
    radial-gradient(460px 200px at 0% 100%, rgba(216, 180, 106, .2), transparent 70%),
    linear-gradient(#0a0a0c, #0a0a0c) padding-box,
    linear-gradient(120deg, var(--bf-red), var(--bf-gold) 50%, var(--bf-red)) border-box;
  border: 1.5px solid transparent;
  color: #fff;
}
html body.bgbf .bgbf-flow-copy { grid-area: copy; }
html body.bgbf .bgbf-flow-kicker { color: var(--bf-red); font: 800 11px/1 system-ui, sans-serif; letter-spacing: .28em; text-transform: uppercase; }
html body.bgbf .bgbf-flow-title { margin: 10px 0 8px; color: #fff !important; font: 400 clamp(34px, 4.6vw, 58px)/1.05 Georgia, serif; letter-spacing: -.02em; }
html body.bgbf .bgbf-flow-sub { margin: 0; color: #d7d0c4; font: 15px/1.5 Georgia, serif; }
html body.bgbf .bgbf-flow-extra { display: inline-block; margin: 12px 0 0; padding: 6px 11px; border-radius: 5px; background: var(--bf-grad-hot); color: #fff; font: 700 13px/1.2 system-ui, sans-serif; }
html body.bgbf .bgbf-flow-clock { grid-area: clock; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--bf-muted); font: 700 10px/1 system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
html body.bgbf .bgbf-flow-clock .bgbf-countdown.is-compact .bgbf-cd-unit b { color: var(--bf-gold-2); font-size: 15px; }
html body.bgbf .bgbf-flow-savings {
  grid-area: savings;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-width: 210px;
  padding: 20px 26px;
  border-radius: 14px;
  background: var(--bf-grad-hot);
  box-shadow: 0 18px 50px rgba(255, 46, 77, .4), inset 0 1px 0 rgba(255, 255, 255, .35);
  transform: rotate(-2deg);
}
html body.bgbf .bgbf-flow-savings[hidden] { display: none; }
html body.bgbf .bgbf-flow-savings-label { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .24em; text-transform: uppercase; opacity: .92; }
html body.bgbf .bgbf-flow-savings-amount { margin: 8px 0 6px; font: 900 clamp(32px, 4vw, 46px)/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html body.bgbf .bgbf-flow-savings-pct { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .28); font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .06em; }

/* Light panels for the forms: restore the light palette inside the blocks */
html body.bgbf .wp-block-woocommerce-cart,
html body.bgbf .wp-block-woocommerce-checkout,
html body.bgbf .woocommerce-order,
html body.bgbf .wc-block-components-notices {
  --global-palette1: #a47743;
  --global-palette2: #79542d;
  --global-palette3: #1a202c;
  --global-palette4: #2d3748;
  --global-palette5: #4a5568;
  --global-palette6: #718096;
  --global-palette7: #edf2f7;
  --global-palette8: #f7fafc;
  --global-palette9: #ffffff;
  --global-palette9rgb: 255, 255, 255;
  --global-palette-btn-bg: #a47743;
  --global-palette-btn: #ffffff;
  --global-palette-btn-hover: #ffffff;
  --global-palette-btn-bg-hover: #79542d;
  --global-palette-highlight: #a47743;
}
html body.bgbf .wc-block-cart__main,
html body.bgbf .wc-block-checkout__main {
  background: var(--bf-ivory) !important;
  color: var(--bf-ivory-ink) !important;
  border: 1px solid rgba(216, 180, 106, .35) !important;
  border-radius: 14px !important;
  padding: clamp(16px, 2.6vw, 34px) !important;
}
html body.bgbf .wc-block-cart__sidebar,
html body.bgbf .wc-block-checkout__sidebar {
  background: #f4eee4 !important;
  color: var(--bf-ivory-ink) !important;
  border: 1px solid rgba(216, 180, 106, .5) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
html body.bgbf .wp-block-woocommerce-cart .wc-block-components-title,
html body.bgbf .wp-block-woocommerce-cart .wc-block-cart__totals-title,
html body.bgbf .wp-block-woocommerce-checkout .wc-block-components-title,
html body.bgbf .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title { color: var(--bf-ivory-ink) !important; }
html body.bgbf .wp-block-woocommerce-cart a:not(.wc-block-components-button),
html body.bgbf .wp-block-woocommerce-checkout a:not(.wc-block-components-button) { color: #8a6232; }
html body.bgbf .wp-block-woocommerce-cart .wc-block-cart-items th { color: var(--bf-ivory-ink) !important; }
html body.bgbf .wp-block-woocommerce-cart .wc-block-cart-items__row { background: #fff; }
html body.bgbf .wp-block-woocommerce-cart .wc-block-components-product-name { color: var(--bf-ivory-ink) !important; }

html body.bgbf .wp-block-woocommerce-cart :is(h1, h2, h3, h4, h5, h6),
html body.bgbf .wp-block-woocommerce-checkout :is(h1, h2, h3, h4, h5, h6),
html body.bgbf .woocommerce-order :is(h1, h2, h3, h4, h5, h6) { color: var(--bf-ivory-ink); }
/* empty cart state gets its own light panel */
html body.bgbf .wp-block-woocommerce-empty-cart-block {
  background: var(--bf-ivory);
  color: var(--bf-ivory-ink);
  border: 1px solid rgba(216, 180, 106, .35);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 40px);
}
html body.bgbf .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title,
html body.bgbf .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price { color: var(--bf-ivory-ink) !important; }

/* sale badges inside Woo blocks ("Save $X") */
html body.bgbf .wc-block-components-sale-badge,
html body.bgbf .wc-block-components-product-badge.wc-block-components-sale-badge {
  background: var(--bf-grad-hot) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 3px 7px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(255, 46, 77, .35);
}
html body.bgbf .wc-block-components-product-price__regular { color: #9a8f82 !important; text-decoration-color: var(--bf-red-2) !important; }
html body.bgbf .wc-block-components-product-price__value.is-discounted { color: var(--bf-red-2) !important; font-weight: 800; }
html body.bgbf .wc-block-components-totals-discount .wc-block-components-totals-item__value,
html body.bgbf .wc-block-components-totals-discount .wc-block-components-totals-item__label { color: var(--bf-red-2) !important; font-weight: 700; }
html body.bgbf .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--bf-ivory-ink) !important; font-weight: 900 !important; }

/* primary actions: proceed to checkout / place order */
html body.bgbf .wc-block-cart__submit-button,
html body.bgbf .wc-block-components-checkout-place-order-button {
  position: relative; overflow: hidden;
  min-height: 56px;
  background: linear-gradient(135deg, #1a1a1f, #050506) !important;
  color: #fff !important;
  border: 1.5px solid var(--bf-gold) !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 0 0 rgba(216, 180, 106, .5);
  transition: transform .15s ease, box-shadow .2s ease;
}
html body.bgbf .wc-block-cart__submit-button .wc-block-components-button__text,
html body.bgbf .wc-block-components-checkout-place-order-button .wc-block-components-button__text { color: #fff !important; }
html body.bgbf .wc-block-cart__submit-button:not(:disabled):hover,
html body.bgbf .wc-block-components-checkout-place-order-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4), 0 0 0 4px rgba(216, 180, 106, .25);
}
html body.bgbf .wc-block-cart__submit-button::after,
html body.bgbf .wc-block-components-checkout-place-order-button:not(:disabled)::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(246, 227, 168, .45), transparent);
  transform: skewX(-20deg); animation: bgbf-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
/* keep Woo's own disabled / processing look clearly visible */
html body.bgbf .wc-block-components-checkout-place-order-button:disabled,
html body.bgbf .wc-block-components-checkout-place-order-button.wc-block-components-button--loading { opacity: .75; }

/* Order received / account pages keep readable panels */
html body.bgbf .woocommerce-order,
html body.bgbf .woocommerce-MyAccount-content,
html body.bgbf .woocommerce-MyAccount-navigation,
html body.bgbf.woocommerce-account:not(.logged-in) .woocommerce {
  color: var(--bf-text);
}
html body.bgbf .woocommerce-order { background: var(--bf-ivory); color: var(--bf-ivory-ink); border-radius: 14px; padding: clamp(16px, 3vw, 34px); }
html body.bgbf .woocommerce-order h2, html body.bgbf .woocommerce-order h3, html body.bgbf .woocommerce-order th, html body.bgbf .woocommerce-order td { color: var(--bf-ivory-ink) !important; }
html body.bgbf .woocommerce-account input.input-text,
html body.bgbf .woocommerce-account select,
html body.bgbf .woocommerce-account textarea { background: #fbf8f2 !important; color: #171a24 !important; }

/* generic content pages */
html body.bgbf .entry-content p, html body.bgbf .entry-content li { color: #ddd6ca; }
html body.bgbf .wp-block-woocommerce-cart p, html body.bgbf .wp-block-woocommerce-checkout p,
html body.bgbf .wp-block-woocommerce-cart li, html body.bgbf .wp-block-woocommerce-checkout li,
html body.bgbf .woocommerce-order p, html body.bgbf .woocommerce-order li { color: inherit; }
html body.bgbf .bg-card-checkout-notice { color: #24334a; }
html body.bgbf .bg-card-checkout-notice p { color: #24334a; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  html body.bgbf .bgbf-flow-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "savings" "clock"; text-align: left; }
  html body.bgbf .bgbf-flow-savings { justify-self: start; min-width: 0; transform: rotate(-1.5deg); padding: 14px 20px; }
  html body.bgbf .bgbf-hero-tags .t3, html body.bgbf .bgbf-hero-tags .t4 { display: none; }
}
@media (max-width: 640px) {
  html body.bgbf .bgbf-bar { gap: 0; font-size: 10.5px; letter-spacing: .1em; min-height: 36px; }
  html body.bgbf .bgbf-bar-label { display: none; }
  html body.bgbf .bgbf-bar-clock { padding: 0 10px 0 16px; }
  html body.bgbf .bgbf-countdown.is-compact .bgbf-cd-unit b { font-size: 12px; }
  html body.bgbf .bgbf-bar .bgbf-countdown.is-compact .bgbf-cd-unit:last-child { display: none; }
  html body.bgbf .bgbf-countdown .bgbf-cd-unit { min-width: 40px; }
  html body.bgbf .bgbf-countdown.is-big .bgbf-cd-unit { min-width: 62px; padding: 11px 6px 9px; }
  html body.bgbf .bgbf-hero { padding-left: 16px; padding-right: 16px; }
  html body.bgbf .bgbf-hero-tags .t1 { top: 6%; left: 4%; }
  html body.bgbf .bgbf-hero-tags .t2 { top: 8%; right: 4%; }
  html body.bgbf .bgbf-strip { padding: 14px 16px; }
  html body.bgbf .bgbf-flow-hero { margin: 12px 0 22px; }
  html body.bgbf #primary-menu > li:first-child > a::after { display: none; }
  html body.bgbf span.onsale.bgbf-badge { font-size: 13px !important; padding: 6px 8px !important; }
  html body.bgbf ul.products li.product .bgbf-save { font-size: 10px; }
}

/* ---------------------------------------------------------------------
   Reduced motion: keep the look, drop the motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html body.bgbf .bgbf-ticker-track,
  html body.bgbf .bgbf-hero-glow,
  html body.bgbf .bgbf-gold,
  html body.bgbf .bgbf-tag,
  html body.bgbf .bgbf-deal-pct,
  html body.bgbf #primary-menu > li:first-child > a::after,
  html body.bgbf .bgbf-cd-unit b.is-tick { animation: none !important; }
  html body.bgbf span.onsale.bgbf-badge::after,
  html body.bgbf .single_add_to_cart_button::after,
  html body.bgbf .bgbf-btn::after,
  html body.bgbf .wc-block-cart__submit-button::after,
  html body.bgbf .wc-block-components-checkout-place-order-button::after { display: none !important; }
  html body.bgbf .bgbf-sky, html body.bgbf .bgbf-confetti { display: none !important; }
}

/* ---------- Extra coupon (BGBF_AUTO_COUPON_V1) ---------- */
html body.bgbf .bgbf-deal-final { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 210, 110, .16), rgba(255, 45, 85, .14)); border: 1px solid rgba(255, 210, 110, .45); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
html body.bgbf .bgbf-deal-final span { color: #f4e3b5; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
html body.bgbf .bgbf-deal-final strong, html body.bgbf .bgbf-deal-final strong .amount { color: #ffd76e; font-size: 26px; font-weight: 800; line-height: 1.1; }
html body.bgbf ul.products li.product .bgbf-final { display: block; margin: 4px 0 0; color: #ffd76e; font-size: 13px; font-weight: 700; }
html body.bgbf ul.products li.product .bgbf-final .amount { color: #ffd76e; }
html body.bgbf ul.products li.product .bgbf-final em { font-style: normal; font-weight: 500; color: #f4e3b5; font-size: 11px; letter-spacing: .04em; }
/* The automatic coupon is pinned: no remove control for it. */
html body.bgbf.bgbf-has-extra .wc-block-components-totals-discount__coupon-list-item .wc-block-components-chip__remove,
html body.bgbf.bgbf-has-extra .woocommerce-remove-coupon { display: none !important; }
@media (max-width: 640px) {
  html body.bgbf .bgbf-deal-final strong, html body.bgbf .bgbf-deal-final strong .amount { font-size: 22px; }
  html body.bgbf ul.products li.product .bgbf-final { font-size: 11px; }
}

/* ---------- Announcement band under the header ---------- */
html body.bgbf a.bgbf-announce {
  position: relative; z-index: 2; display: block; overflow: hidden; text-decoration: none;
  background: linear-gradient(90deg, #0b0b0d 0%, #1a0b10 50%, #0b0b0d 100%);
  border-top: 1px solid rgba(255, 210, 110, .55); border-bottom: 1px solid rgba(255, 210, 110, .55);
  box-shadow: 0 10px 30px rgba(255, 45, 85, .18), inset 0 0 40px rgba(255, 45, 85, .12);
  padding: 14px 0; white-space: nowrap; cursor: pointer;
}
html body.bgbf a.bgbf-announce::before, html body.bgbf a.bgbf-announce::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none;
}
html body.bgbf a.bgbf-announce::before { left: 0; background: linear-gradient(90deg, #0b0b0d, transparent); }
html body.bgbf a.bgbf-announce::after { right: 0; background: linear-gradient(-90deg, #0b0b0d, transparent); }
html body.bgbf .bgbf-announce-track { display: inline-flex; width: max-content; animation: bgbf-ticker 32s linear infinite; will-change: transform; }
html body.bgbf a.bgbf-announce:hover .bgbf-announce-track, html body.bgbf a.bgbf-announce:focus-visible .bgbf-announce-track { animation-play-state: paused; }
html body.bgbf .bgbf-announce-half { display: inline-flex; align-items: center; flex: none; }
html body.bgbf .bgbf-announce-half > span:not(.bgbf-announce-star) {
  padding: 0 26px; font-size: clamp(18px, 2.4vw, 30px); font-weight: 900; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase;
}
html body.bgbf .bgbf-announce .is-outline { color: transparent; -webkit-text-stroke: 1.4px #ffd76e; text-stroke: 1.4px #ffd76e; }
html body.bgbf .bgbf-announce .is-gold { background: linear-gradient(90deg, #ffe6a3, #ffd76e 40%, #f0b43c); -webkit-background-clip: text; background-clip: text; color: transparent; }
html body.bgbf .bgbf-announce .is-white { color: #fff; }
html body.bgbf .bgbf-announce .is-red, html body.bgbf .bgbf-announce .bgbf-urgent:not(.bgbf-announce-star) {
  color: #fff; background: linear-gradient(135deg, #ff2d55, #c3002f); border-radius: 999px; padding: 6px 20px !important; margin: 0 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 6px 22px rgba(255, 45, 85, .45);
  font-size: clamp(14px, 1.7vw, 20px) !important; animation: bgbf-glow 1.8s ease-in-out infinite;
}
html body.bgbf .bgbf-announce-star { color: #ff2d55; font-size: 16px; padding: 0 4px; }
@keyframes bgbf-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 6px 22px rgba(255,45,85,.35); } 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 6px 34px rgba(255,45,85,.75); } }
/* Urgency (last day / final hours): stronger top bar too. */
html body.bgbf .bgbf-ticker-item.bgbf-urgent { color: #fff; background: #ff2d55; border-radius: 999px; padding: 2px 14px; margin: 0 10px; font-weight: 800; }
html.is-final body.bgbf .bgbf-bar { background: linear-gradient(90deg, #7a0018, #c3002f, #7a0018); }
@media (max-width: 640px) {
  html body.bgbf a.bgbf-announce { padding: 10px 0; }
  html body.bgbf .bgbf-announce-track { animation-duration: 24s; }
  html body.bgbf .bgbf-announce-half > span:not(.bgbf-announce-star) { padding: 0 16px; font-size: 16px; }
  html body.bgbf .bgbf-announce .is-red, html body.bgbf .bgbf-announce .bgbf-urgent:not(.bgbf-announce-star) { font-size: 13px !important; padding: 5px 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.bgbf .bgbf-announce-track { animation: none; }
  html body.bgbf a.bgbf-announce { overflow-x: auto; }
  html body.bgbf .bgbf-announce .is-red { animation: none; }
}

/* ---------- Home: Shop by Brand (bg-home-brands) — Black Friday skin ---------- */
html body.bgbf .bghb {
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 45, 85, .16), transparent 60%), linear-gradient(180deg, #0b0b0d 0%, #111114 100%) !important;
  color: #f4efe6 !important;
  border-top: 1px solid rgba(255, 210, 110, .35); border-bottom: 1px solid rgba(255, 210, 110, .2);
}
html body.bgbf .bghb .bghb-eyebrow { color: #ffd76e !important; font-weight: 800; letter-spacing: .28em; }
html body.bgbf .bghb .bghb-eyebrow::before {
  content: "BLACK FRIDAY"; display: inline-block; margin-right: 10px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #ff2d55, #c3002f); color: #fff; letter-spacing: .18em; font-size: 9px; vertical-align: 1px;
}
html body.bgbf .bghb .bghb-heading h2 {
  color: #fff !important;
  background: linear-gradient(90deg, #fff 0%, #ffe6a3 45%, #ffd76e 70%, #fff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
}
html body.bgbf .bghb .bghb-heading p { color: #d6cec1 !important; font-size: 14px; }
/* Logo cards stay ivory so dark brand logos remain readable. */
html body.bgbf .bghb .bghb-card {
  background: #faf6ee !important; border: 1px solid rgba(255, 210, 110, .35) !important; color: #1c1814 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: transform .25s, box-shadow .25s, border-color .25s;
}
html body.bgbf .bghb .bghb-card:hover, html body.bgbf .bghb .bghb-card:focus-visible {
  background: #fffaf0 !important; border-color: #ffd76e !important; transform: translateY(-3px);
  box-shadow: 0 0 0 1px #ffd76e, 0 14px 34px rgba(255, 45, 85, .28);
}
html body.bgbf .bghb .bghb-card-name { color: #1c1814 !important; }
html body.bgbf .bghb .bghb-card-arrow { color: #c3002f !important; }
/* Brand marquee rows */
html body.bgbf .bghb .bghb-row-marquee, html body.bgbf .bghb .bghb-marquee { background: #141417 !important; border-color: rgba(255, 210, 110, .22) !important; }
html body.bgbf .bghb .bghb-row-track-group a, html body.bgbf .bghb .bghb-marquee a { color: #f1e7d8 !important; }
html body.bgbf .bghb .bghb-row-track-group a:hover, html body.bgbf .bghb .bghb-marquee a:hover { color: #ffd76e !important; }
html body.bgbf .bghb .bghb-row-track-group span, html body.bgbf .bghb .bghb-dot { color: #ff2d55 !important; }
html body.bgbf .bghb .bghb-top-marquee { background: linear-gradient(90deg, #f0b43c, #ffd76e 50%, #f0b43c) !important; border-color: transparent !important; }
html body.bgbf .bghb .bghb-top-marquee a { color: #140e04 !important; }
html body.bgbf .bghb .bghb-top-marquee .bghb-row-track-group span { color: #c3002f !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+1) { background: linear-gradient(90deg, #7a0018, #c3002f 50%, #7a0018) !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+1) a { color: #fff !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+1) span { color: #ffd76e !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+3) { background: #0f0f12 !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+3) a { color: #ffd76e !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+3) span { color: #ff2d55 !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+5) { background: #18181c !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+5) a { color: #f1e7d8 !important; }
html body.bgbf .bghb .bghb-rows > .bghb-row-marquee:nth-child(6n+5) span { color: #ffd76e !important; }
/* Vertical side tracks (desktop) */
html body.bgbf .bghb .bghb-vertical { background: #141417 !important; border-color: rgba(255, 210, 110, .3) !important; }
html body.bgbf .bghb .bghb-vertical-group span { color: #f1e7d8 !important; }
html body.bgbf .bghb .bghb-vertical-group i { color: #ff2d55 !important; }
@media (prefers-reduced-motion: reduce) { html body.bgbf .bghb .bghb-card { transition: none; } html body.bgbf .bghb .bghb-card:hover { transform: none; } }

/* ---------- Form fields: typed text always black on a light field (all pages) ---------- */
html body.bgbf {
  --bf-field-ink: #111111;
  --bf-field-bg: #ffffff;
  --bf-field-ph: #6b6f78;
  --bf-field-line: #cfc6b8;
}
/* Cart / checkout / order panels: restore the dark ink token the premium checkout CSS uses */
html body.bgbf .wp-block-woocommerce-cart,
html body.bgbf .wp-block-woocommerce-checkout,
html body.bgbf .woocommerce-order { --bg-ink: #172238; --bg-gold: #a47743; }
html body.bgbf input[type="text"], html body.bgbf input[type="email"], html body.bgbf input[type="tel"],
html body.bgbf input[type="password"], html body.bgbf input[type="search"], html body.bgbf input[type="number"],
html body.bgbf input[type="url"], html body.bgbf input[type="date"], html body.bgbf input[type="time"],
html body.bgbf input[type="datetime-local"], html body.bgbf input[type="month"], html body.bgbf input[type="week"],
html body.bgbf input:not([type]), html body.bgbf textarea, html body.bgbf select,
html body.bgbf .wc-block-components-text-input input, html body.bgbf .wc-block-components-combobox-control input,
html body.bgbf .wc-block-components-select select, html body.bgbf .wc-block-components-textarea,
html body.bgbf .wpforms-container input, html body.bgbf .wpforms-container textarea, html body.bgbf .wpforms-container select,
html body.bgbf .select2-container .select2-selection, html body.bgbf .select2-container .select2-selection__rendered {
  color: var(--bf-field-ink) !important;
  -webkit-text-fill-color: var(--bf-field-ink) !important;
  background-color: var(--bf-field-bg) !important;
  caret-color: var(--bf-field-ink) !important;
}
html body.bgbf input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):focus,
html body.bgbf textarea:focus, html body.bgbf select:focus {
  color: var(--bf-field-ink) !important; -webkit-text-fill-color: var(--bf-field-ink) !important; background-color: var(--bf-field-bg) !important;
}
html body.bgbf select option { color: var(--bf-field-ink); background: var(--bf-field-bg); }
html body.bgbf input::placeholder, html body.bgbf textarea::placeholder { color: var(--bf-field-ph) !important; -webkit-text-fill-color: var(--bf-field-ph) !important; opacity: 1; }
/* Browser autofill (Chrome/Safari paint it yellow-ish with their own text color) */
html body.bgbf input:-webkit-autofill, html body.bgbf input:-webkit-autofill:hover, html body.bgbf input:-webkit-autofill:focus,
html body.bgbf textarea:-webkit-autofill, html body.bgbf select:-webkit-autofill {
  -webkit-text-fill-color: var(--bf-field-ink) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bf-field-bg) inset !important;
  caret-color: var(--bf-field-ink) !important;
}
/* Floating labels inside Woo block fields stay readable on the white field */
html body.bgbf .wc-block-components-text-input label,
html body.bgbf .wc-block-components-combobox-control label,
html body.bgbf .wc-block-components-select label,
html body.bgbf .wc-block-components-select .wc-block-components-select__label { color: #4a4f5a !important; }
/* Labels of forms that sit on the dark page background (contact, returns, tracking, account) */
html body.bgbf .wpforms-container .wpforms-field-label, html body.bgbf .wpforms-container .wpforms-field-sublabel,
html body.bgbf .woocommerce-form-track-order label { color: var(--bf-text) !important; }
