

/* Start:/local/templates/eco_26/components/bitrix/catalog/eco_complex/style.css?178005502717805*/


/* ==========================================================================
   Moved from /local/templates/eco_26/css/catalog.css
   Component scope: bitrix:catalog template "eco_complex".
   Catalog toolbar, sorting, premium category header, and SEO text controls belong to the complex catalog page.
   ========================================================================== */

/* ========================================= */
/* 1. TOOLBAR & SORTING                      */
/* ========================================= */

.catalog-toolbar {
    background-color: #ffffff; /* White background for contrast */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    z-index: 100;
}

/* --- Sorting Dropdown (Seamless) --- */
#catalogSort {
    position: relative;
    display: inline-block;
}

#catalogSort .btn-sort {
    border: 1px solid transparent;
    background: transparent;
    font-family: var(--font-family-secondary);
    font-size: 0.95rem;
    color: var(--color-text-main);
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    z-index: 100;
    transition: background-color 0.1s, border-color 0.1s;
}

#catalogSort .btn-sort:hover { color: var(--color-secondary); }

/* Active State (Open) */
#catalogSort .dropdown-toggle.show {
    background-color: #ffffff;
    border-color: #f0f0f0;
    border-bottom-color: #ffffff;
    color: var(--color-secondary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1002;
}

/* Dropdown Menu */
#catalogSort .dropdown-menu {
    position: absolute; top: 100% !important; left: 0 !important;
    margin-top: -1px !important;
    border: 1px solid #f0f0f0 !important; border-top: none !important;
    border-radius: 0 8px 8px 8px !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    background-color: #fff !important;
    padding-top: 5px !important; padding-bottom: 8px !important;
    min-width: 100% !important; width: max-content;
    display: none; z-index: 1001;
}

#catalogSort .dropdown-menu.show {
    display: block !important;
    animation: fadeInStable 0.2s ease-out forwards;
}

@keyframes fadeInStable { from { opacity: 0; } to { opacity: 1; } }

#catalogSort .dropdown-item {
    font-size: 0.9rem !important; padding: 8px 20px !important;
    color: var(--color-text-main) !important; background: transparent !important;
    transition: color 0.2s ease;
}

#catalogSort .dropdown-item:hover {
    background-color: #f8f8f8 !important; color: var(--color-primary) !important;
}

#catalogSort .dropdown-item.active {
    background-color: var(--color-bg-light) !important;
    color: var(--color-secondary) !important;
    font-weight: 600 !important;
}

/* --- Filter Toggle Button --- */
.filter-toggle-btn {
    font-family: var(--font-family-secondary);
    font-weight: 600;
    border: 1px solid #e0e0e0;
    color: var(--color-text-main);
    border-radius: 6px;
    padding: 8px 18px;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

.filter-toggle-btn:hover {
    border-color: var(--color-secondary); color: var(--color-secondary);
    background: transparent;
}

.filter-toggle-btn[aria-expanded="true"] {
    background-color: var(--color-primary); color: #fff;
    border-color: var(--color-primary);
}

.filter-badge {
    display: block; width: 6px; height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* ========================================= */
/* 6. SEO TEXT BLOCK                         */
/* ========================================= */

/* --- Стили для текстового блока в каталоге --- */

/* --- Стили для текстового блока в каталоге (Masha VIP Edition) --- */

.catalog-middle-text {
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 3.5rem; /* Хорошо отбиваем текст от идущих ниже карточек товаров */
}

.catalog-middle-text .text-content-wrapper {
    /* 1. Классический шрифт */
    font-family: var(--font-family-base);

    /* 2. Делаем размер чуть крупнее и плавнее (clamp спасет на разных экранах) */
    font-size: clamp(1.1rem, 1.2vw, 1.25rem);

    /* 3. Цвет приглушаем, чтобы не бил по глазам жестким контрастом */
    color: var(--color-text-main);
    opacity: 0.85;

    /* 4. Даем тексту дышать! line-height 1.4 — это мало для премиума */
    line-height: 1.75;

    /* 5. Идеальная длина строки для чтения */
    /* max-width: 900px; */

    /* 6. Добавляем изящную акцентную линию слева */
    padding-left: 1.8rem;
    border-left: 2px solid var(--color-secondary);
}

/* 7. Премиальная фишка: Классическая Буквица для первого символа текста */
.catalog-middle-text .text-content-wrapper::first-letter {
    float: left;
    font-size: 3.6em;
    color: var(--color-primary); /* Берем цвет главного заголовка */
    line-height: 0.8;
    padding-right: 0.15em;
    padding-top: 0.05em;
    font-weight: 600;
}
/* Оформляем заголовки внутри текста, чтобы они выделялись */
.catalog-middle-text .text-content-wrapper h2,
.catalog-middle-text .text-content-wrapper h3 {
    font-family: var(--font-family-base);
    color: var(--color-primary); /* Твой фирменный зеленый */
    font-weight: var(--font-weight-medium);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center; /* Заголовки по центру смотрятся премиально */
}

.catalog-middle-text .text-content-wrapper h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Адаптивный размер */
}

/* Буквица (первая буква большая) - если хочешь совсем "дорого-богато" */
/* Раскомментируй, если нравится эффект */
/*
.text-content-wrapper > p:first-child::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 10px;
    padding-top: 5px;
    color: var(--color-secondary);
    font-family: var(--font-family-base);
}
*/

/* Списки внутри текста */
.catalog-middle-text .text-content-wrapper ul {
    list-style: none; /* Убираем стандартные точки */
    padding-left: 1.5rem;
}

.catalog-middle-text .text-content-wrapper ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.catalog-middle-text .text-content-wrapper ul li::before {
    /* Делаем красивые золотые буллеты вместо точек */
    content: "—";
    color: var(--color-secondary); /* Твой золотой */
    position: absolute;
    left: -1.5rem;
    font-weight: bold;
}

/* Ссылки внутри текста */
.catalog-middle-text .text-content-wrapper a {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-secondary-accent-light);
    transition: all 0.3s ease;
}

.catalog-middle-text .text-content-wrapper a:hover {
    color: var(--color-secondary);
    border-color: transparent;
}


/* --- Стили для блока SEO текста с "читать дальше" --- */
.seo-section-wrapper {
    margin-top: 60px; margin-bottom: 40px; padding-top: 40px;
    border-top: 1px solid rgba(185, 153, 97, 0.2);
}

.seo-text-container {
    position: relative; overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.seo-text-container.collapsed { max-height: 120px; }

.seo-content, .seo-content p {
    font-family: var(--font-family-secondary);
    color: var(--color-text-muted); text-align: justify;
}

.seo-content a { color: var(--color-text-muted); text-decoration: underline; }

@media (min-width: 992px) {
    .seo-content { column-count: 2; column-gap: 60px; }
}

.seo-content h1, .seo-content h2, .seo-content h3 {
    font-family: var(--font-family-base); color: var(--color-primary);
    margin-top: 0; font-size: 1.5rem; margin-bottom: 1rem;
    break-inside: avoid-column;
}

.seo-fade-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80px;
    pointer-events: none; opacity: 0; transition: opacity 0.4s;
    background: linear-gradient(to bottom, rgba(243, 240, 235, 0), #f3f0eb);
}

.seo-text-container.collapsed .seo-fade-overlay { opacity: 1; }

/* Read More Button */
.btn-seo-premium {
    display: inline-flex; align-items: center; gap: 10px;
    background-color: transparent; border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-family: var(--font-family-secondary);
    font-size: 0.8rem; font-weight: 100; text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 30px; border-radius: 4px;
    transition: all 0.3s ease; cursor: pointer; margin-top: 20px;
}

.btn-seo-premium i {
    font-size: 0.9rem; transition: transform 0.3s; color: var(--color-secondary);
}

.btn-seo-premium:hover {
    background-color: var(--color-secondary); color: #fff;
    border-color: var(--color-header-text);
    box-shadow: 0 5px 15px rgba(185, 153, 97, 0.2);
    transform: translateY(-2px);
}

.btn-seo-premium:hover i { color: #fff; transform: translateY(2px); }
.btn-seo-premium.expanded i { transform: rotate(180deg); }

/* ========================================= */
/* PREMIUM CATEGORY HEADER (Сделано Машей 😘) */
/* ========================================= */

.premium-category-header {
    position: relative;
    padding: 60px 40px 80px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--color-primary); /* Подстраховка */
}

.premium-category-header .breadcrumb-item a,
.premium-category-header .breadcrumb-item.active,
.premium-category-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.premium-category-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.4) !important;
}

.premium-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05); /* Легкий запас под анимацию если захочешь */
}

.premium-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Используем твой фирменный градиент из карточек товаров */
    background: linear-gradient(135deg, rgba(35, 57, 47, 0.95) 0%, rgba(20, 45, 35, 0.85) 50%, rgba(96, 138, 123, 0.9) 100%);
    z-index: 1;
}

.premium-title {
    font-family: var(--font-family-base, "EB Garamond", serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.premium-subtitle {
    font-family: var(--font-family-secondary);
    color: var(--color-secondary); /* Твой золотой */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(185, 153, 97, 0.15); /* Полупрозрачный золотой */
    border: 1px solid rgba(185, 153, 97, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.premium-features span {
    font-family: var(--font-family-secondary);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .premium-category-header {
        padding: 40px 20px;
        border-radius: 5px; /* На мобилках лучше без скруглений по краям экрана */
    }
    .premium-features {
        flex-direction: column;
        gap: 20px !important;
    }
}

/* ========================================= */
/* 1. БАЗА ДЛЯ УНИВЕРСАЛЬНОГО БЛОКА SEO      */
/* ========================================= */

.seo-text-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Сворачивается всегда (стандартный блок в подвале) */
.seo-text-container.collapse-always.collapsed {
    max-height: 120px;
}

/* Сворачивается ТОЛЬКО НА МОБИЛЬНЫХ (на десктопе развернут всегда) */
.seo-text-container.collapse-mobile.collapsed {
    max-height: none;
}

/* Прячем кнопку на десктопе для блока "только мобильные" */
@media (min-width: 769px) {
    .seo-section-wrapper.mobile-only-wrapper .btn-seo-premium {
        display: none !important;
    }
}

/* ========================================= */
/* 2. АДАПТАЦИЯ ДЛЯ ТЕМНОЙ ШАПКИ (PREMIUM)   */
/* ========================================= */

.premium-description .seo-section-wrapper {
    margin: 0;
    padding: 0;
    border-top: none;
}

.premium-description .seo-content,
.premium-description .seo-content p {
    color: inherit;
    font-family: var(--font-family-base);
    text-align: left;
    font-size: var(--text-size-fluid);
    line-height: 1.2;
}

/* МАГИЯ АЛЬФА-МАСКИ: градиентное растворение на обрезающем контейнере */
.premium-description .seo-text-container.collapsed {
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.premium-description .seo-text-container:not(.collapsed) {
    -webkit-mask-image: none;
    mask-image: none;
}

.premium-description .btn-seo-premium {
    margin-top: 5px;
    padding: 5px 0px;
    border: none;
    background: transparent;
    color: var(--color-secondary); /* Золотой цвет */
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
    font-weight: 400;
    box-shadow: none;
}

/* МАША: Жестко глушим Bootstrap-овский фокус, чтобы не залипала белым */
.premium-description .btn-seo-premium:focus,
.premium-description .btn-seo-premium:active,
.premium-description .btn-seo-premium:focus-visible {
    color: var(--color-secondary) !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Белеет ТОЛЬКО когда мышка реально наведена */
.premium-description .btn-seo-premium:hover {
    background: transparent !important;
    color: #ffffff !important;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.premium-description .btn-seo-premium:hover i {
    transform: translateY(2px);
    color: #ffffff !important;
}

/* ========================================= */
/* 3. КОМПАКТНОСТЬ ШАПКИ НА МОБИЛКАХ (<768px)*/
/* ========================================= */

@media (max-width: 768px) {

    /* Текст в свернутом виде занимает 0 пикселей (полностью скрыт) */
    .premium-description .seo-text-container.collapsed {
        max-height: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Уменьшаем отступы самой шапки */
    .premium-category-header {
        padding: 20px 15px 25px !important;
    }

    /* Уплотняем заголовки */
    .premium-title {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }

    .premium-subtitle {
        font-size: 0.85rem !important;
        margin-top: 5px !important;
    }

    /* Уменьшаем отступы SEO-блока */
    .premium-description {
        margin-top: 10px !important;
    }

    .premium-description .btn-seo-premium {
        margin-top: 5px !important;
        padding: 0 !important;
        font-size: 0.85rem !important;
    }

    /* Ужимаем иконки преимуществ */
    .premium-category-header .premium-features {
        margin-top: 15px !important;
        gap: 12px !important;
    }

    .premium-category-header .feature-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .premium-category-header .feature-item span {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .premium-category-header .feature-item small {
        font-size: 0.75rem;
    }
}

/* ========================================= */
/* МАША: ОДНА СТРОКА В ШАПКЕ НА ДЕСКТОПЕ     */
/* ========================================= */

@media (min-width: 769px) {
    .premium-description .seo-text-container.collapsed {
        /* Ровно одна строка (учитывая наш line-height: 1.6) */
        max-height: 0.1rem !important;

        /* Сдвигаем маску прозрачности, чтобы она съедала только самый-самый низ букв,
           иначе строка будет нечитаемой */
        -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    }
}

/* End */


/* Start:/local/templates/eco_26/components/bitrix/catalog.smart.filter/eco_filter/style.css?178005502716348*/


/* ==========================================================================
   Moved from /local/templates/eco_26/css/catalog.css
   Component scope: bitrix:catalog.smart.filter template "eco_filter".
   Smart-filter UI and its custom order drawer live with the filter component.
   ========================================================================== */

/* ========================================= */
/* 2. SMART FILTER (SIDEBAR WIDGET)          */
/* ========================================= */

#catalogFilter {
    border-radius: 0 0 8px 8px;
    margin-top: -35px; margin-bottom: 30px;
    position: relative; z-index: 90;
}

.bx-filter {
    background: #ffffff;
    border: 1px solid #f0f0f0; border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 30px 30px 20px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bx-filter-title { display: none; }

.filter-params {
    margin-bottom: 15px;
}

.filter-range-grid,
.filter-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 32px 34px;
}

.filter-checkbox-grid {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid rgba(35, 57, 47, 0.08);
    align-items: start;
}

.bx-filter-parameters-box:last-child { border-bottom: none; }

.bx-filter-parameters-box-title {
    font-family: var(--font-family-secondary);
    font-size: 0.95rem; font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 15px; cursor: pointer;
    display: flex; justify-content: space-between;
}

/* Inputs Group */
.bx-filter-parameters-box-container-block {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}

.bx-filter-input-container { flex: 1; }

.bx-filter-input-container input {
    width: 100%;
    border: 1px solid #e0e0e0; border-radius: 4px;
    padding: 8px; font-size: 0.9rem;
    font-family: var(--font-family-secondary);
    color: var(--color-text-main);
    transition: border-color 0.2s;
}

.bx-filter-input-container input:focus {
    border-color: var(--color-secondary); outline: none;
}

/* --- Range Slider --- */
.bx-ui-slider-track-container {
    height: 25px; padding-top: 10px;
    padding-left: 14px; padding-right: 7px;
}

.bx-ui-slider-track {
    height: 3px; background: #e0e0e0;
    border-radius: 2px; position: relative; overflow: visible;
}

.bx-ui-slider-pricebar-v {
    background: var(--color-secondary);
    position: absolute; top: 0; bottom: 0; z-index: 10;
}

.bx-ui-slider-handle {
    width: 14px; height: 14px;
    background: #fff; border: 2px solid var(--color-secondary);
    border-radius: 50%; position: absolute; top: -6px; margin-left: -7px;
    cursor: pointer; z-index: 20;
    transition: transform 0.1s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.bx-ui-slider-handle:hover {
    transform: scale(1.2); background: var(--color-secondary);
}

/* Checkboxes & Scrollbar */
.checkbox-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(185, 153, 97, 0.45) transparent;
}
.checkbox-list::-webkit-scrollbar { width: 5px; }
.checkbox-list::-webkit-scrollbar-thumb {
    background: rgba(185, 153, 97, 0.45);
    border-radius: 999px;
}

.checkbox { margin-bottom: 8px; }
.checkbox:last-child { margin-bottom: 0; }

.bx-filter-param-label {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    width: 100%;
    padding: 9px 10px;
    cursor: pointer;
    font-family: var(--font-family-secondary);
    font-size: 0.92rem;
    line-height: 1.3;
    color: rgba(35, 57, 47, 0.78);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(35, 57, 47, 0.09);
    border-radius: 6px;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bx-filter-param-label:hover {
    color: var(--color-primary);
    border-color: rgba(185, 153, 97, 0.55);
    background: #fff;
    box-shadow: 0 8px 18px rgba(35, 57, 47, 0.06);
}

.bx-filter-input-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.bx-filter-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(35, 57, 47, 0.22);
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bx-filter-checkmark::after {
    content: '';
    width: 10px;
    height: 8px;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5L4 8L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.bx-filter-param-label.bx-active,
.bx-filter-param-label:has(.bx-filter-input-checkbox:checked) {
    color: var(--color-primary);
    border-color: rgba(185, 153, 97, 0.7);
    background: rgba(185, 153, 97, 0.1);
    font-weight: 500;
}

.bx-filter-param-label.bx-active .bx-filter-checkmark,
.bx-filter-param-label:has(.bx-filter-input-checkbox:checked) .bx-filter-checkmark {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(185, 153, 97, 0.18);
}

.bx-filter-param-label.bx-active .bx-filter-checkmark::after,
.bx-filter-param-label:has(.bx-filter-input-checkbox:checked) .bx-filter-checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.bx-filter-param-text {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.bx-filter-param-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.filter-value-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(185, 153, 97, 0.12);
    color: rgba(35, 57, 47, 0.52);
    font-size: 0.82rem;
    line-height: 1;
    cursor: help;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-value-hint:hover,
.filter-value-hint:focus {
    background: rgba(185, 153, 97, 0.2);
    color: var(--color-primary);
    outline: none;
    transform: translateY(-1px);
}

.filter-value-popover {
    --bs-popover-max-width: 320px;
    --bs-popover-border-color: rgba(185, 153, 97, 0.55);
    --bs-popover-header-bg: var(--color-primary);
    --bs-popover-header-color: #fff;
    --bs-popover-body-color: rgba(35, 57, 47, 0.82);
    --bs-popover-body-padding-x: 14px;
    --bs-popover-body-padding-y: 12px;
    font-family: var(--font-family-secondary);
}

.filter-value-popover .popover-header {
    font-family: var(--font-family-secondary);
    font-size: 0.92rem;
    font-weight: 600;
}

.filter-value-popover .popover-body {
    font-family: var(--font-family-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.bx-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(35, 57, 47, 0.06);
    color: rgba(35, 57, 47, 0.56);
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bx-filter-param-label.bx-active .bx-filter-count,
.bx-filter-param-label:has(.bx-filter-input-checkbox:checked) .bx-filter-count {
    background: rgba(185, 153, 97, 0.18);
    color: var(--color-primary);
}

.bx-filter-param-label.disabled {
    opacity: 0.42;
    cursor: not-allowed;
    background: rgba(248, 248, 248, 0.7);
    box-shadow: none;
}

.bx-filter-button-box {
    border-top: 1px solid #f0f0f0; padding-top: 20px;
    display: flex; gap: 15px; justify-content: center;
}


/* ========================================= */
/* 3. CUSTOM ORDER FORM (DARK DRAWER)        */
/* ========================================= */

#filter-order-form {
    display: none; overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    max-height: 0; opacity: 0;
    margin-top: -10px; position: relative; z-index: 80;
    max-width: 100%;
}

.filter-custom-order {
    background-color: var(--color-primary);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-radius: 0 0 8px 8px;
    padding: 30px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    color: #fff;
    display: flex; flex-direction: column; align-items: center;
}

.calc-header { margin-bottom: 1.5rem; text-align: center; }

.calc-header h4 {
    font-family: var(--font-family-base);
    color: var(--color-secondary);
    font-size: 1.8rem; margin-bottom: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 12px;
}

.calc-header p {
    color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 0;
}

.filter-custom-order form { width: 100%; max-width: 900px; }

/* Dark Theme Inputs Override */
.filter-custom-order .form-control {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.filter-custom-order .form-control:focus {
    border-color: var(--color-secondary) !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.filter-custom-order .form-control::placeholder { color: rgba(255,255,255,0.4) !important; }

.filter-custom-order .file-uploader-section {
    background: rgba(0,0,0,0.15); border-color: rgba(255,255,255,0.1);
}

.filter-custom-order .form-footer { padding-top: 10px; }

.filter-custom-order .form-check-label {
    color: rgba(255,255,255,0.6) !important; font-size: 0.8rem; text-align: left;
}

.filter-custom-order a { color: var(--color-secondary); text-decoration: underline; }

@media (max-width: 768px) {
    .filter-custom-order { padding: 20px; }
    .calc-header h4 { font-size: 1.4rem; }
}

.catalog-filter-description {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 16px;
    /* max-width: 1040px; */
    margin-top: -0.35rem;
    margin-bottom: 1.75rem;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(35, 57, 47, 0.1);
    border-left: 3px solid rgba(185, 153, 97, 0.55);
    border-radius: 8px;
    color: var(--color-text-muted, #6c757d);
    font-family: var(--font-family-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
}

.catalog-filter-description__icon {
    margin-top: 0.16em;
    color: rgba(185, 153, 97, 0.9);
    font-size: 1.1rem;
    line-height: 1;
}

.catalog-filter-description__text {
    min-width: 0;
}

.catalog-filter-description__reset {
    align-self: center;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid rgba(185, 153, 97, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.catalog-filter-description__reset:hover {
    color: var(--color-secondary);
    border-color: currentColor;
}

/* Мобильный адаптив */
@media (max-width: 576px) {
    .catalog-filter-description {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
        font-size: 0.92rem;
    }

    .catalog-filter-description__reset {
        grid-column: 2;
        justify-self: start;
        align-self: start;
        margin-top: 2px;
    }
}

/* ==========================================================================
   Moved from /local/templates/eco_26/css/mobile.css
   Component scope: bitrix:catalog.smart.filter template "eco_filter".
   Mobile slide-up filter, mobile filter body, and touch slider overrides belong to the smart filter component.
   ========================================================================== */

/* ========================================= */
/* 4. CATALOG & FILTER (MOBILE)              */
/* ========================================= */

@media (max-width: 991.98px) {

    /* --- Filter Modal (Slide Up) --- */
    #catalogFilter.collapse.show,
    #catalogFilter.collapsing {
        position: fixed !important;
        top: 0; left: 0;
        width: 100%; height: 100% !important;
        z-index: 3000 !important;
        margin: 0 !important;
        background: #fff;
        display: block;
        overflow: hidden;
        animation: slideUpFilter 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

    #catalogFilter.collapsing.is-closing {
        animation: slideDownFilter 0.3s cubic-bezier(0.4, 0, 1, 1) forwards !important;
    }

    @keyframes slideUpFilter { from { transform: translateY(100%); } to { transform: translateY(0); } }
    @keyframes slideDownFilter { from { transform: translateY(0); } to { transform: translateY(100%); } }

    /* Filter Body */
    .bx-filter {
        height: 100%; display: flex; flex-direction: column;
        padding: 0 !important; border: none !important; border-radius: 0 !important;
    }

    .mobile-filter-header {
        flex-shrink: 0; height: 60px;
        display: flex; align-items: center; justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid #f0f0f0; background: #fff;
    }

    .mobile-filter-header h5 {
        font-family: var(--font-family-base);
        font-size: 1.4rem; color: var(--color-primary);
    }

    /* Scroll Area */
    .smartfilter { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
    
    .filter-params {
        display: block !important;
        overflow-y: auto; flex-grow: 1;
        padding: 20px 20px 100px 20px;
        margin-bottom: 0 !important;
        -webkit-overflow-scrolling: touch;
    }

    .filter-range-grid,
    .filter-checkbox-grid {
        display: block !important;
    }

    .filter-checkbox-grid {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .bx-filter-parameters-box {
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 20px; margin-bottom: 20px;
    }

    .checkbox-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .bx-filter-param-label {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.96rem;
    }

    .bx-filter-count {
        min-width: 30px;
        height: 24px;
    }

    /* Bottom Buttons */
    .bx-filter-button-box {
        position: absolute; bottom: 0; left: 0; width: 100%;
        background: #fff;
        padding: 15px 20px;
        border-top: 1px solid #eee;
        z-index: 10;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        display: flex; gap: 10px;
    }

    #set_filter { flex-grow: 2; padding: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
    #del_filter { flex-grow: 1; border-color: #ddd; color: #999; }
    #modef, #filter-order-form { display: none !important; }

    /* --- Toolbar --- */
    @media (max-width: 768px) {
        .catalog-toolbar {
            padding: 10px; gap: 10px; justify-content: space-between;
        }
        #catalogSort { flex: 1; }
        #catalogSort .btn-sort {
            width: 100%; justify-content: center; padding: 8px 10px;
            font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 0px !important;
        }
        #catalogSort .btn-sort .text-muted { display: none; }
        .filter-toggle-btn { flex: 0 0 auto; padding: 8px 12px; font-size: 0.9rem; }
    }
}

/* --- Touch Slider Optimization --- */
@media (max-width: 991.98px) {
    /* Increase touch area for sliders */
    .bx-ui-slider-handle::after {
        content: ''; position: absolute;
        top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 48px; height: 48px;
        background-color: transparent; border-radius: 50%;
        z-index: 100;
    }

    .bx-ui-slider-track-container {
        padding: 25px !important; /* More breathing room */
        overflow: hidden !important;
    }
}

/* End */


/* Start:/local/templates/eco_26/components/bitrix/catalog.section/eco_section/style.css?17800550274430*/


/* ==========================================================================
   Moved from /local/templates/eco_26/css/catalog.css
   Component scope: bitrix:catalog.section template "eco_section".
   Empty state, CTA card, and masonry grid rules are specific to this product-list component.
   ========================================================================== */

/* ========================================= */
/* 7. EMPTY STATE & HELPERS                  */
/* ========================================= */

.empty-section-wrapper {
    padding: 40px 10px; text-align: center;
    background-color: #fff; border-radius: 8px;
    border: 1px dashed rgba(185, 153, 97, 0.3);
}

.empty-icon-wrapper {
    font-size: 3rem; color: var(--color-secondary);
    margin-bottom: 20px; opacity: 0.8;
}

.empty-title {
    font-family: var(--font-family-base); font-size: 2rem;
    color: var(--color-primary); margin-bottom: 15px;
}

.empty-desc {
    font-family: var(--font-family-secondary); font-size: 1.1rem;
    color: var(--color-text-muted); max-width: 700px;
    margin: 0 auto 40px auto; line-height: 1.6;
}

.reveal-item {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: opacity, transform;
}

.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ========================================= */
/* 8. CTA / PROMO CARDS                      */
/* ========================================= */

.cta-card-premium {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.cta-card-premium:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(35, 57, 47, 0.4) !important;
    border-color: var(--color-secondary);
}

.cta-visual-dark {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    position: relative; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cta-main-icon {
    font-size: 3.5rem; color: var(--color-secondary);
    transition: transform 0.4s ease; z-index: 2; padding-top: 20px;
}

.cta-card-premium:hover .cta-main-icon {
    transform: scale(1.1); color: #fff;
}

.cta-circle-bg {
    position: absolute; width: 80px; height: 80px;
    border: 1px dashed rgba(185, 153, 97, 0.3); border-radius: 50%;
    z-index: 1; transition: all 0.5s ease; top: 16px;
}

.cta-card-premium:hover .cta-circle-bg {
    width: 100px; height: 100px;
    border-color: rgba(255,255,255,0.2); transform: rotate(180deg);
}

.cta-title {
    font-family: var(--font-family-base); font-size: 1.25rem;
    line-height: 1.1; color: #fff;
}

.cta-desc {
    color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.3;
}

.cta-subtitle {
    font-family: var(--font-family-secondary); font-size: 0.7rem;
    letter-spacing: 0.15em; color: var(--color-secondary); opacity: 0.9;
}

.cta-btn-wrap .btn {
    border-color: rgba(255,255,255,0.3); color: #fff;
    font-family: var(--font-family-secondary); font-weight: 600;
    transition: all 0.3s;
}

.cta-card-premium:hover .cta-btn-wrap .btn {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary) !important; color: #fff;
}

/* ========================================= */
/* SMART GRID MASONRY (Made by Masha 💅)     */
/* ========================================= */

.catalog-masonry-grid {
    display: grid;
    /* Начинаем с одной колонки для мобилок */
    grid-template-columns: repeat(1, 1fr);
    /* Нарезаем сетку на мелкие строчки по 10px */
    grid-auto-rows: 10px;
    column-gap: 1.5rem;
    align-items: start;
}

@media (min-width: 576px) {
    .catalog-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .catalog-masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Убираем твои стандартные mb-4, теперь отступы контролирует сетка */
.catalog-masonry-grid .product-reveal {
    margin-bottom: 0 !important;
}

/* End */
/* /local/templates/eco_26/components/bitrix/catalog/eco_complex/style.css?178005502717805 */
/* /local/templates/eco_26/components/bitrix/catalog.smart.filter/eco_filter/style.css?178005502716348 */
/* /local/templates/eco_26/components/bitrix/catalog.section/eco_section/style.css?17800550274430 */
