/* Modern Mobile Toggle Button */
.modern-mobile-toggle {
    background: transparent;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-mobile-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(195, 7, 63, 0.1), transparent);
    transition: left 0.5s;
}

.modern-mobile-toggle:hover::before {
    left: 100%;
}

.modern-mobile-toggle:hover {
    background: #c3073f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 7, 63, 0.3);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: #c3073f;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.modern-mobile-toggle:hover .hamburger-line {
    background: white;
}

.modern-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.modern-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Modal */
.mobile-nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-modal.active {
    display: flex;
    opacity: 1;
}

/* Premium Mobile Navigation - Clean Minimalist Design */
.mobile-nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-modal.active .mobile-nav-overlay {
    opacity: 1;
}

.mobile-nav-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin-left: auto;
    background: #ffffff;
    height: 100%;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-modal.active .mobile-nav-container {
    transform: translateX(0);
}

/* Header - Minimal with Close Button */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-nav-wordmark {
    display: flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}

.mobile-nav-wordmark:hover {
    text-decoration: none;
}

.mobile-nav-mark {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    background: #f5f5f5;
}

.mobile-nav-close:active {
    transform: scale(0.95);
}

.mobile-nav-close svg {
    width: 22px;
    height: 22px;
}

/* User Profile Section */
.mobile-nav-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mobile-nav-profile--guest-checkout {
    justify-content: center;
    padding-top: 8px;
}

.mobile-nav-guest-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #c3073f;
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav-guest-cart-link:hover {
    background: #f1f3f5;
    color: #a00532;
    text-decoration: none;
}

.mobile-nav-profile .mobile-nav-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #c3073f 0%, #FD6C5D 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mobile-nav-profile .mobile-nav-avatar svg {
    color: white;
}

.mobile-nav-profile .mobile-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-nav-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.mobile-nav-greeting {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mobile-nav-username {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.mobile-nav-dashboard-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav-dashboard-link:hover {
    background: #f5f5f5;
    color: #c3073f;
}

/* Main Content Area */
.mobile-nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navigation Menu */
.mobile-nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-menu::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* Navigation Items */
.mobile-nav-item {
    display: block;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.mobile-nav-link:hover {
    background: #fafafa;
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-nav-link:active {
    background: #f5f5f5;
}

.mobile-nav-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.mobile-nav-chevron {
    color: #999;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.mobile-nav-external {
    color: #ccc;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover .mobile-nav-external {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown States */
.mobile-nav-dropdown.active > .mobile-nav-link {
    color: #c3073f;
}

.mobile-nav-dropdown.active .mobile-nav-chevron {
    transform: rotate(180deg);
    color: #c3073f;
}

/* Submenu */
.mobile-nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.mobile-nav-dropdown.active .mobile-nav-submenu {
    max-height: 50vh;
    overflow-y: auto;
}

.mobile-nav-submenu-section {
    padding: 12px 0;
}

.mobile-nav-submenu-section:first-child {
    padding-top: 16px;
}

.mobile-nav-submenu-section:last-child {
    padding-bottom: 16px;
}

.mobile-nav-submenu-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    padding: 0 24px 10px 24px;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    color: #555;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 15px;
    font-weight: 450;
}

.mobile-nav-sublink:hover {
    background: #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-nav-sublink:active {
    background: #e8e8e8;
}

.mobile-nav-sublink span {
    flex: 1;
}

.mobile-nav-sublink-featured {
    color: #1a1a1a;
    font-weight: 500;
}

.mobile-nav-sublink-all {
    color: #c3073f;
    font-weight: 500;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

.mobile-nav-sublink-all svg {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.mobile-nav-sublink-all:hover {
    background: rgba(195, 7, 63, 0.05);
    color: #c3073f;
}

.mobile-nav-sublink-all:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

/* Footer Section */
.mobile-nav-footer {
    padding: 12px 16px 72px;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

/* Auth Buttons */
.mobile-nav-auth {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mobile-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
}

.mobile-auth-signin {
    background: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid #e0e0e0;
}

.mobile-auth-signin:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-auth-signin:active {
    transform: scale(0.98);
}

.mobile-auth-signup {
    background: #c3073f;
    color: white;
    border: 1.5px solid #c3073f;
}

.mobile-auth-signup:hover {
    background: #a90636;
    border-color: #a90636;
    color: white;
    text-decoration: none;
}

.mobile-auth-signup:active {
    transform: scale(0.98);
}

/* Social Links */
.mobile-nav-social {
    margin-bottom: 20px;
}

.mobile-nav-social .social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.mobile-nav-social .social-link {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-social .social-link:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.mobile-nav-social .social-link:active {
    transform: translateY(0) scale(0.95);
}

/* Brand Footer */
.mobile-nav-brand {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.mobile-nav-brand span {
    font-size: 13px;
    font-weight: 500;
    color: #bbb;
    letter-spacing: 0.5px;
}

/* Role-based dashboard quick links */
.mobile-nav-quicklinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 16px 12px;
    background: #fff;
    border-bottom: 0;
}

.mobile-nav-quicklink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #f6f5f2;
    border: 1px solid transparent;
    color: #111827;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-quicklink:hover {
    background: #fdf2f5;
    border-color: rgba(195, 7, 63, 0.2);
    color: #c3073f;
    text-decoration: none;
}

.mobile-nav-quicklink i {
    color: #c3073f;
    font-size: 1rem;
    width: 1rem;
    text-align: center;
}

.mobile-nav-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 16px 12px;
    padding: 0 14px;
    height: 44px;
    border-radius: 12px;
    background: #f6f5f2;
    border: 1px solid #eee;
    color: #9ca3af;
}

.mobile-nav-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #111827;
    outline: none;
    box-shadow: none;
}

.mobile-nav-search input::placeholder {
    color: #9ca3af;
}

.mobile-nav-avatar--initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mobile-nav-role {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.mobile-nav-profile__go {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

a.mobile-nav-profile {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-bottom: 0;
    padding: 8px 16px 12px;
}

.mobile-nav-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-text i {
    color: #6b7280;
    font-size: 18px;
    width: 18px;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.mobile-nav-host {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6f5f2;
    color: #111827;
    text-decoration: none;
}

.mobile-nav-host__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.mobile-nav-host__sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
}

.mobile-nav-host i {
    color: #9ca3af;
}

.mobile-nav-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 16px 8px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    text-decoration: none;
}

.mobile-nav-cart:hover {
    color: #fff;
    text-decoration: none;
}

.mobile-nav-cart__icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.mobile-nav-cart__badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #c3073f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.mobile-nav-cart__copy {
    min-width: 0;
    flex: 1;
}

.mobile-nav-cart__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.mobile-nav-cart__meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-cart__go {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-nav-footer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-nav-ussd {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}

.mobile-nav-ussd strong {
    color: #111827;
    font-weight: 700;
}

.mobile-nav-signout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c3073f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav-signout:hover {
    color: #a00635;
    text-decoration: none;
}

.mobile-nav-social .social-link {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}
