/*
 * thebamboostudio-v1 theme — mobile floating order bar + popup menu.
 * Structural pattern adapted from atc/cms-v1's FloatingBar component
 * (see docs/superpowers/specs/2026-09-16-opencart-homepage-port-design.md §6),
 * recolored to this theme's tokens instead of ATC's dark glass.
 */
html { scrollbar-gutter: stable; }

.thebamboostudio-v1 .bb-floating-bar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 200;
  align-items: center;
  padding: .5rem .5rem .5rem 1.1rem;
  border-radius: var(--radius-pill);
  gap: var(--space-3);
  background: color-mix(in srgb, var(--color-paper) 68%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.thebamboostudio-v1 .bb-floating-bar .bb-btn { padding: .7rem 1.3rem; font-size: var(--fs-sm); }
.thebamboostudio-v1 .bb-floating-bar-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--brand-primary); color: var(--color-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.thebamboostudio-v1 .bb-floating-bar-btn svg { width: 20px; height: 20px; }
.thebamboostudio-v1 .bb-floating-bar-btn:hover { background: var(--brand-primary-dark); }

@media (max-width: 760px) {
  .thebamboostudio-v1 .bb-floating-bar { display: flex; }
  .thebamboostudio-v1 .bb-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

.thebamboostudio-v1 .bb-mobile-menu { position: fixed; inset: 0; z-index: 300; }
.thebamboostudio-v1 .bb-mobile-menu[hidden] { display: none; }
.thebamboostudio-v1 .bb-mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(42, 36, 28, 0.4); backdrop-filter: blur(2px); }
.thebamboostudio-v1 .bb-mobile-menu-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto;
  background: var(--color-paper); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: var(--space-5);
  transform: translateY(100%); transition: transform .35s ease;
}
.thebamboostudio-v1 .bb-mobile-menu.open .bb-mobile-menu-panel { transform: translateY(0); }
.thebamboostudio-v1 .bb-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.thebamboostudio-v1 .bb-mobile-menu-head .bb-brand img { width: 34px; height: 34px; }
.thebamboostudio-v1 .bb-mobile-menu-links { display: flex; flex-direction: column; gap: var(--space-4); }
.thebamboostudio-v1 .bb-mobile-menu-links a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; text-decoration: none; color: var(--color-heading); }

@media (prefers-reduced-motion: reduce) {
  .thebamboostudio-v1 .bb-mobile-menu-panel { transition: none; }
}
