/**
 * Main Menu Styles
 * Design moderno e fluido para o menu principal
 */

/* Overlay */
.mfn-main-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mfn-main-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Container principal */
.mfn-main-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Dynamic viewport height para mobile */
    background: #ffffff;
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.4s ease, 
                opacity 0.4s ease,
                z-index 0s ease 0.4s;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    will-change: transform;
    overflow-x: hidden;
    box-sizing: border-box;
    /* Esconde completamente quando fechado */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mfn-main-menu.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.4s ease, 
                opacity 0.4s ease,
                z-index 0s ease 0s;
}

/* Body quando menu está aberto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    touch-action: none;
}

/* Header do menu */
.mfn-menu-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

/* Header escondido durante busca */
.mfn-menu-header.search-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    /* Colapsa o espaço */
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

/* Botão fechar */
.mfn-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
}

.mfn-menu-close:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.mfn-menu-close .icon {
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    font-weight: 300;
    display: block;
    pointer-events: none;
}

/* Bloco de usuário */
.mfn-menu-user {
    max-width: 400px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder svg {
    fill: #94a3b8;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.user-email {
    font-size: 14px;
    color: #64748b;
}

/* Links do usuário */
.user-links {
    display: flex;
    gap: 10px;
    margin-top: 0px;
}

.user-link,
.login-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

/* Estilo padrão dos links */
.user-link {
    background: #f8fafc;
    color: #334155;
    border: 1px solid transparent;
}

.user-link:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.user-link:active {
    transform: translateY(0);
    background: #cbd5e1;
}

/* Ícones */
.user-link svg,
.login-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Texto dos botões */
.user-link span,
.login-link span {
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão de login/registro */
.login-link {
    background: linear-gradient(135deg, #6366f1 0%, #5a5ed8 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.login-link:hover {
    background: linear-gradient(135deg, #5a5ed8 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.login-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* Efeito ripple nos botões */
.user-link::after,
.login-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.user-link:active::after,
.login-link:active::after {
    width: 300px;
    height: 300px;
}

/* Responsivo - apenas para telas muito pequenas */
@media (max-width: 320px) {
    .user-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-link,
    .login-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Ajuste quando há apenas o botão de login */
.user-links:has(.login-link):not(:has(.user-link)) .login-link {
    max-width: 280px;
    margin: 0 auto;
}

/* Área de categorias */
.mfn-menu-categories {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0; /* Importante para flex items */
    /* Padding para safe areas */
    padding-bottom: env(safe-area-inset-bottom);
    transition: all 0.3s ease;
}

/* Área de categorias quando busca está ativa */
.mfn-main-menu .mfn-menu-header.search-hidden ~ .mfn-menu-categories {
    /* Aproveita o espaço extra do header */
    flex: 1;
}

/* Busca */
.mfn-menu-search {
    padding: 12px 10px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Busca expandida quando ativa */
.mfn-menu-search.search-active {
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #6366f1;
    /* Ocupa mais espaço vertical */
    min-height: 110px;
    flex-shrink: 0;
}

/* Container da busca com botão fechar */
.search-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.search-header.active {
    display: flex;
}

.search-back-button {
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
    flex-shrink: 0;
}

.search-back-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.search-back-button .icon {
    font-size: 20px;
    line-height: 1;
    color: #ffffff;
    font-weight: 300;
    display: block;
    pointer-events: none;
}

.search-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: -0.015em;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    fill: #94a3b8;
    pointer-events: none;
}

#category-search {
    flex: 1;
    padding: 8px 48px 8px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
    margin-bottom: 0;
}

#category-search:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}


.search-clear {
    position: absolute;
    right: 12px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #f1f5f9;
}

.search-clear svg {
    fill: #94a3b8;
}

/* Botão Buscar */
.search-submit-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.search-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

/* Container de categorias */
.mfn-categories-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 0; /* Importante para flex items */
}

/* Breadcrumb */
.mfn-categories-breadcrumb {
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.breadcrumb-item:hover {
    background: #f1f5f9;
    color: #475569;
}

.breadcrumb-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.breadcrumb-item:after {
    content: '›';
    margin-left: 8px;
    color: #cbd5e1;
}

.breadcrumb-item:last-child:after {
    display: none;
}

.breadcrumb-item:last-child {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* Slider de categorias */
.mfn-categories-slider {
    position: relative;
    height: 100%;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.mfn-categories-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px;
    padding-bottom: 40px; /* Padding simples para scroll */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    box-sizing: border-box;
}

.mfn-categories-list.active {
    transform: translateX(0);
    opacity: 1;
}

.mfn-categories-list.slide-out-left {
    transform: translateX(-100%);
}

/* Botão Ver Todos */
.view-all-button-container {
    margin-bottom: 12px;
    padding: 0;
}

.view-all-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}

.view-all-button:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.view-all-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.view-all-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.view-all-button span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Efeito de brilho no botão */
.view-all-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateY(100%); }
    100% { transform: rotate(45deg) translateY(-100%); }
}

/* Efeito ripple no botão */
.view-all-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.view-all-button:active::after {
    width: 300px;
    height: 300px;
}

/* Item de categoria */
.category-item {
    margin-bottom: 12px;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.category-item:nth-child(n) {
    animation-delay: calc(n * 0.05s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.category-link {
    display: flex;
    align-items: center;
    padding: 6px;
    min-height: 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.category-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #6366f1;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-link:hover::before {
    transform: scaleY(1);
}

.category-image {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-name {
    font-size: 15px;
    font-weight: 500;
}

.category-count {
    font-size: 13px;
    color: #94a3b8;
}

.category-arrow {
    width: 20px;
    height: 20px;
    fill: #94a3b8;
    margin-left: auto;
    transition: all 0.3s ease;
}

.category-link:hover .category-arrow {
    fill: #6366f1;
    transform: translateX(4px);
}

/* Mensagem sem resultados */
.mfn-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px;
    text-align: center;
    min-height: 200px;
}

.mfn-no-results svg {
    fill: #cbd5e1;
    margin-bottom: 16px;
}

.mfn-no-results p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 20px;
}

.clear-search-btn {
    padding: 10px 24px;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .mfn-main-menu {
        background: #1e293b;
    }
    
    .mfn-menu-header {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-bottom-color: #334155;
    }
    
    .mfn-menu-close {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .mfn-menu-close:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .mfn-menu-close .icon {
        color: #ffffff;
    }
    
    .user-name {
        color: #f1f5f9;
    }
    
    .user-email {
        color: #94a3b8;
    }
    
    .user-link {
        background: #334155;
        color: #e2e8f0;
        border: 1px solid transparent;
    }
    
    .user-link:hover {
        background: #475569;
        color: #f8fafc;
    }
    
    .user-link:active {
        background: #64748b;
    }
    
    .login-link {
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    }
    
    .login-link:hover {
        background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
    }
    
    #category-search {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    #category-search:focus {
        background: #1e293b;
        border-color: #6366f1;
    }
    
    .mfn-menu-search {
        background: #1e293b;
        border-bottom-color: #334155;
    }
    
    .mfn-menu-search.search-active {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
        border-bottom-color: #6366f1;
    }
    
    .search-header {
        border-bottom-color: #475569;
    }
    
    .search-back-button {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .search-back-button:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    }
    
    .search-back-button .icon {
        color: #ffffff;
    }
    
    .search-title {
        color: #f1f5f9;
    }
    
    .search-submit-btn {
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    }
    
    .search-submit-btn:hover {
        background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    }
    
    .mfn-categories-breadcrumb {
        background: #0f172a;
        border-bottom-color: #334155;
    }
    
    .breadcrumb-item {
        background: #334155;
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .category-link {
        background: #334155;
        border-color: #475569;
        color: #f1f5f9;
    }
    
    .category-link:hover {
        background: #475569;
        border-color: #64748b;
    }
    
    .view-all-button {
        background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
        box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    }
    
    .view-all-button:hover {
        background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
        box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
    }
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Error message */
.error-message {
    text-align: center;
    color: #ef4444;
    padding: 40px 20px;
    font-size: 14px;
}

.no-categories {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
    font-size: 14px;
}

/* Indicador de categoria vazia */
.category-count {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.category-count:empty {
    display: none;
}

/* Destaque para categorias com muitos produtos */
.category-item[data-count="0"] {
    opacity: 0.6;
}

/* Path da categoria nos resultados de busca */
.category-path {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Prevenção de overflow em iOS */
.mfn-main-menu * {
    -webkit-overflow-scrolling: touch;
}

/* Fix para viewport height em mobile */
@supports (-webkit-touch-callout: none) {
    .mfn-main-menu {
        /* iOS Safari - usa svh para considerar barras visíveis */
        height: 100svh;
    }
}

/* Para desktop, mantém tela inteira */
@media screen and (min-width: 768px) {
    .mfn-main-menu {
        width: 100vw;
        left: 0;
        right: 0;
        transform: translateY(100%);
    }
    
    .mfn-main-menu.active {
        transform: translateY(0);
    }
}

/* Container de scroll otimizado */
.mfn-categories-list::-webkit-scrollbar {
    width: 4px;
}

.mfn-categories-list::-webkit-scrollbar-track {
    background: transparent;
}

.mfn-categories-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* Animações de entrada */
.mfn-main-menu.active .user-info {
    animation: slideInLeft 0.5s ease 0.1s both;
}

.mfn-main-menu.active .user-links {
    animation: slideInLeft 0.5s ease 0.2s both;
}

.mfn-main-menu.active .mfn-menu-search {
    animation: slideInLeft 0.5s ease 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estados do body */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    /* iOS Safari specific */
    -webkit-overflow-scrolling: touch;
}

/* Responsivo - altura */
@media (max-height: 600px) {
    .mfn-menu-header {
        padding: 15px 20px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .user-name {
        font-size: 16px;
    }
    
    .user-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}