.text_block img{
    max-width: 100%;
}
.cke_notification_warning{display: none;}

/* Автодополнение поиска */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-autocomplete.show {
    display: block;
}

.search-suggestion {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-suggestion:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.search-suggestion:hover,
.search-suggestion.active {
    background-color: #f8f9fa;
}

.search-suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-suggestion-main {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.search-suggestion-details {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 8px;
}

.search-suggestion-code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.search-suggestion-brand {
    color: #007bff;
    font-weight: 500;
}

.search-suggestion-price {
    color: #28a745;
    font-weight: 600;
    font-size: 13px;
}

.search-container {
    position: relative;
}

.search-autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-autocomplete-empty {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-highlight {
    background: #fff3cd;
    font-weight: bold;
}

@media (max-width: 768px) {
    .search-autocomplete {
        left: -10px;
        right: -10px;
        max-height: 250px;
    }
    
    .search-suggestion {
        padding: 10px 12px;
    }
    
    .search-suggestion-details {
        flex-direction: column;
        gap: 4px;
    }
}

/* Стили для страницы результатов поиска */
.search-results-container {
    max-width: 800px;
    margin: 20px 0;
}

.search-result-item {
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Стили для кнопки корзины в результатах поиска */
.search-suggestion-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.btn-cart {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-cart:hover {
    background: #0056b3;
}

.btn-cart:disabled {
    background: #28a745;
    cursor: not-allowed;
}

/* ===== Main page brand cards ===== */
.mainpage-brands {
    margin-bottom: 40px;
    text-align: center;
}

.brand-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.brand-card {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
}

.brand-card:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.header,
.header-catalog {
    z-index: 5;
}
.header-brands-scroll,
.header__brands {
    height: 35vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

/* ===== Стили для брендов в меню ===== */
.header__brands a {
    min-height: 48px;
    padding: 8px 4px;
    font-size: 15px;
    background: #fff;
    transition: all 0.15s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* убираем подчеркивание */
    border: 1px solid #bfcade;
    border-radius: 8px;
    height: 55px; /* фиксированная высота */
    overflow: hidden; /* обрезаем содержимое */
}

.header__brands a:hover {
    border-color: #485283;
    background: #f8f9fa;
}

.header__brands a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header__brands li {
    margin-bottom: 8px;
}

.brand-title {
    font-size: 15px;
    color: #485283;
    font-weight: 500;
    white-space: nowrap;
}

.header-catalog {
    overflow: hidden;
    position: relative;
}
.header-catalog__top {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}
.header_open .header-catalog {
    opacity: 1;
    visibility: visible;
}

/* === Overrides for mobile dropdown menu (.menu-category) === */
@media (max-width: 900px) {
    /* убираем лишние отступы у .category-list */
    .menu-category .category-list {
        margin: 0;
        padding: 0;
    }
    .menu-category .category-list > li {
        border-bottom: 1px solid #d8d8d8;
        position: relative;
    }
    .menu-category .category-list > li:last-child {
        border-bottom: none;
    }
    
    /* стили ссылок первого уровня .category-list */
    .menu-category .category-list > li > .header-catalog-list__link {
        border-radius: 0 !important;
        padding: 20px 40px 20px 75px !important;
        position: relative;
        font-weight: 700 !important;
        font-size: 18px !important;
        color: #485283 !important;
        background-size: 40px !important;
        background-position: 20px center !important;
        display: block;
    }
    
    /* стрелка вперёд для категорий с подкатегориями */
    .menu-category .category-list > li > .header-catalog-list__link.js-open-next span {
        display: inline-block;
        width: 6px;
        height: 12px;
        position: absolute;
        right: 20px;
        top: calc(50% - 6px);
        background-image: url(/verstka/i/icon/right.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
    
    /* overlay для подкатегорий */
    .menu-category .category-list__sub {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #f0f1f5;
        z-index: 3;
        display: none;
        overflow-y: auto;
    }
    
    /* заголовок подкатегорий */
    .menu-category .category-list__sub .category__title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.44;
        color: #485283;
        padding: 17px 20px;
        position: relative;
    }
    
    /* стрелка назад */
    .menu-category .category-list__sub .category__title .js-open-prev {
        background-image: url(/verstka/i/icon/left.svg);
        width: 6px;
        height: 12px;
        position: absolute;
        left: 20px;
        top: calc(50% - 6px);
        display: inline-block;
    }
    
    /* скрываем дублирующий заголовок */
    .menu-category .menu-category-list__sub > .category__title:first-child {
        display: none !important;
    }

    /* -- Сетка брендов: 2 колонки независимо от col20/col50 -- */
    .menu-category .header__brands li,
    .menu-category .header__brands .col20,
    .menu-category .header__brands .col50 {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        margin-bottom: 12px !important;
    }

    /* Увеличиваем высоту блока брендов на мобильных до 80% высоты экрана */
    .header-brands-scroll,
    .header__brands {
        height: 80vh !important;
    }
}

/* ===== Кнопка "В корзину" в add_basket.tpl ===== */
.js_add_in_basket_div {
    width: 100%;
    display: block;
}

.js_add_in_basket_div .js_add_in_basket {
    width: 100%;
    height: 2vw;
    background-color: #485283;
    background-image: url(/i/icon/cart_w.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.3888888889vw;
    border-radius: 0.4444444444vw;
    border: none;
    font-size: 0;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.js_add_in_basket_div .js_add_in_basket:hover {
    background-color: #a4c2ba;
}

.js_add_in_basket_div .js_add_in_basket:active {
    transform: scale(0.98);
}

/* Состояние «нет в наличии» */
.js_add_in_basket_div .no-stock {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #a0a0a0;
}

/* медиазапрос: фиксированные размеры на мобильных */
@media (max-width: 900px) {
    .js_add_in_basket_div .js_add_in_basket {
        height: 40px;
        background-size: 25px;
        border-radius: 8px;
    }
}

/* ===== Исправление кнопки корзины в шапке ===== */
.js_basket .icon-button {
    vertical-align: top;
}

.js_basket .icon-button span {
    top: 0.3888888889vw;
}

/* Для мобильных устройств */
@media (max-width: 900px) {
    .js_basket .icon-button span {
        top: 7px;
    }
}

/* ===== Стили для фильтров каталога ===== */

/* Мобильная панель фильтров */
@media (max-width: 768px) {
    .category-aside {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .category-aside_open {
        left: 0;
    }
    
    .filter-button_active {
        background: #007bff !important;
        color: white !important;
    }
    
    /* Оверлей для мобильных фильтров */
    .category-aside_open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: transparent; /* убираем затемнение */
        pointer-events: none;     /* не блокируем клики */
        z-index: -1;
    }
}

/* Стили для раскрывающихся фильтров */
.filter-item.close .filter-item__content {
    display: none;
}

.filter-item__title.js-expand {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

/* --- Переопределение стрелки для фильтра --- */
.filter-item__title.js-expand::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url(../i/icon/up.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg); /* По умолчанию стрелка вниз (закрыто) */
    transition: transform .25s ease;
}

.filter-item:not(.close) .filter-item__title.js-expand::after,
.filter-item__title.js-expand.open::after {
    transform: translateY(-50%) rotate(0deg); /* Стрелка вверх, когда открыто */
}

/* Стили для формы фильтра по цене */
.price-filter-form {
    margin-top: 10px;
}

.filter-apply-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.2s ease;
}

.filter-apply-btn:hover {
    background: #0056b3;
}

/* Стили для чекбоксов брендов */
.js-brand-filter {
    cursor: pointer;
}

.checkbox {
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Адаптация счетчиков товаров в брендах */
.checkbox span {
    font-size: 14px;
}

/* Стили для мобильной кнопки фильтров */
.filter-buttons {
    margin-bottom: 20px;
}

.filter-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.filter-button:hover {
    background: #e9ecef;
}

/* Анимация для закрытия/открытия фильтров */
.filter-item__content {
    transition: all 0.3s ease;
}

/* Блокировка скролла при открытых мобильных фильтрах */
body.no-scroll {
    overflow: hidden;
}

/* Улучшение внешнего вида полей ввода цены */
.price-input input.js-divide {
    font-family: monospace;
    text-align: right;
}

/* Стили для хлебных крошек */
.bread__scroll {
    margin-bottom: 20px;
}

.bread {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bread li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #6c757d;
}

.bread__link {
    color: #007bff;
    text-decoration: none;
    cursor: default;
    transition: color 0.2s ease;
}

.bread__link:hover {
    color: #0056b3;
}

/* .bread li:last-child .bread__link,
.bread li:last-child span {
    color: #6c757d;
    pointer-events: none;
} */

/* Поисковые подсказки */
.header-search {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.suggestion-icon-category {
    background-color: #007bff;
}

.suggestion-icon-category::before {
    content: "📁";
}

.suggestion-icon-brand {
    background-color: #28a745;
}

.suggestion-icon-brand::before {
    content: "🏭";
}

.suggestion-icon-product {
    background-color: #ffc107;
    color: #333;
}

.suggestion-icon-product::before {
    content: "🔧";
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-meta {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 

/* ===== Стили для модуля News ===== */

/* Список новостей */
.news-list {
    margin-bottom: 30px;
}

.news-item {
    border: 1px solid #f0f1f5;
    border-radius: 8px;
    padding: 25px 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.15s ease;
}

.news-item:hover {
    box-shadow: 3px 4px 7px 0 rgba(55, 51, 84, 0.15);
}

.news-item__meta {
    margin-bottom: 12px;
}

.news-item__date {
    font-size: 14px;
    color: #9c9db1;
    font-weight: 500;
}

.news-item__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #373354;
    margin: 0 0 12px 0;
}

.news-item__link {
    color: #373354;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-item__link:hover {
    color: #485283;
}

.news-item__subtitle {
    font-size: 16px;
    line-height: 1.4;
    color: #666;
}

/* Карточка отдельной новости */
.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-article__subtitle {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: #373354;
    margin: 0 0 15px 0;
}

.news-article__meta {
    margin-bottom: 20px;
}

.news-article__date {
    font-size: 16px;
    color: #9c9db1;
    font-weight: 500;
}

.news-article__img {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-article__img img {
    width: 100%;
    height: auto;
}

.news-article__content {
    font-size: 16px;
    line-height: 1.6;
    color: #373354;
    margin-bottom: 40px;
}

.news-article__content p {
    margin-bottom: 16px;
}

.news-article__content p:last-child {
    margin-bottom: 0;
}

.news-article__content h1,
.news-article__content h2,
.news-article__content h3 {
    color: #373354;
    margin: 30px 0 16px 0;
}

.news-article__content h1 {
    font-size: 28px;
    font-weight: 600;
}

.news-article__content h2 {
    font-size: 24px;
    font-weight: 600;
}

.news-article__content h3 {
    font-size: 20px;
    font-weight: 600;
}

.news-article__content ul,
.news-article__content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.news-article__content li {
    margin-bottom: 8px;
}

.news-article__footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f1f5;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9c9db1;
    font-size: 18px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .news-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .news-item__title {
        font-size: 18px;
    }
    
    .news-article__subtitle {
        font-size: 20px;
    }
    
    .news-article__content {
        font-size: 15px;
    }
    
    .news-article__img {
        margin: 20px 0;
        position: relative;
        left: -15px;
        width: calc(100% + 30px);
        border-radius: 0;
    }
    
    .news-article__footer {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .news-empty {
        padding: 40px 20px;
        font-size: 16px;
    }
} 

/* ===== Стили для личного кабинета ===== */
.lk_menu.main_lk_menu {
    float: left;
    margin-right: 5%;
}

.lk_menu{
    padding: 20px 0;
}

.lk_menu .help-text{
    margin-bottom: 20px;
    margin-top: -10px;
    font-size: 16px;
}

.lk_menu h4{
    margin-bottom: 10px;
    font-size: 16px;
}

.lk_menu select.js_chg, .lk_menu .add-region-select, .priceAddTable select{
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='20' fill='none' viewBox='0 0 21 20'%3E%3Cpath d='M5.5 8.3335L10.5 13.3335L15.5 8.3335' stroke='%235A616C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
  background-size: 21px;
}

.priceAddTable select{
    border: 1px solid #485283;
    border-radius: 4px;
    padding: 10px 30px 10px 10px;
     background-position: calc(100% - 5px) center;
}

.priceAddTable input{
    border: 1px solid #485283;
    border-radius: 4px;
    padding: 10px;
}

.lk_menu .js_chg{
    margin-bottom: 15px;
}

.lk_menu.main_lk_menu a {
    display: block;
    padding: 10px 15px;
    background: #f5f5f5;
    color: #333;
    margin-bottom: 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.lk_menu.main_lk_menu a.selected,
.lk_menu.main_lk_menu a:hover {
    background: #485283;
    color: #fff;
}

.label_style {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.label_style p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.label_title {
    font-weight: 600;
    width: 200px;
}

.account__item-coment input,
.account__item-coment textarea {
    width: calc(100% - 20px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ===== Стили для страницы заказов ===== */
.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f1f5;
}

.orders-title {
    font-size: 32px;
    font-weight: 600;
    color: #373354;
    margin: 0;
}

.orders-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.orders-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-sort label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.orders-sort-select {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #373354;
    cursor: pointer;
}

.orders-search {
    position: relative;
    display: flex;
    align-items: center;
}

.orders-search-input {
    padding: 10px 40px 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #373354;
    width: 200px;
}

.orders-search-input::placeholder {
    color: #999;
}

.orders-search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.orders-search-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.orders-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.orders-table-header {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #373354;
    font-size: 14px;
}

.order-card {
    border: 1px solid #f0f1f5;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.order-number {
    font-size: 20px;
    font-weight: 600;
    color: #373354;
}

.order-date {
    font-size: 14px;
    color: #666;
}

.order-items {
    padding: 0;
}

.order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f1f5;
    align-items: center;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-item-title a {
    font-size: 16px;
    font-weight: 500;
    color: #485283;
    text-decoration: none;
    line-height: 1.3;
}

.order-item-title a:hover {
    color: #373354;
}

.order-item-code {
    font-size: 12px;
    color: #999;
}

.order-item-price,
.order-item-quantity,
.order-item-sum {
    font-size: 14px;
    color: #373354;
    font-weight: 500;
}

.order-item-sum {
    font-weight: 600;
    color: #485283;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.status-new {
    background: #e3f2fd;
    color: #1976d2;
}

.status-processing {
    background: #fff3e0;
    color: #f57c00;
}

.status-completed {
    background: #e8f5e8;
    color: #388e3c;
}

.status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.order-total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-total-label {
    font-size: 14px;
    color: #666;
}

.order-total-sum {
    font-size: 24px;
    font-weight: 700;
    color: #373354;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #485283;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.order-download-btn:hover {
    background: #3a4268;
}

.order-download-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.order-customer {
    padding: 20px;
    border-top: 1px solid #f0f1f5;
    background: #fafbfc;
}

.order-customer-title {
    font-size: 16px;
    font-weight: 600;
    color: #373354;
    margin-bottom: 15px;
}

.order-customer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    min-width: 80px;
}

.customer-value {
    font-size: 14px;
    color: #373354;
}

.customer-value input,
.customer-value textarea {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #373354;
    background: #fff;
    width: 200px;
}

.customer-value textarea {
    width: 300px;
    min-height: 60px;
    resize: vertical;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .orders-container {
        padding: 15px;
    }
    
    .orders-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .orders-title {
        font-size: 24px;
    }
    
    .orders-controls {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .orders-search-input {
        width: 100%;
    }
    
    .orders-table-header {
        display: none;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .order-item-info {
        grid-column: 1 / -1;
    }
    
    .order-item-price,
    .order-item-quantity,
    .order-item-status,
    .order-item-sum {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f0f1f5;
    }
    
    .order-item-price::before {
        content: "Цена: ";
        font-weight: 500;
        color: #666;
    }
    
    .order-item-quantity::before {
        content: "Количество: ";
        font-weight: 500;
        color: #666;
    }
    
    .order-item-status::before {
        content: "Статус: ";
        font-weight: 500;
        color: #666;
    }
    
    .order-item-sum::before {
        content: "Сумма: ";
        font-weight: 500;
        color: #666;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-total {
        width: 100%;
        justify-content: space-between;
    }
    
    .order-actions {
        width: 100%;
    }
    
    .order-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .customer-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .customer-value input,
    .customer-value textarea {
        width: 100%;
    }
} 


  

/* ===== Стили для формы авторизации ===== */
.auth_form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px 20px;
}

.auth_form .section-small-title {
    font-size: 24px;
    font-weight: 600;
    color: #373354;
    margin-bottom: 8px;
    text-align: center;
}

.auth_form .cart__count {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

/* Стили для полей ввода */
.auth_form .form-group {
    margin-bottom: 20px;
}

.auth_form input[type="text"],
.auth_form input[type="password"],
.auth_form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.auth_form input[type="text"]:focus,
.auth_form input[type="password"]:focus,
.auth_form input[type="email"]:focus {
    border-color: #485283;
    box-shadow: 0 0 0 3px rgba(72, 82, 131, 0.1);
    outline: none;
}

/* Стили для кнопки "Войти" */
.auth_form .js_mk_auth_init {
    width: 100%;
    padding: 14px 20px;
    background: #485283;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 20px;
    text-align: center;
}

.auth_form .js_mk_auth_init:hover {
    background: #3a4268;
}

.auth_form .js_mk_auth_init:active {
    transform: scale(0.98);
}

/* Стили для кнопок "Зарегистрироваться" и "Забыли пароль" */
.auth_form .lk_auth_support_buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.auth_form .lk_auth_support_buttons a {
    flex: 1;
    max-width: 200px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    display: inline-block;
}

/* Кнопка "Зарегистрироваться" */
.auth_form .lk_auth_support_buttons .btn.button {
    background: #485283;
    color: #fff;
    border: 2px solid #485283;
}

.auth_form .lk_auth_support_buttons .btn.button:hover {
    background: #3a4268;
    border-color: #3a4268;
}

/* Кнопка "Забыли пароль" */
.auth_form .lk_auth_support_buttons .btn.border-button {
    background: transparent;
    color: #485283;
    border: 2px solid #485283;
}

.auth_form .lk_auth_support_buttons .btn.border-button:hover {
    background: #485283;
    color: #fff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .auth_form {
        padding: 20px 15px;
    }
    
    .auth_form .section-small-title {
        font-size: 20px;
    }
    
    .auth_form .cart__count {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .auth_form input[type="text"],
    .auth_form input[type="password"],
    .auth_form input[type="email"] {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .auth_form .js_mk_auth_init {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .auth_form .lk_auth_support_buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth_form .lk_auth_support_buttons a {
        max-width: none;
        width: 100%;
    }
} 


  

/* ===== Стили для формы регистрации ===== */
.registration_form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
}

.registration_form h2 {
    font-size: 24px;
    font-weight: 600;
    color: #373354;
    margin-bottom: 8px;
    text-align: center;
}

.registration_form .label_center {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    display: block;
}

/* Стили для блока регистрации */
.reg_form_block {
    margin-bottom: 25px;
}

/* Стили для переключателя Физ./Юр. лицо */
.reg_form_block_row_tabs {
    display: flex !important;
    margin-bottom: 25px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 2px solid #e9ecef !important;
    background: #f8f9fa !important;
    flex-wrap: nowrap !important;
    margin: 0 auto 25px auto !important;
}

.reg_form_block_row_tabs .tab {
    flex: 1 !important;
    padding: 12px 20px !important;
    text-align: center !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #666 !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: none !important;
}

.reg_form_block_row_tabs .tab.active {
    background: #485283 !important;
    color: #fff !important;
}

.reg_form_block_row_tabs .tab.active::after {
    display: none !important;
}

.reg_form_block_row_tabs .tab:hover:not(.active) {
    background: #e9ecef !important;
    color: #373354 !important;
}

/* Стили для полей ввода */
.registration_form .form-group {
    margin-bottom: 20px;
}

.registration_form input[type="text"],
.registration_form input[type="password"],
.registration_form input[type="email"],
.registration_form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.registration_form input[type="text"]:focus,
.registration_form input[type="password"]:focus,
.registration_form input[type="email"]:focus,
.registration_form select:focus {
    border-color: #485283;
    box-shadow: 0 0 0 3px rgba(72, 82, 131, 0.1);
    outline: none;
}

/* Стили для select */
.registration_form select {
    cursor: pointer;
}

.registration_form select option {
    padding: 8px;
}

/* Стили для кнопки "Зарегистрироваться" */
.registration_form .js_send_register_request {
    width: 100%;
    padding: 14px 20px;
    background: #485283;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.registration_form .js_send_register_request:hover {
    background: #3a4268;
}

.registration_form .js_send_register_request:active {
    transform: scale(0.98);
}

/* Стили для сообщений об ошибках */
.registration_form .js_alert_user-data {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    display: block;
}

/* Стили для результатов */
.registration_form .js_result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.registration_form .js_result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.registration_form .js_result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .registration_form {
        padding: 20px 15px;
    }
    
    .registration_form h2 {
        font-size: 20px;
    }
    
    .registration_form .label_center {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .reg_form_block_row_tabs .tab {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .registration_form input[type="text"],
    .registration_form input[type="password"],
    .registration_form input[type="email"],
    .registration_form select {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .registration_form .js_send_register_request {
        padding: 12px 18px;
        font-size: 15px;
    }
} 


  

/* ===== Стили для модального окна восстановления пароля ===== */
.modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.modal__title {
    font-size: 24px;
    font-weight: 600;
    color: #373354;
    margin-bottom: 15px;
    text-align: center;
}

.modal__text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Стили для формы в модальном окне */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.modal .form__input:focus {
    border-color: #485283;
    box-shadow: 0 0 0 3px rgba(72, 82, 131, 0.1);
    outline: none;
}

/* Стили для кнопки в модальном окне */
.modal .js_mk_forget_pwd {
    width: 100%;
    padding: 14px 20px;
    background: #485283;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
}

.modal .js_mk_forget_pwd:hover {
    background: #3a4268;
}

.modal .js_mk_forget_pwd:active {
    transform: scale(0.98);
}

/* Стили для результатов в модальном окне */
.modal .js_result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.modal .js_result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal .js_result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal {
        padding: 20px;
        margin: 10px;
    }
    
    .modal__title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .modal__text {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .modal .form__input {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .modal .js_mk_forget_pwd {
        padding: 12px 18px;
        font-size: 15px;
    }
} 


  

/* ===== Стили для текстовых брендов (когда нет изображения) ===== */
.brand-text-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 4px 8px;
}

.brand-text-only .brand-title {
    font-size: 13px;
    font-weight: 600;
    color: #485283;
    line-height: 1.2;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.4em;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 900px) {
    .header__brands a {
        height: 48px;
        padding: 6px 4px;
    }
    
    .brand-text-only .brand-title {
        font-size: 12px;
    }
} 


  

/* ===== Дополнительные стили для кнопки избранного ===== */
.fav-button:hover {
    background-image: url('/i/icon/fav.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

.fav-button.in-favorites {
    background-image: url('/i/icon/fav.svg') !important;
}

/* ===== Стили для таблиц в стиле @verstka/ ===== */

/* Контейнер таблицы */
.scroll__table {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #f0f1f5;
    margin-top: 20px;
}

/* Заголовок таблицы */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.table-title {
    font-size: 24px;
    font-weight: 600;
    color: #373354;
    margin: 0;
}

.table-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Поиск */
.table-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #373354;
    width: 200px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.search-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* Секция добавления */
.table-add-section {
    padding: 20px;
    background: #fafbfc;
    border-bottom: 1px solid #e9ecef;
}

.table-add-title {
    font-size: 18px;
    font-weight: 600;
    color: #373354;
    margin: 0 0 15px 0;
}

.table-add-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.add-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.add-field label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.add-input {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #373354;
    background: #fff;
    transition: border-color 0.2s ease;
}

.add-input:focus {
    outline: none;
    border-color: #485283;
    box-shadow: 0 0 0 2px rgba(72, 82, 131, 0.1);
}

.add-button {
    padding: 8px 20px;
    background: #485283;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background: #3a4268;
}

/* Основная таблица */
.table_lk {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table_lk thead {
    background: #f8f9fa;
}

.table_lk th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: #373354;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.table_lk td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f1f5;
    font-size: 14px;
    color: #373354;
    vertical-align: middle;
}

.table_lk tbody tr {
    transition: background-color 0.2s ease;
}

.table_lk tbody tr:hover {
    background-color: #f8f9fa;
}

.table_lk tbody tr:last-child td {
    border-bottom: none;
}

.group-filters{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 0 10px;
}

.group-filters .filter-btn{
    display: inline-block;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    cursor: pointer;
    border: none;
    width: auto;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
    font-size: 16px;
}
.group-filters .filter-btn:hover{
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}


/* Стили для сортировки */
.sort__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sort__title {
    font-weight: 600;
    color: #373354;
}

.sort__icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sort {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

.sort:hover {
    background-color: #e9ecef;
}

.sort.selected {
    background-color: #485283;
}


.sort img {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.sort.selected img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Поля поиска */
.js_search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    color: #373354;
    background: #fff;
    transition: border-color 0.2s ease;
}

.js_search:focus {
    outline: none;
    border-color: #485283;
    box-shadow: 0 0 0 2px rgba(72, 82, 131, 0.1);
}

.js_search::placeholder {
    color: #999;
}

/* Редактируемые поля */
.js_chg {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #485283;
    border-radius: 4px;
    font-size: 14px;
    color: #373354;
    background: #fff;
}

.js_chg:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(72, 82, 131, 0.1);
}

.js_val {
    display: inline-block;
    padding: 4px 0;
    min-height: 20px;
    max-width: 450px;
    overflow-wrap: break-word
}

/* Кнопки действий */
.lk_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lk_icon:hover {
    background: #485283;
    border-color: #485283;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lk_icon img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lk_icon:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Пагинация */
.js_pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
}

.js_pages a,
.js_pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    color: #373354;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.js_pages a:hover {
    background: #485283;
    border-color: #485283;
    color: #fff;
}

.js_pages .active {
    background: #485283;
    border-color: #485283;
    color: #fff;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table-title {
        font-size: 20px;
    }
    
    .table-controls {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .table-add-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .add-field {
        min-width: auto;
        width: 100%;
    }
    
    .add-button {
        width: 100%;
        padding: 12px;
    }
    
    .scroll__table {
        overflow-x: auto;

    }
    
    .table_lk {
        min-width: 600px;
    }
    
    .table_lk th,
    .table_lk td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .sort__wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .sort__icon {
        flex-direction: row;
        gap: 5px;
    }
    
    .lk_icon {
        width: 28px;
        height: 28px;
    }
    
    .lk_icon img {
        width: 14px;
        height: 14px;
    }
}

/* ===== Стили для управления регионами поставщиков ===== */
.seller-regions-visibility {
    border: 1px solid #e1e5e9 !important;
    padding: 20px !important;
    margin: 15px 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.seller-regions-visibility h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.regions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

.region-card {
    border: 1px solid #e1e5e9 !important;
    border-radius: 6px !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    transition: all 0.2s ease !important;
}

.region-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.region-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.region-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.remove-region-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    transition: all 0.2s ease !important;
}

.remove-region-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.remove-icon {
    line-height: 1;
}

.region-settings {
    margin-top: 10px;
}

.delivery-days-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.delivery-days-input label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.delivery-days-field {
    padding: 8px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
    background: white !important;
    color: #333 !important;
}

.delivery-days-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.no-regions-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}

.add-region-section {
    border-top: 1px solid #e1e5e9;
    padding-top: 15px;
    margin-top: 15px;
}

.add-region-form {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.add-region-select {
    flex: 1 !important;
    padding: 10px 20px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    background-color: white !important;
    transition: border-color 0.2s ease !important;
    color: #333 !important;
}

.add-region-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.add-region-btn {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
}

.add-region-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.add-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Адаптивность для управления регионами */
@media (max-width: 768px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
    
    .add-region-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-region-btn {
        justify-content: center;
    }
}

/* ===== Стили для баннеров каталога ===== */
.catalog-banner {
    display: block !important;
    width: 100% !important;
    height: 93% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease !important;
    /* Адаптивная высота как у product-item */
    aspect-ratio: 16/9 !important;
    /* Добавляем padding как у product-item */
    padding: 20px 15px 25px !important;
    border: 1px solid #f0f1f5 !important;
}

.catalog-banner:hover {
    transform: scale(1.02) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .catalog-banner {
        margin-bottom: 20px !important;
        padding: 15px 10px 20px !important;
    }
}

/* ===== Стили для слайдера товаров ===== */
.product-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-slider__item {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-slider__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Стили для слайдов */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Контейнер для изображения */
.product-slider__item.resp {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.product-slider__item.resp img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Стили для навигации слайдера */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 10;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Стили для пагинации */
.slider-pagin {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
}
