/* CSF Mobile Bottom Bar — fixed, mobile-only, iOS safe-area aware.
   Vegas Tides "Marble Vault" skin: dark translucent glass, brand stroke-SVG icons,
   gold active/icon state, gold count badge. Tokens fall back to literals so the bar
   stays correct even if the child theme stylesheet hasn't loaded yet. */
.csf-bbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: rgba(10, 10, 11, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--vt-glass-border, rgba(255, 255, 255, 0.10));
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
}
.csf-bbar__i {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bpc-body, #C9C4B8);
  position: relative;
  /* the Filters item is a <button> (JS-triggered, not a link) — reset native button chrome
     so it matches the anchor siblings; keeps the toolbar visually uniform. */
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s ease;
}
.csf-bbar__i:hover,
.csf-bbar__i:focus-visible { color: var(--bpc-primary-hover, #E6C766); }
/* brand stroke-SVG icons inherit currentColor; gold icon tint by default */
.csf-ic {
  width: 23px;
  height: 23px;
  display: block;
  color: var(--bpc-primary-hover, #E6C766);
}
.csf-bbar__i:hover .csf-ic,
.csf-bbar__i:focus-visible .csf-ic { color: var(--bpc-primary, #C9A227); }
.csf-bbar__i--cart .csf-ic { color: var(--bpc-primary, #C9A227); }
.csf-badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(8px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--vt-gold-grad, linear-gradient(180deg, #E6C766, #C9A227));
  color: #1a1505;
  font-weight: 700;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.45);
}
/* Reserve space so the bar never covers content on mobile; hide entirely on desktop. */
body { padding-bottom: 64px; }
@media (min-width: 1025px) {
  .csf-bbar { display: none; }
  body { padding-bottom: 0; }
}

/* DPH pass-1 fix (G10-D03): 44px minimum tap target on bar items */
.csf-bbar__i { min-height: 44px; justify-content: center; }
