/* ============================================
   Mobile Header & Sidebar Toggle
   ============================================ */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 999;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border: none;
    background: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.2s;
}

.mobile-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.btn-cart-mobile {
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
}

.btn-cart-mobile .cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Mobile Header Right Group */
.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile User Button & Dropdown */
.mobile-user-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
}

/* Avatar inside bottom nav: smaller */
.mobile-nav-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-user-dropdown {
    display: none;
    position: fixed;
    bottom: 62px;
    right: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    z-index: 1002;
    min-width: 220px;
}

.mobile-user-dropdown.show {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-user-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.mobile-user-logout {
    padding: 8px 12px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    min-width: 56px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

