.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;
}

/* Стили для валидации обязательных полей в корзине */
.notEmptyOrder.bad {
    border: 2px solid #ff69b4 !important;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2) !important;
    background-color: rgba(255, 105, 180, 0.05) !important;
    animation: validationPulse 0.5s ease-in-out;
}

/* Стили для контейнера поля с ошибкой (как в верстке) */
.form-group_error input,
.form-group_error textarea,
.form-group_error select {
    border: 2px solid #ff69b4 !important;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2) !important;
    background-color: rgba(255, 105, 180, 0.05) !important;
    animation: validationPulse 0.5s ease-in-out;
}

@keyframes validationPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Дополнительное выделение для полей с ошибками */
.form-group input.bad {
    border-color: #ff69b4 !important;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2) !important;
}

/* Стили для сообщений об ошибках валидации */
.validation-errors {
    background-color: #fff5f5;
    border: 1px solid #ff69b4;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #d63384;
    font-size: 14px;
    line-height: 1.4;
}

.validation-errors p {
    margin: 0 0 8px 0;
    padding-left: 20px;
    position: relative;
}

.validation-errors p:before {
    content: "⚠";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff69b4;
    font-weight: bold;
}

.validation-errors p:last-child {
    margin-bottom: 0;
}

.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;
}

.catalog-empty {
    font-size: large;
}

@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;
}

/* Кнопка корзины - переопределение cart-button */
.item__mycount.cart-button {
    background-color: #485283;
    background-image: none;
    color: white;
    font-size: 14px;
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item__mycount.cart-button:hover {
    background-color: #3a4268;
    color: white;
    text-decoration: none;
}

.item__mycount .catalog__mycount-item {
    display: inline;
}

/* ===== 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;
    width: 100% !important;
} */

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

.header__brands a img {
    background-color: #ffffff;
}

/* Стили для .header__brands li margin-bottom удалены - конфликтуют с сеткой .row */
/* Сетка использует gap из main.min.css */

.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;
}



/* ===== Кнопка "В корзину" в 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;
    }
}

/* ЗАКОММЕНТИРОВАНО - используем стили из main.min.css (верстка)
Стили для раскрывающихся фильтров
.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 {
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    transition: background-color 0.2s ease;
    text-align: center;
}

.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-item__content {
    transition: all 0.3s ease;
}
КОНЕЦ ЗАКОММЕНТИРОВАННОГО БЛОКА */

/* ===== Кастомные стили для фильтров (не конфликтуют с версткой) ===== */

/* Скрываем кнопку "Применить" под полями цены (не нужна по ТЗ) */
.price-filter-form .filter-apply-btn {
    display: none;
}

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

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


.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;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.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;
}

/* ===== Региональный SEO (ЛК): чтобы название города помещалось целиком ===== */
.admin-row{
    display: flex;
    align-items: center;
    gap: 12px;
}
#js_region_select{
    min-width: 260px; /* достаточно, чтобы длинные названия (Санкт‑Петербург) влезали */
    width: auto;
    max-width: 100%;
}

.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;
    overflow: hidden;
}

.brands-logo {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brands-logo img {
    max-width: 65px;
    max-height: 65px;
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.brands-logo .brand-title-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6px;
    text-align: center;
    font-weight: 600;
    color: #485283;
    line-height: 1.1;
    word-wrap: break-word;
}

.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;
    width: 100%;
}

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

    .brand-text-only .brand-title {
        font-size: 12px;
    }
}




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

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

/* Hover только для устройств с реальной поддержкой hover (не touch) */
@media (hover: hover) {
    .fav-button:hover {
        background-image: url('/i/icon/favorite_f.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
}

.hidden {
    display: none !important;
}

/* Кнопки действий */
.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;
    flex-direction: column;
}

.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;
    width: 20hv;
}

.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 .swiper { height: auto; }
.product-slider.slider-h-478 .swiper { height: 478px; }
.product-slider.slider-h-319 .swiper { height: 319px; }

/* ===== Выравнивание колонок в списке товаров заказа (LK) ===== */
.order-more__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 20px;
}

.order-more__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: fit-content;
}

.order-more__list li span {
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto; /* занимать остаток строки */
    min-width: 0;   /* позволить сжиматься для ellipsis */
}

/* Обрезаем длинные названия товаров слева */
.order-more .order-more__title {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-more .order-more__title .resp {
    flex: 0 0 48px;
    max-width: 48px;
}

.order-more .order-more__title .resp img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Обрезка переполнения строк внутри блока товаров заказа */
.order-more .row {
    overflow: clip;
}

/* ===== Стили для управления категориями товара в админке ===== */
.article-categories-manager {
    margin-top: 10px;
}

/* Теги назначенных категорий */
.assigned-categories-tags {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.assigned-categories-tags__title {
    font-size: 16px;
    font-weight: 600;
    color: #373354;
    margin: 0 0 12px 0;
}

.assigned-categories-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #485283;
    border-radius: 20px;
    padding: 6px 8px 6px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: #f0f1f5;
}

.category-tag__name {
    color: #485283;
    font-weight: 500;
}

.category-tag__remove {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.category-tag__remove:hover {
    background: #dc3545;
    color: #fff;
}

/* Простой список категорий */
.categories-simple {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    padding: 15px;
}

.categories-simple__header {
    margin-bottom: 15px;
}

.categories-simple__title {
    font-size: 16px;
    font-weight: 600;
    color: #373354;
    margin: 0 0 12px 0;
}

.categories-simple__search {
    margin-bottom: 12px;
}

.categories-simple__search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.categories-simple__list {
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
}

.categories-simple__empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Группы категорий */
.category-group {
    margin-bottom: 12px;
}

.category-group__title {
    font-size: 15px;
    font-weight: 600;
    color: #485283;
    padding: 8px 12px;
    background: #f0f1f5;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.category-group__title:hover {
    background: #e1e5e9;
}

.category-group__arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    color: #666;
}

.category-group.collapsed .category-group__arrow {
    transform: rotate(-90deg);
}

.category-group__name {
    flex: 1;
}

.category-group__items {
    padding-left: 12px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.category-group.collapsed .category-group__items {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* Чекбоксы категорий */
.category-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.category-checkbox:hover {
    background: #f8f9fa;
}

.category-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.category-checkbox input[type="checkbox"]:checked {
    accent-color: #485283;
}

.category-checkbox__label {
    font-size: 14px;
    color: #373354;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .categories-simple__list {
        max-height: 300px;
    }

    .assigned-categories-tags__list {
        flex-direction: column;
    }

    .category-tag {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== Стили для управления характеристиками категории в админке ===== */
.category-properties-manager {
    margin-top: 10px;
}

/* Теги назначенных характеристик */
.assigned-properties-tags {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.assigned-properties-tags__title {
    font-size: 16px;
    font-weight: 600;
    color: #373354;
    margin: 0 0 12px 0;
}

.assigned-properties-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #28a745;
    border-radius: 20px;
    padding: 6px 8px 6px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.property-tag:hover {
    background: #f0f1f5;
}

.property-tag__name {
    color: #28a745;
    font-weight: 500;
}

.property-tag__remove {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.property-tag__remove:hover {
    background: #dc3545;
    color: #fff;
}

/* Простой список характеристик */
.properties-simple {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #fff;
    padding: 15px;
}

.properties-simple__header {
    margin-bottom: 15px;
}

.properties-simple__title {
    font-size: 16px;
    font-weight: 600;
    color: #373354;
    margin: 0 0 12px 0;
}

.properties-simple__search {
    margin-bottom: 12px;
}

.properties-simple__search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.properties-simple__list {
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
}

.properties-simple__empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Чекбоксы характеристик */
.property-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.property-checkbox:hover {
    background: #f8f9fa;
}

.property-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.property-checkbox input[type="checkbox"]:checked {
    accent-color: #28a745;
}

.property-checkbox__label {
    font-size: 14px;
    color: #373354;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .properties-simple__list {
        max-height: 300px;
    }

    .assigned-properties-tags__list {
        flex-direction: column;
    }

    .property-tag {
        width: 100%;
        justify-content: space-between;
    }
}

.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;
}


/* Стили для .brands-item перенесены в main.min.css из верстки */
/* Контейнер для изображения */
.product-slider__item.resp {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    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;
}

.banners {
    width: 100%;
}

/* Секция баннеров: на всю ширину окна с внутренними отступами */
.banners .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Центрируем содержимое слайда и фиксируем высоту, как в верстке home.html */
.banners .brands__big-slider { position: relative; }
.banners .swiper { width: 100%; }
.banners .swiper-wrapper { align-items: center; }
.banners .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Desktop баннер */
.banners .banner.resp.desktop img {
    display: block;
    width: 100%;
    max-width: 1293px;
    height: 180px;
    object-fit: cover;
    object-position: center;
    margin-left: auto;
    margin-right: auto;
}

/* По умолчанию скрываем mobile-вариант на десктопе */
.banners .banner.resp.mobile { display: none; }

/* Навигация по центру области баннера */
.banners .slider-nav.desktop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1293px;
    pointer-events: none;
}
.banners .slider-nav .slider-prev,
.banners .slider-nav .slider-next { pointer-events: all; }

/* Пагинация по центру ниже баннера */
.banners .mobile { text-align: center; }
.banners .brands__big-pagin { display: inline-block; }

/* Mobile баннер */
@media (max-width: 900px) {
    .banners .banner.resp.desktop { display: none; }
    .banners .banner.resp.mobile { display: block; }
    .banners .banner.resp.mobile img {
        display: block;
        width: 100%;
        max-width: 375px;
        height: 140px;
        object-fit: cover;
        object-position: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== Логистика региона в админке (виды оплаты и доставки) ===== */
.lk-region-logistics {
    margin-top: 25px;
    padding: 18px 20px 22px;
    border-radius: 8px;
    background: #f7f7fb;
    border: 1px solid #e0e0ea;
}

.lk-logistics-section + .lk-logistics-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0ea;
}

.lk-logistics-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.lk-region-paytypes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lk-paytype-card {
    display: flex;
    align-items: center;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.lk-paytype-card input[type="checkbox"] {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

.lk-paytype-title {
    font-size: 13px;
    line-height: 1.3;
}

.lk-delivery-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.lk-delivery-table th,
.lk-delivery-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e7e7f0;
    vertical-align: top;
    font-size: 13px;
}

.lk-delivery-table thead th {
    background: #f0f0f7;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.lk-delivery-th-type {
    width: 10%;
    white-space: nowrap;
}

.lk-delivery-th-name {
    width: 30%;
}

.lk-delivery-th-prim {
    width: 35%;
}

.lk-delivery-th-price {
    width: 10%;
    white-space: nowrap;
    text-align: right;
}

.lk-delivery-th-active {
    width: 8%;
    white-space: nowrap;
    text-align: center;
}

.lk-delivery-th-actions {
    width: 12%;
    white-space: nowrap;
    text-align: right;
}

.lk-delivery-type {
    font-weight: 600;
    white-space: nowrap;
}

.lk-delivery-name-pvz {
    font-size: 13px;
}

.lk-delivery-name-main {
    font-weight: 600;
    margin-bottom: 2px;
}

.lk-delivery-name-sub {
    color: #777;
    font-size: 12px;
}

.lk-delivery-prim-pvz {
    font-size: 12px;
    color: #555;
    white-space: pre-line;
}

.lk-input-full {
    width: 100%;
    box-sizing: border-box;
}

.lk-textarea {
    width: 100%;
    height: 60px;
    resize: vertical;
    box-sizing: border-box;
}

.lk-input-price {
    width: 80px;
    text-align: right;
    box-sizing: border-box;
}

.lk-delivery-price-static {
    display: inline-block;
    min-width: 40px;
    text-align: right;
}

.lk-delivery-actions {
    text-align: right;
}

.lk-delivery-add-pvz {
    margin-top: 8px;
}

.lk-delivery-add-pvz .account__button {
    padding: 6px 12px;
    font-size: 13px;
}

.lk-delivery-edit-link {
    margin-right: 8px;
    padding: 4px 8px;
    font-size: 11px;
}

.lk-delivery-delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #d60000;
    font-size: 12px;
    cursor: pointer;
}

.lk-delivery-add-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 12px;
}

.lk-delivery-add-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.lk-delivery-save {
    text-align: right;
}

.lk-delivery-save .account__button {
    min-width: 260px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .lk-delivery-th-prim {
        width: 30%;
    }

    .lk-delivery-th-actions {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .lk-delivery-table th,
    .lk-delivery-table td {
        font-size: 12px;
        padding: 6px;
    }

    .lk-region-logistics {
        padding: 14px 12px 18px;
    }

    .lk-delivery-save .account__button {
        width: 100%;
    }
}

/* ===== Стили для дополнительных полей доставки (ПВЗ) ===== */
.lk-delivery-table .lk-delivery-th-extra {
    min-width: 120px;
}

.lk-delivery-table .slyle_input {
    width: 100%;
}

/* ===== Стили для ссылок в блоке аналогов ===== */
.analogues-item__product a[href]:not(.analogues-item__img) {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

