.header {
    /*position: relative;*/
    position: sticky;
    top: 0;
    z-index: 1300;
    background: var(--white--white100, #FFFFFF);
}
.header__menu {
    position: absolute;
    top: 100%; /* Начинается сразу под хедером */
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 1.5px 10px -4px rgba(149, 149, 149, 0.20);
    z-index: 1001;
    transition: all 0.3s ease;
}
.header__menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header__menu:not(.active) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}
.header__top_wrapper {
    background-color: #4D4D4D;
}
.header__top {

}
.header__top-links {
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
}
.header__link > a {
    color: #fff0f0;
}
.header__link > a:hover {
    color:var(--azure--azure80)
}
.header__bottom_wrapper {
    padding: 1.5rem 0;
}
.header__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__left {
    margin-right: 1rem;
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 0 0 auto;
}
.header__burger {
    display: block;
    position: relative;
    width: 20px;
    height: 20px;
    z-index: 3;
    cursor: pointer;
}
.header__burger::before, .header__burger::after {
    content: "";
    background-color: #292f36;
    position: absolute;
    width: 100%;
    left: 0;
    transition: all 0.2s linear;
    border-radius: 10px;
    border: 1px solid var(--black--black10, #222324);
}
.header__burger::before {
    top: 0;
}.header__burger::after {
    bottom: 0;
}
.header__burger span {
    position: absolute;
    background-color: #292f36;
    left: 0;
    width: 100%;
    top: 9px;
    border-radius: 10px;
    border: 1px solid var(--black--black10, #222324);
    transition: all 0.2s linear;
}
.header__burger.active span {
    transform: scale(0);
}
.header__burger.active::before {
    transform: rotate(45deg);
    top: 9px;
}
.header__burger.active::after{
    transform: rotate(-45deg);
    bottom: 9px;
}
.logo--big {
    display: block;
}
.logo--small {
    display: none;
}
.header__middle {
    flex: 1 1 auto;
    margin-right: 1rem;
}
.header__right {
    flex: 0 0 auto;
}
.user__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.link__favourite {
    height: 40px;
    width: 40px;
    border-radius: 8px;
    transition: all .2s ease;
    background: transparent;
}
.link__favourite:hover {
    background: var(--grey--grey90, #F7F7F7);
}
.link__favourite > svg {
    margin: auto;
    fill: transparent;
    transition: fill .3s ease;
}
.parent__category_wrapper{
    border-bottom: 1px solid var(--grey--grey80);
}
.menu__nav {
    display: flex;
    gap: 10px;
}
.nav__item {
    font-size: 16px;
    padding: 12px 8px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    transition: all .2s ease;
    background-color: transparent;
}
.nav__item::after {
    content: '';
    position: absolute;
    display: block;
    height: 2px;
    width: 100%;
    opacity: 0;
    border-radius: 100px 100px 0 0;
    left: 0;
    bottom: 0;
    /*border: 2px solid var(--azure--azure50, #006BE2);*/
    background: var(--azure--azure50, #006BE2);
    transition: opacity .2s ease;
}
.nav__item:hover {
    color: var(--azure--azure50, #006BE2);
}
.nav__item.active:hover {
    background-color: transparent;
}
.nav__item.active::after {
    opacity: 1;
}

.menu__item {
    padding: 7px 0;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--black--black10, #222324);
    font-size: 16px;
}
.menu__item > a {
    hyphens: auto;
}
.menu__item:hover > a {
    color: var(--azure--azure50, #006BE2);;
}

.category-group {
    padding: 24px 0;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    transition: opacity 0.3s ease;
}

.btn__profile {
    display: flex;
    align-items: center;
    justify-content: center;
}
.user__photo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: var(--azure--azure100);
    border-radius: 50%;
}
.user__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.user__name {
    font-size: 16px;
    font-weight: 700;
}
.user__mail {
    font-size: 14px;
    font-weight: 400;
    color: var(--black--black40, #666);
}
.profile__dropdown {
    position: relative;
}

/* Выпадающее меню */
.dropdown__menu {
    position: absolute;
    top: -15%;
    right: 0;
    width: 330px;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
    margin-top: 5px;
}

.dropdown__menu.active {
    /*position: relative;*/
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Элементы меню */
.dropdown__item {
    padding: 0;
}

.dropdown__link {
    color: #000000;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 12px 16px;
    transition: all 0.2s ease;
    font-size: 16px;
}
.dropdown__link span:nth-child(2) {
    flex-grow: 1; /* Занимает все доступное пространство */
}

.dropdown__link:hover {
    background-color: #f8f9fa;
    color: #006BE2;
}


.profile__links .dropdown__link svg,
.profile__logout .dropdown__link svg{
    stroke: #222324;
    transition: inherit;
}
.profile__links .dropdown__link:hover svg,
.profile__logout .dropdown__link:hover svg{
    stroke: #006BE2;
}

.dropdown__divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 8px 0;
}


.create-product__mobile {
    display: none;
    /*position: absolute;*/
/*    bottom: 0;
    right: 15px;*/
}
.create-product__mobile-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 15px;
    left: 15px;
}


.mobile-menu {
    position: fixed;
    /*top: 120px; !* Высота header__bottom + отступ *!*/
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px); /* Оставшаяся высота экрана */
    background: white;
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
    display: none; /* По умолчанию скрыто */
}

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

.mobile-menu__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
    height: 100%;
}

/* Аккордеон категорий */
.mobile-categories {
    margin-bottom: 30px;
}

.mobile-category__item:not(:first-child) {
    border-top: 1px solid var(--grey--grey80, #D7D7D7);
}

.mobile-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 0;
    cursor: pointer;
    font-size: 16px;
}
.mobile-category__arrow {
    position: relative;
    transition: transform 0.3s ease;
}
.mobile-category__item.active .mobile-category__arrow {
    transform: rotate(180deg);
}

.mobile-category__content {
    /*padding-bottom: 12px;*/
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-category__item.active .mobile-category__content {
    max-height: 500px;
}

.mobile-category__link {
    display: block;
    padding-bottom: 16px;
    color: var(--black--black40, #666666);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}
.mobile-category__link:last-child {
    padding-bottom: 24px;
}
/* Мобильный профиль */
.mobile-profile {
    display: none;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.mobile-profile__link {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}


.mobile__authorize {
    display: none;
}
.mobile__authorize-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.mobile__authorize-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1100;
    padding: 20px 15px;
    flex-direction: column;
    overflow-y: auto;
    box-sizing: border-box;
    transition: right .3s ease;
    display: none;
}
.item__info {
    color: var(--black--black40, #666666)
}
.mobile__authorize-menu.active {
    right: 0;
}
.authorize-menu__icon {
    display: none;
    margin-bottom: 31px;
    /*display: flex;*/
}
.authorize-menu__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.authorize-menu__login {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--grey--grey80, #D7D7D7);
}
.authorize-menu__title {
    margin-bottom: 10px;
    font-weight: 700;
}
.authorize-menu__subtitle {
    font-weight: 400;
    font-size: 16px;
}
.authorize-menu__button > a {
    font-size: 16px;
    color: #fff;
    background-color: var(--azure--azure50, #006BE2);
}
.authorize-menu__button {
    margin: 24px 0;
}
.authorize-menu__links {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.authorize-menu__link {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
}
.authorize-menu__link > span {
    color: var(--black--black10, #222324);
    font-size: 16px;
    font-weight: 400;
}
@media only screen and (max-width:1280px) {
    .authorize-menu__icon {
        display: flex;
        flex: 0 0 auto;
    }
    .create-product__mobile,
    .create-product__mobile-menu {
        display: block;
    }
    .search-form {
        display: none !important;
    }
    .create-product__desktop {
        display: none;
    }
    .user__favourite {
        display: none;
    }
    .desktop__menu {
        display: none; /* Скрываем десктопное меню */
    }

    .mobile-menu {
        display: block; /* Показываем мобильное меню */
    }
    .mobile__authorize-menu {
        display: flex;
    }

    .profile__dropdown .dropdown__menu {
        /*display: none; !* Скрываем десктопное меню профиля *!*/
    }

    .header__burger {
        display: block; /* Показываем бургер */
    }

    .create-product__desktop {
        display: none;
    }

    .mobile__authorize {
        display: block;
    }
    .desktop__authorize {
        display: none;
    }
    .dropdown__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        transform: translate(100%, 0);
        margin-top: 0;
        padding: 20px 15px 100px;
        overflow-y: auto;
        /* Анимация для мобильного вида */
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    .profile__link {
        flex-direction: column;
    }
    .profile__links {
        padding-top: 16px;
    }
    .user__photo > svg {
        width: 41px;
        height: 41px;
    }
    .user__photo{
        width: 72px;
        height: 72px;
    }
    .user__info {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    .dropdown__divider {
        margin: 8px;
    }
    .dropdown__link {
        padding: 16px;
    }
}

@media (min-width: 1281px) {
    .mobile-menu {
        display: none; /* Скрываем мобильное меню на десктопе */
    }

}
@media only screen and (max-width: 768px) {
    .header__middle {
        display: none;
    }
    .header__left {
        gap: 10px;
    }
    .logo--big {
        display: none;
    }
    .logo--small {
        display: block;
    }
}