/* ─────────────────────────────────────────────────────────────────
   BCF Components — Step 1 surface

   Buttons (.bcf-btn)
   Cards (.bcf-card)
   Sections (.bcf-section)
   Nav (.bcf-nav)
   Footer (.bcf-footer)

   Field cards + overlays + modals + banners arrive in Step 2.
   ───────────────────────────────────────────────────────────────── */


/* ─────────────────────────────────────────────────────────────────
   .bcf-btn
   Variants:  primary, secondary, ghost, danger, dark
   Sizes:     sm (36px), md (44px, default), lg (52px)
   Modifiers: block, pill, with-icon
   States:    :hover, :focus-visible, :disabled, [aria-busy="true"]
   ───────────────────────────────────────────────────────────────── */

.bcf-btn {
  --btn-height: 44px;
  --btn-pad-x:  20px;
  --btn-radius: var(--r-md);
  --btn-fs:     var(--fs-base);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  font-family: var(--ff-body);
  font-size: var(--btn-fs);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast);
}

.bcf-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.bcf-btn:disabled,
.bcf-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state — show spinner, hide label */
.bcf-btn[aria-busy="true"] {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.bcf-btn[aria-busy="true"]::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  color: var(--text-on-dark);
  animation: bcf-spin 600ms linear infinite;
}
.bcf-btn--secondary[aria-busy="true"]::after,
.bcf-btn--ghost[aria-busy="true"]::after { color: var(--text-primary); }

@keyframes bcf-spin { to { transform: rotate(360deg); } }

/* Sizes */
.bcf-btn--sm { --btn-height: 36px; --btn-pad-x: 14px; --btn-fs: var(--fs-sm); }
.bcf-btn--lg { --btn-height: 52px; --btn-pad-x: 28px; --btn-fs: var(--fs-lg); }

/* Modifiers */
.bcf-btn--block { display: flex; width: 100%; }
.bcf-btn--pill  { border-radius: var(--r-pill); }

/* Variant: primary — amber CTA */
.bcf-btn--primary {
  background: var(--cta-bg);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-1);
}
.bcf-btn--primary:hover {
  background: var(--cta-bg-hover);
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.bcf-btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-1); }

/* Variant: secondary — solid ink */
.bcf-btn--secondary {
  background: var(--bcf-ink);
  color: var(--text-on-dark);
}
.bcf-btn--secondary:hover {
  background: #1e293b;
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* Variant: ghost — transparent, border on hover */
.bcf-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.bcf-btn--ghost:hover {
  background: var(--bg-section);
  color: var(--text-primary);
  border-color: var(--text-tertiary);
}

/* Variant: ghost on dark backgrounds */
.bcf-btn--ghost-on-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.25);
}
.bcf-btn--ghost-on-dark:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.55);
}

/* Variant: danger */
.bcf-btn--danger { background: var(--bcf-danger); color: var(--text-on-dark); }
.bcf-btn--danger:hover { background: #dc2626; color: var(--text-on-dark); transform: translateY(-1px); box-shadow: var(--shadow-2); }


/* ─────────────────────────────────────────────────────────────────
   .bcf-card
   Variants:  default (white), featured (amber accent), dark
   Modifiers: tight (16px pad), roomy (32px pad), interactive (hover lift)
   ───────────────────────────────────────────────────────────────── */

.bcf-card {
  --card-pad: var(--sp-5);

  position: relative;
  display: block;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: var(--card-pad);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.bcf-card--tight { --card-pad: var(--sp-4); }
.bcf-card--roomy { --card-pad: var(--sp-6); }

.bcf-card--interactive { cursor: pointer; }
.bcf-card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
  border-color: var(--text-tertiary);
}
.bcf-card--interactive:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), var(--shadow-2);
}

.bcf-card--featured {
  border-color: var(--cta-bg);
  box-shadow: var(--shadow-2), var(--shadow-glow);
}
.bcf-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--bcf-amber) 0%, var(--bcf-gold) 100%);
  z-index: -1;
  opacity: 0.06;
  pointer-events: none;
}

.bcf-card--dark {
  background: var(--bg-section-dark);
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.08);
}
.bcf-card--dark p { color: rgba(255,255,255,0.7); }

.bcf-card__eyebrow { margin-bottom: var(--sp-2); }
.bcf-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}
.bcf-card__body { color: var(--text-secondary); }
.bcf-card__footer {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-default);
}
.bcf-card--dark .bcf-card__footer { border-top-color: rgba(255,255,255,0.1); }

.bcf-card__badge {
  position: absolute;
  top: -10px;
  left: var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 24px;
  padding: 0 var(--sp-3);
  background: var(--cta-bg);
  color: var(--text-on-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-1);
}


/* ─────────────────────────────────────────────────────────────────
   .bcf-section
   Variants: default (cream), stone (light gray), dark (slate)
   Vertical rhythm: sp-8 mobile, sp-9 desktop.
   ───────────────────────────────────────────────────────────────── */

.bcf-section {
  padding: var(--sp-8) 0;
  background: var(--bg-page);
}
@media (min-width: 768px) { .bcf-section { padding: var(--sp-9) 0; } }

.bcf-section--stone { background: var(--bg-section); }

.bcf-section--dark {
  background: var(--bg-section-dark);
  color: var(--text-on-dark);
}
.bcf-section--dark h1, .bcf-section--dark h2, .bcf-section--dark h3,
.bcf-section--dark h4, .bcf-section--dark h5, .bcf-section--dark h6 {
  color: var(--text-on-dark);
}
.bcf-section--dark p { color: rgba(255,255,255,0.7); }

/* Inline links in dark sections take the accent color — but buttons
   manage their own color/background, so exclude .bcf-btn or the
   blanket rule overwrites button labels and they vanish on themes
   where the link color matches the button background. */
.bcf-section--dark a:not(.bcf-btn) { color: var(--accent); }
.bcf-section--dark a:not(.bcf-btn):hover { color: var(--bcf-gold); }

.bcf-section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--sp-7);
}
.bcf-section__head .bcf-eyebrow { margin-bottom: var(--sp-3); }
.bcf-section__head h2 { margin-bottom: var(--sp-3); }
.bcf-section__head p {
  font-size: var(--fs-lg);
  margin: 0 auto;
  max-width: 600px;
}


/* ─────────────────────────────────────────────────────────────────
   .bcf-nav  — sticky top bar with mobile drawer
   Mobile/tablet: hamburger drawer slides from right
   Desktop: inline nav, persistent CTA right-aligned
   ───────────────────────────────────────────────────────────────── */

.bcf-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--header-h-sm);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-default);
  transition: box-shadow var(--t-fast);
}
@media (min-width: 1024px) { .bcf-nav { height: var(--header-h); } }

.bcf-nav--scrolled {
  box-shadow: var(--shadow-1);
}

.bcf-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.bcf-nav__logo {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}
.bcf-nav__logo:hover { color: var(--text-primary); }
.bcf-nav__logo span { color: var(--cta-bg); }

.bcf-nav__links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: var(--sp-5);
}
@media (min-width: 1024px) { .bcf-nav__links { display: flex; } }

.bcf-nav__links a {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) 0;
  position: relative;
}
.bcf-nav__links a:hover { color: var(--text-primary); }
.bcf-nav__links a.is-active { color: var(--text-primary); }
.bcf-nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cta-bg);
  border-radius: 1px;
}

.bcf-nav__cta { display: flex; align-items: center; gap: var(--sp-3); }
.bcf-nav__cta .bcf-btn { height: 40px; padding: 0 var(--sp-4); }

.bcf-nav__hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: var(--text-primary);
  transition: background var(--t-fast);
}
.bcf-nav__hamburger:hover { background: var(--bg-section); }
.bcf-nav__hamburger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (min-width: 1024px) { .bcf-nav__hamburger { display: none; } }

.bcf-nav__hamburger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.bcf-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
}
.bcf-drawer__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity var(--t-base);
}
.bcf-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: var(--bg-card);
  box-shadow: -16px 0 48px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.bcf-drawer.is-open { pointer-events: auto; }
.bcf-drawer.is-open .bcf-drawer__scrim { opacity: 1; }
.bcf-drawer.is-open .bcf-drawer__panel { transform: translateX(0); }

.bcf-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}
.bcf-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.bcf-drawer__close:hover { background: var(--bg-section); color: var(--text-primary); }
.bcf-drawer__close:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.bcf-drawer__body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.bcf-drawer__body a {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.bcf-drawer__body a:hover { background: var(--bg-section); color: var(--text-primary); }
.bcf-drawer__body a.is-active { color: var(--cta-bg); }

.bcf-drawer__footer {
  flex-shrink: 0;
  padding: var(--sp-4) var(--sp-5);
  padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}


/* ─────────────────────────────────────────────────────────────────
   .bcf-footer
   ───────────────────────────────────────────────────────────────── */

.bcf-footer {
  background: var(--bcf-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.bcf-footer h6 {
  color: var(--text-on-dark);
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-eyebrow);
  margin-bottom: var(--sp-4);
}
.bcf-footer__cols {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: 1fr;
  margin-bottom: var(--sp-7);
}
@media (min-width: 768px) {
  .bcf-footer__cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.bcf-footer__brand .bcf-nav__logo { color: var(--text-on-dark); display: inline-block; margin-bottom: var(--sp-3); }
.bcf-footer__brand p { color: rgba(255,255,255,0.6); max-width: 380px; }
.bcf-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.bcf-footer ul a {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}
.bcf-footer ul a:hover { color: var(--text-on-dark); }

.bcf-footer__bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
}
.bcf-footer__legal { display: inline-flex; gap: var(--sp-3); }
.bcf-footer__legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.bcf-footer__legal a:hover { color: var(--text-on-dark); }


/* "Coming soon" treatment — dimmed card, muted price, ghost CTA */
.bcf-product--soon { opacity: 0.78; }
.bcf-product--soon .bcf-product__type { color: var(--brand); font-weight: 700; }
.bcf-product--soon .bcf-product__amount { color: var(--text-tertiary); }
.bcf-product--soon .bcf-product__amount-suffix { color: var(--text-tertiary); }
.bcf-product--soon:hover { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────
   .bcf-product — catalog grid card
   Variants: tool (sm), app (md, two prices), bundle (lg, breakdown)
   ───────────────────────────────────────────────────────────────── */

.bcf-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition:
    transform var(--t-base),
    box-shadow var(--t-base),
    border-color var(--t-base);
}
/* Thin colored accent bar across the top of every card. Per-type
   color is set below; default is a neutral steel hairline. */
.bcf-product::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--text-tertiary);
  opacity: 0.4;
  transition: opacity var(--t-fast), height var(--t-fast);
}
/* Soft inner highlight at the top — gives the card a touch of depth
   without an overt gradient. Only shows on the upper portion. */
.bcf-product::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  pointer-events: none;
  z-index: 0;
}
.bcf-product > * { position: relative; z-index: 1; }

.bcf-product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--cta-bg);
}
.bcf-product:hover::before {
  opacity: 1;
  height: 4px;
  background: var(--cta-bg);
}

/* Per-type accent colors on the top stripe. The article renders
   data-type="manual|app|service|bundle|website|tool|branding|profile"
   from catalog.php. */
.bcf-product[data-type="app"]::before      { background: var(--cta-bg); opacity: 0.6; }
.bcf-product[data-type="service"]::before  { background: var(--bcf-gold, #d4a017); opacity: 0.7; }
.bcf-product[data-type="bundle"]::before   { background: var(--cta-bg); opacity: 0.85; height: 4px; }
.bcf-product[data-type="manual"]::before   { background: var(--brand, #1d4ed8); opacity: 0.55; }
.bcf-product[data-type="website"]::before  { background: var(--text-primary); opacity: 0.6; }
.bcf-product[data-type="tool"]::before     { background: var(--bcf-amber-light); opacity: 1; }
.bcf-product[data-type="branding"]::before { background: var(--bcf-gold, #d4a017); opacity: 0.5; }
.bcf-product[data-type="profile"]::before  { background: var(--text-secondary); opacity: 0.5; }
/* Coming-soon variant: muted stripe regardless of type. */
.bcf-product--soon::before { background: var(--text-tertiary) !important; opacity: 0.3 !important; height: 2px !important; }

.bcf-product__head {
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.bcf-product__type {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--cta-bg);
}
.bcf-product__name {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-heading);
  color: var(--text-primary);
  line-height: 1.15;
}

.bcf-product__body {
  flex: 1;
  padding: 0 var(--sp-5) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

.bcf-product__price {
  padding: 0 var(--sp-5) var(--sp-4);
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.bcf-product__amount {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: var(--tracking-display);
}
.bcf-product__amount-suffix {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-tertiary);
  font-weight: 600;
}
.bcf-product__price-alt {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.bcf-product__foot {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border-default);
  background: var(--bg-page);
}
.bcf-product__foot .bcf-btn { width: 100%; justify-content: center; }

.bcf-product--featured {
  border-color: var(--cta-bg);
  box-shadow: var(--shadow-2), var(--shadow-glow);
}
.bcf-product--featured .bcf-product__head {
  background: linear-gradient(180deg, var(--bcf-amber-light), transparent);
}


/* ─────────────────────────────────────────────────────────────────
   .bcf-cart-drawer  — slide-in cart from right
   ───────────────────────────────────────────────────────────────── */

.bcf-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  color: var(--text-primary);
  transition: background var(--t-fast);
}
.bcf-cart-icon:hover { background: var(--bg-section); color: var(--text-primary); }
.bcf-cart-icon:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.bcf-cart-icon svg { width: 22px; height: 22px; }
.bcf-cart-icon__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--cta-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  pointer-events: none;
}

.bcf-cart-drawer { /* reuses .bcf-drawer behavior; this is the cart-specific panel */ }
.bcf-cart-drawer .bcf-drawer__panel { width: min(440px, 92vw); }

.bcf-cart-empty {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  color: var(--text-tertiary);
}
.bcf-cart-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--bg-section);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 24px;
}

.bcf-cart-line {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
}
.bcf-cart-line__body { flex: 1; min-width: 0; }
.bcf-cart-line__name {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}
.bcf-cart-line__type {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  font-weight: 600;
}
.bcf-cart-line__price {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--fs-base);
  white-space: nowrap;
}
.bcf-cart-line__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: all var(--t-fast);
}
.bcf-cart-line__remove:hover { background: #fee2e2; color: var(--bcf-danger); }

.bcf-cart-totals {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border-default);
  background: var(--bg-section);
}
.bcf-cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-2);
}
.bcf-cart-totals__row--total {
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-default);
}
.bcf-cart-totals__label { font-size: var(--fs-sm); color: var(--text-secondary); }
.bcf-cart-totals__row--total .bcf-cart-totals__label { font-weight: 600; color: var(--text-primary); font-size: var(--fs-base); }
.bcf-cart-totals__amount { font-family: var(--ff-display); font-weight: 800; color: var(--text-primary); font-size: var(--fs-base); }
.bcf-cart-totals__row--total .bcf-cart-totals__amount { font-size: var(--fs-xl); }


/* ─────────────────────────────────────────────────────────────────
   .bcf-theme-switcher  — floating brand-color selector
   Admin-only by default. Lives bottom-right; opens a swatch panel.
   ───────────────────────────────────────────────────────────────── */

.bcf-theme-switcher {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}

.bcf-theme-switcher__btn {
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--bcf-ink);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-3);
  transition: transform var(--t-fast), background var(--t-fast);
}
.bcf-theme-switcher__btn:hover { transform: scale(1.05); background: var(--cta-bg); }
.bcf-theme-switcher__btn:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-3); }
.bcf-theme-switcher__btn svg { width: 22px; height: 22px; }

.bcf-theme-switcher__panel {
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-3);
  transform-origin: bottom right;
  transform: scale(0.92) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--t-base),
    opacity var(--t-base);
}
.bcf-theme-switcher.is-open .bcf-theme-switcher__panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bcf-theme-switcher__title {
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}
.bcf-theme-switcher__sub {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--sp-4);
}

.bcf-theme-switcher__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.bcf-theme-switcher__row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  width: 100%;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  transition: background var(--t-fast);
}
.bcf-theme-switcher__row:hover { background: var(--bg-section); }
.bcf-theme-switcher__row.is-active { background: var(--bg-section); }
.bcf-theme-switcher__row:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.bcf-theme-switcher__swatch {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--swatch-color, #f97316);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--border-default), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.bcf-theme-switcher__row.is-active .bcf-theme-switcher__swatch {
  box-shadow: 0 0 0 2px var(--swatch-color, #f97316);
}

.bcf-theme-switcher__name {
  flex: 1;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
}
.bcf-theme-switcher__hex {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.bcf-theme-switcher__row.is-active .bcf-theme-switcher__hex {
  color: var(--cta-bg);
  font-weight: 600;
}

/* ── Cart toast ─────────────────────────────────────────────────────────── */
/* Surfaces server-side flash messages (cart guards: "we removed redundant
   items", "you already have an active hosting plan"). Slides up from the
   bottom-right; auto-dismisses after 5s; manually dismissible. */
.bcf-cart-toast {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: 1050;
  max-width: min(440px, calc(100vw - var(--sp-6)));
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--brand-blue, #2563eb);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: none;
}
.bcf-cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.bcf-cart-toast.is-error {
  border-left-color: #dc2626;
}
.bcf-cart-toast__body {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
}
.bcf-cart-toast__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue, #2563eb);
  margin-top: 1px;
}
.bcf-cart-toast.is-error .bcf-cart-toast__icon { color: #dc2626; }
.bcf-cart-toast__text {
  flex: 1;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--text-primary);
}
.bcf-cart-toast__close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0 4px;
  margin-top: -2px;
}
.bcf-cart-toast__close:hover { color: var(--text-primary); }
