.header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    color: #ffffff;
    z-index: 99999 !important;
    transition: 0.3;
    background-color: var(--white) !important;
}
.header-icon__filter {
    filter: brightness(0%);
}
.header_boot {
    height: 80px;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    background-color: var(--white);
}

.header_top {
    height: 50px;
}

.header_top_text {
    display: flex;
    gap: 44px;
    font-size: 14px;
}

.header_top span.phone {
    font-size: 20px;
    padding-right: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 20px;
}

.header_phone {
    display: none;
}

.authUser {
    width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 51px;
    background: #ffffff33;
    cursor: pointer;
    transition: 0.3s;
}

.authUser_border {
    border-left: 0.2px solid #cacaca;
}

.catalog_menu {
    width: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffb630;
    color: #000;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid #ffb630;
    margin: 0 12px;
}

.catalog_menu:hover {
    background: var(--yellow_null);
}

.catalog_button {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
}

nav.header_top_auth.flexBlock {
    font-size: 14px;
    gap: 0px;
}

.header_top_auth_adaptiv {
    display: none;
}

nav.header_top_auth a {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    transition: 0.3s;
    background: #ffffff00;
    white-space: nowrap;
}

nav.header_top_auth .catalog_menu a {
    padding: 0;
    transition: none;
}

.link_on_catalog:hover {
    background: none !important;
}
.personal_account_menu_item p {
    margin-bottom: 0;
}
.header_top_auth_phone {
    text-decoration: none !important;
}
.header_top_auth_phone:hover {
    text-decoration: none !important;
    color: var(--default-black);
}
.header-nav__link {
    text-decoration: none !important;
    color: #333 !important;
}
.header_icon:hover {
    background: #ffb63029 !important;
}
.header-nav__link:hover {
    background: #ffb63029;
}
.header_top_auth .catalog_menu a:hover {
    background: none;
}

.header_top_auth .header_top_auth_phone:hover {
    background: none;
}

.logo_adaptiv {
    display: none;
}

.header.scrolled .authUser {
    height: 35px;
}

.header.scrolled .authUser img {
    height: 20px;
}

.header.scrolled .header_top {
    height: 35px;
}

.header.scrolled .header_top span.phone {
    font-size: 14px;
}

.header.scrolled .header_boot {
    height: 45px;
}

.header.scrolled .logoImg {
    height: 28px;
}
.header.scrolled div .logoImg {
    height: 28px;
}

.header.scrolled nav.header_top_auth.flexBlock {
    font-size: 14px;
}

.header.scrolled .catalog_menu {
    height: 32px;
}

.header.scrolled nav.header_top_auth a {
    height: 45px;
}

.header.scrolled nav.header_top_auth.flexBlock {
    gap: 9px;
}

.header.scrolled .burger span {
    height: 1px;
    margin: 4px auto;
}

.header_icon {
    transition: 0.3s;
}

/*БОКОВОЕ МЕНЮ*/

.side_menu_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    cursor: pointer;
}

.side_menu_title p {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: #161616;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* Начальное значение с нулевой непрозрачностью */
    z-index: 99;
    transition: 0.3s; /* Плавные переходы */
    opacity: 0; /* Начальная непрозрачность */
    visibility: hidden; /* Элемент невидим */
}

.overlay.active {
    background: rgba(0, 0, 0, 0.5); /* Устанавливаем затемнение */
    opacity: 1; /* Полная непрозрачность */
    visibility: visible; /* Делает элемент видимым */
}

.header_catalog_menu {
    position: fixed;
    left: -455px; /* Сначала скрываем меню за пределами экрана */
    /* top: var(--header-height); Используем переменную для высоты шапки */
    /*height: calc(100vh - var(--header-height)); Высота меню */
    top: 0;
    height: 100vh;
    width: 455px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* overflow-y: auto; */
    transition: transform 0.3s ease; /* Плавный переход */
    z-index: 10000;
}
.header_catalog_menu:hover {
    transform: translateX(455px);
}

@media screen and (max-width: 950px) {
    .header_catalog_menu:hover {
        transform: none;
    }
}

.header_catalog_menu.active {
    transform: translateX(455px); /* Двигаем меню в область видимости */
}

.header_catalog_menu-ul {
    list-style: none !important; /* Убираем стандартные маркеры списка */
    padding: 71px 23px 91px 83px !important;
    overflow-y: scroll !important;
    margin-right: 10px !important;
    height: 100% !important;
}

.header_catalog_menu-ul::-webkit-scrollbar {
    width: 4px !important;
    background-color: #eee !important;
    border-radius: 4px !important;
}

.header_catalog_menu-ul::-webkit-scrollbar-thumb {
    background-color: #eee !important;
    border-radius: 4px !important;
}

.header_catalog_menu-ul::-webkit-scrollbar-track {
    /* -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2); */
    background-color: #fff !important;
    border-radius: 4px !important;
}

.header_catalog_menu--item {
    border: 1px solid rgba(0, 0, 0, 0) !important;
    padding: 16px 32px !important;
    border-radius: 4px !important;
    transition: 0.3s !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}

.header_catalog_menu--link {
    text-decoration: none !important; /* Убираем подчеркивание ссылки */
    font-family: "Montserrat", sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #333 !important;
}

.header_catalog_menu--item:hover {
    background: #ffb630;
}

.close-btn2 {
    display: none;
}

.burger {
    cursor: pointer; /* Указатель при наведении */
    transition: all 0.3s ease; /* Плавный переход */
}

.burger span {
    display: block; /* Каждая линия занимает отдельную строку */
    height: 2px; /* Высота линии */
    width: 20px; /* Длина линии */
    background: #333; /* Цвет линии */
    margin: 5px auto; /* Отступы сверху и снизу */
    transition: all 0.3s ease; /* Плавный переход для всех свойств */
}

/* Стили для режима "крестик" */
.burger.active .burger_top {
    transform: rotate(45deg) translate(5px, 5px); /* Поворот верхней линии */
}

.burger.active .burger_center {
    opacity: 0; /* Убираем центр, чтобы его не было видно */
}

.burger.active .burger_bottom {
    transform: rotate(-45deg) translate(5px, -5px); /* Поворот нижней линии */
}

/*СКРЫТЫЙ БЛОК ПРИ НАВЕДЕНИИ НА КОРЗИНУ И ЛК*/

.header_top_auth {
    position: relative;
}

.header_basket_hidden_block,
.header_icon_lk_hidden_block {
    opacity: 0;
    transition: 0.3s;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffb630;
    color: #000;
    padding: 10px;
    height: 0;
    z-index: 10;
    overflow: hidden;
}

.header_top_auth .header_basket:hover .header_basket_hidden_block {
    opacity: 1;
    height: 50px;
}

.header_top_auth .header_icon_lk:hover .header_icon_lk_hidden_block {
    opacity: 1;
    height: 50px;
}

.header_basket_hidden_block a:hover,
.header_icon_lk_hidden_block a:hover {
    background: none;
}

/*ЛИЧНЫЙ КАБИНЕТ У АВТОРИЗИРОВАННОГО ПОЛЬЗОВАТЕЛЯ*/

.personal_account_menu {
    position: fixed;
    right: -315px; /* Сначала скрываем меню за пределами экрана */
    top: 0;
    height: 100vh;
    width: 315px;
    background: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease; /* Плавный переход */
    z-index: 10000;
}

.personal_account_menu::-webkit-scrollbar {
    width: 3px;
    background-color: #f9f9fd;
}

.personal_account_menu::-webkit-scrollbar-thumb {
    background-color: #b2b2b2;
}

.personal_account_menu::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
    background-color: #f9f9fd;
}

.personal_account_menu.active {
    transform: translateX(-100%); /* Двигаем меню в область видимости */
}
.overlay3 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0); /* Начальное значение с нулевой непрозрачностью */
    z-index: 99;
    transition: 0.3s ease; /* Плавный переход для затемнения */
    opacity: 0; /* Начальная непрозрачность */
    visibility: hidden; /* Элемент невидим */
}

.overlay3.active {
    background: rgba(0, 0, 0, 0.5); /* Устанавливаем затемнение */
    opacity: 1; /* Полная непрозрачность */
    visibility: visible; /* Делает элемент видимым */
}

.personal_account_menu_title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 62px 26px 24px 40px;
}

.personal_account_name {
    display: flex;
    align-items: center;
    gap: 16px;
}

.personal_account_name_img {
    border-radius: 100%;
    background: #d9d9d9;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personal_account_name p {
    width: 65%;
}

.personal_account_menu hr {
    border: 1px solid #666;
}

.personal_account_menu_block_one,
.personal_account_menu_block_two {
    margin-bottom: 48px;
}

.link_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personal_account_menu_link {
    margin: 33px 58px 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75vh;
}

.personal_account_menu_item {
    border-radius: 4px;
    padding: 8px 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.personal_account_menu_item.yellow {
    background: #ffb630;
}

.personal_account_menu_item.yellow img {
    filter: none;
}

.personal_account_menu_item.yellow p {
    color: #333;
}

.personal_account_menu_item p {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.personal_account_menu_item img {
    filter: brightness(0) invert(1);
}

.personal_account_menu_item:hover,
.personal_account_menu_item.active {
    background: #fff !important;
}

.personal_account_menu_item:hover p,
.personal_account_menu_item.active p {
    color: #333;
}

.personal_account_menu_item:hover img,
.personal_account_menu_item.active img {
    filter: brightness(0%);
}

.personal_account_menu_item span {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #333;
    background: #ffb630;
    border-radius: 100%;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.personal_account_login.close_account_btn {
    cursor: pointer;
}

/*ФОРМА АВТОРИЗАЦИИ*/

.authorization_form {
    position: fixed;
    right: -722px; /* Исходное положение за пределами экрана */
    top: 0;
    height: 100vh;
    width: 722px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease; /* Плавный переход для формы */
    z-index: 10000;
}

.authorization_form.active {
    transform: translateX(-722px); /* Двигаем форму в область видимости */
}

.authorization_form .h2 {
    margin: 120px 0 72px 40px;
}

.form_top_block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px;
    height: 130px;
    border-bottom: 1px solid #cacaca;
}

.form_top_block img {
    width: 42px;
    height: auto;
    cursor: pointer;
}

.form_top_block button {
    border: 1px solid #000;
    border-radius: 4px;
    padding: 10px 20px;
    width: 148px;
    height: 44px;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #171615;
    background: #fff;
    cursor: pointer;
}

.form_content {
    display: flex;
    flex-direction: column;
}

.form_content input {
    padding: 25px 40px;
    border: none;
    border-top: 1px solid #cacaca;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333;
}

.form_content_bottom {
    display: grid;
    grid-template-columns: 70% 30%;
}

.forgot_password {
    text-align: left;
}

.form_content_bottom_field {
    border: 1px solid #cacaca;
    padding: 25px 40px;
    background: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

/*ФОРМА РЕГИСТРАЦИИ*/

.registration_form {
    position: fixed;
    right: -722px; /* Исходное положение за пределами экрана */
    top: 0;
    height: 100vh;
    width: 722px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    transition: transform 0.3s ease; /* Плавный переход для формы */
    z-index: 10000;
}

.registration_form.active {
    transform: translateX(-722px); /* Двигаем форму в область видимости */
}

.registration_form .h2 {
    margin: 120px 0 8px 40px;
}

.registration_form p {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: #cacaca;
    margin: 0 0 40px 40px;
}

/*ПОИСК*/

.header_search {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 0.5px solid #cacaca;
    margin-left: 54px;
}

.header_search-field input {
    border: none;
    background: transparent;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #cacaca;
}

.catalog_action {
    margin: 32px 0 0 32px;
    border-radius: 2px;
}

.personal_account_login a:hover {
    background: none !important;
}
.exit-accaunt-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}
.footer_form_button-user {
    text-transform: unset;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    height: 36px;
    border: 1px solid var(--light-orange);
}

.footer_form_button-user:hover {
    background-color: #fff !important ;
    border: 1px solid transparent;
}
/*АДАПТИВ*/

@media screen and (max-width: 1500px) {
    .header_top_text {
        gap: 30px;
    }

    .header_search {
        margin-left: 0;
    }

    nav.header_top_auth.flexBlock {
        gap: 5px;
    }

    .header.scrolled .header_top_text {
        gap: 80px;
    }
}

@media screen and (max-width: 1250px) {
    .header .authUser {
        height: 51px;
        width: 42px;
    }

    .header .authUser img {
        height: 20px;
    }

    .header .header_top,
    .header .header_boot {
        height: 51px;
    }

    .header_top span.phone {
        font-size: 14px !important;
    }

    .header .logoImg {
        height: 32px;
    }

    .header nav.header_top_auth.flexBlock {
        font-size: 14px;
    }

    .header .catalog_menu {
        height: 32px;
    }

    .catalog_menu {
        width: 130px;
    }

    .catalog_button {
        width: 80%;
        padding: 0;
    }

    nav.header_top_auth a {
        height: 45px;
        padding: 0 15px;
    }

    .header_top_text_address {
        width: 202px;
    }

    nav.header_top_auth.flexBlock {
        gap: 0px;
    }

    .header.scrolled .authUser {
        height: 51px !important;
        width: 42px !important;
    }

    .header.scrolled .header_top,
    .header.scrolled .header_boot {
        height: 51px !important;
    }

    .header.scrolled nav.header_top_auth.flexBlock {
        gap: 0 !important;
    }

    .header.scrolled .logoImg {
        height: 32px;
    }

    .header.scrolled .header_top_text {
        gap: 30px;
    }

    .header.scrolled .burger span {
        height: 2px;
        margin: 5px auto;
    }
}

@media screen and (max-width: 950px) {
    .header {
        border-bottom: 0.5px solid #f8f8f8;
    }

    .header_top_text,
    .header_top_auth_phone,
    .header .lineBlock {
        display: none;
    }

    .header_top_auth_adaptiv {
        display: flex;
    }

    .header_top_auth_adaptiv .catalog_menu {
        margin: 0;
        height: 51px;
        width: 42px;
        border-radius: 0;
    }

    .header_top_auth_adaptiv .catalog_button {
        width: 100%;
        justify-content: center;
    }

    .header_top_auth_adaptiv .burger span {
        background: #fff;
    }

    .header.scrolled .header_top_auth_adaptiv .catalog_menu {
        height: 51px;
    }

    .header_phone {
        display: flex;
        border-right: 0.2px solid #f8f8f87d;
    }

    .header_basket_hidden_block,
    .header_icon_lk_hidden_block {
        display: none;
    }

    .logo_adaptiv {
        display: flex;
    }

    .close-btn2 {
        display: block;
    }
}

@media screen and (max-width: 722px) {
    .authorization_form,
    .registration_form {
        width: 100vw;
    }
}

@media screen and (max-width: 650px) {
    .main_slider_main_title,
    .main_slider_description,
    .main_slider_text {
        width: 100% !important;
    }

    .slider_nav_center {
        font-size: 38px !important;
    }

    .slider_nav_arrow {
        width: 25px !important;
    }

    .side_menu_title {
        margin-bottom: 20px;
    }

    .header_catalog_menu-ul {
        padding: 16px 30px !important;
    }

    .header .logoImg {
        height: 24px;
    }

    .header.scrolled .logoImg {
        height: 24px;
    }
}

@media screen and (max-width: 450px) {
    /*ВСПЛАВАЮЩИЕ ОКНА*/
    .header_catalog_menu,
    .filter_block {
        width: 100vw !important;
    }

    .header_catalog_menu-ul {
        padding: 70px 30px;
    }
}
