/* ==========================================================================
   BibleBulldog Child — antiquarian design system (S10 "Illuminated Scriptorium")
   Namespaced under body.bb so it layers cleanly over Woodmart without clobbering
   Woo's functional selectors. Tokens first; site-wide base next; reusable
   blocks last. Everything here is opt-in-safe: remove body.bb and the site
   reverts to the parent theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   Palette: dark leather browns, antique golds, cathedral green, royal purple.
   -------------------------------------------------------------------------- */
:root,
body.bb {
  --bb-bg:        #241811;   /* page — dark leather */
  --bb-bg-2:      #2B1F15;   /* panel A */
  --bb-bg-3:      #281C12;   /* panel B */
  --bb-ink:       #EFE3C8;   /* body ivory */
  --bb-ink-bright:#F6EFDF;   /* headings / bright ivory */
  --bb-ink-soft:  #E9DDBE;   /* secondary ivory */
  --bb-ink-mute:  #C9B98F;   /* muted ivory-gold */
  --bb-gold:      #D4AF5A;   /* primary gold (links, accents) */
  --bb-gold-line: #B08D3E;   /* border gold */
  --bb-gold-deep: #8A6D1F;   /* gradient deep gold */
  --bb-gold-hi:   #F3E3B0;   /* highlight gold */
  --bb-purple:    #1E1528;   /* royal — marquee field */
  --bb-purple-ln: #6B4A8F;   /* royal — marquee separators */
  --bb-green:     #16382B;   /* cathedral green A (Restorer's Creed) */
  --bb-green-2:   #0C1F17;   /* cathedral green B */
  --bb-green-p:   #2E4A3B;   /* goal panel A */
  --bb-green-p2:  #233B2F;   /* goal panel B */
  --bb-why-a:     #2E2119;   /* why panel A */
  --bb-ink-dark:  #14100B;   /* deepest field (film, counters) */
  --bb-ink-darkest:#0F0A06;  /* hero video fallback */
  --bb-ledger-hd: #1C110A;   /* ledger head row */
  --bb-ledger-hov:#33251A;   /* ledger hover row */
  --bb-serif:     "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bb-display:   "Cinzel", "Trajan Pro", serif;
  --bb-gold-line-40: rgba(176,141,62,.40);
  --bb-gold-line-55: rgba(176,141,62,.55);
  --bb-shadow:    0 20px 46px rgba(0,0,0,.55);
}

/* --------------------------------------------------------------------------
   2. SITE-WIDE BASE  (scoped under body.bb)
   -------------------------------------------------------------------------- */
body.bb {
  margin: 0;
  background: var(--bb-bg);
  color: var(--bb-ink);
  font: 500 1.08rem/1.72 var(--bb-serif);
  -webkit-font-smoothing: antialiased;
}

/* 2b. Woodmart accent-button vars: shipped as #83b735 (green) + white text,
   which clashes with the dark leather. Re-point them to the house gold +
   dark ink so every Woodmart accent button (add-to-cart, wishlist, price,
   CTAs) is readable. */
body.bb {
  --btn-accented-bgcolor: #D4AF5A;
  --btn-accented-color: #14100B;
  --btn-accented-bgcolor-hover: #B08D3E;
  --btn-accented-color-hover: #14100B;
  --btn-accented-box-shadow: none;
  --btn-accented-brd-radius: 2px;
}

/* 2c. Elementor content sections: Elementor's kit defaults them to white,
   which renders light-on-light under the house ivory text. Force them to the
   dark leather so the ivory text stays readable; gold borders + any intentional
   background images are preserved (we only override the background-color). */
body.bb .elementor-section,
body.bb .elementor-container,
body.bb .elementor-column,
body.bb .elementor-widget-wrap,
body.bb .elementor-widget-container {
  background-color: var(--bb-bg-2) !important;
}

body.bb a { color: var(--bb-gold); text-decoration: none; transition: color .2s ease; }
body.bb a:hover { color: var(--bb-gold-hi); }

/* Display type */
body.bb h1, body.bb h2, body.bb h3, body.bb h4 {
  font-family: var(--bb-display);
  font-weight: 700;
  color: var(--bb-ink-bright);
  margin: 0;
}
body.bb h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: .03em; }
body.bb .bb-kick {
  font: 700 .74rem/1.5 var(--bb-display);
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--bb-gold);
}

/* Buttons — harmonise Woodmart/Woo buttons to the house gold */
body.bb .btn,
body.bb .button,
body.bb .wdm-btn,
body.bb a.bb-btn,
body.bb .woocommerce a.button,
body.bb .woocommerce button.button {
  display: inline-block;
  font: 700 .82rem/1 var(--bb-display);
  letter-spacing: .22em; text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--bb-gold-line);
  color: #17110B;
  background: linear-gradient(160deg, var(--bb-gold-line), var(--bb-gold-deep));
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
body.bb .btn:hover,
body.bb .button:hover,
body.bb .wdm-btn:hover,
body.bb a.bb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  color: #17110B;
}
body.bb .btn.bb-ghost,
body.bb .button.alt {
  background: transparent;
  color: var(--bb-gold);
}
body.bb .btn.bb-ghost:hover,
body.bb .button.alt:hover { color: var(--bb-gold-hi); }
body.bb .btn.bb-solid-ivory {
  background: var(--bb-gold-line);
  color: var(--bb-bg);
}
body.bb .btn.bb-solid-ivory:hover { background: var(--bb-ink-bright); }

/* Links inside body copy that should read as gold */
body.bb p a, body.bb li a { color: var(--bb-gold); }
body.bb p a:hover, body.bb li a:hover { color: var(--bb-gold-hi); }

/* --------------------------------------------------------------------------
   3. REUSABLE BLOCKS
   Drop these into any Woodmart page via the block helpers in inc/bb-helpers.php
   (or the shortcodes [bb_marquee] [bb_ledger] [bb_film] [bb_dropcap]).
   -------------------------------------------------------------------------- */

/* 3a. ANIMATED GOLD RULE (the hero "shimmer", generalised).
   Place an empty <span class="bb-sweep"></span> under any block title.
   .bb-sweep.center centres it for centred titles. */
.bb-sweep {
  display: block;
  height: 2px; width: min(300px, 55%);
  margin: 1.1rem 0 1.3rem;
  background: linear-gradient(90deg, transparent, var(--bb-gold) 30%, var(--bb-gold-hi) 50%, var(--bb-gold) 70%, transparent);
  background-size: 220% 100%;
  animation: bb-sweep 3.4s linear infinite;
}
.bb-sweep.center { margin-left: auto; margin-right: auto; }
@keyframes bb-sweep { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }

/* 3b. EDITION MARQUEE — royal purple strip, pure CSS (no JS).
   The sequence is written twice for a seamless -50% loop. Each edition links
   to its product page. */

/* 3b0. PAGE WRAP — 10% breathing room each side; content sits at 80% width, centered */
.bb-pagewrap { max-width: 80%; margin-left: auto; margin-right: auto; }

.bb-marquee {
  border-top: 1px solid var(--bb-gold-line-40);
  border-bottom: 1px solid var(--bb-gold-line-40);
  background: var(--bb-purple);
  overflow: hidden; white-space: nowrap;
  padding: .85rem 0;
}
.bb-marquee .bb-track { display: inline-block;  animation: bb-mq 120s linear infinite; }
.bb-marquee a {
  display: inline-block;
  font: 700 .8rem/1 var(--bb-display);
  letter-spacing: .3em; color: var(--bb-gold-line);
  padding: 0 1.6rem; transition: color .2s ease;
}
.bb-marquee a:hover { color: var(--bb-gold-hi); }
.bb-marquee i { color: var(--bb-gold); font-style: normal; }
@keyframes bb-mq { to { transform: translateX(-50%); } }

/* 3c. PANEL — the standard titled content container */
.bb-panel {
  background: linear-gradient(180deg, var(--bb-bg-2), var(--bb-bg-3));
  border: 1px solid var(--bb-gold-line-40);
  padding: 3.2rem clamp(1.4rem, 4vw, 3.4rem);
}
.bb-panel h2 { margin: .5rem 0 1.1rem; }
.bb-panel p { margin: 0 0 1.1rem; color: var(--bb-ink-soft); }
.bb-drop { max-width: 70ch; }

/* 3d. GROWING ILLUMINATED DROP CAPS.
   Each cap is an animated WebP (the "growing" letter) floated as the paragraph's
   TRUE first letter, with the text wrapping the letter's own silhouette via
   shape-outside on the matching still PNG. Swap the cap-* class per letter.
   Server cost: only the WebP + PNG files (or ~0 bytes if rendered live). */
img.bb-cap {
  float: left;
  width: 84px; height: auto;
  margin: .06em .9em 0 0;
  shape-margin: 6px;
  shape-image-threshold: .18;
}
img.bb-cap-b { shape-outside: url("../assets/drop-cap-B-288.png"); }
img.bb-cap-t { shape-outside: url("../assets/drop-cap-T-288.png"); }
img.bb-cap-e { shape-outside: url("../assets/drop-cap-E-288.png"); }
img.bb-cap-w { shape-outside: url("../assets/drop-cap-W-288.png"); }

/* Mobile: keep the drop cap proportionate on narrow screens */
@media (max-width: 560px) {
  img.bb-cap { width: 60px; margin: .06em .6em 0 0; shape-margin: 4px; }
}
/* Any letter not in the list above still floats + wraps as a plain square. */

/* 3e. "OUR PASSION" — two side-by-side capped columns, centred in the panel */
.bb-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start;
  max-width: 72rem; margin: .4rem auto 0;
}
@media (max-width: 860px) { .bb-duo { grid-template-columns: 1fr; } }

/* 3f. PRODUCT CARDS (harmonised to the house palette) */
.bb-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.bb-card {
  background: var(--bb-bg-2);
  border: 1px solid var(--bb-gold-line-55);
  transition: transform .3s ease, border-color .3s ease;
}
.bb-card:hover { transform: translateY(-6px); border-color: var(--bb-gold); }
.bb-card .bb-ph { overflow: hidden; aspect-ratio: 4 / 3; }
.bb-card .bb-ph img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03); transition: transform 2.6s cubic-bezier(.2,.6,.2,1);
}
.bb-card:hover .bb-ph img { transform: scale(1.12); }
.bb-card .bb-body { padding: 1.3rem 1.4rem 1.5rem; }
.bb-card h3 { font-size: 1.05rem; letter-spacing: .06em; min-height: 2.6em; }
.bb-card .bb-price { font: 600 1.25rem/1.2 var(--bb-serif); color: var(--bb-gold); margin: .4rem 0 .2rem; }
.bb-card a.bb-more { font: 700 .78rem/1 var(--bb-display); letter-spacing: .24em; text-transform: uppercase; color: var(--bb-ink); }

/* 3g. FILMS — click-to-play (poster floor; the iframe is injected only on click,
   so a failed embed can never blank the block) */
.bb-films { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.bb-film { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bb-ink-dark); border: 1px solid var(--bb-gold-line-55); }
.bb-film img.bb-poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72) sepia(.18); transition: filter .3s ease, transform 6s ease; }
.bb-film:hover img.bb-poster { filter: brightness(.85) sepia(.12); transform: scale(1.05); }
.bb-film .bb-play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--bb-gold); background: rgba(20,13,8,.55); cursor: pointer; }
.bb-film .bb-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 20px solid var(--bb-gold-hi); border-top: 13px solid transparent; border-bottom: 13px solid transparent; left: 50%; margin-left: -7px; }
.bb-film .bb-label { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem 1.1rem; font: 600 .92rem/1.4 var(--bb-serif); color: #F1E8CF; background: linear-gradient(180deg, transparent, rgba(10,7,4,.82)); }
.bb-film .bb-label b { font-family: var(--bb-display); font-weight: 700; color: var(--bb-gold); letter-spacing: .05em; }
.bb-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 3h. QUOTE BAND — full-bleed slow-panning collage */
.bb-band { position: relative; overflow: hidden; width: 100%; border-top: 1px solid var(--bb-gold-line); border-bottom: 1px solid var(--bb-gold-line); padding: 5.2rem 26px; text-align: center; }
.bb-band .bb-bg { position: absolute; inset: 0; background: var(--bb-band-img, #1a120c) center / cover no-repeat; background-position: 0% 50%; animation: bb-pan 30s ease-in-out infinite alternate; filter: saturate(.9) brightness(.92); }
.bb-band::after { content: ""; position: absolute; inset: 0; background: rgba(20,13,8,.66); }
.bb-band .bb-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.bb-band h2 { color: #F3ECD9; font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: 1.55; }
.bb-band h2 span, .bb-band h2 b { color: var(--bb-gold); }
.bb-band .bb-src { margin-top: 1.1rem; font: 600 .72rem/1.5 var(--bb-display); letter-spacing: .3em; text-transform: uppercase; color: #C9B58C; }
@keyframes bb-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* 3i. "THE WHY & THE HOW" — the counter to "own a piece of history" */
.bb-why { background: linear-gradient(160deg, var(--bb-why-a), var(--bb-bg)); border: 1px solid var(--bb-gold-line-55); padding: 3.2rem clamp(1.4rem, 4vw, 3.4rem); text-align: center; }
.bb-why h2 { max-width: 44ch; margin: .5rem auto 0; }
.bb-why .bb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8rem; margin-top: 2.6rem; text-align: left; }
.bb-why .bb-col h3 { font: 700 .78rem/1.5 var(--bb-display); letter-spacing: .3em; text-transform: uppercase; color: var(--bb-gold); margin: 0 0 .4rem; }
.bb-why .bb-col h3::after { content: ""; display: block; width: 56px; height: 1px; background: var(--bb-gold-line); margin-top: .9rem; }
.bb-why .bb-col p { color: var(--bb-ink-soft); margin: .9rem 0 0; }
.bb-why .bb-col p em { color: var(--bb-gold-hi); font-style: italic; }
.bb-why .bb-close { margin-top: 2.6rem; font: 600 italic 1.32rem/1.6 var(--bb-serif); color: var(--bb-ink-mute); }
.bb-why .bb-close b { color: var(--bb-gold); font-style: italic; }
@media (max-width: 860px) { .bb-why .bb-cols { grid-template-columns: 1fr; } }

/* 3j. RESTORER'S CREED — cathedral green + portrait */
.bb-story { display: grid; grid-template-columns: 5fr 7fr; gap: 2.6rem; align-items: center; background: linear-gradient(150deg, var(--bb-green), var(--bb-green-2)); border: 1px solid var(--bb-gold-line-55); padding: 2.8rem; }
.bb-story img { width: 100%; display: block; border: 1px solid var(--bb-gold-line); padding: 10px; background: var(--bb-ink-bright); }
.bb-story blockquote { margin: 0 0 1.4rem; font: 600 1.28rem/1.65 var(--bb-serif); color: #F1E8CF; border-left: 3px solid var(--bb-gold-line); padding-left: 1.2rem; }
.bb-story h2 { margin-bottom: 1.2rem; }
@media (max-width: 900px) { .bb-story { grid-template-columns: 1fr; } }

/* 3k. OUR GOAL */
.bb-goal { background: linear-gradient(150deg, var(--bb-green-p), var(--bb-green-p2)); border: 1px solid var(--bb-gold-line); color: #F1E8CF; padding: 3.4rem clamp(1.4rem, 4vw, 3.4rem); text-align: center; }
.bb-goal h2 { color: #F1E8CF; font-size: clamp(1.4rem, 3vw, 2.2rem); max-width: 34ch; margin: 0 auto 1.2rem; }
.bb-goal p { color: #CBD8C6; max-width: 56ch; margin: 0 auto 1.6rem; }

/* 3l. COUNTERS — decorative JS (counts from 0 when scrolled into view) */
.bb-counters { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--bb-gold-line-55); background: linear-gradient(180deg, var(--bb-bg-2), var(--bb-bg)); box-shadow: var(--bb-shadow); }
.bb-counters > div { padding: 2.4rem 1.4rem; text-align: center; border-left: 1px solid var(--bb-gold-line-40); }
.bb-counters > div:first-child { border-left: 0; }
.bb-counters b { display: block; font: 900 clamp(2.2rem, 4vw, 3.2rem)/1 var(--bb-display); color: var(--bb-gold); }
.bb-counters span { font: 600 .95rem/1.5 var(--bb-serif); color: var(--bb-ink-mute); }
@media (max-width: 900px) {
  .bb-counters { grid-template-columns: 1fr; }
  .bb-counters > div { border-left: 0; border-top: 1px solid var(--bb-gold-line-40); }
  .bb-counters > div:first-child { border-top: 0; }
}

/* 3m. THE SHELF LEDGER — the full editions table, reusable sitewide */
.bb-ledger { border: 1px solid var(--bb-gold-line); background: linear-gradient(180deg, var(--bb-bg-2), var(--bb-bg-3)); }
.bb-lrow { display: grid; grid-template-columns: 110px 1.25fr 1.6fr 110px 120px; gap: 1rem; align-items: center; padding: .95rem 1.3rem; border-top: 1px solid rgba(176,141,62,.28); position: relative; transition: background .2s ease; }
.bb-ledger > .bb-lrow.bb-head { border-top: 0; background: var(--bb-ledger-hd); font: 700 .68rem/1 var(--bb-display); letter-spacing: .26em; text-transform: uppercase; color: var(--bb-gold-line); }
.bb-lrow:not(.bb-head):hover { background: var(--bb-ledger-hov); }
.bb-lrow.bb-head:hover { background: var(--bb-ledger-hd); }
.bb-lrow .bb-yr { font: 700 1.05rem/1 var(--bb-display); color: var(--bb-gold); letter-spacing: .04em; }
.bb-lrow .bb-ed { font: 600 1.08rem/1.35 var(--bb-serif); color: var(--bb-ink); }
.bb-lrow .bb-bd { color: var(--bb-ink-mute); }
.bb-lrow .bb-pr { font: 600 1.12rem/1.3 var(--bb-serif); color: var(--bb-gold); text-align: right; }
.bb-lrow .bb-en a { font: 700 .72rem/1 var(--bb-display); letter-spacing: .2em; text-transform: uppercase; color: var(--bb-ink); border-bottom: 1px solid transparent; transition: .2s; }
.bb-lrow:hover .bb-en a { color: var(--bb-gold); border-bottom-color: var(--bb-gold); }
.bb-lrow .bb-thumb { position: absolute; right: 140px; top: 50%; width: 128px; height: 96px; object-fit: cover; border: 1px solid var(--bb-gold-line); padding: 3px; background: var(--bb-ink-bright); opacity: 0; transform: translateY(-50%) scale(.92); transition: opacity .25s ease, transform .25s ease; pointer-events: none; box-shadow: 0 12px 26px rgba(0,0,0,.5); }
.bb-lrow:hover .bb-thumb { opacity: 1; transform: translateY(-50%) scale(1); }
.bb-ledgernote { padding: 1rem 1.3rem 1.1rem; border-top: 1px solid rgba(176,141,62,.28); color: var(--bb-ink-mute); font-style: italic; }
@media (max-width: 900px) {
  .bb-lrow { grid-template-columns: 90px 1fr 100px; }
  .bb-lrow .bb-bd { display: none; }
  .bb-lrow .bb-en { grid-column: 3; }
  .bb-lrow .bb-thumb { display: none; }
}

/* 3n. FOOTER — harmonised to the dark base */
body.bb .site-footer,
body.bb footer.bb-footer {
  background: var(--bb-bg);
  border-top: 1px solid var(--bb-gold-line-40);
  color: var(--bb-ink-mute);
}
body.bb .site-footer a { color: var(--bb-gold); }
body.bb .site-footer a:hover { color: var(--bb-gold-hi); }

/* 3p. HERO — the opening block (poster or muted video floor, centred title,
   sweep rule, CTA row). S10's .hero, namespaced. */
.bb-hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.bb-hero .bb-hero-bg { position: absolute; inset: 0; z-index: 0; }
.bb-hero .bb-hero-bg img, .bb-hero .bb-hero-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-hero .bb-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,13,8,.62), rgba(20,13,8,.34) 45%, var(--bb-bg) 98%); }
.bb-hero .bb-hero-in { position: relative; z-index: 2; width: 100%; max-width: 76rem; margin: 0 auto; padding: 6rem 24px; text-align: center; }
.bb-hero .bb-hero-badge { display: block; width: 50%; max-width: 325px; height: auto; margin: 0.9rem auto 0.4rem; opacity: .95; }
.bb-hero .bb-title { font: 900 clamp(2.7rem, 6.4vw, 4.8rem)/1.08 var(--bb-display); letter-spacing: .05em; color: var(--bb-ink-bright); margin: .7rem 0 .6rem; }
.bb-hero .bb-sub { max-width: 56ch; font-size: 1.22rem; color: var(--bb-ink-soft); margin: 0 auto; }
.bb-hero .bb-hero-creed { margin: 1.7rem auto 0; max-width: 44ch; font: italic 600 1.45rem/1.35 var(--bb-serif); color: var(--bb-gold-hi); letter-spacing: .01em; }
.bb-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; justify-content: center; }

/* 3o. REVEAL (optional scroll-in; needs bb.js) */
body.bb .bb-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
body.bb .bb-rv.bb-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.bb .bb-sweep, body.bb .bb-track, body.bb .bb-bg, body.bb .bb-poster { animation: none !important; }
  body.bb .bb-rv { opacity: 1; transform: none; }
}

/* 3q. PARENT CHROME OVERRIDES — recolor Woodmart / Whitey chrome into the S10
   palette. Woodmart's `body:not([class*="wrapper-boxed"])` rule ties
   specificity with `body.bb` and loads LATER, so every body-level override
   here is pinned with the `html` prefix (one specificity class higher). */
body.bb {
  /* ---------------------------------------------------------------------
     Woodmart's default scheme is light (gray text tuned for a white
     background). Rendered on our dark leather ground that yields dark-on-dark
     text across the shop — product meta, accordions, share/wishlist, stock,
     SKU, form labels, rebind pricing. Every one of those components reads its
     colour from this single variable set, so we retune the ENTIRE set under
     body.bb to the house palette. `body.bb` is more specific than Woodmart's
     `:root`/`.color-scheme-dark` defaults, so these win without touching the
     theme options (and it ships with the child theme to Hostinger).
     --------------------------------------------------------------------- */
  /* Primary surfaces */
  --wd-main-bgcolor:   var(--bb-bg);
  --wd-main-fgcolor:   var(--bb-ink);

  /* Text + titles */
  --wd-text-color:                 var(--bb-ink-soft);
  --wd-title-color:                var(--bb-ink-bright);
  --wd-widget-title-color:         var(--bb-ink-bright);
  --wd-entities-title-color:       var(--bb-ink);
  --wd-entities-title-color-hover: var(--bb-gold);

  /* Links */
  --wd-link-color:     var(--bb-gold);
  --wd-link-color-hover: var(--bb-gold-hi);

  /* Form fields (Forminator + Woo inputs) */
  --wd-form-bg:                rgba(20, 13, 8, .45);
  --wd-form-color:             var(--bb-ink);
  --wd-form-brd-color:         var(--bb-gold-line);
  --wd-form-brd-color-focus:   var(--bb-gold);
  --wd-form-placeholder-color: var(--bb-ink-mute);

  /* Woodmart grey-text scale (used across components) -> ivory ramp */
  --color-white:     var(--bb-ink-bright);
  --color-gray-100:  rgba(239, 227, 200, .55);
  --color-gray-200:  rgba(239, 227, 200, .65);
  --color-gray-300:  rgba(239, 227, 200, .75);
  --color-gray-400:  rgba(239, 227, 200, .82);
  --color-gray-500:  var(--bb-ink-mute);
  --color-gray-600:  var(--bb-ink-soft);
  --color-gray-700:  var(--bb-ink);
  --color-gray-800:  var(--bb-ink-bright);
  --color-gray-900:  var(--bb-ink-bright);
  --color-black-rgb: 36, 24, 17;

  /* Woodmart background scale -> leather panels */
  --bgcolor-white:     var(--bb-bg-2);
  --bgcolor-gray-100:  var(--bb-bg-2);
  --bgcolor-gray-200:  var(--bb-bg-3);
  --bgcolor-gray-300:  #33251A;
  --bgcolor-black-rgb: 36, 24, 17;
  --bgcolor-white-rgb: 43, 31, 21;

  /* Woodmart border scale -> gold lines */
  --brdcolor-gray-200: var(--bb-gold-line-40);
  --brdcolor-gray-300: var(--bb-gold-line-55);
  --brdcolor-gray-400: var(--bb-gold-line);
  --brdcolor-gray-500: var(--bb-gold);

  --wd-navigation-color: 239, 227, 200;
  color: var(--bb-ink);
}
html body.bb { background: var(--bb-bg); }

/* Whitey header rows: green top bar + white header rows -> dark leather. */
html body.bb .whb-row { background-color: transparent; border-color: rgba(185, 138, 59, .25); }
html body.bb .whb-top-bar { background-color: var(--bb-bg-3); }
html body.bb .whb-top-bar a { color: var(--bb-ink-soft); }
html body.bb .whb-top-bar a:hover { color: var(--bb-gold); }
html body.bb .whb-general-header,
html body.bb .whb-header-bottom { background-color: rgba(36, 24, 17, .94); }

/* Menu zone. */
html body.bb .whb-menu a { color: var(--bb-ink-soft); }
html body.bb .whb-menu a:hover { color: var(--bb-gold); }

/* Page title band (Woodmart already paints it near-black — align to our dark
   leather, set the type to the display face, gild the breadcrumbs). */
html body.bb .wd-page-title { background: var(--bb-bg); }
html body.bb .wd-page-title h1,
html body.bb .wd-page-title .wd-title { color: var(--bb-ink-bright);
                                        font-family: var(--bb-display);
                                        letter-spacing: .045em; }
html body.bb .wd-page-title a { color: var(--bb-ink-soft); }
html body.bb .wd-page-title a:hover { color: var(--bb-gold); }

/* Sidebar (shop / post sidebars) — leather panel instead of white. */
html body.bb .wd-sidebar { background-color: var(--bb-bg-2); color: var(--bb-ink); }
html body.bb .wd-sidebar h3, html body.bb .wd-sidebar .widget-title { color: var(--bb-ink-bright); }
html body.bb .wd-sidebar a { color: var(--bb-ink-soft); }
html body.bb .wd-sidebar a:hover { color: var(--bb-gold); }

/* Woo notices inside the shop, if they surface on our dark ground. */
html body.bb .woocommerce-message, html body.bb .woocommerce-info {
  background: var(--bb-bg-2); color: var(--bb-ink-soft);
  border-color: var(--bb-gold-deep); }

/* Stock status — Woodmart hard-codes a dark red (#b50808, ~2.5:1 on our
   leather) for "Out of stock". Re-map the status colours to readable,
   palette-honouring tones: a warm terracotta for unavailable, a laurel sage
   for the in-stock marker. */
html body.bb p.stock.out-of-stock { color: #f0776b; }
html body.bb p.stock.wd-style-default.in-stock:before,
html body.bb p.stock.wd-style-default.available-on-backorder:before { color: #a8c07a; }
html body.bb p.stock.wd-style-bordered:is(.in-stock,.available-on-backorder) span { border-color: #a8c07a; color: var(--bb-ink-soft); }
html body.bb p.stock.wd-style-bordered.out-of-stock span { border-color: #f0776b; color: var(--bb-ink-soft); }
html body.bb p.stock.wd-style-with-bg:is(.in-stock,.available-on-backorder) span { background-color: rgba(168,192,122,.16); color: #c4d6a0; }
html body.bb p.stock.wd-style-with-bg.out-of-stock span { background-color: rgba(240,119,107,.16); color: #f3a29b; }
html body.bb .product-label.featured { background-color: var(--bb-gold-deep); }

/* Mobile toolbar (Woodmart bottom bar on narrow viewports). */
html body.bb .wd-toolbar { background-color: var(--bb-bg-3); color: var(--bb-ink-soft); }
html body.bb .wd-toolbar a { color: var(--bb-ink-soft); }
html body.bb .wd-toolbar a:hover, html body.bb .wd-toolbar .active a { color: var(--bb-gold); }

/* --------------------------------------------------------------------------
   LIGHT Elementor SECTIONS (rebind index / rebind packages / rebind FAQ)
   These pages are built from white Elementor sections. The site-wide ivory
   text retune above (body.bb) is correct on our dark leather ground, but it
   puts ivory type on those white sections — ~1.1:1, effectively invisible —
   and Woodmart's gray info-box copy lands at ~4.4:1. The white is an
   Elementor per-section background applied to .e-con and to the FAQ card
   (.faq-item / .faq-question); it is NOT on the green banner or the green
   plan-price components, which carry their own backgrounds and are untouched.
   The dark pages have no light .e-con / .faq-item (global FAQ .e-con are
   transparent), so this repaint is a no-op elsewhere. Clear the light section
   backgrounds so the leather body shows through and the ivory type reads.
   -------------------------------------------------------------------------- */
html body.bb .e-con,
html body.bb .e-con::before {
  background-color: transparent !important;
  background-image: none !important;
}
html body.bb .faq-item,
html body.bb .faq-question {
  background-color: transparent !important;
  background-image: none !important;
}
/* Info-box cards ship a hard-coded WHITE linear-gradient (box-style-bg) that
   my .e-con repaint can't reach — it sits on the .wd-info-box itself. Clear it
   to a leather panel (ivory text on #2B1F15 = 11.9:1) and lift the body copy,
   which is a hard-coded #767676 gray (3.8:1 on leather, below the 4.5:1 AA
   floor) to the ivory ramp. */
html body.bb .wd-info-box,
html body.bb .wd-info-box.box-style-bg {
  background-image: none !important;
  background-color: var(--bb-bg-2) !important;
}
html body.bb .wd-info-box p,
html body.bb .wd-info-box li {
  color: var(--bb-ink-soft);
}

/* --------------------------------------------------------------------------
   HEADER / FOOTER / PAGE (child-theme templates)
   The custom header.php, footer.php, page templates below use these rules.
   -------------------------------------------------------------------------- */

/* Sticky leather header bar. */
body.bb .bb-top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(36, 24, 17, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(176, 141, 62, .35);
}
body.bb .bb-topwrap {
  max-width: 1280px; margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
body.bb .bb-logo { display: inline-flex; align-items: center; text-decoration: none; }
body.bb .bb-logo img { height: 38px; width: auto; display: block; }
body.bb .bb-wordmark {
  font-family: var(--bb-display, "Cinzel", serif);
  font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; color: var(--bb-ink-bright);
}
body.bb .bb-nav { display: flex; align-items: center; gap: 1.4rem; }
body.bb .bb-navlinks { display: flex; align-items: center; gap: 1.15rem; margin: 0; padding: 0; list-style: none; }
body.bb .bb-navlinks a {
  color: var(--bb-ink); text-decoration: none;
  font: 600 .92rem/1 "Cormorant Garamond", serif; letter-spacing: .08em;
  padding: .3rem 0;
}
body.bb .bb-navlinks a:hover { color: var(--bb-gold); }

/* Anchor targets: land below the sticky header, glide there. */
html.bb { scroll-behavior: smooth; }
body.bb #collection, body.bb #films, body.bb #passion, body.bb #creed { scroll-margin-top: 84px; }

/* Dropdown submenus. EVERY submenu li is a positioning context, so a panel is
   always anchored to its OWN row: level 2 drops flush under the top link,
   level 3+ flies out to the right of the row being hovered. The :hover chain
   never breaks across levels, and each panel's ::before bridge lets the mouse
   cross the seam without the menu closing. (Do NOT put overflow on level-2
   panels — it would clip the flyouts anchored inside them; deep flyouts
   scroll themselves via their own max-height.) */
body.bb .bb-navlinks li { position: relative; }
body.bb .bb-navlinks > li > ul {
  position: absolute; top: 100%; left: 0; z-index: 80;
  min-width: 260px; margin: 0; padding: .5rem 0; list-style: none;
  display: none;
  background: rgba(30, 19, 13, .98);
  border: 1px solid rgba(176, 141, 62, .4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .45);
}
/* Invisible bridge above the panel: the mouse can cross without losing hover. */
body.bb .bb-navlinks > li > ul::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
/* Level 3+: fly out right of the hovered row. The base rule deliberately has
   NO overflow/max-height: a flyout that itself contains submenus must never clip
   the flyouts anchored to its rows — that clipping is exactly what made deep
   sub-submenus unreachable (the mouse could not reach them, so they "closed"). */
body.bb .bb-navlinks li li > ul {
  position: absolute; top: 0; left: 100%; z-index: 81;
  min-width: 260px;
  margin: 0; padding: .5rem 0; list-style: none;
  display: none;
  background: rgba(30, 19, 13, .98);
  border: 1px solid rgba(176, 141, 62, .4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .45);
}
/* A flyout whose rows are ALL leafs (no nested submenus) may scroll: it clips
   nothing important, so long flat lists (confessions, manuscripts…) stay tidy.
   :has() is supported in every current browser. */
body.bb .bb-navlinks li li > ul:not(:has(> li > ul)) {
  max-height: 70vh; overflow-y: auto; overflow-x: hidden;
}
body.bb .bb-navlinks li li > ul::before {
  content: ""; position: absolute; top: 0; left: -12px; width: 12px; height: 100%;
}
/* JS flips panels that would run off the viewport edge so nothing is clipped:
   bb-drop-left aligns a top-level panel's right edge with its link;
   bb-fly-left opens a flyout to the LEFT of its row. */
body.bb .bb-navlinks li.bb-drop-left > ul { left: auto; right: 0; }
body.bb .bb-navlinks li.bb-fly-left > ul { left: auto; right: 100%; }
body.bb .bb-navlinks li.bb-fly-left > ul::before { left: auto; right: -12px; }
/* Shown on hover or focus, and while JS holds .bb-open — the script keeps a
   panel open ~250ms after the pointer leaves, so clicks always land. */
body.bb .bb-navlinks li:hover > ul,
body.bb .bb-navlinks li:focus-within > ul,
body.bb .bb-navlinks li.bb-open > ul { display: block; }
body.bb .bb-navlinks li > ul li { border: none; }
body.bb .bb-navlinks li > ul > li > a {
  display: block; padding: .6rem 1.3rem; white-space: nowrap;
  font-size: .95rem; letter-spacing: .05em;
}
/* Sub-level rows: wrap long labels instead of forcing a horizontal scrollbar. */
body.bb .bb-navlinks li li > ul a {
  display: block; padding: .5rem 1.2rem .5rem 1.4rem; white-space: normal;
  font-size: .95rem; letter-spacing: .04em; line-height: 1.3;
}
body.bb .bb-navlinks li > ul a:hover { background: rgba(212, 175, 90, .08); color: var(--bb-gold); }
body.bb .bb-navlinks .menu-item-has-children > a::after {
  content: "\25BE"; display: inline-block; margin-left: .45em;
  font-size: .6em; vertical-align: .2em; color: var(--bb-gold);
}
/* Sub-level parents: caret points right (their submenus fly out sideways). */
body.bb .bb-navlinks li li.menu-item-has-children > a::after {
  content: "\203A"; font-size: .9em; vertical-align: .05em;
}
body.bb .bb-nav .bb-btn {
  padding: .55rem 1rem; border: 1px solid var(--bb-gold-line); border-radius: 2px;
  color: var(--bb-ink-bright) !important; background: linear-gradient(160deg, rgba(212,175,90,.16), rgba(212,175,90,.05));
  font-family: "Cinzel", serif; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
body.bb .bb-nav .bb-btn:hover { background: linear-gradient(160deg, rgba(212,175,90,.3), rgba(212,175,90,.12)); color: var(--bb-gold-hi) !important; }
body.bb .bb-cart { position: relative; color: var(--bb-ink-soft); text-decoration: none; font: 600 .95rem/1 "Cormorant Garamond", serif; letter-spacing: .08em; }
body.bb .bb-cart:hover { color: var(--bb-gold); }
body.bb .bb-cartcount {
  display: inline-block; min-width: 1.15em; padding: .18em .35em; margin-left: .3em;
  background: var(--bb-gold); color: #241811; border-radius: 999px;
  font: 700 .68rem/1 "Cinzel", serif; text-align: center;
}
body.bb .bb-burger {
  display: none; flex-direction: column; gap: 4px; padding: 10px;
  background: none; border: 1px solid var(--bb-gold-line); border-radius: 2px; cursor: pointer;
}
body.bb .bb-burger span { display: block; width: 20px; height: 2px; background: var(--bb-gold); }

/* Footer — S10 structure. */
body.bb .bb-foot { padding: 2.2rem 0; border-top: 1px solid rgba(176, 141, 62, .35); }
body.bb .bb-footwrap {
  max-width: 1280px; margin: 0 auto; padding: 0 22px;
  display: flex; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; align-items: center;
}
body.bb .bb-foot img { height: 52px; width: auto; }
body.bb .bb-foot span:not(.bb-addr) { color: var(--bb-ink-soft); font: 500 .95rem/1.4 "Cormorant Garamond", serif; }
body.bb .bb-foot .bb-addr { color: var(--bb-ink-mute); font: 500 .95rem/1.4 "Cormorant Garamond", serif; }
body.bb .bb-footnav { display: flex; gap: 1.2rem; }
body.bb .bb-footnav a { color: var(--bb-ink); text-decoration: none; font: 600 .95rem/1 "Cormorant Garamond", serif; letter-spacing: .08em; }
body.bb .bb-footnav a:hover { color: var(--bb-gold); }

/* Generic page / post (page.php, single.php, index.php). */
body.bb .bb-page { padding: 3rem 0 4rem; }
body.bb .bb-pageinner { max-width: 900px; margin: 0 auto; padding: 0 22px; }
body.bb .bb-pagetitle { text-align: center; margin-bottom: 2.2rem; }
body.bb .bb-pagetitle h1 {
  font-family: var(--bb-display, "Cinzel", serif); font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3rem); color: var(--bb-ink-bright); letter-spacing: .04em;
}
body.bb .bb-pagetitle .bb-sweep { margin-top: .9rem; }
body.bb .bb-postmeta { color: var(--bb-ink-mute); margin-top: .9rem; font: 500 1rem/1.4 "Cormorant Garamond", serif; letter-spacing: .06em; }
body.bb .bb-postthumb img { width: 100%; height: auto; border: 1px solid rgba(176, 141, 62, .35); }
body.bb .bb-prose { color: var(--bb-ink-soft); font: 500 1.13rem/1.75 "Cormorant Garamond", serif; }
body.bb .bb-prose p { margin: 0 0 1.1rem; }
body.bb .bb-prose a { color: var(--bb-gold); }
body.bb .bb-prose h2, body.bb .bb-prose h3 { font-family: var(--bb-display, "Cinzel", serif); color: var(--bb-ink-bright); letter-spacing: .04em; margin: 1.8rem 0 .8rem; }
body.bb .bb-indexcard { padding: 1.6rem 0; border-bottom: 1px solid rgba(176, 141, 62, .25); }
body.bb .bb-indexcard h2 { font-family: var(--bb-display, "Cinzel", serif); color: var(--bb-ink-bright); font-size: 1.4rem; letter-spacing: .04em; margin: 0 0 .3rem; }
body.bb .bb-indexcard h2 a { color: inherit; text-decoration: none; }
body.bb .bb-indexcard h2 a:hover { color: var(--bb-gold); }

/* Mobile header. */
@media (max-width: 880px) {
  body.bb .bb-burger { display: flex; }
  body.bb .bb-topwrap { position: relative; }
  body.bb .bb-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg, #241811); background: rgba(36, 24, 17, .98);
    border-bottom: 1px solid rgba(176, 141, 62, .35); padding: .6rem 0;
  }
  body.bb .bb-topwrap.bb-open .bb-nav { display: flex; }
  body.bb .bb-navlinks { flex-direction: column; align-items: stretch; gap: 0; }
  body.bb .bb-navlinks li { border-top: 1px solid rgba(176, 141, 62, .18); }
  body.bb .bb-navlinks a { display: block; padding: .9rem 22px; }
  /* Mobile: submenus render as an indented, always-visible list (all levels). */
  body.bb .bb-navlinks li > ul,
  body.bb .bb-navlinks li li > ul {
    position: static; display: block; min-width: 0;
    margin: 0; padding: 0; background: transparent;
    border: none; box-shadow: none; max-height: none; overflow: visible;
  }
  body.bb .bb-navlinks li > ul::before,
  body.bb .bb-navlinks li li > ul::before { display: none; }
  body.bb .bb-navlinks li > ul li { border-top: 1px solid rgba(176, 141, 62, .12); }
  body.bb .bb-navlinks li li > ul li { border-top: 1px solid rgba(176, 141, 62, .12); }
  body.bb .bb-navlinks li > ul a {
    padding: .8rem 22px .8rem 38px; font-size: .95rem;
    color: var(--bb-ink-soft); border-left: 2px solid rgba(176, 141, 62, .35);
  }
  body.bb .bb-navlinks li li > ul a {
    padding: .8rem 22px .8rem 54px; font-size: .95rem;
    color: var(--bb-ink-soft); border-left: 2px solid rgba(176, 141, 62, .25);
  }
  body.bb .bb-navlinks li li li > ul a { padding-left: 70px; }
  body.bb .bb-navlinks li li li li > ul a { padding-left: 86px; }
  body.bb .bb-navlinks li > ul a:hover { background: transparent; color: var(--bb-gold); }
  body.bb .bb-navlinks .menu-item-has-children > a::after { content: none; }
  body.bb .bb-nav .bb-btn, body.bb .bb-nav .bb-cart { display: block; padding: .9rem 22px; text-align: center; border: none; }
}

/* --------------------------------------------------------------------------
   10. READABILITY RESCUE  (full-site v2 audit, 2026-12-01)
   Repairs contrast failures inherited from Woodmart, Elementor, and plugin
   CSS where light theme text meets white/green surfaces, or fixed dark
   colours meet the dark leather ground. Scoped to body.bb.
   -------------------------------------------------------------------------- */

/* 10.1 Woodmart default accent green (#83b735) chips, prices, pagination,
   cart buttons -> deep gold field + bright ivory (4.9:1). */
body.bb .wd-post-cat.wd-style-with-bg,
body.bb .wd-replies-count,
body.bb .page-numbers.current,
body.bb .wd-price-value,
body.bb .wd-price-suffix,
body.bb .add_to_cart_button,
body.bb .ajax_add_to_cart {
  background: #7A5E1C;
  color: #F6EFDF;
  border-color: var(--bb-gold-line);
}
body.bb .wd-post-cat a,
body.bb .wd-post-cat.wd-style-with-bg a { color: #F6EFDF; }
/* Button inner text spans: inherit the (now dark-on-gold) button colour. */
body.bb .btn .wd-btn-text,
body.bb .button .wd-btn-text,
body.bb .wdm-btn .wd-btn-text,
body.bb .btn .wd-action-text,
body.bb .button .wd-action-text { color: inherit; }

/* 10.2 Content links: force house gold over plugin dark link colours (#444, blue). */
body.bb .entry-content a,
body.bb .sp-wps-product-details a,
body.bb .wpsf-product-title a,
body.bb .wp-block-post a,
body.bb .woocommerce a:not(.button):not(.btn):not(.add_to_cart_button):not(.wp-block-button__link) {
  color: var(--bb-gold);
}

/* 10.3 Fixed dark text colours (Woodmart #222/#444) on the dark ground -> ivory. */
body.bb .price,
body.bb .price bdi,
body.bb .price b,
body.bb .price span,
body.bb span.from,
body.bb .amount,
body.bb .woocommerce .price { color: var(--bb-ink); }
body.bb .entry-content em { color: var(--bb-ink-soft); }
body.bb strong, body.bb b { color: var(--bb-ink-bright); }

/* 10.4 White surfaces -> dark panels so the ivory theme text stays readable. */
body.bb .elementor-section,
body.bb .elementor-container,
body.bb .elementor-element,
body.bb .elementor-widget,
body.bb .elementor-widget-container { background: transparent; }
body.bb .identification-wizard,
body.bb .step-content,
body.bb .visual-comparison,
body.bb .dating-tool,
body.bb .reference-library {
  background: var(--bb-bg-2);
  border-color: rgba(176, 141, 62, .35);
  color: var(--bb-ink);
}
body.bb .feature-box {
  background: var(--bb-bg-2);
  border-color: rgba(176, 141, 62, .25);
}
body.bb table th {
  background: var(--bb-ledger-hd);
  color: var(--bb-ink-bright);
  border-color: rgba(176, 141, 62, .30);
}
body.bb table td {
  background: transparent;
  color: var(--bb-ink);
  border-color: rgba(176, 141, 62, .18);
}
body.bb .wp-block-table { color: var(--bb-ink); }

/* 10.5 Form required-asterisk red, lightened to pass on the dark ground. */
body.bb .required,
body.bb label .required,
body.bb .woocommerce form .required { color: #E8685A; }

/* 10.6 Popup Maker overlays -> dark theme. */
body.bb .pum-container,
body.bb .pum-popmake {
  background: var(--bb-bg-2) !important;
  color: var(--bb-ink) !important;
}
body.bb .pum-popmake h1, body.bb .pum-popmake h2, body.bb .pum-popmake h3,
body.bb .pum-popmake h4, body.bb .pum-popmake p, body.bb .pum-popmake label {
  color: var(--bb-ink) !important;
}
body.bb .pum-popmake input,
body.bb .pum-popmake textarea,
body.bb .pum-popmake select {
  background: var(--bb-bg) !important;
  color: var(--bb-ink) !important;
  border-color: rgba(176, 141, 62, .40) !important;
}
body.bb .pum-popmake button,
body.bb .pum-popmake .pum-btn,
body.bb .pum-popmake .pum-close {
  background: var(--bb-gold-line) !important;
  color: #17110B !important;
}
body.bb .pum-close { background: var(--bb-gold-line) !important; color: #17110B !important; border: 1px solid var(--bb-gold-line) !important; }

/* ===================== 12. RESCUE v2 (full-sweep contrast fixes) ===================== */

/* 12.1 Woodmart light-surface components -> dark leather (ivory text then reads) */
body.bb .wrapper-content-banner,
body.bb .content-banner,
body.bb .info-box,
body.bb .info-box-icon,
body.bb .info-box i,
body.bb .info-box .wd-icon,
body.bb .e-con-boxed,
body.bb .wp-block-table,
body.bb table.has-background,
body.bb .has-text-color.has-background {
  background-color: #241811 !important;
  background-image: none !important;
  border-color: #B08D3E !important;
  color: #F6EFDF !important;
}
body.bb table.has-background td, body.bb table.has-background th { color: #E9DDBE !important; }
body.bb table.has-background th { color: #D4AF5A !important; background-color: #2B1F15 !important; }
body.bb table.has-background strong, body.bb table.has-background b { color: #D4AF5A !important; }
body.bb .wrapper-content-banner h1, body.bb .wrapper-content-banner h2, body.bb .wrapper-content-banner h3,
body.bb .wrapper-content-banner h4, body.bb .wrapper-content-banner p, body.bb .wrapper-content-banner li { color: #F6EFDF !important; }
body.bb .info-box h3, body.bb .info-box h4, body.bb .info-box p { color: #F6EFDF !important; }
body.bb .info-box i, body.bb .info-box .wd-icon { color: #D4AF5A !important; }

/* 12.2 WPS slider + product cross-sell / related links: gold on dark leather */
body.bb .wps-slider-section a,
body.bb .wps-slider a,
body.bb .wps-slider-section * a,
body.bb .elementor-widget-woocommerce a,
body.bb .elementor-widget-woocommerce-product-grid a,
body.bb .elementor-widget-wc-related a,
body.bb ul.products li a,
body.bb .products .title a { color: #D4AF5A !important; }

/* 12.3 (v3) — CTA / action buttons: solid gold bg + near-black text.
   Woodmart leaves wishlist + Elementor CTA buttons transparent on the dark
   leather, so a dark text span fails contrast. A filled gold CTA is the brand
   style (add-to-cart already is) and guarantees dark-on-gold readability. */
body.bb .wd-wishlist-btn,
body.bb .wd-add-to-cart,
body.bb a.wd-add-to-cart,
body.bb .wd-add-to-cart a,
body.bb a.button,
body.bb button.button,
body.bb .add_to_cart_button,
body.bb a.btn,
body.bb .btn,
body.bb .btn-accent,
body.bb .wd-action-btn {
  background-color: #D4AF5A !important;
  background-image: none !important;
  color: #14100B !important;
  border: 1px solid #8A6D1F !important;
}
body.bb .wd-wishlist-btn .wd-action-text,
body.bb .wd-add-to-cart .wd-action-text,
body.bb a.button .wd-action-text,
body.bb .btn .wd-btn-text,
body.bb a.btn .wd-btn-text,
body.bb .btn-accent .wd-action-text,
body.bb .wd-action-btn .wd-action-text,
body.bb .wd-action-text,
body.bb .wd-btn-text { color: #14100B !important; }
/* 12.3b (v4) — Elementor/Woodmart bordered + link CTA buttons: Woodmart forces
   .wd-button-wrapper .btn-style-bordered:not(:hover) to transparent (spec 0,3,0),
   which beats our body.bb .btn gold fill (0,2,1) and leaves dark ink on dark
   leather (cr≈1.18 on SHOP NOW / SEE ALL / Get Your Package Today). Re-fill with
   the brand gold at higher specificity so dark-on-gold reads everywhere. */
body.bb .wd-button-wrapper .btn.btn-style-bordered,
body.bb .wd-button-wrapper .btn.btn-style-link,
body.bb .wd-button-wrapper a.btn.btn-color-primary,
body.bb .wd-button-wrapper a.btn.btn-color-alt,
body.bb a.btn.btn-style-bordered,
body.bb a.btn.btn-style-link,
body.bb a.btn.btn-color-primary,
body.bb a.btn.btn-color-alt {
  background-color: #D4AF5A !important;
  background-image: none !important;
  color: #14100B !important;
  border-color: #8A6D1F !important;
}
/* quantity steppers keep their gold square + dark glyph */
body.bb button.minus,
body.bb button.plus,
body.bb .button.minus,
body.bb .button.plus {
  color: #14100B !important;
  background-color: #B08D3E !important;
  border-color: #8A6D1F !important;
}
/* 12.3b select2 dropdowns + placeholders on dark leather */
body.bb .select2-container .select2-selection__placeholder,
body.bb .select2-container .select2-selection__rendered,
body.bb .select2-results__option,
body.bb .select2-results__option--highlighted { color: #EFE3C8 !important; }
body.bb .select2-container--default .select2-selection--single,
body.bb .select2-container--default .select2-selection--multiple,
body.bb .select2-dropdown,
body.bb .select2-results { background: #17100B !important; border-color: #8A6D1F !important; }
body.bb .select2-container--default .select2-selection--single .select2-selection__rendered { color: #EFE3C8 !important; }
/* 12.3c Gutenberg search button (was white-on-green) -> gold CTA */
body.bb .wp-block-search__button,
body.bb .wp-block-search .wp-block-search__button,
body.bb button.wp-block-search__button,
body.bb .wp-element-button {
  background: linear-gradient(160deg, #E6C878 0%, #D4AF5A 45%, #B08D3E 100%) !important;
  color: #14100B !important;
  border: 1px solid #8A6D1F !important;
}

/* 12.4 Woodmart pricing table: full leather + gold (kill green/bronze palette) */
body.bb .pricing-tables .wd-price-table,
body.bb .pricing-tables .wd-plan { background-color: #241811 !important; border-color: #B08D3E !important; }
body.bb .wd-plan-inner { background-color: #241811 !important; }
body.bb .wd-plan-name, body.bb .wd-plan .wd-plan-name { color: #D4AF5A !important; background: transparent !important; }
/* Corner ribbon labels (PLAN / VALUE / ANTIQUE): the colored ribbon (green #0FA34C /
   red #EF4836 / yellow #F7CA18) stays, but the text was gold-on-color = cr 1.33–1.78.
   Dark ink reads on all three ribbon colors (cr 4.0–7.2) while keeping the color coding. */
body.bb .wd-plan-label,
body.bb .wd-plan-label > span,
body.bb .wd-plan-label .title { color: #14100B !important; }
body.bb .wd-plan-price { background-color: #241811 !important; border-bottom: 2px solid #B08D3E !important; }
body.bb .wd-price-value, body.bb .wd-price-currency { color: #F6EFDF !important; background: transparent !important; }
body.bb .wd-price-suffix { color: #C9B583 !important; background: transparent !important; }
body.bb .wd-plan-feature { color: #E9DDBE !important; }
body.bb .wd-plan-feature::before { color: #B08D3E !important; }
body.bb .price-plan-btn { background: linear-gradient(160deg, #D4AF5A, #B08D3E) !important; color: #14100B !important; border: 1px solid #8A6D1F !important; }
body.bb .price-plan-btn:hover { background: #241811 !important; color: #D4AF5A !important; }

/* 12.5 Woodmart green accent components -> gold/leather */
body.bb .page-numbers, body.bb .page-numbers a, body.bb .page-numbers span { color: #D4AF5A !important; }
body.bb .page-numbers.current { background: #7A5E1C !important; color: #F6EFDF !important; border-color: #B08D3E !important; }
body.bb .wd-replies-count { color: #F6EFDF !important; background: #7A5E1C !important; border-color: #B08D3E !important; }
body.bb .woocommerce-Price-currencySymbol { color: #D4AF5A !important; }
body.bb .woocommerce-Price-amount bdi, body.bb .price bdi { color: #F6EFDF !important; }
body.bb .wd-post-cat, body.bb .wd-post-cat a { color: #F6EFDF !important; }

/* 12.6 Elementor text-editor widgets: white demo cards -> dark leather + readable ink.
   "Our Mission" + "Our Core Values" (rebindabout) sat ivory-on-white (cr 1.15);
   "Follow me on Facebook" (rebindabout / about-3) was muted gray (cr 4.03).
   Force a leather card + ivory ink (links stay gold) so both read on the dark theme. */
body.bb .elementor-widget-text-editor,
body.bb .elementor-widget-text-editor .elementor-widget-container {
  background-color: #2B1F15 !important;
  background-image: none !important;
}
body.bb .elementor-widget-text-editor::before,
body.bb .elementor-widget-text-editor::after,
body.bb .elementor-widget-text-editor .elementor-widget-container::before {
  background-color: transparent !important;
  background-image: none !important;
}
body.bb .elementor-widget-text-editor p,
body.bb .elementor-widget-text-editor li,
body.bb .elementor-widget-text-editor span,
body.bb .elementor-widget-text-editor strong,
body.bb .elementor-widget-text-editor em { color: #E9DDBE !important; }
body.bb .elementor-widget-text-editor a { color: #D4AF5A !important; }
body.bb .elementor-widget-text-editor a:hover { color: #E6C878 !important; }

/* ===================== END RESCUE v2 ===================== */


/* =====================================================================
   v1.9.1 — targeted fixes (verified against live HTML/CSS)
   (1) white title box -> dark leather
   (2) duplicate cart  -> single cart
   (3) desktop menu alignment
   (4) footer bg + correct guardian logo
   (5) WPForms readability on dark
   ===================================================================== */

/* (1) Force the page + title area to the dark-leather background.
   Woodmart's light default was leaking onto .bb-pagetitle -> white box. */
html body.bb,
html body.bb .bb-page,
html body.bb .bb-pageinner { background: var(--bb-bg, #241811) !important; }
html body.bb .bb-pagetitle { background: var(--bb-bg, #241811) !important; }
html body.bb .bb-pagetitle h1 { color: var(--bb-ink-bright, #F6EFDF) !important; }

/* (2) Hide the wpmenucart plugin's menu cart so only the theme's one
   "Cart" link remains. */
li#wpmenucartli,
#masthead li#wpmenucartli,
.bb-navlinks li#wpmenucartli,
#menu-main-menu li[id*="wpmenucart"] { display: none !important; }

/* (3) Desktop menu: single line, aligned items, tidy carets. */
@media (min-width: 881px) {
  html body.bb .bb-topwrap { flex-wrap: nowrap; }
  html body.bb .bb-nav { flex-wrap: nowrap; }
  html body.bb .bb-navlinks { display: flex !important; flex-wrap: nowrap; align-items: center; gap: 1.15rem; }
  html body.bb .bb-navlinks > li { position: relative; display: flex; align-items: center; }
  html body.bb .bb-navlinks > li > a { display: inline-flex; align-items: center; gap: .35rem; line-height: 1.1; white-space: nowrap; }
  html body.bb .bb-navlinks > li .sub-menu { left: 0; right: auto; }
}

/* (4) Footer: dark-leather background (override Woodmart slate). */
html body.bb .bb-foot { background: var(--bb-bg-3, #281C12) !important; }

/* (5) WPForms: readable labels + fields on the dark background. */
html body.bb .wpforms-field label,
html body.bb .wpforms-field .wpforms-field-label,
html body.bb .wpforms-field .wpforms-field-sublabel,
html body.bb .wpforms-list label { color: var(--bb-ink-bright, #F6EFDF) !important; }
html body.bb .wpforms-field input[type=text],
html body.bb .wpforms-field input[type=email],
html body.bb .wpforms-field input[type=tel],
html body.bb .wpforms-field input[type=url],
html body.bb .wpforms-field textarea,
html body.bb .wpforms-field select {
  background: #1D150E !important;
  color: var(--bb-ink-bright, #F6EFDF) !important;
  border: 1px solid rgba(176, 141, 62, .4) !important;
  border-radius: 3px !important;
}
html body.bb .wpforms-field input::placeholder,
html body.bb .wpforms-field textarea::placeholder { color: rgba(239, 227, 200, .55) !important; }
html body.bb .wpforms-submit input[type=submit],
html body.bb .wpforms-field .wpforms-submit {
  background: var(--bb-gold, #D4AF5A) !important;
  color: #14100B !important;
  border-color: var(--bb-gold, #D4AF5A) !important;
}

/* ===================== 13. CONTRAST REPAIR v3 (2026-12-03 full-site audit) ===================== */

/* 13.1 WPForms required-asterisk (was #D63637 on leather, cr 3.66) -> light red, AA */
html body.bb .wpforms-required-label,
html body.bb .wpforms-conditional-required-label,
html body.bb .wpforms-field .wpforms-required-label { color: #F6A5A6 !important; }

/* 13.2 Woo "New" badge (was white on #DD9933, cr 2.42) -> dark ink on the orange badge */
html body.bb span.new.product-label,
html body.bb .product span.new { color: #14100B !important; }

/* 13.3 Woo Product Slider on dark pages (widget inline CSS forced #222/#444 on
   leather, cr ~1.09) -> cream, matching the rest of the theme's text-on-dark.
   Covers the price row (the "–" placeholder span was the flagged element), the
   product-title links, and the cart buttons. */
html body.bb .wps-slider-section .wpsf-product-price,
html body.bb .wps-slider-section .wpsf-product-price span,
html body.bb .wps-slider-section .wpsf-product-price del,
html body.bb .wps-slider-section .wpsf-product-price del span,
html body.bb .wps-slider-section .wpsf-product-price small { color: #EFE3C8 !important; }
html body.bb .wps-slider-section .wpsf-product-title a { color: #EFE3C8 !important; }
html body.bb .wps-slider-section .wpsf-cart-button a { color: #14100B !important; background-color: var(--bb-gold, #D4AF5A) !important; }

/* 13.4 Merchant trust-badges legend (was #212121 on #2B1F15 panel, cr 1.00) */
html body.bb legend.merchant-trust-badges-title { color: #EFE3C8 !important; }

/* 13.5 Track-order light cards: the theme's cream body color leaked onto the page's
   white/light cards (cr 1.10-1.15). Dark ink on the light surfaces; the support
   button becomes the site's gold CTA (was white on #2A8F6F, cr 3.99). */
html body.bb .bb-track-card,
html body.bb .bb-track-card p,
html body.bb .bb-track-card label,
html body.bb .bb-track-card legend,
html body.bb .bb-track-card .woocommerce-message,
html body.bb .bb-track-card .woocommerce-info,
html body.bb .bb-info-tile,
html body.bb .bb-info-tile p,
html body.bb .bb-info-tile strong { color: #241811 !important; }
html body.bb .bb-track-btn,
html body.bb .bb-info-tile a.bb-track-btn {
  background: linear-gradient(160deg, #E6C878 0%, #D4AF5A 45%, #B08D3E 100%) !important;
  color: #14100B !important;
  border: 1px solid #8A6D1F !important;
}

/* ===================== END CONTRAST REPAIR v3 ===================== */
