/* ===== NAVBAR ===== */
.mp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 2px 12px rgba(10, 181, 181, 0.3);
    font-family: 'Inter', sans-serif;
}
.mp-nav *, .mp-nav *::before, .mp-nav *::after {
    box-sizing: border-box;
}

.mp-nav-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.mp-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
}

.mp-logo .logo-icon {
    color: #F59E0B;
    font-size: 1.5rem;
}

.mp-logo em {
    color: #F59E0B;
    font-style: normal;
    font-weight: 800;
}

.mp-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    min-width: 0;
}

.mp-search:focus-within {
    border-color: #F59E0B;
}

.mp-search input {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    border: none;
    outline: none;
    font-family: inherit;
    color: #212121;
    min-width: 0;
}

.mp-search-btn {
    background: #1D4ED8;
    border: none;
    padding: 8px 16px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mp-search-btn:hover {
    background: #1E40AF;
}

.mp-nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.mp-nav-btn {
    position: relative;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.2s;
    padding: 4px;
    text-decoration: none;
}

.mp-nav-btn:hover {
    opacity: 0.8;
}

.mp-cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #F59E0B;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.mp-cart-count.show {
    display: flex;
}

.mp-btn-login {
    background: #fff;
    color: #1D4ED8;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
}

.mp-btn-login:hover {
    background: #e0f7f7;
}

.mp-nav-sub {
    background: rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mp-nav-sub-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5px 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-nav-sub-inner::-webkit-scrollbar {
    display: none;
}

.mp-sub-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    text-decoration: none;
}

.mp-sub-link:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .mp-nav-top { padding: 8px 12px; gap: 8px; height: 52px; }
    .mp-logo { font-size: 1.2rem; }
    .mp-search { flex: 1; }
    .mp-search input { padding: 8px 12px; font-size: 0.83rem; border-radius: 20px; }
    .mp-search-btn { padding: 8px 14px; border-radius: 0 20px 20px 0; font-size: 0.88rem; }
    .mp-nav-actions { gap: 14px; flex-shrink: 0; }
    .mp-btn-login { padding: 6px 12px; font-size: 0.8rem; border-radius: 20px; }
    .mp-nav-sub { display: none; }
}

@media (max-width: 380px) {
    .mp-logo { font-size: 1.1rem; }
    .mp-btn-login { display: none; }
}

/* --- PROFILE DROPDOWN --- */
.mp-profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.mp-profile-trigger-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

.mp-profile-trigger-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.mp-profile-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 220px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    z-index: 1010;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mp-profile-dropdown-menu.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.mp-profile-dropdown-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.mp-profile-dropdown-email {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    word-break: break-all;
}

.mp-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    text-align: left;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
}

.mp-dropdown-item i {
    font-size: 0.9rem;
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.mp-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}

.mp-dropdown-item:hover i {
    color: #2563eb;
}

.mp-dropdown-item.logout {
    color: #ef4444;
}

.mp-dropdown-item.logout i {
    color: #ef4444;
}

.mp-dropdown-item.logout:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.mp-dropdown-item.logout:hover i {
    color: #dc2626;
}

.mp-dropdown-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 4px 0;
}

/* --- AVATAR STYLES --- */
.mp-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
    display: block;
}

.mp-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.mp-profile-dropdown-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.mp-profile-dropdown-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.mp-profile-dropdown-email {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    word-break: break-all;
}

.mp-profile-dropdown-menu {
    width: 240px;
}
