/* =============================================
   NAVIGATION.CSS - Tab bar, Side menu, Shopping
   ============================================= */

/* NAVBAR / TAB BAR */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + var(--safe-bottom));
    z-index: 100;
}

.nav-btn {
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6B7280;
    transition: 0.3s;
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn i {
    font-size: 1.4rem;
}

.nav-btn span {
    font-size: .65rem;
    font-weight: 800;
}

/* SIDE MENU (DRAWER) */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background: white;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 40px 24px;
}

.side-menu.open {
    transform: translateX(0);
}

.menu-header {
    margin-bottom: 40px;
    text-align: center;
}

.menu-logo {
    font-size: 3rem;
    margin-bottom: 8px;
}

.menu-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
}

.menu-nav a:active {
    background: #F3F4F6;
}

.menu-nav a i {
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.close-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* SHOPPING LIST */
.shopping-header {
    padding: 24px;
    padding-top: 40px;
}

.shopping-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.shopping-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-muted);
}

.stat-total {
    color: var(--primary);
    font-weight: 800;
}

.shopping-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-sm {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #F3F4F6;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-sm.danger {
    background: #FEE2E2;
    color: #DC2626;
}

.shopping-list {
    padding: 0 24px 24px;
}

.shopping-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

/* SWIPE ACTIONS */
.shopping-item-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 12px;
}

.shopping-item-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: #EF4444;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 24px;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
}

.shopping-item {
    position: relative;
    z-index: 2;
    background: white;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
}

.shopping-item.swiping {
    transition: none;
}