/* bb-components.css — Balance Bitez Component Library
 * Reads exclusively from CSS variables. Zero hardcoded colors.
 * Load AFTER theme.css on every customer-facing page.
 */

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes bb-slide-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Layout ─────────────────────────────────────────────── */
.bb-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.bb-section {
  padding: var(--section-gap, 80px) 0;
}
.bb-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.bb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .bb-grid-2, .bb-grid-3 { grid-template-columns: 1fr; }
}

/* ─── Topbar ─────────────────────────────────────────────── */
.bb-topbar {
  position: sticky;
  top: 0;
  z-index: 201;
  background: var(--choc);
  color: var(--cream);
  text-align: center;
  padding: var(--topbar-padding, 8px 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.bb-topbar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-soft, #D88C68);
  line-height: 1.2;
}
.bb-topbar-label:empty { display: none; }
.bb-topbar-heading {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.3;
}
.bb-topbar-heading:empty { display: none; }
.bb-topbar-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
.bb-topbar-text:empty { display: none; }
.bb-topbar-text b {
  color: var(--clay-soft, #D88C68);
}

/* ─── Nav ────────────────────────────────────────────────── */
.bb-nav {
  position: sticky;
  top: var(--topbar-height, 36px);
  z-index: 200;
  background: var(--nav-bg, var(--cream));
  border-bottom: 1px solid var(--petal);
  height: var(--nav-height, 64px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  transition: background 0.35s ease, border-color 0.35s ease;
}
/* Transparent nav — fixed so it overlays the hero, fades in solid on scroll/hover */
body[data-nav-transparent="true"] .bb-nav {
  position: fixed;
  top: var(--topbar-height, 0px);
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
}
/* Push hero text down so it clears the fixed nav */
body[data-nav-transparent="true"] .bb-hero-text {
  padding-top: calc(var(--nav-height, 64px) + 20px);
}
body[data-nav-transparent="true"] .bb-nav .bb-nav-brand,
body[data-nav-transparent="true"] .bb-nav .bb-nav-links a,
body[data-nav-transparent="true"] .bb-nav .bb-nav-account-icon,
body[data-nav-transparent="true"] .bb-nav .bb-hamburger,
body[data-nav-transparent="true"] .bb-nav .bb-mobile-account {
  color: #fff;
}
body[data-nav-transparent="true"] .bb-nav .bb-nav-links a:hover,
body[data-nav-transparent="true"] .bb-nav .bb-nav-links a.active {
  color: rgba(255,255,255,0.7);
}
/* Solid on scroll or hover */
body[data-nav-transparent="true"].nav-scrolled .bb-nav,
body[data-nav-transparent="true"] .bb-nav:hover {
  background: var(--nav-bg, var(--cream));
  border-bottom-color: var(--petal);
}
body[data-nav-transparent="true"].nav-scrolled .bb-nav .bb-nav-brand,
body[data-nav-transparent="true"].nav-scrolled .bb-nav .bb-nav-links a,
body[data-nav-transparent="true"].nav-scrolled .bb-nav .bb-nav-account-icon,
body[data-nav-transparent="true"].nav-scrolled .bb-nav .bb-hamburger,
body[data-nav-transparent="true"] .bb-nav:hover .bb-nav-brand,
body[data-nav-transparent="true"] .bb-nav:hover .bb-nav-links a,
body[data-nav-transparent="true"] .bb-nav:hover .bb-nav-account-icon,
body[data-nav-transparent="true"] .bb-nav:hover .bb-hamburger {
  color: var(--ink);
}
body[data-nav-transparent="true"].nav-scrolled .bb-nav .bb-nav-links a:hover,
body[data-nav-transparent="true"].nav-scrolled .bb-nav .bb-nav-links a.active,
body[data-nav-transparent="true"] .bb-nav:hover .bb-nav-links a:hover,
body[data-nav-transparent="true"] .bb-nav:hover .bb-nav-links a.active {
  color: var(--clay-soft);
}
.bb-nav-brand {
  font-family: var(--f-display, 'Fraunces', serif);
  font-weight: 500;
  font-size: var(--brand-size, 1.1rem);
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.bb-nav-brand span { color: var(--clay-soft); font-style: italic; }
.bb-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 0;
}
.bb-nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  transition: color calc(0.2s * var(--animation-speed, 1));
}
.bb-nav-links a:hover { color: var(--clay-soft); }
.bb-nav-links a.active { color: var(--clay-soft); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.bb-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.bb-nav-right a {
  color: var(--mist);
  text-decoration: none;
  transition: color calc(0.2s * var(--animation-speed, 1));
}
.bb-nav-right a:hover { color: var(--clay-soft); }
.bb-nav-account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: color calc(0.2s * var(--animation-speed, 1)), background calc(0.2s * var(--animation-speed, 1));
}
.bb-nav-account-icon:hover { color: var(--clay-soft) !important; background: var(--petal); }
.bb-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--ink);
  padding: 4px 8px;
  line-height: 1;
  flex-shrink: 0;
}
.bb-mobile-cart {
  display: flex;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
  align-items: center;
  flex-shrink: 0;
}
/* standalone account + cart icons (direct children of nav) — mobile only */
.bb-mobile-account {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  padding: 4px 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.bb-mobile-account:hover { color: var(--clay-soft); }
.bb-nav > .bb-mobile-cart {
  display: none;
}
.bb-mobile-cart-badge {
  position: absolute;
  top: -2px;
  right: 0px;
  background: var(--rose);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: .6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}
/* bb-nav-mobile removed — replaced by bb-nav-drawer */
.bb-nav-mobile { display: none !important; }

/* ─── Nav Drawer ──────────────────────────────────────── */
.bb-nav-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:1400; opacity:0; pointer-events:none; transition:opacity .25s; }
.bb-nav-backdrop.open { opacity:1; pointer-events:auto; }
.bb-nav-drawer { position:fixed; top:0; right:0; bottom:0; width:min(320px,88vw); background:var(--cream); z-index:1401; transform:translateX(100%); transition:transform .28s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column; box-shadow:-4px 0 24px rgba(0,0,0,.12); }
.bb-nav-drawer.open { transform:translateX(0); }
.bb-nav-drawer-head { display:flex; align-items:center; padding:20px 22px 16px; border-bottom:1px solid var(--petal); gap:8px; }
.bb-nav-drawer-head .bb-nav-brand { flex:1; text-align:center; }
.bb-nav-drawer-links { display:flex; flex-direction:column; padding:12px 0; flex:1; overflow-y:auto; }
.bb-nav-drawer-links a { display:block; padding:14px 24px; font-size:1rem; font-weight:600; color:var(--ink); text-decoration:none; border-left:3px solid transparent; transition:all .15s; }
.bb-nav-drawer-links a:hover,
.bb-nav-drawer-links a.active { color:var(--clay-soft); border-left-color:var(--clay-soft); background:var(--soft); }
.bb-nav-drawer-social { padding:16px 24px; border-top:1px solid var(--petal); display:flex; gap:16px; font-size:1.2rem; }
.bb-nav-drawer-social a { color:var(--mist); transition:color .2s; }
.bb-nav-drawer-social a:hover { color:var(--clay-soft); }
@media (max-width: 768px) {
  .bb-nav-drawer { width:100vw; }
}
@media (max-width: 768px) {
  .bb-nav {
    justify-content: space-between;
    height: var(--nav-height, 64px);
  }
  .bb-nav-links { display: none; }
  .bb-nav-right { display: none; }
  .bb-hamburger {
    display: flex;
    align-items: center;
    order: 1;
  }
  .bb-nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    order: 2;
  }
  .bb-mobile-account {
    display: flex;
    order: 3;
    margin-left: auto;
  }
  .bb-nav > .bb-mobile-cart {
    display: flex;
    order: 4;
    margin-left: 0;
  }
}

/* ─── Hero ───────────────────────────────────────────────── */
.bb-hero {
  background: var(--cream);
  padding: var(--hero-padding-top, 28px) 24px var(--hero-padding-bottom, 40px);
  max-width: 1120px;
  margin: 0 auto;
  min-height: var(--hero-min-height, auto);
}
.bb-hero-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.bb-hero-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--petal);
}
.bb-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--hero-h1-size, clamp(2.4rem, 5vw, 3.8rem));
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.bb-hero h1 em {
  color: var(--rose);
  font-style: normal;
}
.bb-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 20px;
  gap: 24px;
}
.bb-hero-left { flex: 1; }
.bb-hero-sub {
  font-size: 1rem;
  color: var(--mist);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.bb-hero-orb {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--petal), var(--soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 16px 48px rgba(44,30,26,0.12);
  flex-shrink: 0;
}
.bb-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: var(--cs-hs-border-width, 1px) solid var(--cs-hs-border-color, var(--petal));
  border-radius: var(--cs-hs-border-radius, 0);
  background: var(--cs-hs-bg, transparent);
  margin-top: 24px;
  flex-wrap: wrap;
}
body[data-hs-border="none"] .bb-hero-stats { border: none; }
body[data-hs-border="all"] .bb-hero-stats {
  border: var(--cs-hs-border-width, 1px) solid var(--cs-hs-border-color, var(--petal));
  padding: 20px;
}
body[data-hs-border="top-bottom"] .bb-hero-stats {
  border-top: var(--cs-hs-border-width, 1px) solid var(--cs-hs-border-color, var(--petal));
  border-bottom: var(--cs-hs-border-width, 1px) solid var(--cs-hs-border-color, var(--petal));
  padding-bottom: 24px;
}
.bb-hero-stat-n {
  font-family: var(--cs-hs-title-font, var(--font-heading));
  font-size: var(--cs-hs-title-size, 1.6rem);
  font-weight: 800;
  color: var(--cs-hs-title-color, var(--ink));
  line-height: 1;
}
.bb-hero-stat-l {
  font-family: var(--cs-hs-sub-font, inherit);
  font-size: var(--cs-hs-sub-size, 0.72rem);
  color: var(--cs-hs-sub-color, var(--mist));
  margin-top: 3px;
}
@media (max-width: 768px) {
  .bb-hero-row { flex-direction: column-reverse; align-items: flex-start; }
  .bb-hero-orb { width: 90px; height: 90px; font-size: 2.6rem; align-self: flex-end; }
  .bb-hero-stats { gap: 20px; }
  .bb-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
}

/* ─── Cards ──────────────────────────────────────────────── */
.bb-card {
  background: var(--card-bg, #fff);
  border-radius: var(--card-radius, 14px);
  box-shadow: var(--card-shadow);
  transition: box-shadow calc(0.25s * var(--animation-speed, 1)) ease,
              transform calc(0.25s * var(--animation-speed, 1)) ease;
  overflow: hidden;
}
.bb-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.bb-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(145deg, var(--petal), var(--soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.bb-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: background calc(0.2s * var(--animation-speed, 1));
}
.bb-card-wishlist:hover { background: white; }
.bb-card-body { padding: 14px 16px; }
.bb-card-stars {
  font-size: 0.7rem;
  color: var(--gold);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.bb-card-macros {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.bb-card-divider {
  height: 1px;
  background: var(--petal);
  margin: 10px 0;
}
.bb-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bb-card-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

/* ─── Chips ──────────────────────────────────────────────── */
.bb-chip {
  font-size: 0.62rem;
  background: var(--cream);
  color: var(--mist);
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
}

/* ─── Buttons ────────────────────────────────────────────── */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius, 12px);
  padding: 12px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background calc(0.2s * var(--animation-speed, 1)),
              transform calc(0.15s * var(--animation-speed, 1));
}
.bb-btn:hover  { background: var(--btn-hover, var(--berry)); transform: scale(1.03); }
.bb-btn:active { transform: scale(0.97); }
.bb-btn-ghost {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}
.bb-btn-ghost:hover { border-color: var(--btn-hover, var(--berry)); color: var(--btn-hover, var(--berry)); background: transparent; }
.bb-btn-outline {
  background: transparent;
  color: var(--berry);
  border: 2px solid var(--berry);
}
.bb-btn-outline:hover { background: var(--berry); color: #fff; }
.bb-btn-sm {
  font-size: 0.78rem;
  padding: 7px 16px;
}

/* ─── Badges ─────────────────────────────────────────────── */
.bb-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--rose);
  color: #fff;
}
.bb-badge-success { background: var(--sage); }
.bb-badge-muted   { background: var(--petal); color: var(--mist); }

/* ─── Forms ──────────────────────────────────────────────── */
.bb-fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.bb-fg label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bb-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--petal);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color calc(0.2s * var(--animation-speed, 1)),
              box-shadow calc(0.2s * var(--animation-speed, 1));
  box-sizing: border-box;
}
.bb-input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(var(--rose-rgb, 140,58,58), 0.12);
}
.bb-submit {
  width: 100%;
  padding: 13px;
  background: var(--berry);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background calc(0.2s * var(--animation-speed, 1));
}
.bb-submit:hover { background: var(--rose); }

/* ─── Animation: scroll reveal ──────────────────────────── */
/* Elements with data-reveal start hidden; bb-init.js adds .revealed when visible */
.bb-reveal[data-reveal],
.bb-reveal-d1[data-reveal],
.bb-reveal-d2[data-reveal],
.bb-reveal-d3[data-reveal],
.bb-reveal-d4[data-reveal],
.bb-fade[data-reveal] {
  opacity: 0;
}
.bb-reveal.revealed {
  animation: bb-slide-up calc(0.6s * var(--animation-speed, 1))
             var(--animation-easing, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.bb-reveal-d1.revealed { animation: bb-slide-up calc(0.6s * var(--animation-speed, 1)) var(--animation-easing, cubic-bezier(0.16, 1, 0.3, 1)) calc(0.08s * var(--animation-speed, 1)) both; }
.bb-reveal-d2.revealed { animation: bb-slide-up calc(0.6s * var(--animation-speed, 1)) var(--animation-easing, cubic-bezier(0.16, 1, 0.3, 1)) calc(0.16s * var(--animation-speed, 1)) both; }
.bb-reveal-d3.revealed { animation: bb-slide-up calc(0.6s * var(--animation-speed, 1)) var(--animation-easing, cubic-bezier(0.16, 1, 0.3, 1)) calc(0.24s * var(--animation-speed, 1)) both; }
.bb-reveal-d4.revealed { animation: bb-slide-up calc(0.6s * var(--animation-speed, 1)) var(--animation-easing, cubic-bezier(0.16, 1, 0.3, 1)) calc(0.32s * var(--animation-speed, 1)) both; }
.bb-fade.revealed {
  animation: bb-fade-in calc(0.5s * var(--animation-speed, 1)) ease both;
}

@media (prefers-reduced-motion: reduce) {
  .bb-reveal, .bb-reveal-d1, .bb-reveal-d2, .bb-reveal-d3, .bb-reveal-d4,
  .bb-reveal.revealed, .bb-reveal-d1.revealed, .bb-reveal-d2.revealed,
  .bb-reveal-d3.revealed, .bb-reveal-d4.revealed,
  .bb-fade, .bb-fade.revealed {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bb-reveal[data-reveal], .bb-reveal-d1[data-reveal], .bb-reveal-d2[data-reveal],
  .bb-reveal-d3[data-reveal], .bb-reveal-d4[data-reveal], .bb-fade[data-reveal] {
    opacity: 1 !important;
  }
}

/* ─── Footer ─────────────────────────────────────────────── */
.bb-footer {
  background: var(--choc);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
  font-family: var(--font-body);
}
.bb-foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.bb-foot-brand {
  font-family: var(--f-display, 'Fraunces', serif);
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
  display: block;
  margin-bottom: 10px;
}
.bb-foot-brand span {
  color: var(--clay-soft);
  font-style: italic;
}
.bb-foot-desc {
  font-size: 0.83rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}
.bb-foot-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}
.bb-foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-foot-links li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color calc(0.2s * var(--animation-speed, 1));
}
.bb-foot-links li a:hover { color: var(--rose); }
.bb-foot-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 768px) {
  .bb-foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .bb-foot-inner { grid-template-columns: 1fr; }
  .bb-foot-bottom { flex-direction: column; }
}

/* ─── Utilities ──────────────────────────────────────────── */
.bb-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bb-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--petal);
}
.bb-divider {
  height: 1px;
  background: var(--petal);
  margin: 16px 0;
}

/* ─── Trust pill (used in hero + trust strip) ────────────── */
.bb-trust-strip {
  display: grid;
  grid-template-columns: repeat(var(--strip-cols, 4), 1fr);
  gap: 16px;
  padding: 24px 0;
  align-items: start;
}
.bb-trust-pill {
  background: var(--cs-ts-bg, var(--cream));
  border: var(--cs-ts-border-width, 1px) solid var(--cs-ts-border-color, var(--petal));
  border-radius: var(--cs-ts-border-radius, var(--card-radius, 14px));
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--card-shadow);
  min-width: 0;
}
body[data-ts-border="none"] .bb-trust-pill { border: none; }
body[data-ts-border="top"] .bb-trust-pill {
  border: none;
  border-top: var(--cs-ts-border-width, 1px) solid var(--cs-ts-border-color, var(--petal));
}
body[data-ts-border="top-bottom"] .bb-trust-pill {
  border: none;
  border-top: var(--cs-ts-border-width, 1px) solid var(--cs-ts-border-color, var(--petal));
  border-bottom: var(--cs-ts-border-width, 1px) solid var(--cs-ts-border-color, var(--petal));
}
.bb-trust-icon { font-size: var(--strip-icon-size, 1.4rem); margin-bottom: 6px; }
.bb-trust-title { font-size: var(--strip-title-size, 0.78rem); font-weight: 700; color: var(--cs-ts-title-color, var(--ink)); margin-bottom: 2px; }
.bb-trust-tag   { display: inline-block; background: rgba(212,175,119,0.18); color: var(--berry, #5C2D3C); font-size: var(--strip-tag-size, 0.62rem); font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(212,175,119,0.4); margin-bottom: 4px; }
.bb-trust-sub   { font-size: var(--strip-sub-size, 0.68rem); color: var(--cs-ts-sub-color, var(--mist)); }
.strip-icon-svg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: var(--strip-icon-circle-bg, rgba(212,175,119,0.25));
}
.strip-icon-svg svg { width: var(--strip-icon-size, 1.4rem); height: var(--strip-icon-size, 1.4rem); flex-shrink: 0; }
.strip-icon-number {
  display: block; font-size: 0.75rem; font-weight: 600; color: var(--clay-soft, #D88C68);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px;
  text-align: left; font-family: 'Georgia', 'Garamond', serif;
}
@media (max-width: 767px) {
  .bb-trust-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bb-trust-strip { grid-template-columns: 1fr; }
}

/* ─── Trust strip carousel mode ──────────────────────────────── */
.bb-trust-strip--carousel {
  display: flex;            /* override grid */
  grid-template-columns: unset;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
}
.bb-trust-strip--carousel::-webkit-scrollbar { display: none; }
.bb-trust-strip--carousel .bb-trust-pill {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ─── Trust strip numbering mode ──────────────────────────────── */
.bb-trust-strip--numbering .bb-trust-pill {
  text-align: left;
}
@media (max-width: 767px) {
  .bb-trust-strip--carousel { grid-template-columns: unset; }
  .bb-trust-strip--carousel .bb-trust-pill { flex: 0 0 calc(50% - 8px); }
}

/* ─── Hero — Editorial Two-Column Layout ────────────────────── */
.bb-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: var(--hero-min-height, 520px);
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.bb-hero-text {
  background: var(--cream);
  padding: var(--hero-padding-top, 56px) clamp(32px, 5vw, 64px) var(--hero-padding-bottom, 48px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}
.bb-hero-visual {
  position: relative;
  background: var(--hero-photo, linear-gradient(135deg, var(--petal), var(--soft)));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bb-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to right, var(--cream), transparent);
  pointer-events: none;
  z-index: 1;
}
.bb-hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}
.bb-hero-text h1 em {
  font-style: italic;
  color: var(--rose);
  display: block;
}
.bb-hero-text .bb-hero-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.bb-hero-text .bb-hero-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(140,58,58,0.3), transparent);
  max-width: 80px;
}
.bb-hero-text .bb-hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--mist);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 380px;
}
.bb-hero-text .bb-hero-stats {
  margin-top: 28px;
  padding-top: 20px;
  border-top: var(--cs-hs-border-width, 1px) solid var(--cs-hs-border-color, var(--petal));
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.bb-hero-text .bb-hero-stat-n {
  font-family: var(--cs-hs-title-font, var(--font-heading));
  font-size: var(--cs-hs-title-size, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cs-hs-title-color, var(--ink));
}
.bb-hero-text .bb-hero-stat-l {
  font-family: var(--cs-hs-sub-font, inherit);
  font-size: var(--cs-hs-sub-size, 0.62rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cs-hs-sub-color, var(--mist));
  margin-top: 4px;
}
.bb-hero-float {
  position: absolute;
  z-index: 2;
  border-radius: var(--radius, 12px);
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(44,30,26,0.12);
}
.bb-hero-float--a {
  bottom: 28px;
  left: -8px;
  background: white;
}
.bb-hero-float--a .bb-hero-float-n {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.bb-hero-float--a .bb-hero-float-l {
  font-size: 0.58rem;
  color: var(--mist);
  margin-top: 2px;
  font-family: var(--font-body);
}
.bb-hero-float--b {
  top: 28px;
  right: 16px;
  background: var(--berry);
  color: white;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Full-bleed mode ─────────────────────────────────────────── */
body[data-hero-style="full-bleed"] .bb-hero {
  background: var(--hero-photo, linear-gradient(var(--grad-hero-dir, 130deg), var(--grad-hero-start), var(--grad-hero-end)));
  background-size: cover;
  background-position: center;
}
body[data-hero-style="full-bleed"] .bb-hero-text {
  background: var(--hero-overlay, linear-gradient(105deg, rgba(44,30,26,0.82) 0%, rgba(44,30,26,0.4) 60%, transparent 100%));
  color: var(--hero-text-color, white);
}
body[data-hero-style="full-bleed"] .bb-hero-text h1 { color: var(--hero-text-color, white); }
body[data-hero-style="full-bleed"] .bb-hero-text h1 em { color: var(--hero-text-color, white); }
body[data-hero-style="full-bleed"] .bb-hero-text .bb-hero-label { color: var(--hero-badge-color, var(--hero-text-secondary, rgba(255,255,255,0.65))); }
body[data-hero-style="full-bleed"] .bb-hero-text .bb-hero-label::after {
  background: linear-gradient(to right, var(--hero-text-secondary, rgba(255,255,255,0.2)), transparent);
}
body[data-hero-style="full-bleed"] .bb-hero-text .bb-hero-sub { color: var(--hero-text-secondary, rgba(255,255,255,0.75)); }
body[data-hero-style="full-bleed"] .bb-hero-text .bb-hero-stats { border-top-color: var(--hero-text-secondary, rgba(255,255,255,0.15)); }
body[data-hero-style="full-bleed"] .bb-hero-text .bb-hero-stat-n { color: var(--hero-text-color, white); }
body[data-hero-style="full-bleed"] .bb-hero-text .bb-hero-stat-l { color: var(--hero-text-secondary, rgba(255,255,255,0.6)); }
body[data-hero-style="full-bleed"] .bb-hero-visual { background: none; }
body[data-hero-style="full-bleed"] .bb-hero-visual::before { display: none; }
body[data-hero-style="full-bleed"] .bb-hero-orb { display: none; }

/* ── Hero text centering toggle ──────────────────────────────── */
body[data-hero-center="true"] .bb-hero { grid-template-columns: 1fr; }
body[data-hero-center="true"] .bb-hero-text { text-align: center; align-items: center; }
body[data-hero-center="true"] .bb-hero-text .bb-hero-label::after { display: none; }
body[data-hero-center="true"] .bb-hero-visual { display: none; }

/* ── Hero buttons wrapper ────────────────────────────────────── */
.bb-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
}
body[data-hero-btn-layout="stacked"] .bb-hero-btns { flex-wrap: wrap; }
@media (max-width: 480px) {
  .bb-hero-btns .bb-btn { font-size: 0.82rem; padding: 10px 16px; }
}

/* ── Hero mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .bb-hero { grid-template-columns: 1fr; }
  .bb-hero-visual { order: -1; min-height: var(--hero-mobile-img-height, 220px); }
  .bb-hero-text { padding: var(--hero-padding-top, 40px) 24px var(--hero-padding-bottom, 28px); }
  .bb-hero-visual::before { display: none; }
  body[data-hero-style="full-bleed"] .bb-hero-text {
    background: linear-gradient(180deg, rgba(44,30,26,0.85) 0%, rgba(44,30,26,0.6) 100%);
  }
}

/* ─── Minimal Product Card tweaks ────────────────────────────── */
.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.pc-from {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.pc-sizes-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--mist);
}
.pc-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44,30,26,0.12);
  color: var(--mist);
  transition: color 0.15s;
}
.pc-wish:hover { color: var(--rose); }
.pc-wish.wishlisted { color: var(--rose); font-size: 1.1rem; }
.pc .ab {
  background: var(--rose);
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
}
.pc .ab:hover { background: var(--btn-hover, var(--berry)); }

/* ─── Size Drawer ────────────────────────────────────────────── */
/* Mobile: scrim is backdrop only, drawer slides up from bottom */
.sd-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,30,26,0.5);
  z-index: 1100;
  align-items: flex-end;
  justify-content: center;
}
.sd-scrim.open { display: flex; }
.sd-drawer {
  width: 100%;
  background: white;
  border-radius: calc(var(--radius, 12px) * 1.5) calc(var(--radius, 12px) * 1.5) 0 0;
  padding: 20px 20px 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  max-height: 95vh;
  overflow-y: auto;
}
.sd-drawer.open { transform: translateY(0); }

/* Desktop: scrim centers the drawer like a modal */
@media (min-width: 600px) {
  .sd-scrim {
    align-items: center;
  }
  .sd-drawer {
    width: 480px;
    max-height: none;
    overflow-y: visible;
    border-radius: calc(var(--radius, 12px) * 1.5);
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.25s;
  }
  .sd-drawer.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}
.sd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sd-header-info { display: flex; align-items: center; gap: 12px; }
.sd-thumb {
  width: 56px;
  height: 56px;
  border-radius: calc(var(--radius, 12px) * 0.75);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sd-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.sd-macro {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--mist);
  margin-top: 3px;
}
.sd-close {
  background: var(--soft);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.sd-section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
  margin-bottom: 10px;
}
.sd-sizes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sd-size-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--petal);
  border-radius: var(--radius, 12px);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.sd-size-row:hover { border-color: var(--rose); }
.sd-size-row.selected { border-color: var(--berry); background: var(--soft); }
.sd-row-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}
.sd-row-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.sd-row-save {
  background: var(--rose);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.sd-row-sub {
  font-size: 0.72rem;
  color: var(--mist);
  grid-column: 1 / -1;
}
.sd-sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--petal);
  border-radius: var(--radius, 12px);
  margin-bottom: 8px;
}
.sd-sub-left { flex: 1; }
.sd-sub-title { font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.sd-sub-desc { font-size: 0.7rem; color: var(--mist); margin-top: 2px; }
.sd-toggle {
  width: 44px;
  height: 26px;
  background: var(--petal);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sd-toggle.on { background: var(--rose); }
.sd-toggle-knob {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.sd-toggle.on .sd-toggle-knob { transform: translateX(18px); }
.sd-sub-freq { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding: 0 4px; }
.sd-freq-pill {
  padding: 7px 16px;
  border: 1.5px solid var(--petal);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--mist);
  white-space: nowrap;
}
.sd-freq-pill.selected { border-color: var(--rose); background: var(--rose); color: white; }
.sd-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  margin-bottom: 4px;
  border-top: 1px solid var(--petal);
  border-bottom: 1px solid var(--petal);
}
.sd-qty-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.sd-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sd-qty-ctrl span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}
.sd-qb {
  background: var(--cream);
  border: 1.5px solid var(--petal);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
  color: var(--ink);
}
.sd-qb:hover { border-color: var(--rose); color: var(--rose); }
.sd-add-btn {
  width: 100%;
  background: var(--rose);
  color: white;
  border: none;
  border-radius: calc(var(--radius, 12px) * 1.25);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
  margin-bottom: 14px;
}
.sd-add-btn:hover { background: var(--btn-hover, var(--berry)); }
.sd-add-btn-sold,
.sd-add-btn-sold:hover {
  background: #9e9e9e;
  cursor: not-allowed;
  opacity: 0.75;
}
.sd-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--mist);
  flex-wrap: wrap;
}

/* Drawer interactive focus styles */
.sd-size-row:focus-visible,
.sd-freq-pill:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.sd-close:focus-visible,
.sd-add-btn:focus-visible,
.sd-toggle:focus-visible,
.pc-wish:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* ─── Scrolling Strip Header Layouts ─────────────────────────── */
/* Default: center layout (stacked vertically) */
#bb-ss-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
#bb-ss-header .lbl { font-size: var(--strip-label-size, 0.7rem); }
#bb-ss-header .ttl { font-size: var(--strip-heading-size, 2rem); }
#bb-ss-header .sub { font-size: var(--strip-subtitle-size, 0.95rem); }

/* Left 1/3: Label+Heading on left (1/3), Subtitle on right (2/3) */
#bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
  text-align: left;
}
#bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header .lbl,
#bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header .ttl {
  grid-column: 1;
  text-align: left;
}
#bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header .sub {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  text-align: left;
}

/* Left 2/3: Label+Heading on left (2/3), Subtitle on right (1/3) */
#bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  text-align: left;
}
#bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header .lbl,
#bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header .ttl {
  grid-column: 1;
  text-align: left;
}
#bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header .sub {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  text-align: left;
}

@media (max-width: 767px) {
  #bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header,
  #bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  #bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header .lbl,
  #bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header .ttl,
  #bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header .lbl,
  #bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header .ttl {
    text-align: center;
  }
  #bb-vis-strip[data-strip-header-layout="left-1-3"] #bb-ss-header .sub,
  #bb-vis-strip[data-strip-header-layout="left-2-3"] #bb-ss-header .sub {
    grid-column: 1;
    grid-row: auto;
    align-items: auto;
    text-align: center;
  }
}

/* ─── Products Section Font Sizing ──────────────────────────────────────────── */
#products .lbl {
  font-size: var(--prod-label-size, 0.75rem);
}
#products .ttl {
  font-size: var(--prod-heading-size, 2.2rem);
}
#products .sub {
  font-size: var(--prod-subtitle-size, 0.95rem);
}
