/* Mobile Header Styles */
.mobile-header {
    position: relative;
}

/* Top Bar */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dark .mobile-topbar {
    background: #1f2937;
}

/* Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.dark .mobile-menu-btn {
    border-color: #374151;
}

/* Logo */
.mobile-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
}

.mobile-logo-text {
    font-family: 'Morabba Medium', sans-serif;
    font-size: 1.5rem;
    color: #1f2937;
}

.dark .mobile-logo-text {
    color: white;
}

/* Cart Button */
.mobile-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-cart-btn:active {
    transform: scale(0.95);
}

.mobile-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    width: 16px;
    height: 16px;
}

.mobile-cart-ping {
    position: absolute;
    display: inline-flex;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: #dc2626;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.mobile-cart-count {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 9999px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
}

/* Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    pointer-events: none;
}

.mobile-sidebar.active {
    pointer-events: auto;
}

.mobile-sidebar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-sidebar.active .mobile-sidebar-overlay {
    opacity: 1;
}

.mobile-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.dark .mobile-sidebar-content {
    background: #1f2937;
}

.mobile-sidebar.active .mobile-sidebar-content {
    transform: translateX(0);
}

/* Sidebar Header */
.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.dark .mobile-sidebar-header {
    border-bottom-color: #374151;
}

.mobile-sidebar-logo {
    font-family: 'Morabba Medium', sans-serif;
    font-size: 1.25rem;
    color: #1f2937;
    text-decoration: none;
}

.dark .mobile-sidebar-logo {
    color: white;
}

.mobile-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
}

.dark .mobile-sidebar-close {
    color: #9ca3af;
}

/* Sidebar Menu */
.mobile-sidebar-menu {
    list-style: none;
    padding: 1rem;
    margin: 0;
    flex: 1;
}

.mobile-sidebar-menu li {
    margin-bottom: 0.5rem;
}

.mobile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s;
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    text-align: right;
}

.dark .mobile-sidebar-link {
    color: #f3f4f6;
}

.mobile-sidebar-link:hover {
    background: #f3f4f6;
}

.dark .mobile-sidebar-link:hover {
    background: #374151;
}

/* Auth Section */
.mobile-sidebar-auth {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
}

.dark .mobile-sidebar-auth {
    border-top-color: #374151;
}

.mobile-sidebar-auth form {
    width: 100%;
}
