/* =====================================================================
   terra-product-fix.css v7 — ФИНАЛЬНЫЙ
   Перекрывает ВСЕ конфликтующие правила из default.css и style.css
   Единая стилистика: #eb3f3f, #c93030, #fdecec, Jost
   ===================================================================== */

/* ============= КАРТОЧКА ТОВАРА В СПИСКЕ ============= */

.catalog_list_one,
.catalog-list-one {
    float: left;
    margin: 0 10px 20px 0;
    padding: 0;
    width: 220px;
    text-align: center;
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
    transition: box-shadow 0.2s, transform 0.2s;
}

.catalog_list_one:hover,
.catalog-list-one:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    z-index: 50;
}

.catalog-list-one-img,
.catalog_list_one .for_img {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.catalog-list-one-img img,
.catalog_list_one .for_img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: none !important;
    padding: 0;
    margin: 0;
    display: block;
}

.catalog-list-one-marks {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.addwish_ico_list,
.catalog-list-one-wish {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.addwish_ico_list:hover,
.catalog-list-one-wish:hover {
    background: #fff;
}

.catalog-list-one-articul {
    font-size: 11px;
    color: #999;
    padding: 8px 10px 2px;
}

.catalog-list-one-articul span {
    color: #666;
}

.catalog-list-one-title,
.catalog_list_one .name_goods {
    font-size: 13px;
    font-weight: 600;
    color: #1f1f1f;
    padding: 4px 10px;
    line-height: 1.4;
    min-height: 36px;
}

.catalog-list-one-title a,
.catalog_list_one .name_goods a {
    color: #1f1f1f;
    text-decoration: none;
}

.catalog-list-one-title a:hover,
.catalog_list_one .name_goods a:hover {
    color: #eb3f3f;
}

.catalog-list-one-price,
.catalog_list_one .price_catalog {
    font-size: 16px;
    font-weight: 700;
    color: #eb3f3f;
    padding: 4px 10px 12px;
    text-align: center;
}

.catalog-list-one-price span,
.catalog_list_one .price_catalog span {
    color: #eb3f3f;
}

.catalog-list-one-price .no_cen,
.catalog_list_one .price_catalog .no_cen {
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.catalog_list_row {
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

/* ============= БЫСТРЫЙ ЗАКАЗ (POPUP) ============= */
/* ПЕРЕКРЫВАЕТ все правила из default.css (строки 112-240) */

.quick_order_popup {
    display: none !important;
    position: absolute !important;
    bottom: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2) !important;
    border: 1px solid #e5e5e5 !important;
    padding: 12px !important;
    overflow: visible !important;
    max-height: none !important;
    border-top: none !important;
}

.catalog_list_one:hover .quick_order_popup,
.catalog-list-one:hover .quick_order_popup {
    display: block !important;
}

/* "Подробнее" */
.moretovar {
    display: block !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    left: auto !important;
    top: auto !important;
}

.moretovar a {
    font-size: 11px;
    color: #6f6f6f;
    text-decoration: underline;
}

.moretovar a:hover {
    color: #eb3f3f;
}

/* Таблица — перекрывает width:220px из default.css */
.quick_order_popup table {
    width: 100% !important;
    border-collapse: collapse;
}

/* Заголовки — перекрывает border-bottom:#408dcb */
.quick_order_popup table th {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 6px 4px !important;
    text-align: center !important;
    background: #eb3f3f !important;
    color: #fff !important;
    border: 1px solid #eb3f3f !important;
    border-bottom: 1px solid #eb3f3f !important;
    white-space: nowrap;
}

/* Ячейки — перекрывает width:74px, border:#999 */
.quick_order_popup table td {
    font-size: 11px !important;
    padding: 5px 3px !important;
    text-align: center !important;
    border: 1px solid #f0f0f0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    width: auto !important;
    white-space: normal !important;
}

.quick_order_popup table tr:hover td {
    background: #fdecec;
}

/* Название размера — перекрывает тёмно-зелёный градиент! */
.quick_order_popup .size-title {
    background: transparent !important;
    background-image: none !important;
    filter: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    display: inline !important;
    white-space: normal !important;
    line-height: 1.2 !important;
}

/* Цена в попапе */
.quick_order_popup .cena_quick {
    color: #eb3f3f !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

/* Поля ввода — перекрывает width:70px, border:#555, float:left */
.quick_count {
    overflow: visible !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px;
}

.quick_count input {
    width: 30px !important;
    height: 26px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    font-size: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    border-style: solid !important;
    border-width: 1px !important;
}

.quick_count input:focus {
    border-color: #eb3f3f !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(235,63,63,0.1);
}

/* Кнопки +/- — перекрывает background:#ccc, border:#555, float:left, height:9px */
.quick_change_up,
.quick_count .quick_change_up,
.quick_change_down,
.quick_count .quick_change_down {
    background: #f3f4f6 !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    color: #333 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    float: none !important;
    padding: 0 !important;
    cursor: pointer;
    text-decoration: none;
}

.quick_change_up:hover,
.quick_count .quick_change_up:hover,
.quick_change_down:hover,
.quick_count .quick_change_down:hover {
    background: #e5e7eb !important;
}

.quick_change_up img,
.quick_change_down img,
.quick_count .quick_change_up img,
.quick_count .quick_change_down img {
    width: 8px !important;
    height: 8px !important;
}

/* Кнопка "Купить" — перекрывает background:#000, gradient, border-radius:10px */
.catalog_buy_button_quick {
    background: #eb3f3f !important;
    background-image: none !important;
    border: none !important;
    border-radius: 4px !important;
    color: #fff !important;
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 7px 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    float: none !important;
}

.catalog_buy_button_quick:hover {
    background: #c93030 !important;
    background-image: none !important;
}

/* ============= КНОПКИ ФИЛЬТРА "Применить"/"Сбросить" ============= */

.catalog-cat-sidebar-button-1 {
    background: #f3f4f6 !important;
    color: #666 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
}

.catalog-cat-sidebar-button-1:hover {
    background: #e5e7eb !important;
    color: #333 !important;
}

.catalog-cat-sidebar-button-2 {
    background: #eb3f3f !important;
    color: #fff !important;
    border: 1px solid #eb3f3f !important;
    border-radius: 4px !important;
}

.catalog-cat-sidebar-button-2:hover {
    background: #c93030 !important;
    color: #fff !important;
}

/* ============= СТРАНИЦА ТОВАРА ============= */

.pathway,
.inner-pathway {
    border-bottom: 2px solid #eb3f3f !important;
    color: #333;
    font-size: 12px;
    padding: 12px 0;
    margin-bottom: 15px;
}

.pathway a,
.inner-pathway a {
    color: #eb3f3f;
    text-decoration: none;
}

.pathway a:hover,
.inner-pathway a:hover {
    color: #1f1f1f;
}

#inner-catalog-one h1,
.inner-catalog-one-description h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 10px;
    line-height: 1.3;
}

.catalog-one-description-fields {
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

/* ============= ФОТО ТОВАРА ============= */

#oneImgSwiper-container {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    order: 0 !important;
    position: relative;
}

.oneImgSwiper {
    width: 100% !important;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.oneImgSwiper .swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 450px;
    object-fit: contain;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block;
}

.catalog-one-new {
    background: #eb3f3f !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 10;
}

.catalog-one-wish {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

#otherImgSwiper-container {
    width: 100% !important;
    height: auto !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    order: 0 !important;
    flex-basis: 100% !important;
    position: relative;
}

.otherImgSwiper {
    width: 100%;
    height: auto;
    overflow: visible;
}

.otherImgSwiper .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.otherImgSwiper .swiper-slide {
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.otherImgSwiper .swiper-slide-block {
    width: 60px;
    height: 60px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.otherImgSwiper .swiper-slide.swiper-slide-thumb-active .swiper-slide-block,
.otherImgSwiper .swiper-slide:hover .swiper-slide-block {
    border-color: #eb3f3f;
}

.otherImgSwiper .swiper-slide-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
    max-width: none;
}

#otherImgSwiper-container .swiper-other-button-prev,
#otherImgSwiper-container .swiper-other-button-next {
    display: none !important;
}

/* ============= ТАБЛИЦА РАЗМЕРОВ (страница товара) ============= */

.catalog_one_order {
    overflow-x: auto;
    margin-top: 15px;
}

.catalog_one_order h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 10px;
}

.catalog_one_order table {
    width: 100% !important;
    border-collapse: collapse;
}

.catalog_one_order th {
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 4px !important;
    text-align: center !important;
    background: #eb3f3f !important;
    color: #fff !important;
    border: 1px solid #eb3f3f !important;
    white-space: nowrap;
}

.catalog_one_order td {
    font-size: 13px !important;
    padding: 6px 4px !important;
    text-align: center !important;
    border: 1px solid #f0f0f0 !important;
    white-space: nowrap;
}

.catalog_one_order tr:hover td {
    background: #fdecec;
}

/* size-title на странице товара — тоже перекрываем градиент! */
.catalog_one_order .size-title {
    background: transparent !important;
    background-image: none !important;
    filter: none !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    display: inline !important;
}

.catalog_price_th_desc {
    font-size: 11px !important;
    color: rgba(255,255,255,0.9) !important;
}

.catalog_one_order .cena1,
.catalog_one_order .cena2,
.catalog_one_order .cena3,
.catalog_one_order .cena4 {
    color: #eb3f3f !important;
    font-weight: 700 !important;
}

.one_catalog_basket_count,
.catalog_basket_change input[type="text"] {
    width: 36px !important;
    height: 28px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    padding: 0 2px !important;
}

.one_catalog_basket_count:focus,
.catalog_basket_change input[type="text"]:focus {
    border-color: #eb3f3f !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(235,63,63,0.1);
}

.catalog_basket_change_up,
.catalog_basket_change_down {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 3px !important;
    background: #f3f4f6 !important;
    border: 1px solid #ddd !important;
    cursor: pointer;
}

.catalog_basket_change_up:hover,
.catalog_basket_change_down:hover {
    background: #e5e7eb !important;
}

.catalog_basket_change img {
    width: 9px !important;
    height: 9px !important;
}

.catalog_one_order .catalog_buy_button,
.catalog_one_order .default_button {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 28px;
    background: #eb3f3f;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog_one_order .catalog_buy_button:hover,
.catalog_one_order .default_button:hover {
    background: #c93030;
}

/* ============= ВКЛАДКИ ============= */

#inner-catalog-one-info {
    margin-top: 25px;
}

#inner-catalog-one-info-buttons ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e5e5e5;
}

#inner-catalog-one-info-buttons li {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6f6f6f;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

#inner-catalog-one-info-buttons li:hover {
    color: #eb3f3f;
}

#inner-catalog-one-info-buttons li.active {
    color: #eb3f3f;
    border-bottom-color: #eb3f3f;
}

.inner-catalog-one-panel {
    padding: 15px 0;
    display: none;
}

.inner-catalog-one-panel.active {
    display: block;
}

.inner-catalog-one-info-panel-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
}

.inner-catalog-one-info-panel-text p {
    margin: 0 0 10px;
}

/* ============= ПОХОЖИЕ ТОВАРЫ ============= */

#inner-catalog-one-more-swiper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

#inner-catalog-one-more-swiper h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    text-align: center;
    color: #1f1f1f;
}

.moreSwiper .catalog-list-one,
.moreSwiper .catalog_list_one {
    width: 180px;
}

.moreSwiper .catalog-list-one-img img,
.moreSwiper .catalog_list_one .for_img img {
    height: 160px;
}

/* ============= АДАПТИВНОСТЬ ============= */

@media (max-width: 768px) {
    .catalog_list_one,
    .catalog-list-one {
        width: 160px;
        margin: 0 8px 16px 0;
    }

    .catalog-list-one-img img,
    .catalog_list_one .for_img img {
        height: 160px;
    }

    .catalog-list-one-title,
    .catalog_list_one .name_goods {
        font-size: 12px;
        min-height: 32px;
    }

    .catalog-list-one-price,
    .catalog_list_one .price_catalog {
        font-size: 14px;
    }

    #inner-catalog-one h1 {
        font-size: 18px;
    }

    .catalog_one_order th {
        font-size: 10px !important;
        padding: 4px 2px !important;
    }

    .catalog_one_order td {
        font-size: 11px !important;
        padding: 4px 2px !important;
    }

    .one_catalog_basket_count,
    .catalog_basket_change input[type="text"] {
        width: 30px;
        height: 24px;
    }

    .moreSwiper .catalog-list-one,
    .moreSwiper .catalog_list_one {
        width: 130px;
    }

    .moreSwiper .catalog-list-one-img img,
    .moreSwiper .catalog_list_one .for_img img {
        height: 120px;
    }
}


/* ============= ПЕРЕКРЫТИЕ ЗОЛОТЫХ ЦВЕТОВ ============= */

/* Кнопка "Применить" — была золотая (#fed7aa → #c2410c) */
.catalog-cat-sidebar-button-2 {
    background: #eb3f3f !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 1px solid #eb3f3f !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
}

.catalog-cat-sidebar-button-2:hover {
    background: #c93030 !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* Кнопка "Сбросить" */
.catalog-cat-sidebar-button-1 {
    background: #f3f4f6 !important;
    color: #666 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

.catalog-cat-sidebar-button-1:hover {
    background: #e5e7eb !important;
    color: #333 !important;
}

/* Рамка категорий — была #fef3c7 (золотая) */
.catalog-cat-sidebar-categories {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
}

/* Фото в карточке — border: 1px solid #c2410c */
.catalog-list-one-img,
.catalog_list_one .for_img {
    border: none !important;
}

/* Заголовки секций в фильтре */
.catalog-cat-sidebar-list-block-title {
    color: #1f1f1f !important;
}

.catalog-cat-sidebar-list-block-title:hover {
    color: #eb3f3f !important;
}

/* Слайдер цены — красный вместо оранжевого */
.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-bar {
    background: #eb3f3f !important;
    background-color: #eb3f3f !important;
}

.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-handle > i:first-child {
    background: #eb3f3f !important;
    background-color: #eb3f3f !important;
    border-color: #eb3f3f !important;
}

.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-handle > i:first-child:hover,
.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-handle.state_hover > i:first-child {
    background: #c93030 !important;
    background-color: #c93030 !important;
}

.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-from,
.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-to,
.catalog-cat-sidebar-list-block-content-slider .irs--flat .irs-single {
    background: #eb3f3f !important;
    color: #fff !important;
}

/* Кнопки размеров в фильтре (чипы) */
.catalog-cat-sidebar-list-block-content .chip,
.catalog-cat-sidebar-list-block-content a {
    border-color: #e5e5e5 !important;
}

.catalog-cat-sidebar-list-block-content .chip.active,
.catalog-cat-sidebar-list-block-content a.active {
    background: #eb3f3f !important;
    color: #fff !important;
    border-color: #eb3f3f !important;
}


/* ============= ФОТО ТОВАРА (как в прототипе product.html) ============= */

/* Контейнер фото */
#oneImgSwiper-container {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    order: 0 !important;
    position: relative;
}

/* Главное фото — квадратное, как в прототипе (aspect-ratio: 1) */
.oneImgSwiper {
    width: 100% !important;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    position: relative;
    aspect-ratio: 1;
}

.oneImgSwiper .swiper-wrapper {
    height: 100% !important;
}

.oneImgSwiper .swiper-slide {
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oneImgSwiper .swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

/* Бейдж "Новинка" */
.catalog-one-new {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #eb3f3f !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
}

/* Сердечко */
.catalog-one-wish {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

/* Миниатюры — снизу, в grid (как .product-gallery__thumbs) */
#otherImgSwiper-container {
    width: 100% !important;
    height: auto !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    order: 0 !important;
    flex-basis: 100% !important;
    position: relative;
}

.otherImgSwiper {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.otherImgSwiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.otherImgSwiper .swiper-slide {
    width: auto !important;
    height: auto !important;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.otherImgSwiper .swiper-slide-block {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    background: #f7f7f7;
}

.otherImgSwiper .swiper-slide.swiper-slide-thumb-active .swiper-slide-block,
.otherImgSwiper .swiper-slide:hover .swiper-slide-block {
    border-color: #eb3f3f;
}

.otherImgSwiper .swiper-slide-block img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
    max-width: none !important;
}

/* Скрою стрелки миниатюр */
#otherImgSwiper-container .swiper-other-button-prev,
#otherImgSwiper-container .swiper-other-button-next {
    display: none !important;
}

/* Пагинация — скрою (не нужна при grid миниатюрах) */
.swiper-pagination-one {
    display: none !important;
}
/* =====================================================================
   terra-product-fix.css — ДОБАВОК v11 (высший приоритет, в конце файла)
   Полный рерайт страницы товара: галерея, размеры, кнопки, табы, похожие
   Дизайн-токены: --primary #eb3f3f, --terra-dark #c93030, --terra-soft #fdecec
   ===================================================================== */

/* === 1. КОНТЕЙНЕР СТРАНИЦЫ ТОВАРА === */
#inner-catalog-one {
    padding: 0;
    margin: 0;
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif;
    color: #1f1f1f;
}

#inner-catalog-one-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* === 2. ГАЛЕРЕЯ: главное фото сверху, превью снизу === */
.inner-catalog-one-galeries {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 48% !important;
    flex-basis: 48% !important;
    max-width: 48% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#oneImgSwiper-container {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    order: 1 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    position: relative;
}

.oneImgSwiper {
    width: 100% !important;
    height: 500px !important;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    position: relative;
    margin: 0 !important;
}

.oneImgSwiper .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Без swiper JS: показываем только первый слайд */
.oneImgSwiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.oneImgSwiper .swiper-slide:first-child {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.oneImgSwiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}

.oneImgSwiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

/* Бейдж "Новинка" */
.catalog-one-new {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #eb3f3f !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

.catalog-one-wish {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

/* Превью — снизу в ряд */
#otherImgSwiper-container {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2 !important;
    flex-basis: 100% !important;
    position: relative;
}

.otherImgSwiper {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

.otherImgSwiper .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
}

.otherImgSwiper .swiper-slide {
    width: 80px !important;
    height: 80px !important;
    flex-shrink: 0 !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
}

.otherImgSwiper .swiper-slide-block {
    width: 80px !important;
    height: 80px !important;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    background: #f7f7f7;
    margin: 0 !important;
    padding: 0 !important;
}

.otherImgSwiper .swiper-slide.is-active .swiper-slide-block,
.otherImgSwiper .swiper-slide:hover .swiper-slide-block {
    border-color: #eb3f3f;
}

.otherImgSwiper .swiper-slide-block img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#otherImgSwiper-container .swiper-other-button-prev,
#otherImgSwiper-container .swiper-other-button-next {
    display: none !important;
}

.swiper-pagination-one {
    display: none !important;
}

/* === 3. ОПИСАНИЕ (правая колонка) === */
.inner-catalog-one-description {
    width: 48% !important;
    flex-basis: 48% !important;
    margin: 0 0 0 4% !important;
    padding: 0 !important;
    display: flow-root;
    overflow: visible;
}

#inner-catalog-one h1,
.inner-catalog-one-description h1 {
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    margin: 0 0 12px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
}

/* Характеристики — компактно */
.catalog-one-description-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 16px !important;
    font-size: 13px;
    color: #6f6f6f;
}

.catalog-one-description-field {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.catalog-one-description-field .with-note {
    display: inline-flex !important;
    align-items: baseline;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.catalog-one-description-field .with-note span {
    font-size: 12px !important;
    color: #6f6f6f !important;
    font-weight: 500 !important;
    text-transform: none !important;
    margin: 0 !important;
}

/* Скрыть "это Артикул" — это tooltip-заглушка, не нужен на странице */
.catalog-one-description-field .with-note em {
    display: none !important;
}

.catalog-one-description-field p {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: #1f1f1f !important;
    font-weight: 600 !important;
}

/* "Поделиться" — компактно справа */
.catalog-one-description-link {
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px !important;
    padding: 0 !important;
}

.catalog-one-description-link-title {
    font-size: 12px !important;
    color: #6f6f6f !important;
    margin: 0 !important;
    padding: 0 !important;
}

.catalog-one-description-link a {
    display: inline-flex !important;
    align-items: center;
}

.catalog-one-description-link img {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.catalog-one-description-link:hover img { opacity: 1; }

/* === 4. ТАБЛИЦА РАЗМЕРОВ как кнопки-строки === */
.catalog_one_order {
    overflow-x: auto;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    padding: 16px !important;
}

.catalog_one_order h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    text-align: left !important;
}

.catalog_one_order table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

/* Шапка — серая, не красная */
.catalog_one_order th {
    background: #f3f4f6 !important;
    color: #6f6f6f !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px 4px !important;
    border: 1px solid #e5e5e5 !important;
    white-space: nowrap;
    background-image: none !important;
}

.catalog_one_order td {
    font-size: 13px !important;
    padding: 10px 4px !important;
    text-align: center !important;
    border: 1px solid #f0f0f0 !important;
    white-space: nowrap;
    background: #fff !important;
}

.catalog_one_order tr.catalog_size_count {
    transition: background 0.15s;
}

.catalog_one_order tr.catalog_size_count:hover td {
    background: #fdecec !important;
}

/* Активный размер (есть количество) */
.catalog_one_order tr.catalog_size_count.is-active td {
    background: #fdecec !important;
    border-color: #eb3f3f !important;
}

.catalog_one_order tr.catalog_size_count.is-active .size-title {
    color: #eb3f3f !important;
}

/* Заголовок ячейки размера */
.catalog_one_order .size-title {
    background: transparent !important;
    background-image: none !important;
    filter: none !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    font-size: 14px !important;
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Цены — красные */
.catalog_one_order .cena1,
.catalog_one_order .cena2,
.catalog_one_order .cena3,
.catalog_one_order .cena4 {
    color: #eb3f3f !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Описание под шапкой цен */
.catalog_price_th_desc {
    font-size: 10px !important;
    color: #999 !important;
    font-weight: 400 !important;
    display: block !important;
    margin-top: 2px !important;
}

/* Поле количества — компактно */
.one_catalog_basket_count,
.catalog_basket_change input[type="text"] {
    width: 44px !important;
    height: 32px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
}

.one_catalog_basket_count:focus,
.catalog_basket_change input[type="text"]:focus {
    border-color: #eb3f3f !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(235,63,63,0.15);
}

.catalog_basket_change {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.catalog_basket_change_left {
    margin: 0 !important;
    padding: 0 !important;
}

.catalog_basket_change_right {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    float: none !important;
}

.catalog_basket_change_up,
.catalog_basket_change_down {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 14px !important;
    border-radius: 3px !important;
    background: #f3f4f6 !important;
    border: 1px solid #ddd !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.catalog_basket_change_up:hover,
.catalog_basket_change_down:hover {
    background: #e5e7eb !important;
    border-color: #eb3f3f !important;
}

.catalog_basket_change img {
    width: 9px !important;
    height: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Кнопка "Купить" — широкая, под таблицей */
.catalog_one_order .catalog_buy_button,
.catalog_one_order .default_button {
    display: block !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 14px 0 !important;
    background: #eb3f3f !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-family: inherit !important;
    box-shadow: 0 2px 4px rgba(235,63,63,0.2);
    transition: background 0.15s, box-shadow 0.15s;
}

.catalog_one_order .catalog_buy_button:hover,
.catalog_one_order .default_button:hover {
    background: #c93030 !important;
    background-image: none !important;
    box-shadow: 0 4px 8px rgba(201,48,48,0.3);
}

/* === 5. ТАБЫ === */
#inner-catalog-one-info {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

#inner-catalog-one-info-buttons ul {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 2px solid #e5e5e5 !important;
    gap: 0 !important;
}

#inner-catalog-one-info-buttons li {
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6f6f6f !important;
    cursor: pointer !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    margin-bottom: -2px !important;
    transition: color 0.15s, border-color 0.15s;
    background: transparent !important;
    text-transform: none !important;
    font-family: inherit !important;
}

#inner-catalog-one-info-buttons li:hover { color: #eb3f3f !important; }

#inner-catalog-one-info-buttons li.active {
    color: #eb3f3f !important;
    border-bottom-color: #eb3f3f !important;
}

.inner-catalog-one-panel {
    padding: 20px 0 !important;
    display: none;
}

.inner-catalog-one-panel.active { display: block !important; }

.inner-catalog-one-info-panel-text {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #333 !important;
}

.inner-catalog-one-info-panel-text p {
    margin: 0 0 12px !important;
}

.inner-catalog-one-info-panel-text h2 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    margin: 0 0 12px !important;
}

/* Колонки в табах Оплата/Доставка */
.one-info-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 0 16px;
}

.one-info-block {
    padding: 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #f7f7f7;
}

.one-info-block-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #eb3f3f !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
}

.one-info-block p {
    font-size: 13px !important;
    color: #6f6f6f !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.one-info-note {
    font-size: 13px !important;
    color: #6f6f6f !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
}

.one-info-note a {
    color: #eb3f3f !important;
    text-decoration: underline !important;
}

/* Панель "Все характеристики" */
.inner-catalog-one-info-panel-params {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e5e5;
}

.inner-catalog-one-info-panel-params h2,
.inner-catalog-one-info-panel-params h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.inner-catalog-one-info-panel-params-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.inner-catalog-one-info-panel-param {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e5e5;
    font-size: 13px;
}

.inner-catalog-one-info-panel-param > div {
    color: #6f6f6f !important;
    font-weight: 500;
    flex-shrink: 0;
}

.inner-catalog-one-info-panel-param > p {
    color: #1f1f1f !important;
    font-weight: 600;
    margin: 0 !important;
    text-align: right;
}

/* === 6. ПОХОЖИЕ ТОВАРЫ — grid === */
#inner-catalog-one-more-swiper {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

#inner-catalog-one-more-swiper h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    text-align: left !important;
    color: #1f1f1f !important;
    font-family: inherit !important;
}

.moreSwiper {
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

.moreSwiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    height: auto !important;
}

.moreSwiper .swiper-slide {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Скрыть стрелки пагинации похожих */
.swiper-more-button-prev,
.swiper-more-button-next {
    display: none !important;
}

/* === 7. ХЛЕБНЫЕ КРОШКИ === */
.pathway,
.inner-pathway {
    padding: 12px 0 !important;
    margin: 0 0 20px !important;
    border-bottom: 2px solid #eb3f3f !important;
    font-size: 12px !important;
    color: #6f6f6f !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 !important;
}

.pathway a,
.inner-pathway a {
    color: #eb3f3f !important;
    text-decoration: none !important;
    padding: 2px 4px !important;
}

.pathway a:hover,
.inner-pathway a:hover {
    color: #c93030 !important;
    text-decoration: underline !important;
}

.inner-pathway-separator {
    color: #999 !important;
    padding: 0 2px !important;
}

/* === 8. ОПИСАНИЕ ПОД ТАБЛИЦЕЙ === */
.one_text {
    margin: 16px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #333 !important;
}

.text3 {
    margin: 16px 0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #333 !important;
}

/* === 9. АДАПТИВ === */
@media (max-width: 1024px) {
    .inner-catalog-one-galeries {
        width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
    .inner-catalog-one-description {
        width: 100% !important;
        flex-basis: 100% !important;
        margin: 24px 0 0 0 !important;
    }
    .oneImgSwiper { height: 480px !important; }
    .moreSwiper .swiper-wrapper { grid-template-columns: repeat(3, 1fr) !important; }
    .one-info-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    #inner-catalog-one h1,
    .inner-catalog-one-description h1 {
        font-size: 20px !important;
    }
    .oneImgSwiper { height: 360px !important; }
    .otherImgSwiper .swiper-slide,
    .otherImgSwiper .swiper-slide-block {
        width: 64px !important;
        height: 64px !important;
    }
    .moreSwiper .swiper-wrapper { grid-template-columns: repeat(2, 1fr) !important; }
    .inner-catalog-one-info-panel-params-list { grid-template-columns: 1fr; }
    .one-info-cols { grid-template-columns: 1fr; }
    .catalog_one_order {
        padding: 10px !important;
    }
    .catalog_one_order .catalog_buy_button,
    .catalog_one_order .default_button {
        padding: 12px 0 !important;
        font-size: 13px !important;
    }
    #inner-catalog-one-info-buttons li {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .oneImgSwiper { height: 300px !important; }
    .catalog_one_order table { font-size: 11px !important; }
    .catalog_one_order th { padding: 6px 2px !important; font-size: 10px !important; }
    .catalog_one_order td { padding: 8px 2px !important; font-size: 12px !important; }
    .one_catalog_basket_count,
    .catalog_basket_change input[type="text"] {
        width: 36px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
}

/* Скрыть popcorn-share обёртку если пусто */
.eo-share-wrap:empty { display: none; }
/* =====================================================================
   terra-product-fix.css — ДОПОЛНЕНИЕ v12 (поверх v11)
   Правки похожих товаров, заглушек, мелких визуальных багов
   ===================================================================== */

/* === ПОХОЖИЕ ТОВАРЫ: карточки === */
.moreSwiper .catalog-list-one,
.moreSwiper .catalog_list_one {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    text-align: left !important;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    float: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
}

.moreSwiper .catalog-list-one:hover,
.moreSwiper .catalog_list_one:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #eb3f3f !important;
    z-index: 5;
}

.moreSwiper .catalog-list-one-img,
.moreSwiper .catalog_list_one .for_img {
    height: 200px !important;
    overflow: hidden;
    border-radius: 0 !important;
    position: relative;
    background: #f7f7f7;
    margin: 0 !important;
}

.moreSwiper .catalog-list-one-img img,
.moreSwiper .catalog_list_one .for_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block;
    transition: transform 0.4s;
}

.moreSwiper .catalog-list-one:hover .catalog-list-one-img img {
    transform: scale(1.05);
}

/* Заглушка noimage.jpg — показать как логотип в центре */
.moreSwiper .catalog-list-one.is-no-image .catalog-list-one-img,
.moreSwiper .catalog_list_one.is-no-image .for_img {
    background: #f7f7f7 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.moreSwiper .catalog-list-one.is-no-image .catalog-list-one-img img,
.moreSwiper .catalog_list_one.is-no-image .for_img img {
    width: 60% !important;
    height: auto !important;
    max-height: 80% !important;
    object-fit: contain !important;
    opacity: 0.45;
    filter: grayscale(0.5);
}

/* Карточки с кривым alias — затемнённые, не ведут на 404 */
.moreSwiper .catalog-list-one.is-no-alias,
.moreSwiper .catalog_list_one.is-no-alias {
    opacity: 0.55;
}

.moreSwiper .catalog-list-one.is-no-alias .catalog-list-one-img-a,
.moreSwiper .catalog_list_one.is-no-alias .catalog-list-one-img-a {
    pointer-events: none;
    cursor: default;
}

.moreSwiper .catalog-list-one.is-no-alias .catalog-list-one-add,
.moreSwiper .catalog_list_one.is-no-alias .catalog-list-one-add {
    opacity: 0.5;
    pointer-events: none;
}

.moreSwiper .more-swiper-block {
    padding: 0 !important;
    margin: 0 !important;
}

/* Текстовые блоки карточки */
.moreSwiper .catalog-list-one-articul {
    font-size: 11px !important;
    color: #6f6f6f !important;
    padding: 8px 12px 0 !important;
    margin: 0 !important;
}

.moreSwiper .catalog-list-one-articul span {
    color: #1f1f1f !important;
    font-weight: 600 !important;
}

.moreSwiper .catalog-list-one-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    padding: 4px 12px 6px !important;
    margin: 0 !important;
    min-height: 40px !important;
    line-height: 1.3 !important;
}

.moreSwiper .catalog-list-one-title a {
    color: #1f1f1f !important;
    text-decoration: none !important;
}

.moreSwiper .catalog-list-one-title a:hover {
    color: #eb3f3f !important;
}

.moreSwiper .catalog-list-one-color {
    font-size: 12px !important;
    color: #6f6f6f !important;
    padding: 0 12px !important;
    margin: 0 !important;
    min-height: 16px;
}

.moreSwiper .catalog-list-one-price {
    padding: 6px 12px 8px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #eb3f3f !important;
}

/* Блок количества + кнопка в карточке */
.moreSwiper .catalog-list-one-add {
    margin-top: auto !important;
    padding: 0 12px 12px !important;
    border: none !important;
    background: transparent !important;
}

.moreSwiper .catalog-list-one-add-panel {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 4px !important;
    background: #fff !important;
}

.moreSwiper .catalog-list-one-add-panel-amount {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 !important;
}

.moreSwiper .catalog-list-one-add-panel-amount-minus,
.moreSwiper .catalog-list-one-add-panel-amount-plus {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f3f4f6 !important;
    cursor: pointer;
    font-size: 18px !important;
    color: #1f1f1f !important;
    user-select: none;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.moreSwiper .catalog-list-one-add-panel-amount-minus:hover,
.moreSwiper .catalog-list-one-add-panel-amount-plus:hover {
    background: #e5e7eb !important;
    color: #eb3f3f !important;
}

.moreSwiper .catalog-list-one-add-panel-amount-value {
    width: 40px !important;
    height: 32px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #e5e5e5 !important;
    border-right: 1px solid #e5e5e5 !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none;
}

.moreSwiper .catalog-list-one-add-button-ok {
    flex: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 32px !important;
    padding: 0 12px !important;
    background: #eb3f3f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}

.moreSwiper .catalog-list-one-add-button-ok:hover {
    background: #c93030 !important;
}

/* Иконка избранного в карточке похожих */
.moreSwiper .catalog-list-one-marks {
    top: 8px !important;
    right: 8px !important;
}

.moreSwiper .addwish_ico_list,
.moreSwiper .catalog-list-one-wish {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* === МЕЛКИЕ ПРАВКИ === */

/* Заголовок "Поделиться" — компактнее */
.catalog-one-description-link .eo-share-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 50% !important;
    text-decoration: none !important;
}

.catalog-one-description-link .eo-share-btn img {
    width: 18px !important;
    height: 18px !important;
    opacity: 0.7;
}

.catalog-one-description-link .eo-share-btn:hover {
    background: #eb3f3f !important;
    border-color: #eb3f3f !important;
}

.catalog-one-description-link .eo-share-btn:hover img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Бейджи в карточке похожих (Хит, Новинка, Распродажа) */
.moreSwiper .catalog-list-one-marks .stick,
.moreSwiper .catalog-list-one-marks .sticker {
    background: #eb3f3f !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin: 0 0 4px 0 !important;
    display: inline-block !important;
}

/* Заглушка noimage — на странице каталога тоже */
.catalog-list-one-img:has(img[src*="noimage.jpg"]) {
    background: #f7f7f7 !important;
}

/* Активная превьюха — более яркая рамка */
.otherImgSwiper .swiper-slide.is-active .swiper-slide-block {
    border-color: #eb3f3f !important;
    box-shadow: 0 0 0 2px rgba(235,63,63,0.15);
}
/* =====================================================================
   terra-product-fix.css — ДОПОЛНЕНИЕ v13 (поверх v12)
   Финальные правки: галерея вертикальная, скрытие битых карточек, мелочи
   ===================================================================== */

/* === 1. ГАЛЕРЕЯ: вертикальная пропорция для фото моделей === */
.oneImgSwiper {
    width: 100% !important;
    height: 0 !important;
    padding-top: 125% !important;  /* 4:5 вертикальный, как фото моделей одежды */
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #f7f7f7;
    position: relative;
    margin: 0 !important;
    max-height: 720px;
}

.oneImgSwiper .swiper-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.oneImgSwiper .swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: none !important;
}

.oneImgSwiper .swiper-slide:first-child {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.oneImgSwiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
}

.oneImgSwiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

/* Бейдж и сердечко — позиционируем от верхнего края */
.catalog-one-new,
.catalog-one-wish {
    position: absolute !important;
    z-index: 10;
}

.catalog-one-new {
    top: 12px !important;
    left: 12px !important;
}

.catalog-one-wish {
    top: 12px !important;
    right: 12px !important;
}

/* === 2. КАРТОЧКИ ПОХОЖИХ С КРИВЫМ ALIAS — скрыть === */
.moreSwiper .catalog-list-one.is-no-alias,
.moreSwiper .catalog_list_one.is-no-alias {
    display: none !important;
}

/* === 3. Заглушка is-no-image — логотип TERRA как бренд === */
.moreSwiper .catalog-list-one.is-no-image .catalog-list-one-img,
.moreSwiper .catalog_list_one.is-no-image .for_img {
    background: linear-gradient(135deg, #fdecec 0%, #fff 100%) !important;
}

.moreSwiper .catalog-list-one.is-no-image .catalog-list-one-img img,
.moreSwiper .catalog_list_one.is-no-image .for_img img {
    width: 50% !important;
    height: auto !important;
    max-height: 70% !important;
    object-fit: contain !important;
    opacity: 0.85;
    filter: none !important;
    margin: auto !important;
}

/* === 4. МЕЛОЧИ === */

/* Заголовок "Поделиться" — убрать иконку PNG (она странная) */
.catalog-one-description-link img[src*="catalog-one-description-link-3x.png"] {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
    opacity: 0.7;
}

.catalog-one-description-link .eo-share-btn:hover img[src*="catalog-one-description-link-3x.png"] {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Хедер-таблицы размеров — лёгкий серый, акценты красным */
.catalog_one_order th {
    background: #f3f4f6 !important;
    color: #6f6f6f !important;
    border: 1px solid #e5e5e5 !important;
}

.catalog_one_order th.cena1,
.catalog_one_order th.cena2,
.catalog_one_order th.cena3,
.catalog_one_order th.cena4 {
    color: #eb3f3f !important;
}

/* === 5. АДАПТИВНОСТЬ для вертикальной галереи === */
@media (max-width: 1024px) {
    .oneImgSwiper {
        padding-top: 100% !important;  /* 1:1 на планшетах */
        max-height: 580px;
    }
}

@media (max-width: 768px) {
    .oneImgSwiper {
        padding-top: 100% !important;
        max-height: 480px;
    }
}

@media (max-width: 480px) {
    .oneImgSwiper {
        padding-top: 125% !important;
        max-height: 420px;
    }
}

/* === 6. Очистка от старого изображения hits-on-main (если попадается) === */
.catalog-list-one-img img[src*="hits-on-main"],
.for_img img[src*="hits-on-main"] {
    display: none !important;
}
/* =====================================================================
   terra-product-fix.css — ДОПОЛНЕНИЕ v14
   1) Ширина страницы товара как у категории (с отступами)
   2) Похожие товары = список как в категории (grid 4 в ряд)
   3) Подкатегории на странице категории — grid 4 в ряд как товары
   ===================================================================== */

/* === 1. СТРАНИЦА ТОВАРА: отступы как у категории === */
/* На категории #inner-catalog-cat = width:90%, max-width:1600px, margin auto
   У товара тоже было так, но внутри flex-контейнер занимал всю ширину.
   Ограничиваем основной контент страницы товара до ~78% как правая колонка категории,
   ИМитируя тот же отступ что и правая колонка (слева 20% под сайдбар + 2% gap = 22%). */

#inner-catalog-one {
    width: 90% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 0 60px 0 !important;
}

#inner-catalog-one-container {
    width: 78% !important;
    margin: 0 0 0 22% !important;
    padding: 0 !important;
}

/* Хлебные крошки тоже сдвинем под сайдбар */
#inner-catalog-one > .pathway.inner-pathway {
    width: 78% !important;
    margin: 0 0 20px 22% !important;
    box-sizing: border-box;
}

/* Вкладки и похожие — на всю ширину контента (после 2-колонок фото+инфо) */
#inner-catalog-one-info,
#inner-catalog-one-more-swiper {
    width: 78% !important;
    margin: 30px 0 0 22% !important;
    box-sizing: border-box;
}

/* === 2. ПОХОЖИЕ ТОВАРЫ = СПИСОК КАК В КАТЕГОРИИ === */
/* У категорий: catalog_list_row {display:flex; flex-wrap:wrap} + catalog_list_one float left 220px
   Делаем так же — 4 в ряд, аккуратные карточки, как товары в категории */

.moreSwiper {
    overflow: visible !important;
}

.moreSwiper .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 -10px !important; /* компенсируем margin-right 10px у каждой карточки */
    padding: 0 !important;
}

.moreSwiper .swiper-slide {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding: 0 10px 0 0 !important;
    margin: 0 0 20px 0 !important;
    box-sizing: border-box;
    height: auto !important;
}

.moreSwiper .catalog-list-one,
.moreSwiper .catalog_list_one {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column;
    height: 100% !important;
    min-height: 360px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    float: none !important;
}

.moreSwiper .catalog-list-one:hover,
.moreSwiper .catalog_list_one:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #eb3f3f !important;
    z-index: 5;
}

.moreSwiper .catalog-list-one-img,
.moreSwiper .catalog_list_one .for_img {
    height: 220px !important;
    overflow: hidden;
    border-radius: 0 !important;
    position: relative;
    background: #f7f7f7;
    margin: 0 !important;
}

.moreSwiper .catalog-list-one-img img,
.moreSwiper .catalog_list_one .for_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    transition: transform 0.4s;
}

.moreSwiper .catalog-list-one:hover .catalog-list-one-img img {
    transform: scale(1.05);
}

/* Заглушка noimage — лого TERRA по центру */
.moreSwiper .catalog-list-one.is-no-image .catalog-list-one-img,
.moreSwiper .catalog_list_one.is-no-image .for_img {
    background: linear-gradient(135deg, #fdecec 0%, #fff 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.moreSwiper .catalog-list-one.is-no-image .catalog-list-one-img img,
.moreSwiper .catalog_list_one.is-no-image .for_img img {
    width: 50% !important;
    height: auto !important;
    max-height: 70% !important;
    object-fit: contain !important;
    opacity: 0.85;
    filter: none !important;
    margin: auto !important;
    transition: none !important;
}

.moreSwiper .catalog-list-one.is-no-image:hover .catalog-list-one-img img {
    transform: none !important;
}

/* Скрыть карточки с кривым alias */
.moreSwiper .catalog-list-one.is-no-alias,
.moreSwiper .catalog_list_one.is-no-alias {
    display: none !important;
}

/* Иконка избранного в углу */
.moreSwiper .catalog-list-one-marks {
    top: 8px !important;
    right: 8px !important;
}

.moreSwiper .addwish_ico_list,
.moreSwiper .catalog-list-one-wish {
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Текстовые блоки */
.moreSwiper .catalog-list-one-articul {
    font-size: 11px !important;
    color: #6f6f6f !important;
    padding: 10px 12px 2px !important;
    margin: 0 !important;
}

.moreSwiper .catalog-list-one-articul span {
    color: #1f1f1f !important;
    font-weight: 600 !important;
}

.moreSwiper .catalog-list-one-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    padding: 4px 12px 6px !important;
    margin: 0 !important;
    min-height: 40px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.moreSwiper .catalog-list-one-title a {
    color: #1f1f1f !important;
    text-decoration: none !important;
}

.moreSwiper .catalog-list-one-title a:hover {
    color: #eb3f3f !important;
}

.moreSwiper .catalog-list-one-color {
    font-size: 12px !important;
    color: #6f6f6f !important;
    padding: 0 12px !important;
    margin: 0 !important;
    min-height: 16px;
    text-align: left !important;
}

.moreSwiper .catalog-list-one-price {
    padding: 6px 12px 8px !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #eb3f3f !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

/* Блок количества + кнопка в карточке */
.moreSwiper .catalog-list-one-add {
    margin-top: auto !important;
    padding: 0 12px 12px !important;
    border: none !important;
    background: transparent !important;
    display: block !important;
}

.moreSwiper .catalog-list-one-add.active {
    display: block !important;
}

.moreSwiper .catalog-list-one-add-panel {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 4px !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box;
}

.moreSwiper .catalog-list-one-add-panel-amount {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.moreSwiper .catalog-list-one-add-panel-amount-minus,
.moreSwiper .catalog-list-one-add-panel-amount-plus {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f3f4f6 !important;
    cursor: pointer;
    font-size: 18px !important;
    color: #1f1f1f !important;
    user-select: none;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background 0.15s, color 0.15s;
}

.moreSwiper .catalog-list-one-add-panel-amount-minus:hover,
.moreSwiper .catalog-list-one-add-panel-amount-plus:hover {
    background: #e5e7eb !important;
    color: #eb3f3f !important;
}

.moreSwiper .catalog-list-one-add-panel-amount-value {
    width: 36px !important;
    height: 30px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #e5e5e5 !important;
    border-right: 1px solid #e5e5e5 !important;
    background: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none;
}

.moreSwiper .catalog-list-one-add-button-ok {
    flex: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 30px !important;
    padding: 0 10px !important;
    background: #eb3f3f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    transition: background 0.15s;
    white-space: nowrap;
}

.moreSwiper .catalog-list-one-add-button-ok:hover {
    background: #c93030 !important;
}

/* Бейджи Хит/Новинка/Распродажа в карточке похожих */
.moreSwiper .catalog-list-one-marks .stick,
.moreSwiper .catalog-list-one-marks .sticker {
    background: #eb3f3f !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin: 0 0 4px 0 !important;
    display: inline-block !important;
}

/* Скрыть popcorn-share обёртку если пусто */
.eo-share-wrap:empty { display: none; }

/* === 3. ПОДКАТЕГОРИИ НА СТРАНИЦЕ КАТЕГОРИИ — GRID 4 В РЯД === */
/* Сейчас catalog_subcats содержит .catalog_list_one, но они занимают всю ширину
   (по умолчанию без явной ширины). Делаем grid 4 в ряд, как товары в категории. */

.catalog_subcats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    margin: 0 -10px 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.catalog_subcats .catalog_list_one {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding: 0 10px 20px 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    float: none !important;
    text-align: center;
    position: relative;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.catalog_subcats .catalog_list_one:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #eb3f3f !important;
    z-index: 5;
}

/* Фото подкатегории */
.catalog_subcats .catalog_list_one a {
    display: block;
    text-decoration: none !important;
    color: #1f1f1f;
}

.catalog_subcats .catalog_list_one a img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    transition: transform 0.4s;
}

.catalog_subcats .catalog_list_one:hover a img {
    transform: scale(1.05);
}

/* Название подкатегории */
.catalog_subcats .catalog_list_one .slide_title,
.catalog_subcats .catalog_list_one p {
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.catalog_subcats .catalog_list_one:hover .slide_title,
.catalog_subcats .catalog_list_one:hover p {
    color: #eb3f3f !important;
}

/* Если у категории нет картинки (img src пустой или noimage) */
.catalog_subcats .catalog_list_one a:not(:has(img)),
.catalog_subcats .catalog_list_one:has(img[src=""]),
.catalog_subcats .catalog_list_one:has(img[src*="noimage"]) {
    /* пока без спецобработки */
}

/* === АДАПТИВНОСТЬ для подкатегорий === */
@media (max-width: 1200px) {
    .catalog_subcats .catalog_list_one {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
    .moreSwiper .swiper-slide {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
}

@media (max-width: 900px) {
    .catalog_subcats .catalog_list_one {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .moreSwiper .swiper-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    /* На мобиле — контент товара на всю ширину, без левого отступа */
    #inner-catalog-one-container,
    #inner-catalog-one > .pathway.inner-pathway,
    #inner-catalog-one-info,
    #inner-catalog-one-more-swiper {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 600px) {
    .catalog_subcats .catalog_list_one {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .moreSwiper .swiper-slide {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Скрыть стрелки пагинации похожих товаров */
.swiper-more-button-prev,
.swiper-more-button-next {
    display: none !important;
}
/* =====================================================================
   terra-product-fix.css — ДОПОЛНЕНИЕ v15
   1) Страница товара: max-width 1600px (как категория), контент по центру без пустого отступа слева
   2) Список подкатегорий: занимает всю ширину контентной области (#catalog-cat-content),
      карточки такого же размера как товары в категории (5 в ряд)
   ===================================================================== */

/* === 1. СТРАНИЦА ТОВАРА — max 1600px, контент 78% как правая колонка категории, но по центру === */
/* Раньше margin-left:22% создавал пустое место слева. Делаем width:78% margin:0 auto — центрируем. */

#inner-catalog-one {
    width: 90% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 0 60px 0 !important;
}

#inner-catalog-one-container {
    width: 78% !important;
    margin: 0 auto !important;  /* центрируем, без пустого левого отступа */
    padding: 0 !important;
    box-sizing: border-box;
}

#inner-catalog-one > .pathway.inner-pathway {
    width: 78% !important;
    margin: 0 auto 20px !important;  /* центрируем */
    box-sizing: border-box;
}

#inner-catalog-one-info,
#inner-catalog-one-more-swiper {
    width: 78% !important;
    margin: 30px auto 0 !important;  /* центрируем */
    box-sizing: border-box;
}

/* === 2. СПИСОК ПОДКАТЕГОРИЙ = ТАКАЯ ЖЕ ШИРИНА КАК СПИСОК ТОВАРОВ === */
/* #catalog-cat-list — grid с auto-fill колонками minmax(230px,1fr).
   Когда внутри только .catalog_subcats — grid делает 5 колонок, а .catalog_subcats
   занимает 1 колонку. Заставляем .catalog_subcats занять ВСЁ пространство grid. */

/* Если в catalog-cat-list только подкатегории — отключаем grid, делаем block */
#catalog-cat-list:has(.catalog_subcats):not(:has(.catalog-list-one)) {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* Сам контейнер подкатегорий — на всю ширину */
.catalog_subcats {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Карточки подкатегорий — такого же размера как карточки товаров в категории.
   В категории товары: grid minmax(230px, 1fr) — 5 в ряд на 1248px ширине контента.
   Делаем подкатегории тоже по 230px min, 5 в ряд. */

.catalog_subcats .catalog_list_one {
    width: calc((100% - 4 * 16px) / 5) !important;  /* 5 в ряд, gap 16px */
    flex: 0 0 calc((100% - 4 * 16px) / 5) !important;
    max-width: calc((100% - 4 * 16px) / 5) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    float: none !important;
    text-align: center;
    position: relative;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.catalog_subcats .catalog_list_one:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #eb3f3f !important;
    z-index: 5;
}

/* Фото подкатегории — такое же как у товара (пропорция 1:1, 220px высота) */
.catalog_subcats .catalog_list_one a {
    display: block;
    text-decoration: none !important;
    color: #1f1f1f;
}

.catalog_subcats .catalog_list_one a img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    transition: transform 0.4s;
}

.catalog_subcats .catalog_list_one:hover a img {
    transform: scale(1.05);
}

/* Название подкатегории */
.catalog_subcats .catalog_list_one .slide_title,
.catalog_subcats .catalog_list_one p {
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.catalog_subcats .catalog_list_one:hover .slide_title,
.catalog_subcats .catalog_list_one:hover p {
    color: #eb3f3f !important;
}

/* === АДАПТИВНОСТЬ для подкатегорий (5 / 4 / 3 / 2 / 1) === */
@media (max-width: 1400px) {
    .catalog_subcats .catalog_list_one {
        width: calc((100% - 3 * 16px) / 4) !important;
        flex: 0 0 calc((100% - 3 * 16px) / 4) !important;
        max-width: calc((100% - 3 * 16px) / 4) !important;
    }
}

@media (max-width: 1100px) {
    .catalog_subcats .catalog_list_one {
        width: calc((100% - 2 * 16px) / 3) !important;
        flex: 0 0 calc((100% - 2 * 16px) / 3) !important;
        max-width: calc((100% - 2 * 16px) / 3) !important;
    }
}

@media (max-width: 800px) {
    .catalog_subcats .catalog_list_one {
        width: calc((100% - 1 * 16px) / 2) !important;
        flex: 0 0 calc((100% - 1 * 16px) / 2) !important;
        max-width: calc((100% - 1 * 16px) / 2) !important;
    }
    /* На мобиле контент товара — на всю ширину */
    #inner-catalog-one-container,
    #inner-catalog-one > .pathway.inner-pathway,
    #inner-catalog-one-info,
    #inner-catalog-one-more-swiper {
        width: 100% !important;
        margin: 0 !important;
        margin-top: 20px !important;
    }
    #inner-catalog-one > .pathway.inner-pathway { margin-top: 0 !important; margin-bottom: 20px !important; }
}

@media (max-width: 500px) {
    .catalog_subcats .catalog_list_one {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
/* =====================================================================
   terra-product-fix.css — ДОПОЛНЕНИЕ v16
   Карточки подкатегорий — grid auto-fill как у товаров (5 в ряд по 230px)
   ===================================================================== */

/* Переписываем правила из v15 — используем grid auto-fill, чтобы карточки подкатегорий
   были ТОЧНО такого же размера как карточки товаров в #catalog-cat-list */

#catalog-cat-list:has(.catalog_subcats):not(:has(.catalog-list-one)) {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

.catalog_subcats {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    align-items: start !important;
    gap: 16px !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.catalog_subcats .catalog_list_one {
    width: 100% !important;
    flex: none !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    float: none !important;
    text-align: center;
    position: relative;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.catalog_subcats .catalog_list_one:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #eb3f3f !important;
    z-index: 5;
}

/* Фото подкатегории — 1:1 как у товаров */
.catalog_subcats .catalog_list_one a {
    display: block;
    text-decoration: none !important;
    color: #1f1f1f;
}

.catalog_subcats .catalog_list_one a img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
    transition: transform 0.4s;
}

.catalog_subcats .catalog_list_one:hover a img {
    transform: scale(1.05);
}

/* Название подкатегории */
.catalog_subcats .catalog_list_one .slide_title,
.catalog_subcats .catalog_list_one p {
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f1f1f !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    min-height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.catalog_subcats .catalog_list_one:hover .slide_title,
.catalog_subcats .catalog_list_one:hover p {
    color: #eb3f3f !important;
}

/* Адаптив: на мобиле — 2 в ряд, на совсем маленькой — 1 в ряд */
@media (max-width: 800px) {
    .catalog_subcats {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    }
}

@media (max-width: 500px) {
    .catalog_subcats {
        grid-template-columns: 1fr !important;
    }
}
/* =====================================================================
   terra-product-fix.css — ДОПОЛНЕНИЕ v17
   Шапка: аккуратное выравнивание + бейджи-счётчики на иконках
   Дизайн по примеру luteks.ru: круглые красные бейджи с числом
   ===================================================================== */

/* === ШАПКА: ВЕРХНЯЯ БЕЛАЯ ПОЛОСА === */
.terra-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.terra-header-top {
    padding: 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    min-height: 70px;
    box-sizing: border-box;
}

/* Лого — слева, заметного размера */
.terra-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #1f1f1f !important;
    font-weight: 700;
    flex-shrink: 0;
}

.terra-logo img {
    height: 44px !important;
    width: auto !important;
    display: block;
}

/* Контакты — по центру */
.terra-header-contacts {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-grow: 1;
    justify-content: center;
}

.terra-header-phone {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif !important;
    transition: color 0.15s;
}

.terra-header-phone:hover {
    color: #eb3f3f !important;
}

.terra-header-phone small {
    display: block !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #6f6f6f !important;
    margin-top: 2px !important;
    letter-spacing: 0.02em;
}

/* Иконки — справа */
.terra-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0;
}

.terra-header-icon {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #1f1f1f !important;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s !important;
}

.terra-header-icon:hover {
    background: #f3f4f6 !important;
    color: #eb3f3f !important;
}

/* === БЕЙДЖИ-СЧЁТЧИКИ === */
/* Круглый красный бейдж с числом — как на luteks.ru */
.terra-header-icon-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #eb3f3f !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 5px !important;
    box-sizing: border-box;
    border: 2px solid #ffffff !important;
    font-family: "Jost", "Geometria", Arial, sans-serif !important;
    line-height: 1 !important;
    z-index: 5 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.terra-header-icon-badge[data-count="0"] {
    display: none !important;
}

/* Подсветка иконок с активным бейджем */
.terra-header-icon:has(.terra-header-icon-badge:not([data-count="0"])) {
    color: #1f1f1f;
}

.terra-header-icon-cart:has(.terra-header-icon-badge:not([data-count="0"])) svg,
.terra-header-icon-wish:has(.terra-header-icon-badge:not([data-count="0"])) svg {
    color: #eb3f3f;
}

/* === МЕНЮ НАВИГАЦИИ (КРАСНАЯ ПОЛОСА) === */
.terra-header-nav {
    background: #eb3f3f !important;
    color: #ffffff;
}

.terra-header-nav .terra-container {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box;
}

.terra-header-nav-list {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* меню прижато влево, как в luteks */
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.terra-header-nav-list > li {
    flex-shrink: 0;
}

.terra-header-nav-list > li > a {
    display: block !important;
    padding: 14px 18px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: background 0.15s !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-family: "Jost", "Geometria", "Montserrat", Arial, sans-serif !important;
    white-space: nowrap;
}

.terra-header-nav-list > li > a:hover {
    background: #c93030 !important;
    color: #ffffff !important;
}

.terra-header-nav-list > li.catalog-parent > a::after {
    content: " ▾" !important;
    font-size: 0.7em !important;
    margin-left: 4px !important;
    opacity: 0.7 !important;
}

/* Активный пункт меню (текущая категория) */
.terra-header-nav-list > li.active > a,
.terra-header-nav-list > li.current > a {
    background: #c93030 !important;
}

/* === АДАПТИВНОСТЬ ШАПКИ === */
@media (max-width: 1100px) {
    .terra-header-nav-list > li > a {
        padding: 12px 14px !important;
        font-size: 12px !important;
    }
    .terra-header-phone {
        font-size: 16px !important;
    }
    .terra-header-phone small {
        font-size: 10px !important;
    }
}

@media (max-width: 900px) {
    .terra-header-contacts {
        display: none !important;
    }
    .terra-header-top {
        justify-content: space-between !important;
        gap: 16px !important;
    }
    .terra-header-nav-list > li > a {
        padding: 10px 12px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 600px) {
    .terra-logo img {
        height: 36px !important;
    }
    .terra-header-icon {
        width: 40px !important;
        height: 40px !important;
    }
    .terra-header-nav-list > li > a {
        padding: 10px 10px !important;
        font-size: 11px !important;
    }
}


/* =====================================================================
   ДОПОЛНЕНИЕ v18 — настоящий Swiper, компактная таблица цен, мобильная галерея
   ===================================================================== */

/* === 1. ГАЛЕРЕЯ ПОД НАСТОЯЩИЙ SWIPER === */
/* Превью — горизонтальная лента без переносов (раньше flex-wrap:wrap) */
.otherImgSwiper .swiper-wrapper {
    flex-wrap: nowrap !important;
}
.otherImgSwiper .swiper-slide {
    width: auto !important;
    cursor: pointer;
}
/* активное превью */
.otherImgSwiper .swiper-slide-thumb-active .swiper-slide-block {
    border-color: #eb3f3f !important;
    box-shadow: 0 0 0 2px rgba(235, 63, 63, 0.25);
}

/* Похожие товары — лента Swiper вместо grid-заглушки */
.moreSwiper .swiper-wrapper {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
}
.moreSwiper .swiper-slide {
    flex-shrink: 0;
    width: auto;
    height: auto;
}
/* вернуть стрелки похожих (в v16 были скрыты) */
.swiper-more-button-prev,
.swiper-more-button-next {
    display: block !important;
}

/* === 2. СТРЕЛКИ И ПАГИНАЦИЯ ГЛАВНОГО ФОТО === */
.swiper-one-button-prev,
.swiper-one-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    z-index: 12;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #1f1f1f;
    font-family: 'Jost', Arial, sans-serif;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
}
.swiper-one-button-prev { left: 12px; }
.swiper-one-button-next { right: 12px; }
.swiper-one-button-prev::before { content: '‹'; margin-right: 2px; }
.swiper-one-button-next::before { content: '›'; margin-left: 2px; }
.swiper-one-button-prev:hover,
.swiper-one-button-next:hover {
    background: #eb3f3f;
    border-color: #eb3f3f;
    color: #ffffff;
}
.swiper-one-button-prev.swiper-button-disabled,
.swiper-one-button-next.swiper-button-disabled {
    display: none !important;
}

.oneImgSwiper .swiper-pagination-one {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 11;
}
.swiper-pagination-one .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.65;
    border: 1px solid #cfcfcf;
    width: 9px;
    height: 9px;
    transition: all 0.15s;
}
.swiper-pagination-one .swiper-pagination-bullet-active {
    background: #eb3f3f;
    border-color: #eb3f3f;
    opacity: 1;
    transform: scale(1.15);
}

/* === 3. МАТЕРИАЛ В КАРТОЧКАХ (вместо неверного «Артикул: ткань») === */
.catalog-list-one-articul {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    font-weight: 500;
    color: #8a8a8a;
}

/* === 4. ХАРАКТЕРИСТИКИ: строка «Название — Значение» (без with-note) === */
.catalog-one-description-fields .catalog-one-description-field {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #ececec;
    font-size: 13px;
}
.catalog-one-description-field > span {
    color: #8a8a8a;
    flex-shrink: 0;
}
.catalog-one-description-field > p {
    margin: 0;
    font-weight: 600;
    color: #1f1f1f;
    text-align: right;
}
/* то же — во «Все характеристики» на вкладке */
.inner-catalog-one-info-panel-param {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #ececec;
    font-size: 13px;
}
.inner-catalog-one-info-panel-param > div { color: #8a8a8a; }
.inner-catalog-one-info-panel-param > p { margin: 0; font-weight: 600; text-align: right; }

/* === 5. ТАБЛИЦА ЦЕН: двухуровневая шапка + скролл вместо вылезания === */
.catalog_one_order {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.catalog_one_order table {
    width: 100% !important;
    min-width: 560px;
    border-collapse: collapse;
}
.catalog_one_order th.prices-group {
    font-size: 12px !important;
    letter-spacing: 0.02em;
}
.catalog_one_order th.prices-group span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 2px;
}
.catalog_one_order tr.prices-sub th {
    background: #c93030 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 6px !important;
}
/* первая колонка («Размер») липнет при горизонтальном скролле */
.catalog_one_order th.th-size,
.catalog_one_order td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
}
.catalog_one_order td:first-child {
    background: #ffffff;
}
.catalog_one_order tr:hover td:first-child {
    background: #fdecec;
}
.catalog_one_order th.th-size { z-index: 3; }

/* === 6. МОБАЛЬНАЯ ГАЛЕРЕЯ: квадратное фото, превью лентой снизу === */
@media (max-width: 768px) {
    #otherImgSwiper-container {
        order: 2 !important;
        margin-top: 10px !important;
    }
    .otherImgSwiper .swiper-slide,
    .otherImgSwiper .swiper-slide-block {
        width: 56px !important;
        height: 56px !important;
    }
    .otherImgSwiper .swiper-slide-block img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .oneImgSwiper {
        padding-top: 0 !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 1 / 1 !important;
    }
    .inner-pathway {
        font-size: 11px;
        line-height: 1.6;
    }
}
@media (max-width: 480px) {
    .oneImgSwiper {
        padding-top: 0 !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }
    .catalog_one_order table {
        min-width: 520px;
    }
    .swiper-one-button-prev,
    .swiper-one-button-next {
        width: 32px;
        height: 32px;
        font-size: 19px;
    }
}


/* =====================================================================
   ДОПОЛНЕНИЕ v19 — похожие товары: карточки равной высоты, скрытие пустых слайдов, стрелки
   ===================================================================== */

/* Слайды без фото (noimage) или с кривыми алиасами скрываются целиком —
   JS вешает is-slide-hidden на .swiper-slide */
.moreSwiper .swiper-slide.is-slide-hidden {
    display: none !important;
}

/* Карточки одинаковой высоты: фото фиксированного соотношения 3:4 */
.moreSwiper .catalog-list-one-img,
.moreSwiper .for_img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}
.moreSwiper .catalog-list-one-img img,
.moreSwiper .for_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Карусель режет слайды, стрелки лежат на родителе с overflow:visible */
.moreSwiper {
    overflow: hidden !important;
}
#inner-catalog-one-more-swiper {
    position: relative;
}

/* Стрелки похожих товаров — в стиле галереи товара (были спрайтами кучей справа) */
.swiper-more-button-prev,
.swiper-more-button-next {
    position: absolute !important;
    top: 120px;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    background-image: none !important;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    z-index: 12;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #1f1f1f;
    font-family: 'Jost', Arial, sans-serif;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
}
.swiper-more-button-prev { left: 2px !important; right: auto !important; }
.swiper-more-button-next { right: 2px !important; left: auto !important; }
.swiper-more-button-prev::before { content: '9'; margin-right: 2px; }
.swiper-more-button-next::before { content: 'A'; margin-left: 2px; }
.swiper-more-button-prev:hover,
.swiper-more-button-next:hover {
    background: #eb3f3f !important;
    border-color: #eb3f3f;
    color: #ffffff;
}
.swiper-more-button-prev.swiper-button-disabled,
.swiper-more-button-next.swiper-button-disabled {
    display: none !important;
}
@media (max-width: 768px) {
    .swiper-more-button-prev,
    .swiper-more-button-next {
        top: 90px;
        width: 30px !important;
        height: 30px !important;
        font-size: 18px;
    }
}


/* =====================================================================
   ДОПОЛНЕНИЕ v20 — меню по центру без ползунка; страница избранного
   ===================================================================== */

/* === 1. МЕНЮ ШАПКИ: ЦЕНТРИРОВАНИЕ БЕЗ ПОТЕРИ КРАЕВ ПРИ ПЕРЕПОЛНЕНИИ === */
/* width:max-content + margin:auto: когда пункты помещаются — меню в центре;
   когда не помещаются — занимает всю ширину и скроллится от левого края. */
.terra-header-nav-list {
    justify-content: flex-start !important;
    width: max-content !important;
    max-width: 100%;
    margin: 0 auto !important;
}

/* Ползунок скролла прячем, сам скролл остаётся (тач/колёсико/shift+колесо) */
.terra-header-nav-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.terra-header-nav-list::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

/* === 2. СТРАНИЦА ИЗБРАННОГО (без личного кабинета) === */
.wishlist-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 18px;
    line-height: 1.3;
    font-family: 'Jost', 'Geometria', 'Montserrat', Arial, sans-serif;
}
.inner-wishlist #inner-catalog-cat-container {
    margin-top: 4px;
}


/* === v20b: СЕРДЕЧКО В ГАЛЕРЕЕ — иконка (цвет перекрыл картинку) + активное состояние === */
.catalog-one-wish {
    background: #ffffffe1 url("/themes/default/images/catalog-one-wish-3x.png") no-repeat 50% 50% !important;
    background-size: 20px 20px !important;
}
.catalog-one-wish.active,
.catalog-one-wish:hover {
    background: #ffffff url("/themes/default/images/catalog-one-wish-active-3x.png") no-repeat 50% 50% !important;
    background-size: 20px 20px !important;
}


/* =====================================================================
   ДОПОЛНЕНИЕ v22 — раскрывающийся поиск в шапке
   ===================================================================== */
.terra-header-search {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}
.terra-header-search .terra-header-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.terra-header-search-input {
    width: 0;
    height: 36px;
    padding: 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    font-family: 'Jost', 'Geometria', 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    outline: none;
    box-sizing: border-box;
    transition: width 0.25s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.terra-header-search-input::placeholder {
    color: #9a9a9a;
}
.terra-header-search.open .terra-header-search-input {
    width: min(230px, 40vw);
    opacity: 1;
    border-bottom-color: #eb3f3f;
}

/* На узких экранах инпут раскрывается панелью под шапкой — не ломая top-строку */
@media (max-width: 600px) {
    .terra-header-search.open {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 100%;
        z-index: 60;
        background: #ffffff;
        padding: 10px 14px;
        border-radius: 10px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    }
    .terra-header-search.open .terra-header-search-input {
        width: 100%;
        flex: 1;
    }
}


/* =====================================================================
   ДОПОЛНЕНИЕ v23 — таблица заказа без скролла, светлые шапки,
   мобильные карточки размеров; отзывы во вкладке товара
   ===================================================================== */

/* === 1. ТАБЛИЦА ЗАКАЗА: компактно, без горизонтального скролла === */
.catalog_one_order {
    overflow: visible !important;
}
.catalog_one_order table {
    min-width: 0 !important;
    width: 100% !important;
}
/* Шапки — светлые, без красного фона (красным только акцент цен) */
.catalog_one_order th {
    background: #f7f7f7 !important;
    color: #1f1f1f !important;
    border: 1px solid #e9e9e9 !important;
    padding: 6px 4px !important;
    font-size: 11px !important;
    white-space: nowrap;
}
.catalog_one_order th.prices-group {
    font-size: 12px !important;
}
.catalog_one_order th.prices-group span {
    color: #8a8a8a !important;
}
.catalog_one_order tr.prices-sub th {
    background: #fdf1f1 !important;
    color: #c93030 !important;
    padding: 4px 3px !important;
    font-size: 10px !important;
}
/* sticky-колонка больше не нужна — скролла нет */
.catalog_one_order th.th-size,
.catalog_one_order td:first-child {
    position: static;
}
.catalog_one_order td {
    padding: 6px 4px !important;
    font-size: 12px !important;
}
.catalog_one_order .one_catalog_basket_count {
    width: 34px !important;
    height: 26px !important;
}
.catalog_one_order .catalog_basket_change img {
    width: 10px;
    height: 10px;
}

/* === 2. МОБИЛЬНЫЕ КАРТОЧКИ РАЗМЕРОВ (вместо таблицы со скроллом) === */
@media (max-width: 768px) {
    .catalog_one_order tr {
        display: block;
    }
    .catalog_one_order tr:first-child,
    .catalog_one_order tr.prices-sub {
        display: none !important;
    }
    .catalog_one_order tr.catalog_size_count {
        position: relative;
        border: 1px solid #ececec !important;
        border-radius: 10px;
        padding: 12px 92px 12px 56px;
        margin: 0 0 10px;
        background: #fff;
    }
    .catalog_one_order tr.catalog_size_count.is-active {
        border-color: #eb3f3f !important;
    }
    .catalog_one_order tr.catalog_size_count td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal;
    }
    .catalog_one_order tr.catalog_size_count td:first-child {
        position: absolute;
        left: 14px;
        top: 14px;
        font-size: 18px;
        font-weight: 700;
        color: #1f1f1f;
        background: transparent !important;
    }
    .catalog_one_order tr.catalog_size_count td[data-label] {
        display: flex !important;
        justify-content: space-between;
        align-items: baseline;
        gap: 10px;
        padding: 1px 0 !important;
        font-size: 13px !important;
    }
    /* скрытый select цвета: inline display:none перебивался block !important */
    .catalog_one_order tr.catalog_size_count td[style*="display:none"],
    .catalog_one_order tr.catalog_size_count td[style*="display: none"] {
        display: none !important;
    }
    .catalog_one_order td[data-label]::before {
        content: attr(data-label);
        color: #8a8a8a;
        font-size: 11px;
        white-space: nowrap;
    }
    .catalog_one_order tr.catalog_size_count td:last-child {
        position: absolute;
        right: 10px;
        top: 12px;
    }
}

/* === 3. ПОХОЖИЕ ТОВАРЫ: попап быстрого заказа не обрезать === */
.moreSwiper .catalog-list-one,
.moreSwiper .catalog_list_one {
    overflow: visible !important;
}
.moreSwiper .swiper-slide {
    overflow: visible;
}

/* === 4. ВКЛАДКА «ОТЗЫВЫ»: ссылки на /feedback === */
.fb-tab-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.fb-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    background: #eb3f3f;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}
.fb-all-link:hover {
    background: #c93030;
}
.fb-all-link-ghost {
    background: #ffffff;
    color: #eb3f3f !important;
    border: 1px solid #eb3f3f;
}
.fb-all-link-ghost:hover {
    background: #fdecec;
}

/* =====================================================================
   ДОПОЛНЕНИЕ v25 — степперы «− input +» и попап быстрого заказа
   в стилистике luteks (фирменный красный Терры)
   ===================================================================== */

/* === 1. КАРТОЧКА — ЯКОРЬ ПОПАПА (попап больше не шире карточки) === */
.catalog_list_one,
.catalog-list-one {
    position: relative !important;
}

/* === 2. ПОПАП: прижат к низу карточки, фото остаётся видно (как на luteks) === */
.quick_order_popup {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
    max-height: 100% !important;
    border: 1px solid #f1e9e9 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(31, 31, 31, 0.18) !important;
    padding: 12px 14px 14px !important;
    overflow: hidden !important;
}

/* ПОДРОБНЕЕ — капслоком, по центру */
.quick_order_popup .moretovar {
    margin: 0 0 6px !important;
}
.quick_order_popup .moretovar a {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 10px;
    font-weight: 700;
    color: #eb3f3f !important;
    text-decoration: none !important;
}
.quick_order_popup .moretovar a:hover {
    color: #c93030 !important;
}

/* === 3. ВНУТРЕННИЙ СКРОЛЛ РАЗМЕРОВ — тонкий, с красным ползунком === */
.quick_sizes_scroll {
    max-height: 224px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #eb3f3f #f5f5f5;
}
.quick_sizes_scroll::-webkit-scrollbar {
    width: 4px;
}
.quick_sizes_scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}
.quick_sizes_scroll::-webkit-scrollbar-thumb {
    background: #eb3f3f;
    border-radius: 4px;
}
.quick_sizes_scroll::-webkit-scrollbar-button {
    display: none;
    height: 0;
}

/* Таблица размеров: серые капс-заголовки, строки с тонкими линиями */
.quick_order_popup table {
    width: 100% !important;
    border-collapse: collapse;
}
.quick_order_popup table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff !important;
    color: #9a9a9a !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 9px !important;
    font-weight: 600 !important;
    border: none !important;
    border-bottom: 1px solid #ececec !important;
    padding: 2px 2px 6px !important;
}
.quick_order_popup table th:first-child { text-align: left !important; }
.quick_order_popup table th:nth-child(2) { text-align: center !important; }
.quick_order_popup table th:last-child { text-align: right !important; }
.quick_order_popup table td {
    border: none !important;
    border-bottom: 1px solid #f3f3f3 !important;
    padding: 6px 2px !important;
    width: auto !important;
    background: #ffffff !important;
    text-align: center !important;
}
.quick_order_popup table tbody tr:last-child td {
    border-bottom: none !important;
}
.quick_order_popup table tbody tr:hover td {
    background: #fffafa !important;
}
.quick_order_popup .size-title {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #1f1f1f !important;
    float: left !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    display: block !important;
    max-width: 96px;
}

/* КУПИТЬ — широкая красная кнопка */
.quick_order_popup .catalog_buy_button_quick {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 11px 0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: #eb3f3f !important;
    color: #ffffff !important;
    border: none !important;
    transition: background 0.15s !important;
}
.quick_order_popup .catalog_buy_button_quick:hover {
    background: #c93030 !important;
}

/* === 4. СТЕПЕР В ПОПАПЕ (.quick_count): пилюля «− input +» === */
.quick_count {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    float: none !important;
    width: auto !important;
    vertical-align: middle;
}
.quick_count input {
    float: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 26px !important;
    height: 24px !important;
    text-align: center;
    font-size: 12px;
    color: #1f1f1f;
    padding: 0 !important;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quick_count input::-webkit-outer-spin-button,
.quick_count input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quick_count .quick_change_down,
.quick_count .quick_change_up {
    float: none !important;
    width: 22px !important;
    height: 24px !important;
    line-height: 24px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #6f6f6f !important;
    font-size: 14px;
    font-family: Arial, sans-serif;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    text-align: center;
}
.quick_count .quick_change_down:hover,
.quick_count .quick_change_up:hover {
    background: #fdecec !important;
    color: #eb3f3f !important;
}
.quick_count .quick_change_down img,
.quick_count .quick_change_up img,
.quick_count .quick_change_down span,
.quick_count .quick_change_up span {
    display: none !important;
}
.quick_count .quick_change_down::before { content: '\2212'; }
.quick_count .quick_change_up::before { content: '+'; }

/* === 5. СТЕПЕР В ТАБЛИЦЕ ТОВАРА (.catalog_basket_change): «− input +» === */
/* Кнопки лежат в обёртке справа от инпута — разворачиваем обёртки через display:contents
   и выстраиваем порядок флексом. */
.catalog_basket_change {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    overflow: visible;
    width: auto !important;
    max-width: none !important;
    min-width: 88px !important;
}
.catalog_basket_change .catalog_basket_change_left,
.catalog_basket_change .catalog_basket_change_right {
    display: contents !important;
}
.catalog_basket_change input[type="text"] {
    order: 2;
    width: 38px !important;
    height: 30px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 13px;
    color: #1f1f1f;
    padding: 0 !important;
    margin: 0 !important;
}
.catalog_basket_change a.catalog_basket_change_down { order: 1; }
.catalog_basket_change a.catalog_basket_change_up { order: 3; }
.catalog_basket_change a.catalog_basket_change_down,
.catalog_basket_change a.catalog_basket_change_up {
    width: 26px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    color: #6f6f6f !important;
    font-size: 15px;
    font-family: Arial, sans-serif;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.catalog_basket_change a.catalog_basket_change_down:hover,
.catalog_basket_change a.catalog_basket_change_up:hover {
    background: #fdecec !important;
    color: #eb3f3f !important;
}
.catalog_basket_change a img,
.catalog_basket_change a span {
    display: none !important;
}
.catalog_basket_change a.catalog_basket_change_down::before { content: '\2212'; }
.catalog_basket_change a.catalog_basket_change_up::before { content: '+'; }

/* =====================================================================
   ДОПОЛНЕНИЕ v28 — степпер таблицы = пилюля из попапа; кнопка Купить
   с центровкой; сердечки избранного: серые/красные
   ===================================================================== */

/* === 1. СТЕПЕР В ТАБЛИЦЕ ТОВАРА: флекс-сжатие прочь, вид пилюли === */
.catalog_basket_change a.catalog_basket_change_down,
.catalog_basket_change a.catalog_basket_change_up {
    flex: 0 0 auto !important;
    width: 26px !important;
    height: 28px !important;
    line-height: 28px !important;
}
.catalog_basket_change input[type="text"] {
    flex: 0 0 auto !important;
    width: 30px !important;
    height: 28px !important;
    font-weight: 600;
}
.catalog_basket_change {
    border-radius: 14px !important;
}
/* глифы гарантированно видны */
.catalog_basket_change a.catalog_basket_change_down::before { content: '\2212' !important; }
.catalog_basket_change a.catalog_basket_change_up::before { content: '+' !important; }

/* === 2. КНОПКА КУПИТЬ В ПОПАПЕ: центр по вертикали и горизонтали === */
.quick_order_popup .catalog_buy_button_quick {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px !important;
    line-height: 1 !important;
    padding: 0 12px !important;
}

/* === 3. СЕРДЕЧКИ ИЗБРАННОГО В СПИСКАХ: серый контур / красная заливка === */
.catalog-list-one-wish,
.catalog_list_one .addwish_catalog {
    background-color: rgba(255, 255, 255, 0.92) !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b9b9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    background-size: 17px 17px !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.10);
    transition: background-image 0.15s !important;
}
.catalog-list-one-wish:hover,
.catalog_list_one .addwish_catalog:hover {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eb3f3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
}
.catalog-list-one-wish.active,
.catalog_list_one .addwish_catalog.active {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23eb3f3f' stroke='%23eb3f3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
}


/* =====================================================================
   ДОПОЛНЕНИЕ v29 — похожие товары: сетка как в категории (без карусели)
   ===================================================================== */
.moreSwiper {
    overflow: visible !important;
    height: auto !important;
}
.moreSwiper .swiper-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
    transform: none !important;
    transition: none !important;
}
.moreSwiper .swiper-slide {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* карточки ведут себя как в категории */
.moreSwiper .catalog-list-one,
.moreSwiper .catalog_list_one {
    height: auto !important;
}
/* стрелки карусели больше не нужны */
.swiper-more-button-prev,
.swiper-more-button-next {
    display: none !important;
}


/* === v31b: ТОВАРЫ НА ГЛАВНОЙ (хиты/распродажа) — сетка как в категории === */
.terra-products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
    margin-top: 2rem;
}
.terra-products-grid .catalog_list_one,
.terra-products-grid .catalog-list-one {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}


/* =====================================================================
   ДОПОЛНЕНИЕ v34 — корзина: таблица, степперы, форма заказа
   ===================================================================== */

/* === 1. СТЕПЕР КОЛИЧЕСТВА В КОРЗИНЕ (значение — div, не input) === */
.catalog_basket_change .catalog_basket_change_left,
.catalog_basket_change .catalog_basket_change_right {
    display: contents !important;
}
.catalog_basket_change .catalog_basket_change_left_value {
    order: 2;
    width: 34px !important;
    height: 28px !important;
    line-height: 28px !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #1f1f1f;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    float: none !important;
}
.catalog_basket_change a.catalog_basket_change_up,
.catalog_basket_change a.catalog_basket_change_down {
    flex: 0 0 auto !important;
}

/* === 2. ТАБЛИЦА КОРЗИНЫ === */
.catalog_my_basket {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    overflow: hidden;
}
.catalog_my_basket th {
    background: #f7f7f7 !important;
    color: #6f6f6f !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em;
    padding: 12px 14px !important;
    border: none !important;
    border-bottom: 1px solid #ececec !important;
    text-align: left !important;
}
.catalog_my_basket td {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f2f2f2 !important;
    padding: 14px !important;
    vertical-align: middle !important;
    color: #1f1f1f;
    font-size: 13px;
}
.catalog_my_basket tbody tr:last-child td {
    border-bottom: none !important;
}
.catalog_my_basket tbody tr:hover td {
    background: #fffafa !important;
}
.catalog_my_basket td a {
    color: #1f1f1f !important;
    font-weight: 500;
    text-decoration: none !important;
}
.catalog_my_basket td a:hover {
    color: #eb3f3f !important;
}
.catalog_my_basket .basket_img {
    width: 54px !important;
    height: auto !important;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    float: left !important;
    margin: 0 12px 0 0 !important;
}
.catalog_my_basket .catalog_my_basket_title p.all_price_title {
    display: flex;
    align-items: center;
    margin: 0 !important;
}
.catalog_my_basket td .old_price {
    display: block;
    color: #b0b0b0;
    text-decoration: line-through;
    font-size: 12px;
}
.catalog_my_basket #discount_text3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
}
.catalog_my_basket #total_summ {
    color: #eb3f3f;
    font-size: 18px;
}

/* === 3. ФОРМА ОФОРМЛЕНИЯ ЗАКАЗА === */
.registration table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    overflow: hidden;
}
.registration table th,
.registration table td {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f2f2f2 !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
    text-align: left !important;
    color: #1f1f1f;
    font-size: 13px;
}
.registration table th {
    width: 32%;
    font-weight: 500 !important;
    color: #6f6f6f !important;
}
.registration table tr:last-child th,
.registration table tr:last-child td {
    border-bottom: none !important;
}
.registration input[type="text"],
.registration input[type="email"],
.registration input[type="tel"],
.registration textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #1f1f1f !important;
    background: #ffffff !important;
}
.registration input:focus,
.registration textarea:focus {
    outline: none !important;
    border-color: #eb3f3f !important;
}
.registration input[type="radio"],
.registration input[type="checkbox"] {
    margin-right: 8px;
}


/* === v35: ОТЗЫВЫ НА ГЛАВНОЙ — сетка карточек === */
.terra-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    text-align: left;
    margin-top: 2rem;
}
.terra-reviews-grid .one-question {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 18px;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
}


/* === v37: ТАБЫ ПОДБОРОК НА ГЛАВНОЙ === */
.terra-tabs2 {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.terra-tabs2-btn {
    padding: 10px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #ffffff;
    color: #1f1f1f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.terra-tabs2-btn:hover {
    border-color: #eb3f3f;
    color: #eb3f3f;
}
.terra-tabs2-btn.active {
    background: #eb3f3f;
    border-color: #eb3f3f;
    color: #ffffff;
}
.terra-tab2-panel {
    display: none;
}
.terra-tab2-panel.active {
    display: block;
}


/* =====================================================================
   ДОПОЛНЕНИЕ v39 — ЛИЧНЫЙ КАБИНЕТ: auth/register/remind/my-page
   ===================================================================== */

/* === ВХОД: две карточки === */
.cabinet {
    max-width: 900px;
    margin: 0 auto;
}
.cabinet > h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 24px;
}
.need_register {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.need_register_left,
.need_register_right {
    flex: 1 1 320px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
}
.need_register h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}
.need_register p {
    color: #6f6f6f;
    font-size: 14px;
    margin: 0 0 16px;
}
.need_register .button,
.need_register_left .button {
    display: inline-block;
    padding: 10px 20px;
    background: #eb3f3f;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s;
}
.need_register .button:hover {
    background: #c93030;
}
.auth-message {
    background: #fdecec;
    border-left: 3px solid #eb3f3f;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    margin: 0 0 20px;
}
.auth-message a { color: #eb3f3f !important; }

/* форма входа */
.login form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
}
.login input[type="submit"] {
    background: #eb3f3f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.login input[type="submit"]:hover { background: #c93030; }
.login-forgot { margin: 6px 0 0; font-size: 13px; }
.login-forgot a { color: #eb3f3f !important; }

/* === РЕГИСТРАЦИЯ / НАПОМИНАНИЕ / ДАННЫЕ: таблицы form-question === */
table.form-question {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #ececec !important;
    border-radius: 12px !important;
    overflow: hidden;
}
table.form-question th,
table.form-question td {
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #f2f2f2 !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
    text-align: left !important;
    color: #1f1f1f;
    font-size: 13px;
}
table.form-question th {
    width: 32%;
    font-weight: 500 !important;
    color: #6f6f6f !important;
}
table.form-question tr:last-child th,
table.form-question tr:last-child td {
    border-bottom: none !important;
}
table.form-question input[type="text"],
table.form-question input[type="password"],
table.form-question input[type="email"],
table.form-question textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #1f1f1f !important;
    background: #ffffff !important;
}
table.form-question input:focus,
table.form-question textarea:focus {
    outline: none !important;
    border-color: #eb3f3f !important;
}
table.form-question input[type="submit"] {
    background: #eb3f3f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 24px !important;
    font-weight: 700 !important;
    cursor: pointer;
}
table.form-question input[type="submit"]:hover { background: #c93030 !important; }

/* навигация кабинета */
.cabinet-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}
.cabinet-nav a,
.cabinet-nav span {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    color: #1f1f1f !important;
    background: #ffffff;
}
.cabinet-nav a:hover { border-color: #eb3f3f; color: #eb3f3f !important; }
.cabinet-nav span.active,
.cabinet-nav a.active {
    background: #eb3f3f;
    border-color: #eb3f3f;
    color: #ffffff !important;
}


/* === v40: B2B-БЛОКИ И СТРАНИЦА /b2b === */
.b2b-promo {
    background: #fdecec;
    border: 1px solid #f5c6c6;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 0 20px;
    font-size: 14px;
}
.b2b-promo p { margin: 0 0 10px; }
.b2b-promo p:last-child { margin: 0; }
.b2b-promo .terra-btn { padding: 9px 18px; font-size: 13px; }
.b2b-hero {
    background: linear-gradient(135deg, #fdecec 0%, #ffffff 60%);
    border: 1px solid #f5dcdc;
    border-radius: 14px;
    padding: 28px;
    margin: 0 0 24px;
}
.b2b-hero h1 {
    font-size: 26px;
    margin: 0 0 10px;
}
.b2b-sub {
    font-size: 15px;
    color: #6f6f6f;
    margin: 0 0 16px;
}
.b2b-note {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
}
.terra-btn-outline {
    background: #ffffff !important;
    color: #eb3f3f !important;
    border: 1px solid #eb3f3f;
}
.terra-btn-outline:hover { background: #fdecec !important; }

/* =====================================================================
   ДОПОЛНЕНИЕ v41 — ШАПКА ПО ПРОТОТИПУ, НИЖНЕЕ МЕНЮ, LEAD-МОДАЛКА,
   ПРОИЗВОДСТВО, CTA ОПТА, ТАБЫ В КРАСНОЙ ПОЛОСЕ
   ===================================================================== */

/* ===== 1. ШАПКА ===== */
.terra-topbar {
    border-bottom: 1px solid #eeeeee;
    background: #f7f7f7;
}
.terra-topbar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    font-size: 12px;
    color: #8a8a8a;
}
.terra-topbar-in > p { margin: 0; }
.terra-topbar-links { display: flex; gap: 16px; }
.terra-topbar-links a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.15s;
}
.terra-topbar-links a:hover { color: #eb3f3f; }
@media (max-width: 900px) { .terra-topbar { display: none; } }

.terra-header-main {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    flex-wrap: nowrap;
}
.terra-logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.terra-logo img { height: 44px !important; width: auto !important; }
.terra-logo-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
    color: #6f6f6f;
    text-align: left;
}
@media (max-width: 1100px) { .terra-logo-sub { display: none; } }

.terra-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 11px 20px;
    background: #eb3f3f;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s;
}
.terra-catalog-btn:hover { background: #c93030; }

.terra-header-search {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 460px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f7f7f7;
    color: #8a8a8a;
    transition: border-color 0.15s, background 0.15s;
}
.terra-header-search:focus-within {
    border-color: #eb3f3f;
    background: #ffffff;
}
.terra-header-search input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 14px;
    color: #1f1f1f;
    outline: none;
    padding: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 900px) { .terra-header-search { display: none !important; } }

.terra-header-actions {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.terra-header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f1f1f !important;
    text-decoration: none !important;
}
.terra-header-phone svg { color: #eb3f3f; }
.terra-header-phone-num {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
}
.terra-header-phone-sub {
    display: block;
    font-size: 10px;
    color: #8a8a8a;
    line-height: 1.2;
}
@media (max-width: 1280px) { .terra-header-phone { display: none !important; } }

.terra-header-mess {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #6f6f6f !important;
    transition: color 0.15s, border-color 0.15s;
}
.terra-header-mess:hover { color: #eb3f3f !important; border-color: #eb3f3f; }
@media (max-width: 1280px) { .terra-header-mess { display: none !important; } }

.terra-call-btn {
    height: 38px;
    padding: 0 16px;
    background: #eb3f3f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.terra-call-btn:hover { background: #f65f5f; }
@media (max-width: 1280px) { .terra-call-btn { display: none !important; } }

.terra-header-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #1f1f1f !important;
    position: relative !important;
}
.terra-header-icon:hover { background: #f7f7f7; }
.terra-header-icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #eb3f3f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terra-cart-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    background: #eb3f3f;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    position: relative !important;
    transition: background 0.15s;
}
.terra-cart-btn:hover { background: #c93030; }
.terra-cart-btn-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ffffff;
    color: #eb3f3f;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 2. КРАСНАЯ ИНФО-ПОЛОСА ===== */
.terra-infobar {
    background: #eb3f3f;
}
.terra-infobar-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}
.terra-infobar-nav {
    display: flex;
    gap: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.terra-infobar-nav::-webkit-scrollbar { display: none; }
.terra-infobar-nav a {
    color: rgba(255,255,255,0.92) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.15s;
}
.terra-infobar-nav a:hover { color: #ffffff !important; }
.terra-infobar-addr {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    white-space: nowrap;
}
@media (max-width: 1000px) { .terra-infobar-addr { display: none; } }

/* ===== 3. МОБИЛЬНОЕ НИЖНЕЕ МЕНЮ ===== */
.terra-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    border-top: 1px solid #ececec;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 900px) { .terra-bottomnav { display: block; } }
.terra-bottomnav { grid auto; }
@media (max-width: 900px) {
    .terra-bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); }
    body { padding-bottom: 64px; }
}
.terra-bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 500;
    color: #6f6f6f !important;
    text-decoration: none !important;
    transition: color 0.15s;
}
.terra-bottomnav-item.active,
.terra-bottomnav-item:hover { color: #eb3f3f !important; }

/* ===== 4. LEAD-МОДАЛКА ===== */
.terra-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.terra-lead-modal-box {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 26px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.terra-lead-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #9a9a9a;
    cursor: pointer;
}
.terra-lead-modal-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1f1f1f;
}
.terra-lead-sub {
    font-size: 13px;
    color: #6f6f6f;
    margin: 0 0 14px;
}
.terra-lead-field { margin-bottom: 10px; }
.terra-lead-field label {
    display: block;
    font-size: 12px;
    color: #6f6f6f;
    margin-bottom: 4px;
}
.terra-lead-field input,
.terra-lead-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #1f1f1f;
}
.terra-lead-field input:focus,
.terra-lead-field textarea:focus {
    outline: none;
    border-color: #eb3f3f;
}
.terra-lead-captcha {
    display: flex;
    gap: 10px;
    align-items: center;
}
.terra-lead-captcha img {
    height: 40px;
    border-radius: 6px;
}
.terra-lead-submit {
    width: 100%;
    background: #eb3f3f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.terra-lead-submit:hover { background: #c93030; }
.terra-lead-submit:disabled { opacity: 0.6; }
.terra-lead-success-title {
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 0 0 8px;
}
#terra-lead-success p { color: #444444; font-size: 14px; }

/* ===== 5. НАШЕ ПРОИЗВОДСТВО ===== */
.terra-production {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 900px) { .terra-production { grid-template-columns: 1fr; gap: 24px; } }
.terra-production-kicker {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #eb3f3f;
    margin: 0 0 8px;
}
.terra-production-text p {
    color: #555555;
    line-height: 1.65;
    font-size: 15px;
    margin: 0 0 12px;
}
.terra-production-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}
.terra-production-gallery > img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.terra-production-caption {
    margin: 0;
    padding: 26px 16px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    left: 0; right: 0; bottom: 0;
}
.terra-production-nav {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
}
.terra-production-nav button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.terra-production-nav button:hover { background: rgba(255, 255, 255, 0.5); }

/* ===== 6. CTA ДЛЯ ОПТА ===== */
.terra-wholesale-cta {
    background: #c93030;
    border-radius: 14px;
    padding: 44px 24px;
    text-align: center;
    color: #ffffff;
}
.terra-wholesale-cta h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}
.terra-wholesale-cta p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.6;
}
.terra-wholesale-btn {
    background: #ffffff;
    color: #c93030;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s;
}
.terra-wholesale-btn:hover { transform: translateY(-1px); }

/* ===== 7. ТАБЫ ПОДБОРОК: красный контейнер (прототип) ===== */
.terra-tabs2-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.terra-tabs2 {
    display: inline-flex;
    background: #eb3f3f;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
}
.terra-tabs2-btn {
    padding: 9px 22px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s;
}
.terra-tabs2-btn:hover { color: #ffffff; }
.terra-tabs2-btn.active {
    background: #ffffff;
    color: #eb3f3f;
}
.terra-tabs2-all {
    font-size: 14px;
    font-weight: 600;
    color: #eb3f3f !important;
    text-decoration: none !important;
}
.terra-tabs2-all:hover { text-decoration: underline !important; }

/* ===== 8. КРАСНАЯ ПОЛОСА-ЗАГОЛОВОК СЕКЦИИ (прототип) ===== */
.terra-section-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eb3f3f;
    border-radius: 10px;
    padding: 10px 24px;
    margin-bottom: 28px;
}
.terra-section-bar .terra-section-bar-title,
.terra-section-bar-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 !important;
    text-align: center;
}

/* ===== 9. КАРТОЧКИ ПРЕИМУЩЕСТВ: иконки в красных квадратах ===== */
.terra-advantage-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 18px;
    transition: box-shadow 0.15s;
}
.terra-advantage-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.terra-advantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fdecec;
    color: #eb3f3f;
    font-size: 18px;
    margin-bottom: 12px;
}
.terra-advantage-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1f1f1f;
}
.terra-advantage-desc {
    font-size: 13px;
    color: #6f6f6f;
    line-height: 1.55;
    margin: 0;
}
@media (min-width: 1000px) {
    .terra-advantages-grid { grid-template-columns: repeat(4, 1fr) !important; }
    .terra-advantage-card:first-child { grid-column: span 2; background: #fdf3f3; }
}

/* =====================================================================
   ДОПОЛНЕНИЕ v42 — ВЫЕЗЖАЮЩАЯ ПАНЕЛЬ «КАТАЛОГ» (по прототипу)
   ===================================================================== */
.terra-cat-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.terra-cat-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.terra-cat-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 310;
    width: 340px;
    max-width: 88vw;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.terra-cat-panel.open {
    transform: translateX(0);
}
.terra-cat-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #eb3f3f;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
}
.terra-cat-panel-nav { padding: 8px 0 16px; }
.terra-cat-panel-nav ul { list-style: none; margin: 0; padding: 0; }

/* подборки */
.terra-cat-special li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f !important;
    text-decoration: none !important;
    transition: background 0.12s;
}
.terra-cat-special li a:hover { background: #f7f7f7; }
.terra-cat-sep {
    border-top: 1px solid #ececec;
    margin: 8px 18px;
}

/* группы с подкатегориями */
.terra-cat-groups li { border-bottom: 1px solid #f2f2f2; }
.terra-cat-groups li:last-child { border-bottom: none; }
.terra-cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.terra-cat-toggle:hover { background: #f7f7f7; }
.terra-cat-chev {
    color: #9a9a9a;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.terra-cat-toggle.open .terra-cat-chev { transform: rotate(90deg); }
.terra-cat-subs {
    display: none;
    background: #fafafa;
    padding: 4px 0;
}
.terra-cat-subs.open { display: block; }
.terra-cat-subs li a {
    display: block;
    padding: 7px 18px 7px 34px;
    font-size: 13px;
    color: #555555 !important;
    text-decoration: none !important;
    transition: color 0.12s, background 0.12s;
}
.terra-cat-subs li a:hover { color: #eb3f3f !important; background: #f0f0f0; }
.terra-cat-link {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f !important;
    text-decoration: none !important;
    transition: background 0.12s;
}
.terra-cat-link:hover { background: #f7f7f7; }


/* =====================================================================
   ДОПОЛНЕНИЕ v44 — КАТАЛОГ: подкатегории отдельным рядом, потом товары
   ===================================================================== */
#catalog-cat-list {
    display: block !important;
}
.cat-subcats-row,
.cat-products-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
}
.cat-subcats-row:not(:empty) {
    margin-bottom: 28px;
}
.cat-subcats-row:empty {
    display: none !important;
}
.cat-subcats-row .catalog_list_one,
.cat-subcats-row .catalog-list-one {
    width: 100% !important;
    flex: none !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}


/* === v45b: обёртка подкатегорий — на всю ширину ряда, карточки сеткой === */
.cat-subcats-row > .catalog_subcats {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    grid-column: 1 / -1;
    float: none !important;
}
.cat-subcats-row > .catalog_subcats .catalog_list_one {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* =====================================================================
   v47 — ВИЗУАЛЬНОЕ ВЫРАВНИВАНИЕ С ПРОТОТИПОМ terra37001.space-z.ai
   Прототип: контейнер 1280px, базовый текст 16px, h2 секций 30px,
   карточка: название 14px/600, цена 16px bold, мета 12px.
   На work4 контент был уже (78% x 90% = ~70% экрана) и мельче (11-13px).
   1) Ширина: контентные колонки шире, контейнеры до 1680px.
   2) Кегли: заголовки 26 -> 30px, карточки/таблицы/крошки +1-2px.
   ===================================================================== */

/* --- 1. ШИРИНА КОЛОНОК (только десктоп, чтобы не ломать мобильную раскладку) --- */
@media (min-width: 1025px) {

/* Страница товара: контейнер шире, внутренний контент 78% -> 88% */
#inner-catalog-one {
    width: 96% !important;
    max-width: 1680px !important;
}

#inner-catalog-one-container,
#inner-catalog-one > .pathway.inner-pathway,
#inner-catalog-one-info,
#inner-catalog-one-more-swiper {
    width: 88% !important;
}

/* Категория: контейнер шире, сайдбар 20% -> 18%, контент 78% -> 82% */
#inner-catalog-cat,
#inner-catalog-all-cats {
    width: 96% !important;
    max-width: 1680px !important;
}

#catalog-cat-sidebar {
    width: 18% !important;
    flex-basis: 18% !important;
}

#catalog-cat-content {
    width: 82% !important;
    flex-basis: 82% !important;
}

} /* end min-width 1025 */

/* --- 2. КЕГЛИ --- */

/* H1 страниц каталога/товара/кабинета/b2b: 26 -> 30px как text-3xl прототипа */
#inner-catalog-one h1,
.inner-catalog-one-description h1,
#inner-catalog-cat h1,
.cabinet > h1,
.b2b-hero h1 {
    font-size: 30px !important;
}

/* Хлебные крошки: 12 -> 13px */
.pathway,
.inner-pathway {
    font-size: 13px !important;
}

/* Карточка товара: артикул 11 -> 12, название 13 -> 14, цена 16 -> 17 */
.catalog-list-one-articul {
    font-size: 12px !important;
}

.catalog_list_one .name_goods {
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.catalog_list_one .price_catalog {
    font-size: 17px !important;
}

.catalog_list_one .price_catalog .no_cen {
    font-size: 13px !important;
}

/* Описания/текстовые блоки 14 -> 15px */
.inner-catalog-one-description p,
.inner-catalog-one-info-panel-text p,
.catalog-cat-description {
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Таблица размеров на странице товара: 13 -> 14px */
#inner-catalog-one table,
.quick-show-one table {
    font-size: 14px !important;
}

/* Hero заголовок: 40 -> 48px как text-5xl прототипа (десктоп) */
.terra-hero-title {
    font-size: 3rem !important;
}
@media (max-width: 1024px) {
    .terra-hero-title { font-size: 1.875rem !important; }
}

/* --- v48: #pagewrap в базовой теме ограничен 1920px — на широких экранах
   справа остаётся пустая полоса, как на скриншоте пользователя.
   У прототипа ограничения нет: страница на всю ширину окна. --- */
#pagewrap {
    max-width: none !important;
    width: 100% !important;
}

/* =====================================================================
   v49 — МЕЛКИЕ ШРИФТЫ ГЛАВНОЙ: баннеры ассортимента и служебные подписи
   ===================================================================== */

/* --- Баннеры ассортимента --- */
@media (min-width: 641px) {
    .terra-card-eyebrow {
        font-size: 0.8125rem !important; /* 12 -> 13px */
    }
    .terra-card-title-large {
        font-size: 1.75rem !important; /* 24 -> 28px */
    }
    .terra-card-title-compact {
        font-size: 1.3125rem !important; /* 18 -> 21px */
    }
    .terra-card-desc {
        font-size: 1.0625rem !important; /* 16 -> 17px */
    }
}

/* Ссылка «Смотреть →» на баннерах задаётся инлайн в site_main.tpl — поднята там до 1rem */

/* --- Статистика: подписи под цифрами 12 -> 13px --- */
.terra-stat-desc {
    font-size: 0.8125rem !important;
}

/* --- Бейджи на карточках товаров (Хит/Новинка/-%) 12 -> 13px --- */
.terra-product-badge {
    font-size: 0.8125rem !important;
}

/* --- Шапка: подпись под телефоном 12 -> 13px --- */
.terra-header-phone small {
    font-size: 0.8125rem !important;
}

/* --- Верхняя сервисная полоса 12 -> 13px --- */
.terra-topbar {
    font-size: 0.8125rem !important;
}
.terra-topbar a,
.terra-topbar span {
    font-size: inherit !important;
}

/* --- Табы подборок 13 -> 14px --- */
.terra-tabs2 {
    font-size: 0.875rem !important;
}

/* =====================================================================
   v50 — ЕДИНАЯ ШИРИНА САЙТА = ПРОТОТИП: контейнер 1280px (контент 1216px),
   по центру на любом экране. Перекрывает прежние ширины v41/v47/v48.
   #pagewrap остаётся на всю ширину окна (фон/полосы), весь контент — 1216px.
   ===================================================================== */

/* Шапка: все три полосы — единый контейнер 1280px */
.terra-header-nav .terra-container,
.terra-topbar .terra-container,
.terra-infobar .terra-container {
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* Подстраховка: любые другие .terra-container — те же 1280px */
body .terra-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Страница товара: контейнер 1280px, контент — вся его ширина (1216px) */
#inner-catalog-one {
    width: 100% !important;
    max-width: 1216px !important;
}
#inner-catalog-one-container,
#inner-catalog-one > .pathway.inner-pathway,
#inner-catalog-one-info,
#inner-catalog-one-more-swiper {
    width: 100% !important;
}

/* Категория и список категорий: контейнер 1280px */
#inner-catalog-cat,
#inner-catalog-all-cats {
    width: 100% !important;
    max-width: 1216px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Сайдбар категории: фикс 260px как в прототипе, контент — остальное (только десктоп) */
@media (min-width: 1025px) {
    #catalog-cat-sidebar {
        width: 260px !important;
        flex-basis: 260px !important;
        min-width: 260px !important;
    }
    #catalog-cat-content {
        width: calc(100% - 260px) !important;
        flex-basis: calc(100% - 260px) !important;
        padding-left: 20px !important;
        box-sizing: border-box !important;
    }
}

/* Кабинет / b2b / статические страницы, если используют #inner-* контейнеры */
#inner-cabinet,
#inner-info,
#inner-text {
    width: 100% !important;
    max-width: 1216px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* =====================================================================
   v51 — СОРТИРОВКА: подсветка активной + стрелка направления.
   Разметка уже отдаёт li.active и span.sorter_order_ASC/DESC.
   ===================================================================== */
#catalog-cat-sorting ul li.active a,
.catalog-cat-sidebar-sorting ul li.active a {
    color: #eb3f3f !important;
    font-weight: 600 !important;
}

#catalog-cat-sorting ul li.active span.sorter_order_ASC::before,
.catalog-cat-sidebar-sorting ul li.active span.sorter_order_ASC::before {
    content: "\2191"; /* стрелка вверх */
    color: #eb3f3f;
    font-weight: 700;
    margin-left: 4px;
}

#catalog-cat-sorting ul li.active span.sorter_order_DESC::before,
.catalog-cat-sidebar-sorting ul li.active span.sorter_order_DESC::before {
    content: "\2193"; /* стрелка вниз */
    color: #eb3f3f;
    font-weight: 700;
    margin-left: 4px;
}

/* =====================================================================
   v51 — РОДНАЯ ФОРМА ShowForm (из админки/БД): современные стили.
   Разметка: #blackwrap + #show_form > .show_form_inner > h1 +
   table.show_form_table (th подпись / td input.form_field_one) +
   .pdn-agree + a.show_form_send. Инлайн border/bg из админки перекрываем.
   ===================================================================== */
#blackwrap {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(31, 31, 31, 0.55) !important;
    z-index: 1000 !important;
}

#show_form {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(440px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 32px 28px 28px !important;
    box-sizing: border-box !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    z-index: 1001 !important;
    font-family: "Jost", "Montserrat", Arial, sans-serif;
    animation: terra-fade-up-51 0.25s ease both;
}

@keyframes terra-fade-up-51 {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

#show_form_close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #f7f7f7 !important;
    color: #6f6f6f !important;
    font-size: 14px !important;
    transition: background 0.2s, color 0.2s;
}

#show_form_close:hover {
    background: #fdecec !important;
    color: #eb3f3f !important;
}

#show_form .show_form_inner h1 {
    margin: 0 0 6px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1f1f1f !important;
    line-height: 1.2 !important;
}

#show_form .show_form_table {
    width: 100% !important;
    margin: 12px 0 0 !important;
    border-collapse: collapse;
}

#show_form .show_form_table tr {
    display: block !important;
    margin: 0 0 12px !important;
}

#show_form .show_form_table th {
    display: block !important;
    text-align: left !important;
    padding: 0 0 4px !important;
    width: auto !important;
}

#show_form .show_form_table td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
}

#show_form .show_form_table th p {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6f6f6f !important;
}

#show_form .show_form_table input.form_field_one {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #1f1f1f !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#show_form .show_form_table input.form_field_one:focus {
    border-color: #eb3f3f !important;
    box-shadow: 0 0 0 3px rgba(235, 63, 63, 0.12) !important;
}

#show_form .pdn-agree {
    margin: 14px 0 16px !important;
}

#show_form .pdn-agree label {
    display: flex !important;
    gap: 8px;
    align-items: flex-start;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    color: #6f6f6f !important;
}

#show_form .pdn-agree input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #eb3f3f;
}

#show_form .pdn-agree a {
    color: #eb3f3f !important;
    text-decoration: underline;
}

#show_form .show_form_send {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 13px 20px !important;
    background-color: #eb3f3f !important;
    border-radius: 10px !important;
    transition: background 0.2s;
}

#show_form .show_form_send:hover {
    background-color: #c93030 !important;
}

#show_form .show_form_send span {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

/* Мобильный вариант формы */
@media (max-width: 640px) {
    #show_form {
        padding: 26px 20px 22px !important;
    }
}

/* =====================================================================
   v52 — СОРТИРОВКА: треугольные маркеры направления вместо серой
   картинки из базовой темы. Неактивные — нейтральный серый ▼,
   активный пункт — красный ▲ (ASC) / ▼ (DESC).
   ===================================================================== */
#catalog-cat-sorting ul li a,
.catalog-cat-sidebar-sorting ul li a {
    background-image: none !important; /* убрать серый png-треугольник */
}

#catalog-cat-sorting ul li span[class^="sorter_order_"]::before,
.catalog-cat-sidebar-sorting ul li span[class^="sorter_order_"]::before {
    content: "\25BC"; /* нейтральный ▼ */
    color: #b0b0b0;
    font-size: 10px;
    margin-left: 5px;
    vertical-align: 1px;
}

#catalog-cat-sorting ul li.active span.sorter_order_ASC::before,
.catalog-cat-sidebar-sorting ul li.active span.sorter_order_ASC::before {
    content: "\25BC"; /* класс ASC = клик переключит на ASC => сейчас DESC: остриё вниз */
    color: #eb3f3f;
    font-size: 10px;
    font-weight: 400;
}

#catalog-cat-sorting ul li.active span.sorter_order_DESC::before,
.catalog-cat-sidebar-sorting ul li.active span.sorter_order_DESC::before {
    content: "\25B2"; /* класс DESC = клик переключит на DESC => сейчас ASC: остриё вверх */
    color: #eb3f3f;
    font-size: 10px;
    font-weight: 400;
}

/* v52b — треугольник вплотную к названию: у ссылки базовые
   padding-right:15px и margin-right:17px относили маркер далеко вправо */
#catalog-cat-sorting ul li a,
.catalog-cat-sidebar-sorting ul li a {
    padding-right: 2px !important;
    margin-right: 24px !important;
}

#catalog-cat-sorting ul li span[class^="sorter_order_"],
.catalog-cat-sidebar-sorting ul li span[class^="sorter_order_"] {
    display: inline-block;
    margin-left: 2px !important;
}

/* v53b — зазор между пунктами на самом маркере, а не на ссылке:
   иначе треугольник отходит от своего названия и липнет к следующему */
#catalog-cat-sorting ul li a,
.catalog-cat-sidebar-sorting ul li a {
    margin-right: 0 !important;
    padding-right: 2px !important;
}

#catalog-cat-sorting ul li span[class^="sorter_order_"],
.catalog-cat-sidebar-sorting ul li span[class^="sorter_order_"] {
    display: inline-block;
    margin-left: 3px !important;
    margin-right: 26px !important;
}
