
.category_doch { padding: 15px; }

.cat-section { padding: 0 0 2rem; }
.cat-block { margin-bottom: 2.5rem; }
.cat-block:last-child { margin-bottom: 0; }

.cat-block__title {
    position: relative;
    margin: 10px;
    padding: 0 .3rem;
    font-size: 1.7em;
    font-weight: 500;
    text-transform: uppercase;
    color: #2b1a0e;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #8b5a2b, #4a2c17) 1;
}

.cat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
}
.cat-grid[data-cols="1"] { grid-template-columns: 1fr; }
.cat-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.cat-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.cat-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

.cat-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg, #8b5a2b, #4a2c17);
    border: .5px solid rgba(0, 0, 0, .05);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s, transform .15s;
}
.cat-card:hover { border-color: rgba(149, 147, 147, 1); transform: translateY(-2px); }
.cat-card:active { transform: scale(.98); }

.cat-card__img {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
}
.cat-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}
.cat-card__title {
    position: relative;
    bottom: -5px;
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.45;
    text-transform: uppercase;
    color: #fff;
}

.catalog-with-sidebar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.catalog-layout-simple { min-width: 0; }

.products-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card-simple {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .6);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
    transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.product-card-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .12);
    border-color: #e2e8f0;
}
.product-card-simple.is-hidden { display: none !important; }

.card-img-simple {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 500;
    color: #1e293b;
    transition: all .2s;
}
.card-img-simple img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-info-simple {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px 20px;
}

.product-category-simple {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #5b6e8c;
}

.product-title-simple {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #0f172a;
}
.product-title-simple a {
    color: inherit;
    text-decoration: none;
}
.product-card-simple:hover .product-title-simple,
.product-card-simple:hover .product-title-simple a { color: #8b5a2b; }

.product-description-simple {
    font-size: .85rem;
    line-height: 1.45;
    color: #475569;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.price-row-simple {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin-top: 8px;
}
.current-price-simple {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -.3px;
    color: #0f172a;
}
.old-price-simple {
    font-size: .80rem;
    font-weight: 500;
    color: #fa0000;
    text-decoration: line-through;
}

.buy-button-simple {
    display: block;
    margin-top: 15px;
    padding: 10px 0;
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: .85rem;
    text-align: center;
    text-transform: uppercase;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
}
.buy-button-simple:hover {
    background: linear-gradient(90deg, #8b5a2b, #4a2c17);
    color: #fff;
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 35px 0 20px;
}
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    background: #fff;
    border: 2px solid #222;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
    transition: all .25s ease;
}
.load-more-btn:hover {
    color: #fff;
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.load-more-btn:hover .load-more-icon { stroke: #fff; transform: rotate(180deg); }
.load-more-icon { transition: transform .4s ease, stroke .25s ease; }

.info-content { margin-top: 30px; padding: 20px 0; }

.filters-sidebar {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.filters-sidebar::-webkit-scrollbar { width: 6px; }
.filters-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.filters-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}
.filters-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 6px;
}

.filter-group {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group__title {
    margin: 0 0 12px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #5b6e8c;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.filter-list::-webkit-scrollbar { width: 4px; }
.filter-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: .9rem;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: color .15s;
}
.filter-option:hover { color: #8b5a2b; }
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #8b5a2b;
    cursor: pointer;
    flex-shrink: 0;
}
.filter-option__count {
    margin-left: auto;
    font-size: .75rem;
    color: #94a3b8;
}

.filter-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-price input {
    width: 100%;
    padding: 8px 10px;
    font-size: .85rem;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s;
}
.filter-price input:focus { border-color: #8b5a2b; }
.filter-price span { color: #94a3b8; }

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.filter-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}
.filter-btn--apply {
    color: #fff;
    background: linear-gradient(90deg, #8b5a2b, #4a2c17);
    border: none;
}
.filter-btn--apply:hover { filter: brightness(1.08); transform: translateY(-1px); }
.filter-btn--reset {
    color: #475569;
    background: #f8fafd;
    border: 1px solid #e2e8f0;
}
.filter-btn--reset:hover { background: #eef2f7; }

.filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 24px);
    margin: 12px 12px 16px;
    padding: 12px 20px;
    font-size: .95rem;
    font-weight: 600;
    color: #222;
    background: #fff;
    border: 2px solid #222;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
}
.filters-toggle:hover { color: #fff; background: #222; }
.filters-toggle:hover svg { stroke: #fff; }
.filters-toggle svg { stroke: #222; transition: stroke .2s; }

.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}
.filters-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
[hidden] { display: none !important; }
.is-off  { display: none !important; }

.filters-found {
    margin-left: 6px;
    font-size: .8rem;
    font-weight: 500;
    color: #94a3b8;
}
.filters-found:not(:empty)::before { content: '('; }
.filters-found:not(:empty)::after  { content: ')'; }

.filter-btn--reset { width: 100%; }

.filters-empty {
    padding: 40px 0;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1100px) {
    .catalog-with-sidebar {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .cat-grid[data-cols="4"] { grid-template-columns: repeat(3, 1fr); }
    .cat-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .catalog-with-sidebar {
        display: block;
        padding: 0 12px 32px;
    }

    .filters-toggle { display: flex; }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(340px, 88vw);
        max-height: 100vh;
        border-radius: 0 20px 20px 0;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform .3s ease;
        overflow-y: auto;
        padding: 24px 18px 20px;
        background: #fff;
        box-shadow: 4px 0 20px rgba(0, 0, 0, .15);
        display: block;
    }
    .filters-sidebar.is-open {
        transform: translateX(0);
    }

    .filters-close {
        display: block;
        font-size: 1.8rem;
        padding: 4px 12px;
        line-height: 1;
    }
    .products-grid-simple {
        gap: 12px;
        grid-template-columns: repeat(2, 1fr);
    }
    .card-info-simple {
        padding: 10px 10px 14px;
        gap: 6px;
    }
    .product-category-simple { font-size: .68rem; }
    .product-title-simple {
        font-size: .9rem;
        line-height: 1.3;
    }
    .product-description-simple { font-size: .75rem; }
    .current-price-simple { font-size: 1rem; }
    .old-price-simple { font-size: .7rem; }
    .buy-button-simple {
        margin-top: 10px;
        padding: 9px 0;
        font-size: .72rem;
        border-radius: 30px;
    }
}


@media (max-width: 480px) {
    .products-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .card-info-simple { padding: 8px 8px 12px; }
    .product-title-simple { font-size: .85rem; }
    .current-price-simple { font-size: .95rem; }
    .load-more-btn { padding: 12px 22px; font-size: 14px; }
}


@media (max-width: 600px) {
    .cat-grid,
    .cat-grid[data-cols="1"],
    .cat-grid[data-cols="2"],
    .cat-grid[data-cols="3"],
    .cat-grid[data-cols="4"] {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cat-card__img { height: 220px; }
    .btn { display: none; }
}
/* ============================================
   СОРТИРОВКА
   ============================================ */
.catalog-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.sort-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: #8c715b;
}
.sort-box__label { white-space: nowrap; }

.sort-box__select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 200px;
    padding: 10px 38px 10px 16px;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
    color: #0f172a;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b5a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.sort-box__select:hover { border-color: #8b5a2b; }
.sort-box__select:focus {
    border-color: #8b5a2b;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, .15);
}

@media (max-width: 768px) {
    .catalog-toolbar { margin-bottom: 12px; }
    .sort-box { width: 100%; }
    .sort-box__label { display: none; }
    .sort-box__select { width: 100%; min-width: 0; }
}