@charset "UTF-8";

:root {
    --mt-header-bg: #ffffff;
    --mt-header-border: #e5e7eb;
    --mt-header-text: #111827;
    --mt-header-muted: #6b7280;
    --mt-header-primary: #f97316;
    --mt-header-primary-hover: #ea580c;
    --mt-header-surface: #f9fafb;
    --mt-header-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --mt-header-radius: 16px;
    --mt-header-radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

.mt-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mt-header-border);
    font-family: Vazirmatn, sans-serif;
}

.mt-header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.mt-header__right,
.mt-header__left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.mt-header__center {
    flex: 1;
    min-width: 220px;
}

.mt-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--mt-header-text);
    white-space: nowrap;
}

.mt-header__brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--mt-header-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.28);
}

.mt-header__brand-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mt-header__nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mt-header__nav-link,
.mt-header__login-btn,
.mt-header__dropdown-item,
.mt-header__mobile-link {
    color: var(--mt-header-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s ease;
}

.mt-header__nav-link:hover,
.mt-header__login-btn:hover,
.mt-header__dropdown-item:hover,
.mt-header__mobile-link:hover {
    color: var(--mt-header-primary-hover);
}

.mt-header__nav-link.is-active,
.mt-header__mobile-link.is-active {
    color: var(--mt-header-primary-hover);
    font-weight: 700;
}

.mt-header__action-btn,
.mt-header__mobile-action-btn,
.mt-header__search-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mt-header-primary);
    color: #ffffff;
    font-weight: 700;
    transition: 0.2s ease;
}

.mt-header__action-btn,
.mt-header__mobile-action-btn {
    height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
    white-space: nowrap;
}

.mt-header__action-btn:hover,
.mt-header__mobile-action-btn:hover,
.mt-header__search-btn:hover {
    background: var(--mt-header-primary-hover);
}

.mt-header__search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--mt-header-surface);
    border: 1px solid var(--mt-header-border);
    border-radius: 14px;
    padding: 8px;
}

.mt-header__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.mt-header__search-input {
    flex: 1;
    height: 42px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--mt-header-text);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0 8px;
}

.mt-header__search-input::placeholder {
    color: var(--mt-header-muted);
}

.mt-header__search-btn {
    height: 42px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 0.92rem;
}

.mt-header__login-btn {
    white-space: nowrap;
    padding: 0 4px;
}

.mt-header__user-menu {
    position: relative;
}

.mt-header__user-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.mt-header__user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.96rem;
}

.mt-header__user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--mt-header-border);
    border-radius: 14px;
    box-shadow: var(--mt-header-shadow);
    padding: 8px;
    display: none;
}

.mt-header__user-dropdown.is-open {
    display: block;
}

.mt-header__dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.mt-header__dropdown-item:hover {
    background: #f3f4f6;
}

.mt-header__dropdown-item--danger,
.mt-header__mobile-link--danger {
    color: #dc2626;
}

.mt-header__dropdown-item--danger:hover,
.mt-header__mobile-link--danger:hover {
    color: #b91c1c;
}

.mt-header__mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--mt-header-border);
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mt-header__mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--mt-header-text);
    border-radius: 999px;
}

.mt-header__mobile-panel {
    display: none;
    border-top: 1px solid var(--mt-header-border);
    background: #ffffff;
}

.mt-header__mobile-panel.is-open {
    display: block;
}

.mt-header__mobile-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px 20px;
}

.mt-header__search--mobile {
    margin-bottom: 16px;
}

.mt-header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mt-header__mobile-link,
.mt-header__mobile-action-btn {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
}

.mt-header__mobile-link {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid var(--mt-header-border);
}

@media (max-width: 991px) {
    .mt-header__nav--desktop,
    .mt-header__center,
    .mt-header__login-btn,
    .mt-header__user-menu {
        display: none;
    }

    .mt-header__mobile-toggle {
        display: inline-flex;
    }

    .mt-header__container {
        justify-content: space-between;
    }

    .mt-header__brand-text {
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .mt-header__mobile-panel {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .mt-header__container {
        padding: 12px 14px;
    }

    .mt-header__brand-mark {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}
