
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    /* position: sticky; */
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), #787878);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.logo-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.search-container {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 16px;
    transition: color 0.2s ease;
}

.search-input:focus + .search-icon {
    color: var(--primary);
}

.search-btn {
    background: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.search-btn:hover {
    background: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    transition: all 0.2s ease;
    padding: 8px 10px;
    border-radius: 6px;
}

.action-item:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.action-icon {
    font-size: 20px;
    margin-bottom: 2px;
    position: relative;
}

.action-text {
    font-size: 11px;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.nav-container {
    border-top: 1px solid #f1f5f9;
    padding: 12px 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
}

.categories-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.categories-btn:hover {
    background: var(--primary-hover);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    margin-top: 8px;
}

.categories-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

#mobile-menu a {
    font-size: 14px;
    border-bottom: 1px solid #e2e2e2;
}
#userMenuDropdown a {
    /* text-transform: uppercase; */
    font-size: 14px;
    border-bottom: 1px solid #e4e4e4a6;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: all 0.2s ease;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-close-btn:hover {
    color: var(--primary);
}

.mobile-search {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav {
    padding: 0;
}

.mobile-nav-item {
    display: block;
    padding: 14px 20px;
    color: #475569;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-item:hover {
    background: #f8fafc;
    color: var(--bg-primary);
}

@media (max-width: 768px) {
    .search-wrapper {
        margin-left: 10px;
    }

    .search-wrapper input.search-input {
        font-size: 14px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
    .header-actions {
        gap: 6px;
    }

    .action-text {
        display: none;
    }

    .search-container {
        /* display: none; */
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-top {
        padding: 14px 0;
        gap: 16px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .action-icon {
        font-size: 18px;
    }
}