/* ============================================================
   BARE MOISTURE — Global Design System
   Version: 1.0
   Stack: WordPress + Elementor Pro (HTML Widget / WPCode)
   Responsive: 480px and above
   ============================================================ */

/* Google Fonts are enqueued separately in functions.php (non-render-blocking) */

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --bm-cream:        #F6F1EA;
  --bm-cream-dark:   #EDE6DA;
  --bm-green:        #2D3B1F;
  --bm-green-mid:    #4A5B2C;
  --bm-green-light:  #6B7C4A;
  --bm-green-footer: #1E2D14;
  --bm-green-dark:   #1E2D14; /* alias: several source mockups (inner-page heroes/CTAs) reference this name for the same dark green as --bm-green-footer */
  --bm-bronze:       #B07A4A;
  --bm-bronze-light: #C9956A;
  --bm-bronze-dark:  #8B5E3C;
  --bm-white:        #FFFFFF;
  --bm-text-dark:    #1A1A1A;
  --bm-text-mid:     #4A4A4A;
  --bm-text-light:   #7A7A7A;
  --bm-border:       rgba(45, 59, 31, 0.12);
  --bm-gold-light:   #E2C97E; /* v3 accent — page-hero eyebrow/breadcrumb/em-emphasis on inner pages */

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;

  /* Spacing */
  --section-pad:    100px 0;
  --section-pad-sm: 60px 0;
  --container-max:  1280px;
  --container-pad:  0 40px;
  --bm-announcement-h: 32px;

  /* Transitions */
  --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-soft:   0 4px 24px rgba(45, 59, 31, 0.08);
  --shadow-medium: 0 8px 40px rgba(45, 59, 31, 0.14);
  --shadow-card:   0 2px 16px rgba(45, 59, 31, 0.07);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--bm-text-dark);
  background-color: var(--bm-cream);
  background-image: url('../images/subtle-linen-texture.webp');
  background-repeat: repeat;
  background-size: 300px 300px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* The parent Hello Elementor theme's own reset.css sets a hardcoded
   button:hover/:focus { background-color: #cc3366 } (a pink/magenta with no relation to this
   brand) on every plain <button> site-wide — and specifically also on [type="button"]:hover/
   [type="submit"]:hover, which as attribute selectors OUTRANK a plain `button:hover` reset on
   specificity regardless of load order (this exact selector list must be matched, same as the
   border rule below). Our own bm-btn/component hover rules only set the properties they
   actually care about (color, border) — CSS cascades per PROPERTY, not per rule, so
   background-color still falls through to the theme's rule wherever ours doesn't explicitly
   claim it. This resets that property back to transparent as a baseline for every button, same
   specificity as the theme's rule but loaded after it, so it wins the cascade; any of our own
   component styles that DO want a hover background (e.g. .bm-btn--primary) still override this
   normally since those rules are more specific. */
[type="button"]:hover,
[type="button"]:focus,
[type="submit"]:hover,
[type="submit"]:focus,
button:hover,
button:focus {
  background-color: transparent;
}

/* Same reset.css rule above also sets color:#fff on button hover/focus — invisible on any
   button whose resting background stays light on focus-without-hover (e.g. clicking a filter
   pill then moving the mouse away: browser keeps :focus after :hover ends, and reset.css's
   button:focus beats a plain single-class button style like .bm-hub-filter__btn on
   specificity). Reset back to inherit so the button's own resting color shows through;
   component :hover/.active rules (two classes, e.g. .bm-hub-filter__btn.active) still
   outrank this normally. */
[type="button"]:hover,
[type="button"]:focus,
[type="submit"]:hover,
[type="submit"]:focus,
button:hover,
button:focus {
  color: inherit;
}

/* Same story as above but for border: the theme's reset.css also puts a default 1px
   rgb(204,51,102) (pink/magenta) border on every plain button — and specifically on
   [type="button"]/[type="submit"], which as attribute selectors actually OUTRANK our plain
   `button { border: none }` reset on specificity, regardless of load order. Buttons that set
   an explicit type="button"/"submit" (quantity steppers, Add to Cart, etc) need this exact
   selector list matched to win. Component styles that want their own border (.bm-btn, tabs,
   filter pills, etc) still override this normally since those are more specific again. */
[type="button"],
[type="submit"],
button {
  border: none;
}

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--bm-green);
}

h1 { font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h5 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; }
h6 { font-size: 0.9rem; font-family: var(--font-sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bm-text-mid);
  max-width: 68ch;
}

.bm-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bm-bronze);
  display: block;
  margin-bottom: 12px;
}

/* ── Layout Utilities ── */
.bm-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
  width: 100%;
}

.bm-section {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.bm-section--cream   { background-color: var(--bm-cream); }
.bm-section--white   { background-color: var(--bm-white); }
.bm-section--green   { background-color: var(--bm-green); }
.bm-section--dark    { background-color: var(--bm-green-footer); }
.bm-section--cream-dark { background-color: var(--bm-cream-dark); }

.bm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.bm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.bm-text-center { text-align: center; }
.bm-text-center p { margin: 0 auto; }

.bm-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Section Divider ── */
.bm-divider {
  width: 48px;
  height: 1px;
  background: var(--bm-bronze);
  margin: 20px 0 32px;
}

.bm-divider--center {
  margin: 20px auto 32px;
}

/* ── Buttons ── */
.bm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 16px 36px;
  border-radius: 0;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.bm-btn--primary {
  background-color: var(--bm-green);
  color: var(--bm-cream);
  border: 1px solid var(--bm-green);
}

.bm-btn--primary:hover {
  background-color: var(--bm-green-footer);
  border-color: var(--bm-green-footer);
  color: var(--bm-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.bm-btn--secondary {
  background-color: transparent;
  color: var(--bm-green);
  border: 1px solid var(--bm-green);
}

.bm-btn--secondary:hover {
  background-color: var(--bm-green);
  color: var(--bm-cream);
}

.bm-btn--bronze {
  background-color: var(--bm-bronze);
  color: var(--bm-white);
  border: 1px solid var(--bm-bronze);
}

.bm-btn--bronze:hover {
  background-color: var(--bm-bronze-dark);
  border-color: var(--bm-bronze-dark);
  color: var(--bm-white);
  transform: translateY(-1px);
}

.bm-btn--ghost-white {
  background-color: transparent;
  color: var(--bm-cream);
  border: 1px solid rgba(246, 241, 234, 0.5);
}

.bm-btn--ghost-white:hover {
  background-color: var(--bm-cream);
  color: var(--bm-green);
  border-color: var(--bm-cream);
}

/* ── Announcement Bar ── */
/* Fixed height (--bm-announcement-h) is shared with .bm-header's top offset and the
   .bm-page-body compensation below — kept constant across breakpoints so only font-size
   needs to adjust on mobile, not the offset math in three places. */
.bm-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--bm-announcement-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bm-green-dark);
  color: var(--bm-gold-light);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
}

.bm-announcement__dot {
  opacity: 0.45;
  font-size: 0.6rem;
}

@media (max-width: 640px) {
  .bm-announcement { font-size: 0.6rem; gap: 8px; }
  .bm-announcement__msg:not(:first-child),
  .bm-announcement .bm-announcement__dot {
    display: none;
  }
}

/* ── Sticky Header ── */
.bm-header {
  position: fixed;
  top: var(--bm-announcement-h);
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
  padding: 0;
}

.bm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 48px;
  max-width: var(--container-max);
  margin: 0 auto;
  transition: all var(--transition-base);
}

/* Transparent state (over hero) */
.bm-header--transparent {
  background: transparent;
}

.bm-header--transparent .bm-nav__link {
  color: var(--bm-cream);
}

.bm-header--transparent .bm-header__logo-text {
  color: var(--bm-cream);
}

/* Scrolled / solid state — background/blur/shadow live on the full-width
   outer .bm-header so the bar spans edge-to-edge; .bm-header__inner just
   centers the content row inside it at the same max-width as the rest
   of the page. */
.bm-header--scrolled {
  background: rgba(246, 241, 234, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--bm-border), var(--shadow-soft);
}

.bm-header--scrolled .bm-header__inner {
  height: 68px;
}

.bm-header--scrolled .bm-nav__link {
  color: var(--bm-green);
}

.bm-header--scrolled .bm-header__logo-text {
  color: var(--bm-green);
}

/* Logo placeholder */
.bm-header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

/* Scoped under .bm-header (not just the bare class) so this reliably beats Elementor's own
   `.elementor img { height:auto; max-width:100% }` reset, which otherwise wins on specificity
   over a single-class selector and renders the logo at its full intrinsic size. */
.bm-header .bm-header__logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: height var(--transition-base), opacity var(--transition-base);
}

.bm-header--scrolled .bm-header__logo-img {
  height: 38px;
}

/* Same .bm-header scoping as above, and for the same reason: these need to be at least as
   specific as the base display:block rule or the "hidden" variant stops actually hiding. */
.bm-header .bm-header__logo-img--scrolled { display: none; }
.bm-header--scrolled .bm-header__logo-img--transparent { display: none; }
.bm-header--scrolled .bm-header__logo-img--scrolled { display: block; }

/* Navigation */
.bm-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.bm-nav__link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bm-cream);
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 2px;
}

.bm-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bm-bronze);
  transition: width var(--transition-base);
}

.bm-nav__link:hover::after,
.bm-nav__link.active::after {
  width: 100%;
}

.bm-nav__link:hover {
  color: var(--bm-bronze);
}

.bm-header--scrolled .bm-nav__link:hover {
  color: var(--bm-bronze);
}

/* Header CTA */
.bm-header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bm-header__cart {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bm-cream);
  transition: color var(--transition-base);
  padding: 8px 0;
}

.bm-header--scrolled .bm-header__cart {
  color: var(--bm-green);
}

/* The "Shop Now" header CTA uses .bm-btn--ghost-white (cream text/border), designed to sit on
   the dark/transparent hero. Without this override it stays cream when the header switches to
   its solid cream background too — cream-on-cream, effectively invisible. */
.bm-header--scrolled .bm-header__cta .bm-btn--ghost-white {
  color: var(--bm-green);
  border-color: rgba(45, 59, 31, 0.35);
}

.bm-header--scrolled .bm-header__cta .bm-btn--ghost-white:hover {
  background-color: var(--bm-green);
  color: var(--bm-cream);
  border-color: var(--bm-green);
}

.bm-header__cart:hover {
  color: var(--bm-bronze);
}

.bm-header__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--bm-bronze);
  color: var(--bm-white);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50%;
}

/* Mobile Menu Toggle */
.bm-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity var(--transition-base);
}

.bm-header__toggle:hover {
  opacity: 0.7;
}

.bm-header__toggle span {
  display: block;
  height: 1.5px;
  background: var(--bm-cream);
  transition: all var(--transition-base);
  transform-origin: center;
}

.bm-header--scrolled .bm-header__toggle span {
  background: var(--bm-green);
}

.bm-header__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.bm-header__toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.bm-header__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.bm-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--bm-green-footer);
  z-index: 999;
  padding: 100px 40px 60px;
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-mobile-nav.open {
  right: 0;
}

.bm-mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 45, 20, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.bm-mobile-nav__overlay.open {
  opacity: 1;
  pointer-events: all;
}

.bm-mobile-nav__link {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--bm-cream);
  padding: 10px 0;
  border-bottom: 1px solid rgba(246, 241, 234, 0.1);
  transition: color var(--transition-base);
}

.bm-mobile-nav__link:hover {
  color: var(--bm-bronze);
}

.bm-mobile-nav__close {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--bm-cream);
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.bm-mobile-nav__close:hover {
  opacity: 1;
}

/* ── Hero Section ── */
.bm-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bm-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.bm-hero__bg.loaded {
  transform: scale(1);
}

.bm-hero__overlay {
  position: absolute;
  inset: 0;
  /* Two layers: the diagonal gradient gives the hero its overall mood-lighting look, but on
     its own fades to almost nothing (0.1 opacity) on the right side — which is exactly where
     the fixed header's right-hand nav items, Shop Now button and cart icon sit, making them
     unreadable. The flat top band guarantees a readable dark backdrop across the FULL WIDTH
     of the header regardless of what the diagonal gradient is doing at that point. */
  background:
    linear-gradient(to bottom, rgba(30, 45, 20, 0.55) 0px, rgba(30, 45, 20, 0.55) 90px, transparent 170px),
    linear-gradient(
      105deg,
      rgba(30, 45, 20, 0.72) 0%,
      rgba(30, 45, 20, 0.35) 55%,
      rgba(30, 45, 20, 0.1) 100%
    );
}

.bm-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 700px;
}

.bm-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--bm-bronze-light);
  margin-bottom: 20px;
  display: block;
}

.bm-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--bm-cream);
  margin-bottom: 24px;
}

.bm-hero__title em {
  font-style: italic;
  color: var(--bm-bronze-light);
}

.bm-hero__subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(246, 241, 234, 0.85);
  margin-bottom: 40px;
  max-width: 520px;
}

.bm-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Cards ── */
.bm-card {
  background: var(--bm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.bm-card__image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.bm-card__body {
  padding: 28px 24px;
}

.bm-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bm-bronze);
  margin-bottom: 8px;
  display: block;
}

.bm-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--bm-green);
  margin-bottom: 10px;
}

.bm-card__text {
  font-size: 0.9rem;
  color: var(--bm-text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.bm-card__price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--bm-green);
  font-weight: 400;
  margin-bottom: 16px;
}

/* ── Ingredient Cards ── */
.bm-ingredient-card {
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition-base);
  cursor: pointer;
}

.bm-ingredient-card:hover {
  border-color: var(--bm-bronze);
  box-shadow: var(--shadow-soft);
}

.bm-ingredient-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.bm-ingredient-card__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--bm-green);
  line-height: 1.3;
}

.bm-ingredient-card__inci {
  font-size: 0.75rem;
  color: var(--bm-text-light);
  font-style: italic;
  margin-top: 2px;
}

.bm-ingredient-card__source {
  font-size: 0.82rem;
  color: var(--bm-text-mid);
  margin-bottom: 14px;
}

.bm-ingredient-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.bm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bm-badge--moisturizer { background: rgba(45, 59, 31, 0.1); color: var(--bm-green); }
.bm-badge--primer      { background: rgba(176, 122, 74, 0.12); color: var(--bm-bronze-dark); }
.bm-badge--both        { background: rgba(45, 59, 31, 0.07); color: var(--bm-green-mid); border: 1px solid var(--bm-border); }
.bm-badge--hero        { background: var(--bm-bronze); color: var(--bm-white); }

.bm-ingredient-card__expand {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bm-bronze);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-base);
}

.bm-ingredient-card__expand:hover {
  gap: 10px;
}

.bm-ingredient-card__details {
  display: none;
  padding-top: 20px;
  border-top: 1px solid var(--bm-border);
  margin-top: 16px;
}

.bm-ingredient-card__details.open {
  display: block;
  animation: fadeSlideIn 0.3s ease forwards;
}

.bm-ingredient-card__detail-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bm-bronze);
  margin-bottom: 4px;
  margin-top: 14px;
  display: block;
}

.bm-ingredient-card__detail-label:first-child {
  margin-top: 0;
}

.bm-ingredient-card__detail-text {
  font-size: 0.88rem;
  color: var(--bm-text-mid);
  line-height: 1.65;
}

/* ── Testimonial Cards ── */
.bm-testimonial {
  background: var(--bm-white);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.bm-testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--bm-bronze);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 24px;
  line-height: 1;
}

.bm-testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.bm-testimonial__star {
  color: var(--bm-bronze);
  font-size: 0.9rem;
}

.bm-testimonial__text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bm-text-dark);
  line-height: 1.7;
  margin-bottom: 24px;
}

.bm-testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Scoped under .bm-testimonial__author — see the .bm-header__logo-img comment above for why. */
.bm-testimonial__author .bm-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bm-cream-dark);
}

.bm-testimonial__name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bm-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bm-testimonial__duration {
  font-size: 0.78rem;
  color: var(--bm-text-light);
  margin-top: 2px;
}

/* ── FAQ Accordion ── */
.bm-faq-item {
  border-bottom: 1px solid var(--bm-border);
}

.bm-faq-item:first-child {
  border-top: 1px solid var(--bm-border);
}

.bm-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  gap: 20px;
  transition: color var(--transition-base);
}

.bm-faq-question:hover {
  color: var(--bm-bronze);
}

.bm-faq-question h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--bm-green);
  line-height: 1.4;
  transition: color var(--transition-base);
}

.bm-faq-question:hover h4 {
  color: var(--bm-bronze);
}

.bm-faq-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--bm-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--bm-bronze);
  font-size: 1rem;
}

.bm-faq-item.open .bm-faq-icon {
  background: var(--bm-green);
  border-color: var(--bm-green);
  color: var(--bm-cream);
  transform: rotate(45deg);
}

.bm-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bm-faq-item.open .bm-faq-answer {
  max-height: 400px;
}

.bm-faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--bm-text-mid);
  line-height: 1.75;
}

/* ── Contact Form ── */
.bm-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bm-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bm-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-form__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bm-green);
}

.bm-form__input,
.bm-form__select,
.bm-form__textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bm-text-dark);
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.bm-form__input:focus,
.bm-form__select:focus,
.bm-form__textarea:focus {
  border-color: var(--bm-bronze);
  box-shadow: 0 0 0 3px rgba(176, 122, 74, 0.1);
}

.bm-form__input::placeholder,
.bm-form__textarea::placeholder {
  color: var(--bm-text-light);
  font-size: 0.9rem;
}

.bm-form__textarea {
  resize: vertical;
  min-height: 140px;
}

/* ── Footer ── */
.bm-footer {
  background-color: var(--bm-green-footer);
  color: var(--bm-cream);
  padding: 80px 0 0;
}

.bm-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(246, 241, 234, 0.1);
}

/* Scoped under .bm-footer — see the .bm-header__logo-img comment above for why. */
.bm-footer .bm-footer__brand-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.bm-footer__tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(246, 241, 234, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bm-footer__social {
  display: flex;
  gap: 14px;
}

.bm-footer__social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246, 241, 234, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 241, 234, 0.6);
  font-size: 0.85rem;
  transition: all var(--transition-base);
}

.bm-footer__social-link:hover {
  border-color: var(--bm-bronze);
  color: var(--bm-bronze);
  background: rgba(176, 122, 74, 0.1);
}

.bm-footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bm-bronze-light);
  margin-bottom: 20px;
}

.bm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-footer__link {
  font-size: 0.88rem;
  color: rgba(246, 241, 234, 0.65);
  transition: color var(--transition-base);
  line-height: 1.5;
}

.bm-footer__link:hover {
  color: var(--bm-cream);
}

.bm-footer__newsletter-text {
  font-size: 0.88rem;
  color: rgba(246, 241, 234, 0.65);
  line-height: 1.65;
  margin-bottom: 16px;
}

.bm-footer__newsletter-form {
  display: flex;
  gap: 0;
}

.bm-footer__newsletter-input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--bm-cream);
  background: rgba(246, 241, 234, 0.07);
  border: 1px solid rgba(246, 241, 234, 0.15);
  border-right: none;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition-base);
}

.bm-footer__newsletter-input::placeholder {
  color: rgba(246, 241, 234, 0.35);
}

.bm-footer__newsletter-input:focus {
  border-color: var(--bm-bronze);
}

.bm-footer__newsletter-btn {
  background: var(--bm-bronze);
  color: var(--bm-white);
  border: 1px solid var(--bm-bronze);
  padding: 12px 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background var(--transition-base);
  white-space: nowrap;
}

.bm-footer__newsletter-btn:hover {
  background: var(--bm-bronze-dark);
}

.bm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.bm-footer__copyright {
  font-size: 0.78rem;
  color: rgba(246, 241, 234, 0.4);
}

.bm-footer__legal-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.bm-footer__legal-link {
  font-size: 0.78rem;
  color: rgba(246, 241, 234, 0.4);
  transition: color var(--transition-base);
}

.bm-footer__legal-link:hover {
  color: rgba(246, 241, 234, 0.8);
}

/* ── Page Hero (inner pages) — v3: full-bleed photo banner, left-aligned, with
   breadcrumb + eyebrow + italic accent word in the title. Used on Contact, FAQ,
   and all 4 policy pages (each passes its own bg image + copy). ── */
.bm-page-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bm-green-dark);
}

.bm-page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.bm-page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(30, 45, 20, 0.88) 0%,
    rgba(30, 45, 20, 0.65) 45%,
    rgba(30, 45, 20, 0.35) 100%
  );
}

.bm-page-hero__content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 5rem;
  max-width: 680px;
}

.bm-page-hero__breadcrumb {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 241, 234, 0.4);
  margin-bottom: 1.5rem;
}

.bm-page-hero__breadcrumb a {
  color: rgba(246, 241, 234, 0.4);
  transition: color var(--transition-base);
}

.bm-page-hero__breadcrumb a:hover {
  color: var(--bm-gold-light);
}

.bm-page-hero__breadcrumb span {
  color: var(--bm-gold-light);
}

.bm-page-hero__eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bm-gold-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bm-page-hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--bm-gold-light);
  flex-shrink: 0;
}

.bm-page-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.15;
  color: var(--bm-cream);
  margin-bottom: 1.25rem;
}

.bm-page-hero__title em {
  font-style: italic;
  color: var(--bm-gold-light);
}

.bm-page-hero__subtitle {
  font-size: 1rem;
  color: rgba(246, 241, 234, 0.8);
  max-width: 500px;
  line-height: 1.75;
}

/* Top padding must clear the fixed announcement bar + header stack (they overlay this
   section), not just look good — 768px bracket: 80px header + 32px bar = 112px = 7rem;
   480px bracket: header drops to 64px there, so 64px + 32px = 96px = 6rem. */
@media (max-width: 768px) {
  .bm-page-hero { min-height: 52vh; }
  .bm-page-hero__content { padding: 7rem 0 3.5rem; }
}

@media (max-width: 480px) {
  .bm-page-hero { min-height: 48vh; }
  .bm-page-hero__content { padding: 6rem 0 3rem; }
}

/* ── Animations ── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bm-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bm-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-animate--delay-1 { transition-delay: 0.1s; }
.bm-animate--delay-2 { transition-delay: 0.2s; }
.bm-animate--delay-3 { transition-delay: 0.3s; }
.bm-animate--delay-4 { transition-delay: 0.4s; }
.bm-animate--delay-5 { transition-delay: 0.5s; }

/* ── Filter Bar ── */
.bm-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

.bm-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 22px;
  border: 1px solid var(--bm-border);
  border-radius: 30px;
  color: var(--bm-text-mid);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.bm-filter-btn:hover,
.bm-filter-btn.active {
  background: var(--bm-green);
  color: var(--bm-cream);
  border-color: var(--bm-green);
}

/* ── Section Accent Line ── */
.bm-section-accent {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.bm-section-accent__line {
  flex: 1;
  height: 1px;
  background: var(--bm-border);
}

.bm-section-accent__leaf {
  color: var(--bm-bronze);
  font-size: 1rem;
}

/* ── How It Works Steps ── */
.bm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.bm-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 1px;
  background: linear-gradient(to right, var(--bm-bronze), var(--bm-bronze-light), var(--bm-bronze));
  opacity: 0.3;
}

.bm-step {
  text-align: center;
  position: relative;
}

.bm-step__number {
  width: 56px;
  height: 56px;
  border: 1px solid var(--bm-bronze);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--bm-bronze);
  background: var(--bm-cream);
  position: relative;
  z-index: 1;
}

.bm-step__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--bm-green);
  margin-bottom: 12px;
}

.bm-step__text {
  font-size: 0.9rem;
  color: var(--bm-text-mid);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 240px;
}

/* ── Why Bare Moisture Features ── */
.bm-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.bm-feature {
  padding: 40px 32px;
  border: 1px solid var(--bm-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  background: var(--bm-white);
}

.bm-feature:hover {
  border-color: var(--bm-bronze);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.bm-feature__icon {
  width: 52px;
  height: 52px;
  background: rgba(176, 122, 74, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--bm-bronze);
}

.bm-feature__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--bm-green);
  margin-bottom: 10px;
}

.bm-feature__text {
  font-size: 0.9rem;
  color: var(--bm-text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Product Page Specifics ── */
.bm-product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}

.bm-product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bm-product-gallery__thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.bm-product-gallery__thumb.active,
.bm-product-gallery__thumb:hover {
  border-color: var(--bm-bronze);
}

.bm-product-gallery__main {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.bm-product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bm-product-info {
  padding-left: 60px;
}

.bm-product-info__price {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--bm-green);
  margin: 16px 0 24px;
}

.bm-product-info__benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.bm-product-info__benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--bm-text-mid);
}

.bm-product-info__benefit-dot {
  width: 6px;
  height: 6px;
  background: var(--bm-bronze);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ── Utility Classes ── */
.bm-mt-0 { margin-top: 0; }
.bm-mb-0 { margin-bottom: 0; }
.bm-hidden { display: none; }
.bm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Page Body Offset (for sticky header) ──
   Non-hero pages render the header in its --scrolled state from the very first paint (see
   initHeader() in bare-moisture.js), which is 68px tall, not the 80px transparent/top-of-hero
   height — so this must match 68px or every non-hero page shows a gap between the header and
   the page content equal to the difference (80-68=12px). Plus --bm-announcement-h (32px) since
   the header itself now sits that far down from the top. */
.bm-page-body {
  padding-top: calc(68px + var(--bm-announcement-h));
}

.bm-page-body--hero {
  padding-top: 0;
}

/* ============================================================
   RESPONSIVE — 1240px Header Nav (switches to hamburger before the
   8-link nav + logo + CTA can no longer fit — happens well above the
   768px content breakpoint, so this has its own earlier threshold)
   ============================================================ */
@media (max-width: 1240px) {
  .bm-nav { display: none; }
  .bm-header__cta .bm-btn { display: none; }
  .bm-header__toggle { display: flex; }
}

/* ============================================================
   RESPONSIVE — 1024px Tablet
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --container-pad: 0 32px;
  }

  .bm-header__inner {
    padding: 0 32px;
  }

  .bm-grid-2 { gap: 40px; }
  .bm-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bm-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .bm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .bm-hero__content {
    padding: 0 48px;
    max-width: 580px;
  }

  .bm-steps { gap: 32px; }
  .bm-features { grid-template-columns: repeat(2, 1fr); }

  .bm-product-gallery {
    grid-template-columns: 64px 1fr;
  }

  .bm-product-info {
    padding-left: 40px;
  }
}

/* ============================================================
   RESPONSIVE — 768px Mobile-Tablet
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-pad: 0 24px;
    --section-pad: 72px 0;
  }

  .bm-header__inner {
    padding: 0 24px;
  }

  .bm-grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bm-grid-3 { grid-template-columns: 1fr; }
  .bm-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .bm-hero__content {
    padding: 0 24px;
    max-width: 100%;
  }

  .bm-hero__title {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  .bm-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .bm-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bm-steps::before { display: none; }

  .bm-features { grid-template-columns: 1fr; }

  .bm-footer__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }

  .bm-footer__brand {
    grid-column: 1 / -1;
  }

  .bm-footer__newsletter-form {
    flex-direction: column;
  }

  .bm-footer__newsletter-btn {
    width: 100%;
    padding: 14px;
    text-align: center;
  }

  .bm-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bm-form__row {
    grid-template-columns: 1fr;
  }

  .bm-product-gallery {
    grid-template-columns: 1fr;
  }

  .bm-product-gallery__thumbs {
    flex-direction: row;
    order: 2;
  }

  .bm-product-gallery__main {
    order: 1;
  }

  .bm-product-info {
    padding-left: 0;
  }
}

/* ============================================================
   RESPONSIVE — 480px Mobile
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --container-pad: 0 20px;
    --section-pad: 56px 0;
  }

  .bm-header__inner {
    padding: 0 20px;
    height: 64px;
  }

  .bm-page-body {
    padding-top: calc(64px + var(--bm-announcement-h));
  }

  .bm-grid-4 { grid-template-columns: 1fr; }

  .bm-hero {
    min-height: 100svh;
  }

  .bm-hero__content {
    padding: 0 20px;
  }

  .bm-hero__title {
    font-size: 2.4rem;
  }

  .bm-hero__subtitle {
    font-size: 0.95rem;
  }

  .bm-btn {
    padding: 14px 28px;
    font-size: 0.75rem;
  }

  .bm-mobile-nav {
    width: 100%;
    right: -100%;
  }

  .bm-testimonial {
    padding: 28px 20px;
  }

  .bm-feature {
    padding: 28px 24px;
  }

  .bm-ingredient-card {
    padding: 20px;
  }

  .bm-filter-bar {
    gap: 8px;
  }

  .bm-filter-btn {
    padding: 8px 16px;
    font-size: 0.7rem;
  }
}

/* ── Native WooCommerce buttons (Cart, Checkout, My Account) ──
   These pages use WooCommerce's own unstyled templates (deliberately — see rebuild/DEPLOY.md),
   which default to WooCommerce's own brand purple (#7f54b3) on the primary "alt" buttons
   ("Proceed to Checkout", "Place Order", etc). Restyled here to match the site's brand buttons
   so native pages don't look like a different, off-brand product. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 16px 36px;
  border-radius: 0;
  transition: all var(--transition-base);
  background-color: transparent;
  color: var(--bm-green);
  border: 1px solid var(--bm-green);
  box-shadow: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--bm-green);
  color: var(--bm-cream);
  border-color: var(--bm-green);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: var(--bm-green) !important;
  color: var(--bm-cream) !important;
  border: 1px solid var(--bm-green);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
  background-color: var(--bm-green-footer) !important;
  color: var(--bm-cream) !important;
  border-color: var(--bm-green-footer);
}

.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce input.button.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce input.button:disabled {
  opacity: 0.5;
  background-color: var(--bm-cream-dark) !important;
  color: var(--bm-text-light) !important;
  border-color: var(--bm-border);
}

/* Price-range slider (variable product filter widget) — same purple default, fixed defensively
   in case a price filter is added later even though it's not currently used on this site. */
.woocommerce .price_slider_amount .button,
.ui-slider .ui-slider-handle,
.ui-slider .ui-slider-range {
  background-color: var(--bm-bronze) !important;
}

/* ── WooCommerce Blocks (Cart & Checkout blocks — a separate component system from the
   classic .button/.button.alt templates above, used on /cart/ and /checkout/ by default).
   Falls back to a generic theme navy (#333366) with no brand styling at all otherwise. */
.wc-block-components-button.wp-element-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  border-radius: 0 !important;
  transition: all var(--transition-base) !important;
  background-color: var(--bm-green) !important;
  color: var(--bm-cream) !important;
  border: 1px solid var(--bm-green) !important;
  box-shadow: none !important;
}

.wc-block-components-button.wp-element-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
  background-color: var(--bm-green-footer) !important;
  color: var(--bm-cream) !important;
  border-color: var(--bm-green-footer) !important;
}

.wc-block-components-button.wp-element-button.is-outlined,
.wc-block-components-button.wp-element-button:not(.contained) {
  background-color: transparent !important;
  color: var(--bm-green) !important;
  border: 1px solid var(--bm-green) !important;
}

.wc-block-components-button.wp-element-button.is-outlined:hover,
.wc-block-components-button.wp-element-button:not(.contained):hover {
  background-color: var(--bm-green) !important;
  color: var(--bm-cream) !important;
}

/* Links / accents inside the WC Blocks cart & checkout (coupon toggle, item remove, etc) —
   same generic default-theme color problem as the buttons above. */
.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a,
.wc-block-components-totals-coupon-link,
.wc-block-components-product-name {
  color: var(--bm-green) !important;
}

.wp-block-woocommerce-cart a:hover,
.wp-block-woocommerce-checkout a:hover {
  color: var(--bm-bronze) !important;
}

/* WooCommerce's built-in "New in Store" suggestions shown on an empty cart use a plain
   WordPress core Buttons block (.wp-block-button__link) for "Add to cart" — untouched by any
   of our component styles, so it falls back to the block editor's own dark default background,
   while the generic .wp-block-woocommerce-cart a rule above (meant for the coupon/remove text
   links) paints its text brand green — dark green on dark charcoal, effectively unreadable. */
.wp-block-woocommerce-empty-cart-block .wp-block-button__link {
  background-color: var(--bm-green) !important;
  color: var(--bm-cream) !important;
  border: 1px solid var(--bm-green) !important;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
  background-color: var(--bm-green-footer) !important;
  color: var(--bm-cream) !important;
}

/* ────────────────────────────────────────
   BACK TO TOP
──────────────────────────────────────── */
/* bottom offset (90px, not 24px) intentionally clears #bm-toast-region below — both
   are anchored to the same bottom-right corner, and a visible add-to-cart toast would
   otherwise sit directly on top of this button. */
.bm-back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bm-green);
  color: var(--bm-cream);
  border: 1px solid rgba(246, 241, 234, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-medium), 0 0 0 1px rgba(45, 59, 31, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base), background-color var(--transition-base);
}

.bm-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bm-back-to-top:hover {
  background: var(--bm-bronze);
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .bm-back-to-top {
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ────────────────────────────────────────
   TOAST NOTIFICATIONS (add-to-cart, etc.)
──────────────────────────────────────── */
#bm-toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.bm-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bm-green);
  color: var(--bm-cream);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: auto;
}

.bm-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-toast--error {
  background: #B04A4A;
}

.bm-toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(246, 241, 234, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.bm-toast__msg {
  flex: 1;
}

.bm-toast__action {
  flex-shrink: 0;
  color: var(--bm-gold-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: underline;
  white-space: nowrap;
}

.bm-toast__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(246, 241, 234, 0.6);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 4px;
}

.bm-toast__close:hover {
  color: var(--bm-cream);
}

@media (max-width: 480px) {
  #bm-toast-region {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* ── Confidence Hub: "View All" + archive pagination ── */
.bm-hub-view-all {
  text-align: center;
  margin-top: 56px;
}

.bm-hub-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.bm-hub-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.bm-hub-pagination .page-numbers li {
  display: flex;
}

.bm-hub-pagination a.page-numbers,
.bm-hub-pagination span.page-numbers {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 40px;
  border: 1px solid var(--bm-border);
  color: var(--bm-text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-base);
}

.bm-hub-pagination a.page-numbers:hover {
  background: var(--bm-green);
  color: var(--bm-cream);
  border-color: var(--bm-green);
}

.bm-hub-pagination span.page-numbers.current {
  background: var(--bm-green);
  color: var(--bm-cream);
  border-color: var(--bm-green);
}

.bm-hub-pagination span.page-numbers.dots {
  border: none;
  color: var(--bm-text-light);
}

/* ── Single blog post (single.php) — reuses .bm-page-hero for the header; this is just
   the article body's reading typography. Deliberately narrower than .bm-container so
   long-form copy stays readable, same reasoning as .bm-policy-content. ── */
.bm-single-post {
  background: var(--bm-cream);
  padding: 72px 0 100px;
}

.bm-single-post__container {
  max-width: 760px;
}

.bm-single-post__body {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--bm-text-mid);
  line-height: 1.85;
}

.bm-single-post__body > * + * {
  margin-top: 1.5em;
}

.bm-single-post__body h2,
.bm-single-post__body h3,
.bm-single-post__body h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--bm-green);
  line-height: 1.3;
}

.bm-single-post__body h2 { font-size: 1.7rem; margin-top: 2em; }
.bm-single-post__body h3 { font-size: 1.35rem; margin-top: 1.75em; }
.bm-single-post__body h4 { font-size: 1.1rem; margin-top: 1.5em; }

.bm-single-post__body a {
  color: var(--bm-bronze);
  text-decoration: underline;
  text-decoration-color: rgba(176, 122, 74, 0.35);
  text-underline-offset: 3px;
}

.bm-single-post__body a:hover {
  text-decoration-color: var(--bm-bronze);
}

.bm-single-post__body ul,
.bm-single-post__body ol {
  padding-left: 1.4em;
}

.bm-single-post__body li + li {
  margin-top: 0.5em;
}

.bm-single-post__body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.bm-single-post__body blockquote {
  border-left: 3px solid var(--bm-bronze);
  padding-left: 1.25em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bm-green);
}

.bm-single-post__pages {
  font-size: 0.9rem;
  color: var(--bm-text-mid);
}

.bm-single-post__back {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--bm-border);
}

@media (max-width: 640px) {
  .bm-single-post { padding: 48px 0 72px; }
  .bm-single-post__body h2 { font-size: 1.4rem; }
  .bm-single-post__body h3 { font-size: 1.2rem; }
}

/* ── Blog comment form (WordPress core markup via comments_template() in single.php) —
   unstyled by default, so it renders in the browser's plain form styling with WP's default
   pink submit button. Reuses the same input/label/button treatment as .bm-form__* (Contact
   page) and .woocommerce-Input (My Account) for a consistent look across every form on
   the site. */
.comment-respond {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--bm-border);
}

.comment-reply-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--bm-green);
}

.comment-reply-title small a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bm-bronze);
  margin-left: 12px;
}

.comment-notes,
.comment-form p.logged-in-as {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--bm-text-light);
  margin: 16px 0 28px;
}

.comment-form p {
  margin: 0 0 20px;
}

.comment-form label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bm-green);
  margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bm-text-dark);
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  outline: none;
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  -webkit-appearance: none;
}

.comment-form textarea {
  resize: vertical;
  min-height: 140px;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--bm-bronze);
  box-shadow: 0 0 0 3px rgba(176, 122, 74, 0.1);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-form-cookies-consent input {
  margin-top: 4px;
  accent-color: var(--bm-bronze);
}

.comment-form-cookies-consent label {
  display: inline;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bm-text-mid);
}

.comment-form .form-submit {
  margin-top: 8px;
}

.comment-form #submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 16px 36px;
  border-radius: 0;
  background-color: var(--bm-green);
  color: var(--bm-cream);
  border: 1px solid var(--bm-green);
  cursor: pointer;
  transition: all var(--transition-base);
}

.comment-form #submit:hover {
  background-color: var(--bm-green-footer);
  border-color: var(--bm-green-footer);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* Existing comment thread, if any comments have been posted */
.comment-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.comment-list .comment-body {
  padding: 24px 0;
  border-bottom: 1px solid var(--bm-border);
}

.comment-list .comment-author img {
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 12px;
}

.comment-list .comment-author .fn {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--bm-green);
}

.comment-list .comment-metadata {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--bm-text-light);
  margin: 4px 0 12px;
}

.comment-list .comment-metadata a {
  color: inherit;
}

.comment-list .comment-content p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bm-text-mid);
  line-height: 1.75;
}

.comment-list .reply a {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bm-bronze);
}

@media (max-width: 640px) {
  .comment-respond { margin-top: 48px; padding-top: 32px; }
  .comment-reply-title { font-size: 1.3rem; }
}

/* ── WooCommerce purchase flow, part 2: the on-screen receipt (order-received) and My
   Account — both classic WooCommerce templates (order-confirmation still renders through
   the classic checkout/thankyou.php + myaccount/*.php on this theme, verified against the
   actual rendered markup, not just the template source), previously untouched by any brand
   CSS at all — default WooCommerce/browser styling end to end. Container/spacing added
   here since neither page sits inside an Elementor page-hero wrapper. ── */
.woocommerce-order-received .woocommerce,
.woocommerce-order-pay .woocommerce,
.woocommerce-account .woocommerce {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

.woocommerce-thankyou-order-received {
  background: var(--bm-green);
  color: var(--bm-cream);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  list-style: none;
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 40px;
}

.woocommerce-order-overview li {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bm-text-light);
}

.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--bm-green);
}

.woocommerce-order-details__title,
.woocommerce-column__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--bm-green);
  margin-bottom: 20px;
}

.woocommerce-table--order-details,
.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--bm-text-mid);
  margin-bottom: 40px;
}

.woocommerce-table--order-details th,
.shop_table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bm-bronze);
  padding: 12px 0;
  border-bottom: 1px solid var(--bm-border);
}

.woocommerce-table--order-details td,
.shop_table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--bm-border);
}

.woocommerce-table--order-details tfoot th,
.woocommerce-table--order-details tfoot td,
.shop_table tfoot th,
.shop_table tfoot td {
  border-bottom: none;
}

.woocommerce-table--order-details tr:last-child td,
.woocommerce-table--order-details tr:last-child th {
  border-bottom: none;
}

.order-again .button {
  margin-top: 12px;
}

.woocommerce-customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.woocommerce-customer-details address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--bm-text-mid);
  line-height: 1.7;
  background: var(--bm-cream-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* My Account */
.woocommerce-account .woocommerce {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.woocommerce-MyAccount-navigation {
  flex: 0 0 220px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.woocommerce-MyAccount-navigation li a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bm-text-mid);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-base);
}

.woocommerce-MyAccount-navigation li a:hover {
  background: var(--bm-cream-dark);
  color: var(--bm-green);
}

.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--bm-green);
  color: var(--bm-cream);
}

.woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
}

.woocommerce-MyAccount-content p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bm-text-mid);
  line-height: 1.75;
  margin-bottom: 1em;
}

.woocommerce-MyAccount-content a {
  color: var(--bm-bronze);
}

.woocommerce-orders-table__cell-order-status {
  text-transform: capitalize;
}

.woocommerce-pagination {
  margin-top: 24px;
}

.woocommerce-pagination .woocommerce-button {
  font-size: 0.75rem;
}

/* Login / register / lost-password / edit-account forms — reuses the same look as
   .bm-form__input on the Contact page for consistency, applied to WooCommerce's own
   form classes since My Account markup doesn't use the .bm-form__* classes. */
.woocommerce-form-row label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bm-green);
  margin-bottom: 8px;
}

.woocommerce-Input,
.woocommerce-form-login .input-text,
.woocommerce-form-register .input-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--bm-text-dark);
  background: var(--bm-white);
  border: 1px solid var(--bm-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  -webkit-appearance: none;
}

.woocommerce-Input:focus {
  border-color: var(--bm-bronze);
  box-shadow: 0 0 0 3px rgba(176, 122, 74, 0.1);
}

.woocommerce-form-row {
  margin-bottom: 20px;
}

.woocommerce-LostPassword {
  font-size: 0.85rem;
  margin-top: 16px;
}

.woocommerce-LostPassword a {
  color: var(--bm-bronze);
}

/* Notice boxes (order confirmation extras, My Account "no orders yet", cart/checkout
   validation, login errors) — WooCommerce's default theme CSS renders these with a blue
   accent bar (.woocommerce-info/.woocommerce-message) or red (.woocommerce-error),
   generic colors that don't exist anywhere else in this palette. */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--bm-green) !important;
  background-color: var(--bm-cream-dark);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--bm-green) !important;
}

.woocommerce-error {
  border-top-color: #b3492e !important;
  background-color: var(--bm-cream-dark);
}

.woocommerce-error::before {
  color: #b3492e !important;
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 24px;
  }

  .woocommerce-MyAccount-navigation {
    flex: 1 1 auto;
    width: 100%;
  }

  .woocommerce-customer-details {
    grid-template-columns: 1fr;
  }
}

