/* ============================================
   MOBILE BOTTOM NAVIGATION (customers only)
   Standalone, no external variable dependencies
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 9999;
    padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    direction: rtl;
    align-items: stretch;
    justify-content: space-around;
    font-family: inherit;
}

.mobile-bottom-nav .mbn-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.45rem 0.15rem;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 12px;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    line-height: 1;
    white-space: nowrap;
}

.mobile-bottom-nav .mbn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: #6b7280;
}
.mobile-bottom-nav .mbn-icon svg { width: 23px; height: 23px; }

.mobile-bottom-nav .mbn-label {
    line-height: 1;
    transition: color 0.2s;
}

.mobile-bottom-nav .mbn-item:hover { color: #2e7d32; }
.mobile-bottom-nav .mbn-item:hover .mbn-icon { color: #2e7d32; }
.mobile-bottom-nav .mbn-item.active { color: #2e7d32; }
.mobile-bottom-nav .mbn-item.active .mbn-icon {
    background: #2e7d32;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -2px rgba(46, 125, 50, 0.45);
}
.mobile-bottom-nav .mbn-item.active .mbn-label { font-weight: 800; }

/* Scan button — slightly larger than the rest, same style */
.mobile-bottom-nav .mbn-scan .mbn-icon svg { width: 30px; height: 30px; }

/* Body padding to keep content above the bar */
@media (max-width: 991px) {
    .mobile-bottom-nav { display: flex; }
    body.has-mobile-bottom-nav { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 768px) {
    .mobile-bottom-nav .mbn-label { font-size: 0.66rem; }
    .mobile-bottom-nav .mbn-icon { width: 36px; height: 36px; }
    .mobile-bottom-nav .mbn-icon svg { width: 21px; height: 21px; }
    .mobile-bottom-nav .mbn-scan .mbn-icon svg { width: 29px; height: 29px; }
}

@media (max-width: 380px) {
    .mobile-bottom-nav .mbn-label { font-size: 0.6rem; }
    .mobile-bottom-nav .mbn-icon { width: 32px; height: 32px; }
    .mobile-bottom-nav .mbn-icon svg { width: 18px; height: 18px; }
    .mobile-bottom-nav .mbn-scan .mbn-icon svg { width: 26px; height: 26px; }
    .mobile-bottom-nav .mbn-item { padding: 0.35rem 0.1rem; gap: 0.2rem; }
}
