/**
 * Стили только для страниц категорий /inventory-category/term/
 * Подключается последним, чтобы перекрыть любые другие правила.
 */

/* Layout: сайдбар слева + контент справа */
body.taxonomy-inventory-category-page .inventory-page--with-sidebar .inventory-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 24px;
}

body.taxonomy-inventory-category-page .inventory-sidebar {
    flex-shrink: 0;
    width: 260px;
    position: sticky;
    top: 24px;
}

body.taxonomy-inventory-category-page .inventory-filters-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.taxonomy-inventory-category-page .inventory-filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
}

body.taxonomy-inventory-category-page .inventory-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-top: 16px;
    margin-bottom: 6px;
}

body.taxonomy-inventory-category-page .inventory-filter-label:first-of-type {
    margin-top: 0;
}

body.taxonomy-inventory-category-page .inventory-filter-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

body.taxonomy-inventory-category-page .inventory-filter-select:focus {
    border-color: #ff6b35;
    outline: none;
}

body.taxonomy-inventory-category-page .inventory-filter-reset {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #ff6b35;
    background: transparent;
    border: 1px solid #ff6b35;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

body.taxonomy-inventory-category-page .inventory-filter-reset:hover {
    background: #ff6b35;
    color: #fff;
}

body.taxonomy-inventory-category-page .inventory-main {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    body.taxonomy-inventory-category-page .inventory-page--with-sidebar .inventory-layout {
        flex-direction: column;
    }
    body.taxonomy-inventory-category-page .inventory-sidebar {
        width: 100%;
        position: static;
    }
}

body.taxonomy-inventory-category-page .inventory-page .inventory-grid#inventory-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 28px !important;
    margin-bottom: 50px !important;
}

body.taxonomy-inventory-category-page .inventory-page .inventory-item-wrapper {
    /* обёртка карточки */
}

body.taxonomy-inventory-category-page .inventory-page .inventory-card {
    border-radius: 10px !important;
}
