.category-hero { position: relative; background: #2a2622; color: #fff; min-height: 240px; display: flex; align-items: center; }
.category-hero__image { position: absolute; inset: 0; }
.category-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000b, #0006 50%, #0001 85%); }
.category-hero__content { position: relative; z-index: 1; }
.category-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; max-width: 40rem; margin-bottom: .5rem; }
.category-hero p { max-width: 34rem; margin-bottom: 1.5rem; }
.subcategory-tile { display: flex; align-items: center; gap: .8rem; height: 100%; border: 1px solid var(--hera-line); padding: 1rem; font-size: .88rem; font-weight: 700; }
.subcategory-tile:hover { border-color: var(--hera-red); }
.subcategory-tile > .icon:first-child { color: var(--hera-red); font-size: 1.4rem; }
.subcategory-tile > .icon:last-child { color: var(--hera-grey); font-size: .75rem; }
.subcategory-tile small { display: block; color: var(--hera-grey); font-weight: 400; }
.category-demo-note { border-left: 3px solid var(--hera-red); background: var(--hera-bg); padding: .75rem 1rem; font-size: .85rem; }
.category-filters { border: 1px solid var(--hera-line); border-radius: 6px; background: var(--hera-bg); }
.category-filters > summary { padding: .8rem 1rem; font-weight: 700; list-style: none; cursor: pointer; }
.category-filters > summary::-webkit-details-marker { display: none; }
.category-filters > summary::after { content: '+'; float: right; }
.category-filters[open] > summary::after { content: '−'; }
.category-filters__content { padding: 1rem 1.1rem; }
.category-tree a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .6rem; font-size: .86rem; border-left: 2px solid transparent; }
.category-tree a[aria-current] { border-color: var(--hera-red); color: var(--hera-text-red); font-weight: 700; background: #fff; }
.category-tree .category-tree__child { padding-left: 1.4rem; }
.category-tree__count { font-size: .75rem; color: var(--hera-grey); }
.category-filter-search { padding-block: .8rem 1rem; border-bottom: 1px solid var(--hera-line); }
.category-filter-search label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.category-filter-group { border-bottom: 1px solid var(--hera-line); }
.category-filter-group > summary { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-block: .8rem; font-weight: 700; font-size: .9rem; cursor: pointer; list-style: none; }
.category-filter-group > summary::-webkit-details-marker { display: none; }
.category-filter-group > summary .icon { color: var(--hera-red); }
.category-filter-group[open] > summary .icon { transform: rotate(180deg); }
.category-filter-group label { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; font-size: .85rem; padding-block: .3rem; cursor: pointer; }
.category-filter-count { color: var(--hera-grey); }
.filter-swatch { display: inline-block; width: 12px; height: 12px; margin-right: .35rem; border: 1px solid #ccc; border-radius: 50%; vertical-align: -1px; }
.filter-swatch--extra-warm { background: #f6cf86; }
.filter-swatch--warm { background: #f9e1ad; }
.filter-swatch--neutral { background: #f3f0e6; }
.filter-swatch--tunable { background: linear-gradient(90deg, #f6cf86, #e3eef8); }
.filter-swatch--rgb { background: conic-gradient(#e33, #3c3, #36e, #e33); }
.filter-swatch--rgbw { background: conic-gradient(#e33, #3c3, #36e, #fff, #e33); }
.category-filter-group .is-empty { color: #6d6d69; }
.category-filter-group .form-check-input:checked { background-color: var(--hera-action-red); border-color: var(--hera-action-red); }
.category-page :is(.form-control, .form-select, .form-check-input):focus { border-color: var(--hera-red); box-shadow: 0 0 0 .2rem #eb202726; }
.category-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.category-toolbar__options { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.category-toolbar__options .form-select { width: auto; }
.category-toolbar__options label { color: var(--hera-grey); }
.category-filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--hera-line); padding: .35rem .6rem; font-size: .8rem; background: #fff; }
.filter-chip:hover { border-color: var(--hera-red); }
.category-empty { border: 1px solid var(--hera-line); background: var(--hera-bg); }
.category-results { scroll-margin-top: 150px; }
.category-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.category-pagination .pagination { flex-wrap: wrap; gap: .15rem; }
.category-pagination .page-link { color: var(--hera-ink); border-radius: 0; min-width: 32px; text-align: center; }
.category-pagination .active .page-link { background: var(--hera-action-red); border-color: var(--hera-action-red); color: #fff; }
@media (min-width: 992px) {
    .category-filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
    .category-filters > summary { display: none; }
}
@media (max-width: 575.98px) {
    .category-results { scroll-margin-top: 85px; }
}
