.page-klima-list { padding-bottom: 80px; }
.klima-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px; }
.page-heading { margin: 10px 0 18px; }
.page-heading h1 { margin: 0 0 6px; font-size: 25px; }
.page-heading p { margin: 0; color: var(--muted); }
.search-box-wrapper { margin-bottom: 15px; }
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { height: 42px !important; padding: 8px 12px; border: 1px solid #ccc; border-radius: 8px; }
.select2-selection__rendered { padding-left: 0 !important; line-height: 24px !important; font-size: 14px; }
.select2-selection__arrow { top: 3px !important; right: 6px !important; height: 36px !important; }

.klima-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.filters { position: sticky; top: 82px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.filters h2 { margin: 6px 0 12px; font-size: 16px; }
.filter { margin-bottom: 14px; }
.filter label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.filter input, .filter select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filter .range-row { display: flex; gap: 8px; }
.filter .range-row input { flex: 1 1 0; }
.filter-submit { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.checkbox-group { max-height: 260px; overflow-y: auto; padding: 12px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; }
.checkbox-row { display: flex !important; align-items: center; gap: 8px; padding: 6px 0; color: #222 !important; font-size: 14px !important; cursor: pointer; }
.checkbox-row input { width: auto !important; margin: 0; }
.brand-search { margin-bottom: 8px; }
.filter-toggle { display: none; width: 100%; margin-bottom: 12px; padding: 10px 14px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.scroll-hint { display: none; }

.klima-list { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.klima-list .thead,
.klima-list .product-row { display: grid; grid-template-columns: minmax(360px, 2fr) 120px 120px 120px 100px 100px 120px; align-items: stretch; }
.klima-list .thead { border-bottom: 1px solid var(--line); background: #fafafa; font-weight: 700; }
.klima-list .thead > div { display: flex; align-items: center; min-width: 0; padding: 10px 12px; color: #555; font-size: 13px; }
.product-row { min-height: 122px; border-bottom: 1px solid var(--line); }
.product-row:nth-child(even) { background: #f7f7f7; }
.product-row:last-child { border-bottom: 0; }
.cell { display: flex; align-items: center; min-width: 0; padding: 10px 12px; }
.namecell { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "thumb meta" "thumb compare"; gap: 8px 12px; }
.namecell > a { grid-area: thumb; }
.thumb { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.meta { grid-area: meta; align-self: end; min-width: 0; }
.meta .title { display: -webkit-box; overflow: hidden; font-weight: 800; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.namecell > .compare-btn { grid-area: compare; justify-self: start; }
.compare-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 8px; background: #fff; color: var(--brand-dark); font-weight: 800; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.compare-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; }
.compare-btn.active { color: #2e7d32; }
.compare-btn.active .compare-icon { background: #2e7d32; }
.chip { display: inline-flex; align-items: center; max-width: 100%; padding: 6px 8px; border-radius: 8px; background: #eef2ff; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.sort-link { display: inline-flex; align-items: center; gap: 4px; color: #444; font-weight: 700; }
.sort-icon { color: #999; opacity: 0; }
.sort-link:hover .sort-icon, .sort-icon.active { opacity: 1; }
.sort-icon.active { color: var(--brand-dark); }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0 0; padding: 14px; }
.pager a, .pager span { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.pager .active { border-color: var(--brand); background: var(--brand); color: #fff; font-weight: 700; }

.compare-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1400; display: flex; align-items: center; min-width: 0; padding: 8px 16px; background: var(--brand); color: #fff; box-shadow: 0 -2px 6px rgba(0,0,0,.2); }
.compare-title { margin-right: 8px; }
.compare-items { display: flex; flex: 1 1 auto; gap: 8px; min-width: 0; overflow-x: auto; }
.compare-items img { flex: 0 0 42px; width: 42px; height: 58px; padding: 2px; border: 1px solid #fff; border-radius: 4px; background: #fff; object-fit: contain; }
.compare-bar > .compare-btn, .compare-clear { flex: 0 0 auto; margin-left: 8px; padding: 7px 12px; border: 0; border-radius: 4px; cursor: pointer; }
.compare-bar > .compare-btn { background: #fff; color: var(--brand-dark); box-shadow: none; }
.compare-clear { background: #333; color: #fff; }

.seo-content { max-width: 900px; margin: 40px auto 0; padding: 24px 28px; border-top: 1px solid #eee; background: #fafafa; color: #444; line-height: 1.6; }
.seo-content h2 { margin: 0 0 12px; color: #222; font-size: 18px; }
.seo-content h3 { margin: 18px 0 8px; color: #333; font-size: 15px; }
.seo-content ul { margin: 8px 0 0 18px; padding: 0; }

.klima-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.listing-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.filters {
    position: sticky;
    top: 82px;

    min-width: 0;
    max-height: calc(100vh - 102px);
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;

    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.filters::-webkit-scrollbar {
    width: 6px;
}

.filters::-webkit-scrollbar-track {
    background: transparent;
}

.filters::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.filters h2 {
    position: sticky;
    top: -12px;
    z-index: 2;

    margin: -12px -12px 12px;
    padding: 15px 12px 12px;

    border-bottom: 1px solid var(--line);
    background: #fff;
    font-size: 16px;
}

.klima-list {
    width: 100%;
    min-width: 0;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    width: 100%;
    margin: 24px 0 0;
    padding: 0;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;
    padding: 0 11px;

    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.pager a:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.pager .active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}
@media (max-width: 980px) {
    .klima-layout {
        display: block;
    }

    .filter-toggle {
        display: block;
    }

    .filters {
        position: static;
        display: none;

        width: 100%;
        max-height: none;
        margin-bottom: 16px;
        overflow: visible;
    }

    .filters.open {
        display: block;
    }

    .filters h2 {
        position: static;
        margin: 6px 0 12px;
        padding: 0;
        border: 0;
    }

    .scroll-hint {
        display: flex;
        align-items: center;
        justify-content: center;

        margin: 0 0 8px;
        padding: 10px 12px;

        border-radius: 10px;
        background: var(--brand);
        color: #fff;
        font-weight: 800;
    }

    .klima-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .klima-list .thead,
    .klima-list .product-row {
        width: 1040px;
        min-width: 1040px;
        grid-template-columns:
            380px
            120px
            120px
            120px
            100px
            100px
            100px;
    }

    .pager {
        margin-top: 18px;
        padding: 0 4px;
    }
}

@media (max-width: 600px) {
    .klima-wrap {
        padding: 12px;
    }

    .pager {
        gap: 5px;
    }

    .pager a,
    .pager span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .compare-title {
        display: none;
    }

    .compare-bar {
        padding: 7px 8px;
    }

    .compare-bar > .compare-btn,
    .compare-clear {
        margin-left: 5px;
        padding: 7px 9px;
        font-size: 12px;
    }
}
.filter {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f1f3;
}

.filter:last-of-type {
    border-bottom: 0;
}

.filter label {
    margin-bottom: 5px;
    font-size: 11px;
}

.filter input,
.filter select {
    padding: 7px 8px;
}

.checkbox-group {
    max-height: 170px;
    padding: 8px;
}

.checkbox-row {
    padding: 4px 0;
    font-size: 12px !important;
}

.filter .range-row {
    gap: 6px;
}