/*
 * ss-bottom-nav — Fixed mobile app-style bottom navigation
 *
 * Shown on mobile only (<900px). Desktop uses ss-header nav.
 *
 * 4 tabs: Home / Search / Cart / Account.
 *
 * Includes body padding-bottom so page content isn't hidden behind the fixed bar.
 */

.ss-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border-top: 1px solid var(--border-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.ss-bottom-nav__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: var(--space-2) 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease;
    min-height: 56px;
}

.ss-bottom-nav__tab:hover { color: var(--text-primary); }

.ss-bottom-nav__tab--active { color: var(--accent); }

.ss-bottom-nav__tab .ss-icon { width: 22px; height: 22px; }

.ss-bottom-nav__badge {
    position: absolute;
    top: var(--space-2);
    right: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    padding: 0 var(--space-1);
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: var(--weight-bold);
    line-height: 16px;
    text-align: center;
}

/* ── Hide on desktop ──────────────────────────────────────────── */
@media (min-width: 900px) {
    .ss-bottom-nav { display: none; }
}

/* ── Body offset so page content clears the fixed bar ─────────── */
@media (max-width: 899px) {
    body.has-bottom-nav {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
    }
}
