.second_header{
    background-color: var(--ac);
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 121px;
    width: 100%;
    z-index: 20;
    padding: 8px 0;
    justify-content: space-between;
    transition: top 0.2s ease;
}
.second_header .breadcrumbs{
    margin-left: 40px;
}
.second_header form{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
}
.second_header .search-container{
    display: flex;
    align-items: center;
    position: relative;
}
.second_header .search-container span{
    position: absolute;
    top: 50%;
    z-index: 10;
    left: 10px; /* Расстояние от правого края */
    transform: translateY(-50%);
    pointer-events: none; /* Отключаем события мыши для иконки */
    color: #aaa;
    font-size: 20px;
}
.second_header button{
    /*RESET*/
    border: none;
    margin: 0;
    padding: 0;
    width: auto;
    overflow: visible;
    background: transparent;
    /*STYLES*/
    background-color: var(--bc);
    color: var(--ac);
    font-size: 18px;
    box-shadow: 0 0 2px 0 black;
    border-radius: 12px;
    height: fit-content;
    cursor: pointer;
    padding: 9px 32px;
}
.second_header .search-container .search-input{
    background-color: var(--bc);
    border: 1px solid var(--ac);
    border-radius: 12px;
    padding: 8px 12px 8px 32px;
    width: 300px;
    height: fit-content;
    font-size: 18px;
}
.second_header .search-container .search-input:focus{
    outline: none; /* Убираем стандартный outline */
    box-shadow: none; /* Убираем стандартную тень */
    background-color: white;

}
.second_header.active{
    top: 95px !important;
    transition: top 0.1s ease;
}
/*Categories*/
.container{
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 200px;
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 48px;
}
.categories{
    background-color: var(--bc);
    padding: 16px 32px;
    width: 300px;
    height: fit-content;
    border-radius: 12px;
    box-shadow: 0 0 2px 0 gray;
}
.categories h2{
    margin: 0;
    text-align: center;
}
/* Добавьте стили для dropdown и sub_categories_dropdown */
.categories ul {
    list-style: none;
    padding: 0;
}
.categories .dropdown{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    flex: 1;
}
.categories li {
    position: relative;
    margin-bottom: 10px; /* Добавим немного пространства между категориями */
}
.categories a{
    font-size: 18px;
    color: black;
    text-decoration: none;
    flex-basis: 48%;
}
.categories .sub_categories_dropdown{
    flex-basis: 100%;
}
.categories .sub_categories_dropdown li a{
    color: var(--light-main);
}
.categories .sub_categories_dropdown li a:hover{
    color: var(--ac);
}

.categories .sub_categories_dropdown {
    display: none; /* Скрываем по умолчанию */
    list-style: none;
    padding: 0;
    margin: 8px;
    z-index: 1;
    position: relative; /* Оставим relative для правильного позиционирования */
}

.categories .dropdown.open .sub_categories_dropdown {
    display: block; /* Показываем при открытии */
    animation: slideDown 0.3s forwards; /* Анимация появления */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10%);
    }
}

.categories .arrow {
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 28px;

}

.categories .dropdown.open .arrow {
    transform: rotate(180deg);
}

/*PRODUCTS*/
.shop-body{
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 24px;
    
}
.shop-header{
    text-align: center;
    padding: 8px;
    box-shadow: 0 0 2px 0 black;
    border-radius: 12px;
    
}
.products_list{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.not_found{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 982px) {
    .second_header{
        flex-direction: column;
        align-items: center;
    }
    .second_header form{
        flex-direction: column;
        align-items: center;
        margin: 0
    }
    .container{
        flex-direction: column;
        align-items: center;
        margin-top: 300px;
    }
    .categories{
        width: 90%;
    }
    .categories a{
        flex-basis: 95%;
    }
    .shop-header{
        width: 95%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

}
@media screen and (max-width: 700px) {
    .categories a{
        flex-basis: 80%;
    }
    .categories{
        width: 85%;
    }
    .container{
        margin-left: 12px;
        margin-right: 12px;
    }
    .models-dropdown li{
        font-size: 20px;
    }
    .second_header button{
        display: none;
    }
    .second_header .breadcrumbs{
        margin-left: 0;
    }
}