.select2-container--default .select2-selection--single {
    background-color: #f8f8f8; 
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 55px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #3d3d3d;
    line-height: 45px;
    padding-left: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    width: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #ff7300 transparent transparent transparent; /* Красная стрелочка */
        border-width: 6px 6px 0 6px;
}
.select2-dropdown {
    background-color: #f8f8f8;
    border: 1px solid #f8f8f8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: #3d3d3d;
    z-index: 9999;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #3d3d3d;
    border-radius: 4px;
    outline: none;
    padding: 10px 10px;
}
.select2-results__option {
    padding: 10px 15px;
    background-color: #f8f8f8;
    color: #3d3d3d;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ececec !important; 
    color: #ff7300 !important; 
    font-weight: bold;
}
.select2-results__message {
    color: #999;
    background-color: #f8f8f8;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #ff7300;
    margin-right: 0px;
    font-size: 18px;
    margin-left: 20px;
}
.category-search-aut{
    width: 50%;
    margin: 50px auto;
}
.category-list-aut{
    max-width: 1560px;
    width: 100%;
    margin: 35px auto 35px auto;
}
.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Основной блок */
.category-list-bl {
    flex: 0 1 calc(20% - 15px);
    background-color: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 18px;
    padding: 20px 10px 0 10px; 
    box-sizing: border-box;
    text-align: center;
    position: relative; 
    overflow: hidden; 
    min-height: 180px;
}

.category-list-bl a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}


.category-list-bl img {
    max-width: 80%;
    height: auto;
    margin: 0 auto auto auto; 
    display: block;
    position: relative;
    z-index: 2;
}


.category-list-bl::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: #ff0000;
    transform: translateY(100%); 
    transition: transform 0.3s ease;
    z-index: 1;
}


.category-list-bl span {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px; 
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
        font-style: italic;
    font-size: 1em;
}
.category-list-bl:hover span{
    color: #fff;
}
/* --- Эффекты при наведении --- */


.category-list-bl:hover::before {
    transform: translateY(0);
}


.category-list-bl:hover span {
    color: #ffffff;
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .category-search-aut{
    width: 80%;
   
}
.category-list-aut{
    width: 96%;
}
}
@media (max-width: 992px) {
    .category-list-bl { flex: 0 1 calc(33.333% - 15px); }
}

@media (max-width: 480px) {
    .category-list-bl { flex: 0 1 calc(50% - 10px); }
        .category-search-aut{
    width: 90%;
   
}
.category-list-bl span {
font-size: 0.72em;
}


}

