/* =====================================================
   ZARYADTOOLS — ДОДАТКОВІ СТИЛІ КАТАЛОГУ
   ===================================================== */

/* КАТЕГОРІЇ */

.zt-category-list {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 5px;
}

.zt-category-list .filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    cursor: pointer;
}

.zt-category-list .filter-option input {
    flex-shrink: 0;
}

.zt-category-list .filter-option small {
    color: var(--muted);
}

/* КНОПКА СКИДАННЯ ФІЛЬТРІВ */

.zt-reset-filters {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--graphite);
    cursor: pointer;
    transition: 0.2s;
}

.zt-reset-filters:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

/* ФОТОГРАФІЇ ТОВАРІВ */

.zt-product-photo-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.zt-product-photo-link img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.zt-photo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 170px;
    color: var(--muted);
    text-align: center;
}

/* ІНФОРМАЦІЯ ПРО ТОВАР */

.zt-product-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
    padding: 16px;
}

.zt-product-category {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.zt-product-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
}

.zt-product-name:hover {
    color: var(--green-dark);
}

.zt-product-model {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

/* ЦІНИ */

.zt-product-prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.zt-price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}

.zt-price-current {
    font-size: 21px;
    font-weight: 700;
    color: var(--graphite);
}

/* КНОПКА ДЕТАЛЬНІШЕ */

.zt-product-details {
    display: block;
    padding: 10px;
    margin-top: 7px;
    border-radius: 7px;
    background: var(--green);
    color: white;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.zt-product-details:hover {
    background: var(--green-dark);
}

/* ПОВІДОМЛЕННЯ */

.zt-empty-message,
.zt-loading-message {
    padding: 22px;
    color: var(--muted);
    grid-column: 1 / -1;
}

/* ПЕРЕМИКАННЯ СТОРІНОК */

.zt-pagination-dots {
    padding: 0 5px;
}

.catalog-pagination button[disabled] {
    cursor: default;
    opacity: 0.45;
}

.catalog-pagination button.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* КАРТКИ КАТАЛОГУ */

.catalog-products-grid .product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ПРИХОВАНІ ЕЛЕМЕНТИ */

[hidden] {
    display: none !important;
}

/* МОБІЛЬНА АДАПТАЦІЯ */

@media (max-width: 500px) {

    .zt-product-info {
        padding: 12px;
    }

    .zt-product-name {
        font-size: 14px;
    }

    .zt-price-current {
        font-size: 18px;
    }

    .zt-photo-placeholder {
        min-height: 130px;
    }

    .zt-product-details {
        font-size: 13px;
        padding: 9px;
    }

}

/* =====================================================
   ZARYADTOOLS — ОНОВЛЕНІ КАРТКИ, ПРОМО ТА ФІЛЬТРИ
   ===================================================== */

.zt-clickable-card { cursor: pointer; }
.zt-clickable-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.zt-clickable-card .zt-card-buy-actions, .zt-clickable-card .zt-product-photo-link { cursor: auto; }
.product-card .product-badge { z-index: 3; border-radius: 6px; padding: 7px 10px; font-size: 13px; font-weight: 900; box-shadow: 0 3px 12px rgba(60,110,5,.18); }
.zt-product-info .zt-card-buy-actions { margin-top: 15px; }
.zt-price-old { white-space: nowrap; }
.zt-feature-promo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    min-height: 260px;
    padding: 0;
    gap: 0;
    border-radius: 12px;
    text-decoration: none;
}
.zt-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; flex: 1 1 56%; padding: 24px 13px 24px 23px; position: relative; }
.zt-feature-promo .promo-label { margin: 0 0 12px; opacity: .85; }
.zt-feature-promo h3 { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.22; margin: 0 0 14px; color: white; }
.zt-feature-discount { display: inline-flex; align-items: center; background: #fff; color: #327000; border-radius: 5px; padding: 5px 9px; font-weight: 900; font-size: 16px; margin-bottom: 10px; }
.zt-feature-prices { display: flex; gap: 6px 13px; flex-wrap: wrap; align-items: baseline; margin-bottom: 15px; }
.zt-feature-prices strong { font-size: 23px; color: #fff; font-weight: 900; white-space: nowrap; }
.zt-feature-old { color: #fff; opacity: .75; text-decoration: line-through; font-size: 13px; white-space: nowrap; }
.zt-feature-promo .promo-link { margin-top: auto; font-size: 13px; }
.zt-feature-photo { position: relative; flex: 0 0 40%; background: #f7f9f5; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 13px; }
.zt-feature-photo img { display: block; width: 100%; height: 100%; max-height: 218px; object-fit: contain; transition: transform .25s; }
.zt-feature-promo:hover .zt-feature-photo img { transform: scale(1.04); }
.zt-feature-fallback { color: #777; font-size: 12px; }
.zt-feature-photo img[hidden], .zt-feature-fallback[hidden] { display: none !important; }

.zt-catalog-filter-toggle { display: none; align-items: center; justify-content: center; padding: 10px 16px; min-height: 42px; border: 1px solid #d9e1d0; background: #fff; border-radius: 9px; font: 700 14px Arial,sans-serif; cursor: pointer; }
.zt-filter-header { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.zt-filter-header h2 { margin: 0; }
#catalogFilterClose { display: none; width: 38px; height: 38px; font-size: 26px; background: #f1f3ee; border: 0; border-radius: 8px; cursor: pointer; }
.zt-category-list { max-height: none; overflow: visible; padding: 0; }
.zt-category-search { display: block; width: 100%; padding: 10px 12px; min-height: 41px; border: 1px solid #d7dfd1; border-radius: 8px; margin-bottom: 12px; outline-color: var(--green); background: #fff; color: var(--text); }
.zt-category-groups { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.zt-category-group { border-bottom: 1px solid #edf0e9; padding: 4px 0; }
.zt-category-group summary { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 4px; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.zt-category-group summary::-webkit-details-marker { display: none; }
.zt-category-group summary::before { content: '▸'; color: var(--green); margin-right: 4px; }
.zt-category-group[open] summary::before { content: '▾'; }
.zt-category-group summary small { margin-left: auto; font-size: 11px; color: #888; }
.zt-category-option { margin: 0 !important; padding: 7px 5px 7px 14px; font-size: 12px; }
.zt-category-option:hover { background: #f7faf4; }
.zt-category-option span { flex: 1; }
.zt-category-option input { accent-color: var(--green); }
.zt-category-option small { font-size: 11px; }
.zt-discount-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 13px; }
.zt-discount-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.zt-active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 17px; }
.zt-active-filters[hidden] { display: none !important; }
.zt-filter-chip { padding: 8px 11px; border: 1px solid #b8d7a0; border-radius: 30px; background: #f3faed; color: #386f0c; font-weight: 700; cursor: pointer; font-size: 12px; }
.zt-filter-chip:hover { background: #e4f2d8; }
.zt-filter-backdrop { display: none; }
.catalog-sidebar .filter-box { border-radius: 12px; }
.catalog-sidebar .price-inputs input { border-radius: 7px; }
.catalog-sidebar .apply-filter-button { border-radius: 8px; }
.catalog-sidebar .zt-reset-filters { border-radius: 8px; }

@media (max-width: 1100px) {
    .zt-feature-promo { min-height: 250px; }
    .zt-feature-copy { padding: 18px 10px 18px 16px; }
    .zt-feature-prices strong { font-size: 19px; }
}
@media (max-width: 800px) {
    .zt-catalog-filter-toggle { display: inline-flex; }
    #catalogFilterClose { display: inline-flex; align-items: center; justify-content: center; }
    .catalog-sidebar { position: fixed; z-index: 1001; left: 0; top: 0; bottom: 0; width: min(360px, 90vw); max-width: 90vw; overflow-y: auto; background: #fff; box-shadow: 12px 0 40px rgba(0,0,0,.15); transform: translateX(-105%); transition: transform .25s ease; visibility: hidden; }
    .catalog-sidebar.is-open { transform: translateX(0); visibility: visible; }
    .catalog-sidebar .filter-box { border: 0; padding: 22px 18px; }
    .zt-filter-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(18,22,16,.55); border: 0; padding: 0; width: 100vw; height: 100vh; cursor: pointer; }
    body.zt-filter-open { overflow: hidden; }
    .catalog-title { flex-wrap: wrap; }
    .catalog-title .sort-select { width: auto; min-width: 175px; flex: 1; }
    .zt-feature-promo { min-height: 220px; }
    .zt-feature-promo h3 { font-size: 20px; }
}
@media (max-width: 450px) {
    .zt-feature-photo { flex-basis: 40%; padding: 9px; }
    .zt-feature-copy { padding: 16px 8px 16px 14px; }
    .zt-feature-promo h3 { font-size: 16px; }
    .zt-feature-prices strong { font-size: 18px; }
    .zt-feature-promo .promo-label { font-size: 9px; }
    .zt-feature-discount { font-size: 14px; }
}


/* =====================================================
   ZARYADTOOLS — ВЕЛИКИЙ ФІЛЬТР КАТЕГОРІЙ В ОДИН КЛІК
   ===================================================== */
@media (min-width: 801px) {
    .catalog-page .catalog-layout {
        grid-template-columns: minmax(275px, 295px) minmax(0, 1fr);
        gap: 23px;
    }
}
@media (min-width: 801px) and (max-width: 1250px) {
    .catalog-page .catalog-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.catalog-sidebar .filter-box {
    padding: 22px 20px;
    border-radius: 13px;
    border-color: #dfe6d9;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .035);
}
.catalog-sidebar .filter-section { padding: 18px 0; }
.catalog-sidebar .filter-section h3 {
    margin-bottom: 8px;
    font-size: 17px;
}
.zt-filter-hint {
    margin: 0 0 16px;
    color: #71796d;
    line-height: 1.5;
    font-size: 13px;
}
.zt-cat-search-wrap {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    color: #6a7664;
}
.zt-category-search {
    min-height: 47px;
    font-size: 14px;
    margin-bottom: 17px;
    border-radius: 9px;
}
.zt-cat-list-caption {
    margin: 1px 0 9px;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 800;
    color: #8b9485;
}
.zt-cat-popular {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.zt-cat-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 45px;
    padding: 11px 12px;
    gap: 8px;
    background: #f8faf6;
    border: 1px solid #e8eee2;
    border-radius: 9px;
    text-align: left;
    color: #30372b;
    font: 700 14px/1.35 Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: border-color .16s, background .16s, color .16s;
}
.zt-cat-choice span { min-width: 0; }
.zt-cat-choice small {
    flex-shrink: 0;
    padding: 3px 7px;
    border-radius: 6px;
    background: #e8eee1;
    color: #677360;
    font-size: 11px;
    font-weight: 800;
}
.zt-cat-choice:hover {
    border-color: #8ac45c;
    background: #f2faeb;
}
.zt-cat-choice.is-selected {
    background: #5FAA12;
    border-color: #5FAA12;
    color: white;
}
.zt-cat-choice.is-selected small {
    color: #336600;
    background: #e5f8d7;
}
.zt-cat-choice:focus-visible,
.zt-quick-pill:focus-visible,
.zt-cat-more summary:focus-visible {
    outline: 3px solid #89ce4c;
    outline-offset: 2px;
}
.zt-cat-more { margin-top: 13px; border-top: 1px solid #e5eadd; padding-top: 9px; }
.zt-cat-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 3px;
    font-size: 14px;
    color: #3a5031;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.zt-cat-more summary::-webkit-details-marker { display: none; }
.zt-cat-more summary::after {
    content: "⌄";
    font-size: 20px;
    color: #5FAA12;
    margin-left: 8px;
}
.zt-cat-more[open] summary::after { transform: rotate(180deg); }
.zt-cat-more summary small {
    margin-left: auto;
    font-size: 12px;
    color: #7b8574;
}
.zt-cat-more-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px 0 9px;
}
.zt-category-no-results {
    padding: 12px 5px;
    font-size: 13px;
    color: #777;
}
.zt-quick-category {
    margin-bottom: 21px;
    padding: 17px 18px;
    border: 1px solid #e1e9db;
    background: #fbfdf9;
    border-radius: 12px;
}
.zt-quick-category-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
}
.zt-quick-category-tip {
    color: #868e80;
    font-size: 11px;
    font-weight: 500;
}
.zt-quick-category-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.zt-quick-pill {
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #d7e1ce;
    background: #fff;
    color: #3a4334;
    font: 700 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background .16s, border-color .16s, color .16s;
}
.zt-quick-pill:hover { border-color: #8bc659; background: #eff8e7; }
.zt-quick-pill.is-selected {
    background: #5FAA12;
    border-color: #5FAA12;
    color: #fff;
}
@media (min-width: 801px) and (max-width: 1100px) {
    .catalog-sidebar .filter-box { padding: 18px 15px; }
    .zt-cat-choice { font-size: 13px; }
}
@media (max-width: 800px) {
    .zt-quick-category {
        margin-bottom: 15px;
        padding: 14px 12px;
    }
    .zt-quick-category-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    .zt-quick-pill { flex-shrink: 0; }
    .catalog-sidebar .filter-box { border: 0; box-shadow: none; }
    .zt-cat-choice { min-height: 49px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .zt-cat-choice,.zt-quick-pill { transition: none; }
}

/* 2026: Спрощений каталог — шість зрозумілих розділів */
.catalog-page .catalog-layout { grid-template-columns: 235px minmax(0, 1fr); gap: 24px; }
.catalog-page .catalog-sidebar .filter-box { padding: 22px 18px; border-radius: 14px; }
.catalog-page .catalog-sidebar .filter-box h2 { font-size: 19px; }
.catalog-page .zt-quick-category {
    padding: 19px 20px;
    background: #fff;
    border: 1px solid #e3e9de;
    box-shadow: 0 4px 16px rgba(20,40,10,.035);
    border-radius: 14px;
}
.catalog-page .zt-quick-category-heading { margin-bottom: 15px; font-size: 16px; color: #2d3329; }
.catalog-page .zt-quick-category-list { display: flex; flex-wrap: wrap; gap: 9px; }
.catalog-page .zt-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 13px;
    border-radius: 9px;
    background: #f6f8f4;
    border: 1px solid #e3e9dd;
    color: #343d30;
    font-size: 13px;
    line-height: 1.3;
}
.catalog-page .zt-quick-pill small {
    background: #e7eee0;
    color: #56634e;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 11px;
}
.catalog-page .zt-quick-pill.is-selected { background: #5FAA12; border-color: #5FAA12; color: #fff; }
.catalog-page .zt-quick-pill.is-selected small { background: rgba(255,255,255,.22); color: #fff; }
.catalog-page .zt-quick-pill:focus-visible { outline: 3px solid #80b94b; outline-offset: 2px; }
.catalog-page .zt-catalog-filter-toggle {
    border-radius: 9px;
    border-color: #b4d6a0;
    color: #376d12;
    background: #f5faef;
}
@media (max-width: 800px) {
    .catalog-page .catalog-layout { display: block; }
    .catalog-page .zt-quick-category { padding: 14px 13px; margin-bottom: 15px; }
    .catalog-page .zt-quick-category-heading { font-size: 15px; margin-bottom: 12px; }
    .catalog-page .zt-quick-category-tip { display: none; }
    .catalog-page .zt-quick-category-list { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
    .catalog-page .zt-quick-pill { flex: 0 0 auto; min-height: 46px; scroll-snap-align: start; font-size: 13px; }
    .catalog-page .zt-catalog-filter-toggle { display: inline-flex; min-height: 46px; }
    .catalog-page .catalog-sidebar {
        left: auto; right: 0; width: min(380px, 92vw); max-width: 92vw;
        transform: translateX(105%); border-radius: 16px 0 0 16px;
    }
    .catalog-page .catalog-sidebar.is-open { transform: translateX(0); }
    .catalog-page .catalog-sidebar .filter-box { padding: 22px 18px; }
    .catalog-page .catalog-title .sort-select { min-height: 46px; }
}
@media (max-width: 480px) {
    .catalog-page .catalog-title { gap: 10px; }
    .catalog-page .zt-catalog-filter-toggle { flex: 1; }
    .catalog-page .catalog-title .sort-select { flex: 1; min-width: 0; }
}


/* =========================================================
   ZARYADTOOLS — КАТАЛОГ 3.0: ПРОСТІ ФІЛЬТРИ
   ========================================================= */
.catalog-page .catalog-layout { display: grid; grid-template-columns: 252px minmax(0,1fr); gap: 25px; align-items: start; }
.catalog-page .catalog-sidebar { min-width: 0; }
.catalog-page .catalog-sidebar .filter-box { padding: 0; background: #fff; border: 1px solid #e3e8df; border-radius: 14px; box-shadow: 0 4px 20px rgba(26,42,20,.04); overflow: hidden; }
.catalog-page .zt-filter-header { padding: 19px 20px; margin: 0; background: #f8faf6; border-bottom: 1px solid #e5ebe0; }
.catalog-page .zt-filter-header h2 { font-size: 20px; margin: 0; font-weight: 800; }
.catalog-page .catalog-sidebar .filter-section { padding: 20px; border: 0; }
.catalog-page .catalog-sidebar .filter-section + .filter-section { border-top: 1px solid #e9eee5; }
.catalog-page .catalog-sidebar .filter-section h3 { margin: 0 0 14px; font-size: 15px; color: #293125; font-weight: 800; }
.catalog-page .zt-quick-category-list { display: flex; flex-direction: column; align-items: stretch; gap: 3px; overflow: visible; padding: 0; }
.catalog-page .zt-quick-pill {
    display: flex; justify-content: space-between; text-align: left; align-items: center; gap: 12px;
    width: 100%; min-height: 44px; padding: 10px 11px; flex: none; background: transparent;
    border: 1px solid transparent; border-radius: 8px; color: #3b4536;
    font: 600 13px/1.35 Arial,Helvetica,sans-serif; cursor: pointer; white-space: normal;
    transition: background .18s, border-color .18s, color .18s;
}
.catalog-page .zt-quick-pill:hover { background: #f2f7ed; border-color: #e4efd9; }
.catalog-page .zt-quick-pill.is-selected, .catalog-page .zt-quick-pill.is-selected:hover {
    background: #ebf6e2; border-color: #afd796; color: #387617;
}
.catalog-page .zt-quick-pill small { background: #eef1eb; color: #737e6e; border-radius: 6px; padding: 3px 6px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.catalog-page .zt-quick-pill.is-selected small { background: #d5edc4; color: #387617; }
.catalog-page .catalog-sidebar .price-inputs { gap: 9px; }
.catalog-page .catalog-sidebar .price-inputs input { min-height: 45px; border-radius: 9px; border: 1px solid #d7dfd1; font-size: 14px; padding: 0 10px; }
.catalog-page .catalog-sidebar .price-inputs input:focus { border-color: #5faa12; outline: 2px solid #dcedcd; }
.catalog-page .zt-filter-actions { display: flex; gap: 9px; padding: 16px 20px 20px; border-top: 1px solid #e9eee5; }
.catalog-page .zt-reset-filters { margin: 0; min-height: 44px; padding: 10px 14px; flex: 1; border-radius: 9px; border: 1px solid #dae3d4; background: white; color: #45513d; font-size: 13px; font-weight: 700; }
.catalog-page .zt-filter-apply { display: none; flex: 1.4; border: 0; border-radius: 9px; background: #5faa12; color: #fff; font: 700 13px Arial,sans-serif; cursor: pointer; }
.catalog-page .zt-catalog-overview { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; margin-bottom: 16px; padding: 0 2px 13px; border-bottom: 1px solid #e6ebe1; color: #46513f; font-size: 13px; }
.catalog-page .zt-catalog-overview-label { font-weight: 700; }
.catalog-page .zt-catalog-overview-hint { color: #899284; }
.catalog-page .zt-active-filters { margin-bottom: 15px; }
.catalog-page .sort-select { min-height: 44px; border: 1px solid #dbe2d5; border-radius: 9px; padding: 0 12px; font-size: 13px; }
.catalog-page .zt-catalog-filter-toggle { border-radius: 9px; min-height: 45px; background: #f1f8eb; border: 1px solid #b7d9a0; color: #3d751d; font-weight: 800; }
@media (max-width: 800px) {
    .catalog-page .catalog-layout { display: block; }
    .catalog-page .zt-catalog-overview { display: none; }
    .catalog-page .catalog-sidebar {
        position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 1001;
        width: 100%; max-width: 100%; max-height: min(85dvh,760px);
        overflow-y: auto; border-radius: 19px 19px 0 0; background: #fff;
        box-shadow: 0 -12px 40px rgba(0,0,0,.18);
        transform: translateY(105%); visibility: hidden; transition: transform .23s ease,visibility .23s;
    }
    .catalog-page .catalog-sidebar.is-open { transform: translateY(0); visibility: visible; }
    .catalog-page .catalog-sidebar .filter-box { border: 0; border-radius: 19px 19px 0 0; box-shadow: none; }
    .catalog-page .zt-filter-header { position: sticky; top: 0; z-index: 2; background: #fff; padding: 17px 20px; }
    .catalog-page #catalogFilterClose { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
    .catalog-page .zt-quick-category-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; overflow: visible; }
    .catalog-page .zt-quick-pill { min-height: 55px; padding: 10px; font-size: 12px; }
    .catalog-page .zt-filter-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 18px max(12px,env(safe-area-inset-bottom)); box-shadow: 0 -5px 16px rgba(0,0,0,.04); }
    .catalog-page .zt-filter-apply { display: block; }
    .catalog-page .zt-catalog-filter-toggle { display: inline-flex; }
    .catalog-page .catalog-title .sort-select { width: auto; flex: 1; min-width: 0; }
    .zt-filter-backdrop:not([hidden]) { display: block; }
    body.zt-filter-open { overflow: hidden; }
}
@media (max-width: 410px) {
    .catalog-page .zt-quick-category-list { grid-template-columns: 1fr; gap: 3px; }
    .catalog-page .zt-quick-pill { min-height: 42px; font-size: 13px; }
    .catalog-page .catalog-title { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .catalog-page .catalog-sidebar,.catalog-page .zt-quick-pill { transition: none; } }


/* ZARYADTOOLS — п'ять компактних карток у ряд у каталозі.
   На вузьких екранах кількість колонок зменшується для читабельності. */
@media (min-width: 1200px) {
    .catalog-page .catalog-products-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (min-width: 981px) and (max-width: 1199px) {
    .catalog-page .catalog-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (min-width: 801px) and (max-width: 980px) {
    .catalog-page .catalog-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (min-width: 651px) and (max-width: 800px) {
    .catalog-page .catalog-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}
@media (max-width: 650px) {
    .catalog-page .catalog-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}


/* Трохи більше простору для п'яти товарів у каталозі. */
@media (min-width: 1200px) {
    .catalog-page .catalog-layout {
        grid-template-columns: 225px minmax(0, 1fr);
        gap: 19px;
    }
}
@media (min-width: 1200px) and (max-width: 1439px) {
    .catalog-page.container {
        width: calc(100% - 40px);
    }
}
