/**
 * Bongoto Marketplace — Mobile Bottom Navigation Bar
 * - Fixed bottom bar on mobile
 * - Safe-area aware
 */

:root{
  --bt-bottom-nav-h: 64px;
}

/* Hidden by default; enabled on mobile breakpoint */
.bt-mobile-bottom-nav{
  display: none;
}

@media (max-width: 768px){
  .bt-mobile-bottom-nav{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,.08);
    height: calc(var(--bt-bottom-nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bt-mobile-bottom-nav .bt-mbn-item{
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--bt-color-text, #0f172a);
    font-size: 12px;
    line-height: 1.1;
    -webkit-tap-highlight-color: transparent;
  }

  .bt-mobile-bottom-nav .dashicons{
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
  }

  .bt-mobile-bottom-nav .bt-mbn-item.is-active{
    color: var(--bt-color-primary, #2563eb);
  }

  /* Add padding so content never hides behind the bar */
  body.bt-has-mobile-bottom-nav{
    padding-bottom: calc(var(--bt-bottom-nav-h) + env(safe-area-inset-bottom));
  }

  /* Drawer/menu should not go under the bottom bar */
  .bt-drawer-inner{
    padding-bottom: calc(16px + var(--bt-bottom-nav-h) + env(safe-area-inset-bottom));
  }
}
