html, body {
    height: 100%;
    margin: 0;
}

html {
    display: flex !important;
    flex-direction: column !important;
    margin: auto;
}
body{
    font-family: Inter, serif;
    vertical-align: middle;
    color: #06487D;
    line-height: 23px;
    text-align: left;
    font-size: 16px;
}
a{
    color: #06487D;
    cursor: pointer;
    text-decoration: none;
}

h1{
    font-size: 16px;
    color: #06487D;
    text-align: left;
    font-weight: normal;
}

.general-title{
    font-size: 18px;
    font-weight: 500;
    color: #06487D;
    text-align: left;
    margin-bottom: 18px;
}

.main{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.main-search{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.row{
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
}

.main-block{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 80px;
}
.right-side-container{
    display: flex;
    flex-direction: column;
    gap:45px
}

.col-1-4{;
    width: 260px;
}

.col-3-4{
    width: 860px;
    text-align: justify;
}

.footer{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.one-columne-container{
    margin: auto;
    width: 1160px;
    display: block;
}

.hat-container-h{
    display: flex;
    flex-direction: row;
    height: 40px;
    margin: auto;
    justify-content: space-between;
    align-items: center;
}

.hat-container-h-admin{
    display: grid;
    grid-template-columns: auto auto auto;
    flex-direction: row;
    height: 40px;
    margin: auto;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
}
.hat-right-block{
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.contact-container{
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.lang-container{
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.social-icon{
    width: 24px;
    height: 24px;
}

#selectLang {
    /* Наследование шрифта, цвета текста и размера шрифта от body */
    color: inherit;
    font-size: inherit;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    background-color: transparent; /* или другой цвет фона, который вам нужен */
    text-transform: uppercase; /* Делает все буквы заглавными */
}

.header-container{
    display: flex;
    flex-direction: column;
}


.search-container {
    display: flex;
    flex-direction: row;
}

.search-row {
    display: flex;
    flex-direction: row;
    height: 80px;
    gap: 131px;
    align-items: center;
    justify-content: space-between;
}

.search-form {
    display: flex;
    flex-direction: row; /* Добавляем, чтобы позиционировать кнопку относительно формы */
    width: 559px;
    height: 40px;
}

.search-form-admin{
    display: flex;
    gap: 20px;
    flex-direction: row; /* Добавляем, чтобы позиционировать кнопку относительно формы */
    width: 460px;
    height: 40px;
}

.search-input {
    border: 1px solid #6A91B1;
    border-radius: 0;
    width: 100%;
    padding: 10px;
    color: #06487D;
    font-size: inherit;
    outline: none; /* Убираем фокусную рамку */

}

.search-input::placeholder {
    color: #97B2C8;
}

.search-button {
    display: flex;
    background-color: #DF4641;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-content: center;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s; /* Анимация изменения цвета при наведении */
}

.search-button:hover {
    background-color: #D5433E; /* Темнее оттенок красного при наведении */
}

.search-button:active {
    background-color: #B33834; /* Темнее оттенок красного при наведении */
}

.search-button img {
    width: 32px;
    height: 32px;
}

.search-button-admin {
    display: flex;
    background-color: #D8D8D6;
    border: none;
    cursor: pointer;
    width: 140px;
    height: 40px;
    align-content: center;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s; /* Анимация изменения цвета при наведении */
    color: #06487D;
    font-size: 16px;
}

/* Опционально: стили для улучшения внешнего вида при фокусе на элементы */
.search-input:focus, .search-button:focus {
    outline: none;
}

.banner-text-container{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.banner-text-h1 {
    font-size: 24px;
    color: white;
    line-height: 1.26;
}

.banner-text{
    font-size: 20px;
    color: white;
    line-height: 1.26;
}
.banner-container{
    position: relative;
}

.banner-grid-container {
    display: grid;
    grid-template-columns: 57% 43%;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    justify-content: start;
    justify-items: start;
    align-content: center;
}

.banner-context-container{
    display: flex;
    flex-direction: column;
    color: #FFF;
    gap: 40px;
    font-size: 20px;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
}

.last-parts-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.last-parts-button {
    background-color: #DF4641;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.last-parts-button:hover {
    background-color: #D5433E; /* Темнее оттенок красного при наведении */
}

.last-parts-button:active {
    background-color: #B33834; /* Темнее оттенок красного при наведении */
}


#slider-scroll {
    overflow: hidden;
}

.slider-container {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.slider {
    display: flex;
    gap: 32px;
    width: 100%
}
.slider-title-container{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-item-container {
    display: grid;
    grid-template-rows: 160px auto 42px; /* Задает высоту для четырех строк */
    width: 228px; /* Ширина одного товара */
    height: 358px; /* Общая высота контейнера может потребовать корректировки */
    text-align: center; /* Для центрирования текста внутри блока товара */
    border: 1px solid #D8D8D6; /* Добавляет границу вокруг контейнера */
    padding: 4px;
    justify-items: start;
    overflow: hidden; /* Скрытие содержимого, выходящего за пределы */
}

/* «Последние» на главной: статичная сетка 5x2, без слайдера */
.last-parts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.last-parts-grid .slider-item-container {
    width: auto;
}

.carousel-scroll {
    overflow: hidden;
}

/* карусель на карточке товара: 5 карточек в видимой области */
.slider-row-5 .slider {
    gap: 16px;
}
.slider-row-5 .slider-item-container {
    width: 195px;
    height: auto;
    min-height: 358px;
}

.slide-button {
    width: 28px;
    background: #D8D8D6;
    border: none;
    transition: background-color 0.3s;
}

.slide-button:hover {
    background: #D0D0CE;
}

.slide-button:active {
    background: #AEAEAD;
}
.slider-footer-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.slider-price-container {
    display: flex;
    flex-direction: column;

}
.slider-cart-container{
    padding-bottom: 3px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    height: 100%;
}

.slider-price {
    color: #DF4641;
    font-weight: 500;
    text-align: left;
    float: left;
}

.cart-title {
    text-transform: uppercase;
    color: #06487D;
    font-size: inherit;
    font-weight: 500;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-sub-title {
    color: #06487D;
    font-size: inherit;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

}

.grid-cell-image {
    display: block; /* Или display: grid; / flex; в зависимости от вашего дизайна */
    overflow: hidden;
    height: 100%; /* Или конкретная высота, если нужно */
    width: 100%; /* Подгоняет размеры под контейнер */
}

.contact-grid {
    display: flex;
    column-gap: 40px;
}

.partners-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* блок марок в футере: по центру */
.footer-famous-parts{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-famous-parts-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.popular-parts {
    float: left;
    margin-right: 26px;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
}
.popular-parts-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.82;
    transition: opacity 0.2s, transform 0.2s;
}
.popular-parts:hover .popular-parts-logo {
    opacity: 1;
    transform: scale(1.1);
}

.filters-container{
    padding: 18px 30px;
    background: #F5F5F5;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.filter-button-container {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;

}

.filter-button{
    width: 145px;
    height: 40px;
    background: #DF4641;
    color: white;
    font-size: inherit;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    cursor: pointer;

}

/* Стиль контейнера фильтра */
.selectors-container {
    display: flex;
    flex-direction: row;
    gap: 18px;
}

/* Стиль выбранного элемента и его обертки */
.filter-car-wrapper {
    padding: 10px;
    background-color: #FFF; /* Фон выбранного элемента */
    cursor: pointer; /* Изменение курсора при наведении */
    color: #97B2C8; /* Цвет текста до выбора */
    position: relative;
    border: 1px solid #6A91B1;
    box-sizing: border-box; /* Включаем внутренние отступы и границу в ширину */
    font-size: 16px;
}

.filter-car-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 10px; /* Ширина изображения стрелочки */
    height: 10px; /* Высота изображения стрелочки */
    background-image: url('/svg/select.svg'); /* URL изображения стрелочки */
    background-size: contain;
    background-repeat: no-repeat;
}

.filter-turncate{
    display: flex;
    gap: 4px;
    padding-right: 10px;
    white-space: nowrap; /* Указываем, что текст должен находиться в одной строке */
    overflow: hidden; /* Скрываем содержимое, выходящее за пределы элемента */
    text-overflow: ellipsis;
}

/* Стиль для контейнера опций */
.car-options-container {
    top: 100%;
    left: -1px;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    border: solid 1px #6A91B1;
    border-top: none;
    background: white;
}

/* Стиль для каждого элемента списка */
.car-option {
    padding: 10px;
    cursor: pointer; /* Изменение курсора при наведении */
    color: #06487D;
}

.car-option-sort {
    padding: 10px;
    cursor: pointer; /* Изменение курсора при наведении */
    color: #06487D;
}

.sort-content{
    white-space: nowrap; /* Не переносить текст на новую строку */
    overflow: hidden; /* Скрывать содержимое, выходящее за границы элемента */
    text-overflow: ellipsis; /* Добавить многоточие в конце обрезанного текста */
}

.car-option:last-child {
    border-bottom: none; /* Убираем разделитель у последнего элемента списка */
}

.car-option:hover {
    background-color: #F0F0F0; /* Фон элемента списка при наведении */
}

/* Стилизация после выбора элемента */
.selected-car:not(:empty) {
    color: #06487D; /* Цвет текста после выбора */
}
.filter-car-wrapper.active-filter::after {
    transform: translateY(-50%) rotate(180deg); /* Поворачиваем стрелку на 180 градусов */
}
/* Стилизация основного контейнера меню */
#menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #F5F5F5;
    font-family: 'Inter', serif;
    font-size: 16px;
    padding: 18px 8px;
}

/* Стилизация пунктов меню с использованием Flexbox */
.menu-item {
    color: #06487D; /* Обычный цвет текста */
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    align-items: end;
    margin: 4px 0;
}

.sub-menu {
    display: none;
    margin-left: 10px;
}

.active, .active > .number, .active > .indicator {
    color: #DF4641; /* Цвет раскрытого списка и чисел в нем */
}

.active-filter, .active-filter > .number, .active-filter > .indicator {

}

.number {
    color: #97B2C8; /* Цвет чисел */
}

.disabled, .disabled > .number, .disabled > .indicator {
    color: #97B2C8; /* Цвет для списка и чисел с числом 0 */
    cursor: default;
}

.indicator {
    margin-left: auto; /* Автоматический отступ слева, прижимает к правому краю */
}
.item {
    flex-grow: 1;
}

.item-container{
    margin: 4px 0;
}
.title-search-container{
    display: flex;
    flex-direction: row;
    font-size: 18px;
    padding-right: 29px;
    justify-content: space-between;
    align-items: flex-end;
}

.title-search-query{
    max-width: 300px;
}

.search-product-list{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-product-container{
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    border: #6A91B1 1px solid;
}

/* автокомплит поисковой строки */
.search-suggest-dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid #D8D8D6;
    border-top: none;
    z-index: 1100;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.search-suggest-item{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
}
.search-suggest-item:hover,
.search-suggest-item.search-suggest-active{
    background: #F2F4F6;
}
.search-suggest-img{
    width: 56px;
    height: 42px;
    object-fit: cover;
    flex: 0 0 56px;
    background: #F2F2F2;
}
.search-suggest-text{
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.search-suggest-title{
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggest-sub{
    font-size: 12px;
    color: #6A6A6A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-suggest-price{
    font-weight: 600;
    color: #DF4641;
    white-space: nowrap;
}

/* вид листинга сеткой (переключатель список/сетка) */
.sort-container{
    display: flex;
    flex-direction: row;
    align-items: center;
}
.view-toggle-container{
    display: flex;
    gap: 4px;
    align-items: center;
    margin-right: 12px;
}
.view-toggle-button{
    width: 36px;
    height: 36px;
    font-size: 18px;
    border: 1px solid #D8D8D6;
    background: #FFFFFF;
    color: #6A91B1;
    cursor: pointer;
}
.view-toggle-button.view-toggle-active{
    background: #DF4641;
    border-color: #DF4641;
    color: #FFFFFF;
}
.search-product-list.grid-view{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.search-product-list.grid-view .search-product-container{
    grid-template-columns: 1fr;
    gap: 12px;
}
.search-product-list.grid-view .search-product-img-container{
    width: 100%;
    height: 180px;
}
.search-product-list.grid-view .search-product--price{
    font-size: 22px;
}
.search-product-list.grid-view .loading-placeholder-product-container{
    grid-template-columns: 1fr;
}

.search-product-container-popup{
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
}

.search-product-img-container{
    position: relative;
    width: 280px;
    height: 208px;
    overflow: hidden;
}

.search-product-img-container img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обеспечивает заполнение контейнера с сохранением пропорций */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Центрирует изображение */
}
.search-product-details-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.search-product--price{
    font-size: 28px;
    font-weight: 500;
    color: #DF4641;
}

.search-product-storage-place{
    text-transform: uppercase;
}
.search-product-footer-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
}
.pagination-container{
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: flex-end;
}
.paginate-button{
    border: 1px solid #06487D;
    font-size: 18px;
    background: none;
    padding: 10px;
    cursor: pointer;
}

.paginate-button-active{
    background: #06487D;
    color: white;
}

.paginate-button-disable{
    background: #F5F5F5;
    color: #97B2C8;

}
.not-found-part-img-container{
    display: flex;
    flex-direction: column;
    width: 230px;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.not-found-part-container{
    display: flex;
    flex-direction: row;
}

.not-found-details-container{
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 18px;
    font-weight: 600;
    max-width: 400px;
}

.footer{
    margin-top: 80px;
}

.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 860px;
    height: 377px;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1050;
    width: 860px;
    min-width: 377px;
    padding: 1rem;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: #6A91B1 1px solid;
}

@keyframes placeholderShimmer {
    0% {
        background-color: #F5F5F5;
    }
    50% {
        background-color: #D8D8D6;
    }
    100% {
        background-color: #F5F5F5;
    }
}
.loading-placeholder-product-container{
    border: 1px solid #F5F5F5;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
}

.loading-placeholder {
    animation: placeholderShimmer 1.5s infinite;
    background-color: #D8D8D6;
    color: transparent;
}
/* Скрыть на мобильных */
.hide-on-mobile {
    display: none;
}

/* Показать на мобильных */
.show-on-mobile {
    display: none;
}

.overlay-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(216, 216, 214, 0.7);
    display: none;
    z-index: 1;
}


@media (max-width: 720px) {
    .hide-on-mobile {
        display: none;
    }
    .show-on-mobile {
        display: block;
    }
}

.popup-adress-container{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.popup-buttons-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: none;
}

.popup-online-button{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 170px;
    padding: 12px;
    background: #D8D8D6;
    font-size: 16px;
    border: none;
}

.popup-offline-button{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 170px;
    padding: 12px;
    color: white;
    background: #DF4641;
    font-size: 16px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.close-popup-btn {
    position: fixed;
    right: 32px;
    width: 12px;
    height: 12px;
}

.popup-form-conainer{
    display: flex;
    flex-direction: column;
    gap: 40px;
}
#contactForm{
    display: flex;
    flex-direction: column;
    gap: 69px;
    align-items: center;
}
.form-group{
}

.form-control{
    padding: 10px;
    width: 255px;
    border-radius: 0;
    border: #6A91B1 1px solid;
}
.popup-contact-grid {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 40px;
}
.popup-ok-container{
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.mobile{
    display: none;
}
.account-orders-container {
    padding: 12px;
    border: 1px solid #6A91B1;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    padding-bottom: 12px;
    border-bottom: 1px solid #6A91B1;
}

th, td {
    border: none;
    text-align: center;
    width: 20%;
}

th:first-child, td:first-child {
    width: 10%;
}

tr:not(:last-child) {
    border-bottom: 1px solid #6A91B1;
}

details summary {
    display: table;
    width: 100%;
    border-bottom: 1px solid #6A91B1;
    table-layout: fixed;
    background-color: white;
    padding: 22px 0;
    line-height: 2;
    cursor: pointer;
}

details summary span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    width: 20%;
    overflow-wrap: anywhere;
}

details summary span:first-child {
    width: 10%;
}

details[open] {
    background-color: #E1E9EF;
}
details[open] summary {
    background-color: #E1E9EF;
}

.caret-icon {
    transition: transform 0.2s ease-in-out;
}

details[open] .caret-icon {
    transform: rotate(180deg);
}
.part-item-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #6A91B1;
}
.part-details-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.part-details-container img{
    width: 220px;
 }
.address-container{
    display: flex;
    flex-direction: column;
    line-height: 1.8;
}
.price-container{
    line-height: 1.8;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #6A91B1;
    gap: 300px;
}
.button-binoculars{
    display: flex;
    border: 1px solid #6A91B1;
    background: white;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

.button-invoice-container{
    display: flex;
    border: 1px solid #6A91B1;
    background: white;
    gap: 12px;
    align-items: center;
    padding: 12px;
}
.button-invoice-container a{
    background: none;
    border: none;
}
.address-invoice-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid #6A91B1;
    align-items: flex-end;
}
.buttons-container-binoculars-invoice{
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}
.account-title{
    text-align: center;
    font-size: 20px;
    margin: 20px;
}
/* юр. реквизиты в футере */
.footer-requisites{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    font-size: 13px;
    color: #6A91B1;
    padding: 12px 0 24px;
}
