.header--site-header {
    height: 90px;
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
}

.header--container {
    width: 100%;
    max-width: 1431px;
    margin: 0 auto;
    padding: 0 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header--logo-image {
    height: 36px;
    width: auto;
}

.header--main-nav {
    display: flex;
    gap: 40px;
}

.header--nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.18px;
    transition: color 0.2s;
}

.header--nav-link:hover,
.header--nav-link.active {
    color: var(--color-white);
}

.header--actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header--login-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.18px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.header--login-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header--signup-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.18px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.header--signup-btn:hover {
    background-color: #008855;
}

.header--search {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 16px;
    margin: 0 40px;
}

.header--search .header--search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.header--search .header--search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 14px;
    padding: 12px;
}

.header--search .header--search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header--search .header--search-btn {
    background-color: #ef4444;
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header--search .header--search-btn:hover {
    background-color: #dc2626;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 28px rgba(0,0,0,0.15);
    z-index: 1100;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
}

.search-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-dropdown__empty {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.search-dropdown__section {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.search-dropdown__section:last-of-type {
    border-bottom: none;
}

.search-dropdown__section-title {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
}

.search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.15s;
}

.search-dropdown__item:hover {
    background-color: #f9fafb;
}

.search-dropdown__img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background-color: #f9fafb;
    flex-shrink: 0;
}

.search-dropdown__img--placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.search-dropdown__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin: 0 2px;
}

.search-dropdown__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-dropdown__label {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown__label strong {
    color: #009966;
    font-weight: 700;
}

.search-dropdown__sublabel {
    font-size: 11px;
    color: #9ca3af;
}

.search-dropdown__price {
    font-size: 13px;
    font-weight: 600;
    color: #009966;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-dropdown__viewall {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #009966;
    border-top: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.search-dropdown__viewall:hover {
    background-color: #f0fdf4;
}

.header--user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header--guest-signup-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.18px;
    padding: 10px 18px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.header--guest-signup-btn:hover {
    background-color: #008855;
}

.header--admin-switch {
    position: relative;
}

.header--admin-switch-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 84px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header--admin-switch-btn:hover,
.header--admin-switch-btn.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.header--admin-switch-icon {
    width: 15px;
    height: 15px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.header--admin-switch-label {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.header--admin-switch-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ef4444;
    border: 2px solid var(--color-bg-dark);
    display: none;
}

.header--admin-switch-dot.active {
    display: block;
}

.header--admin-switch-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    width: 320px;
    max-width: calc(100vw - 32px);
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1200;
}

.header--admin-switch-panel.open {
    display: block;
}

.header--admin-switch-header {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.header--admin-switch-input {
    width: 100%;
    height: 38px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
}

.header--admin-switch-input:focus {
    border-color: #009966;
}

.header--admin-switch-results {
    margin-top: 8px;
    max-height: 230px;
    overflow: auto;
    border: 1px solid #f0f1f3;
    border-radius: 8px;
}

.header--admin-switch-result {
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 9px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.header--admin-switch-result:last-child {
    border-bottom: none;
}

.header--admin-switch-result:hover {
    background: #f9fafb;
}

.header--admin-switch-result-name {
    display: block;
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--admin-switch-result-meta {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--admin-switch-empty {
    padding: 12px 10px;
    font-size: 12px;
    color: #6b7280;
}

.header--admin-switch-reset {
    margin-top: 10px;
    width: 100%;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.header--admin-switch-reset:hover {
    background: #f9fafb;
}

.header--cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background-color 0.2s;
}

.header--cart-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.header--cart-btn .header--cart-icon {
    width: 22px;
    height: 22px;
}

.header--cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.header--user-dropdown {
    position: relative;
}

.header--user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(70vw, 320px);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.header--user-dropdown-trigger:hover,
.header--user-dropdown-trigger.active {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.header--user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header--user-avatar span {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header--user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    max-width: 220px;
}

.header--user-name {
    display: block;
    max-width: 100%;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--user-name--x-user {
    color: #ef4444 !important;
}

.header--dropdown-user-name--x-user {
    color: #ef4444 !important;
}

.header--user-type {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--dropdown-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.header--user-dropdown-trigger.active .header--dropdown-chevron {
    transform: rotate(180deg);
}

.header--dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.header--dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header--dropdown-header {
    padding: 16px;
    background-color: #f9fafb;
}

.header--dropdown-user-name {
    display: block;
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header--dropdown-user-email {
    display: block;
    color: var(--color-text-muted);
    font-size: 12px;
}

.header--dropdown-divider {
    height: 1px;
    background-color: #f3f4f6;
}

.header--dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-family);
}

.header--dropdown-item:hover {
    background-color: #f9fafb;
}

.header--dropdown-item--highlight {
    background-color: #f0fdf4;
}

.header--dropdown-item--highlight:hover {
    background-color: #f9fafb;
}

.header--dropdown-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.header--dropdown-item.header--logout-btn {
    color: #ef4444;
}

.header--dropdown-item.header--logout-btn:hover {
    background-color: #fef2f2;
}

.header--dropdown-item.header--logout-btn .header--dropdown-icon {
    opacity: 1;
}

@media (max-width: 1200px) {
    .header--container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .header--site-header {
        height: auto;
    }

    .header--container {
        flex-direction: column;
        align-items: center;
        padding: 12px 16px;
        gap: 10px;
    }

    .header--logo-image {
        height: 30px;
    }

    .header--main-nav {
        display: flex;
        gap: 24px;
    }

    .header--nav-link {
        font-size: 13px;
    }

    .header--actions {
        gap: 10px;
    }

    .header--login-link {
        font-size: 13px;
        padding: 8px 14px;
    }

    .header--signup-btn {
        font-size: 13px;
        padding: 8px 14px;
    }

    .header--search {
        max-width: 100%;
        margin: 0;
        order: 10;
        width: 100%;
    }

    .header--user-info {
        display: none;
    }

    .header--user-dropdown-trigger {
        padding: 6px;
    }

    .header--admin-switch-btn {
        width: 44px;
        gap: 0;
    }

    .header--admin-switch-panel {
        position: fixed;
        top: 132px;
        right: auto;
        left: 50%;
        width: min(320px, calc(100vw - 32px));
        max-width: none;
        transform: translateX(-50%);
    }

    .header--admin-switch-label {
        display: none;
    }

    .header--guest-signup-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
}
