.category-page { background: #fff; }
.category-main { padding-block: 28px 70px; }
.category-main .breadcrumbs { margin-bottom: 26px; }
.category-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.category-heading h1 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; text-wrap: balance; }
.category-heading p { color: #52617a; font-size: 14px; line-height: 1.6; max-width: 65ch; margin: 0; }
.category-help { flex: none; font-size: 13px; color: #0753c6; text-decoration: underline; text-underline-offset: 4px; padding-block: 12px; }
.category-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.category-sidebar { min-width: 0; }
.filter-panel > summary { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; list-style: none; padding-block: 8px 20px; cursor: pointer; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #52617a; font-size: 12px; padding-bottom: 14px; }
.filter-caption button { border: 0; color: #0753c6; background: none; min-height: 44px; padding: 8px 0 8px 8px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.sidebar-categories { display: grid; gap: 2px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sidebar-categories a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; font-size: 13px; padding: 9px 12px; border-radius: 6px; }
.sidebar-categories a[aria-current] { background: #eaf2ff; color: #0753c6; font-weight: 700; }
.sidebar-categories a:hover { background: var(--pale); }
.sidebar-categories span { color: #52617a; font-size: 12px; font-variant-numeric: tabular-nums; }
.price-filter { padding-block: 24px; border-bottom: 1px solid var(--line); }
.price-filter h2 { font-size: 15px; margin: 0 0 16px; }
.price-values { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #52617a; }
.price-values span { display: grid; gap: 5px; }
.price-values span:last-child { text-align: right; }
.price-values output { color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-slider { position: relative; height: 44px; margin-top: 8px; }
.price-track { position: absolute; inset: 20px 12px auto; height: 4px; border-radius: 4px; background: #c6d2e2; }
.price-track span { position: absolute; height: 100%; border-radius: inherit; background: var(--blue); }
.price-slider input { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; }
.price-slider input::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.price-slider input::-moz-range-track { height: 4px; background: transparent; }
.price-slider input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; pointer-events: auto; cursor: grab; }
.price-slider input::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; pointer-events: auto; cursor: grab; }
.price-slider input:active::-webkit-slider-thumb { cursor: grabbing; background: #eaf2ff; }
.price-slider input:active::-moz-range-thumb { cursor: grabbing; background: #eaf2ff; }
.price-slider input:focus-visible { outline: 0; }
.price-slider input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }
.price-slider input:focus-visible::-moz-range-thumb { outline: 3px solid var(--focus); outline-offset: 3px; }
.price-slider input:disabled::-webkit-slider-thumb { pointer-events: none; cursor: default; }
.price-slider input:disabled::-moz-range-thumb { pointer-events: none; cursor: default; }
.price-hint { margin: 0; color: #52617a; font-size: 11px; line-height: 1.5; }
.facet-group { padding-block: 20px; border-bottom: 1px solid var(--line); }
.facet-group summary { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; list-style: none; cursor: pointer; min-height: 44px; }
.facet-group summary .ui-icon { width: 16px; height: 16px; transform: rotate(-90deg); }
.facet-group[open] summary .ui-icon { transform: none; }
.facet-options { display: grid; gap: 0; padding-top: 10px; max-height: 275px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a9bfdc transparent; }
.facet-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 5px; font-size: 13px; cursor: pointer; }
.facet-option input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.facet-option .facet-count { margin-left: auto; color: #52617a; font-size: 12px; font-variant-numeric: tabular-nums; }
.facet-option:has(input:disabled) { color: #52617a; cursor: default; }
.facet-option[hidden] { display: none; }
.facet-more { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #0753c6; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.facet-more:hover { color: var(--ink); }
.filter-note { color: #52617a; font-size: 12px; line-height: 1.6; padding-top: 12px; }
.category-results { min-width: 0; }
.category-search { display: flex; overflow: hidden; border: 1px solid #bdc8d8; border-radius: 6px; background: #fff; }
.category-search input { flex: 1; min-width: 0; width: 100%; height: 48px; border: 0; padding: 12px 16px; color: var(--ink); font-size: 16px; }
.category-search input::placeholder { color: #52617a; }
.category-search button { display: grid; place-items: center; width: 52px; border: 0; background: #fff; color: var(--ink); }
.category-search:focus-within { outline: 3px solid #0868f933; border-color: var(--blue); }
.category-search input:focus-visible { outline-offset: -3px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 20px; font-size: 13px; }
.results-toolbar p { margin: 0; color: #52617a; line-height: 1.5; }
.results-toolbar label { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.results-toolbar select { min-height: 44px; font: inherit; color: var(--ink); padding: 8px 30px 8px 12px; border: 1px solid #bdc8d8; border-radius: 5px; background: #fff; }
select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters[hidden] { display: none; }
.active-filters button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid #b5cbed; border-radius: 5px; color: #07428e; background: #edf5ff; font-size: 12px; }
.active-filters button:hover { background: #dceaff; border-color: #0753c6; }
.active-filters .ui-icon { width: 14px; height: 14px; }
.category-results .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.category-results .product-card .card-body h3 { font-size: 14px; }
.category-results .card-view { font-size: 13px; }
.category-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.category-pagination button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #bdc8d8; border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; }
.category-pagination button[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-disclaimer { color: #52617a; font-size: 12px; line-height: 1.6; text-align: center; margin-top: 24px; }
.category-results .empty-state { min-height: 300px; }
.category-results .empty-state h2 { font-size: 22px; margin: 0; }
@media (max-width: 1100px) { .category-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; } .category-results .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .category-heading { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 22px; margin-bottom: 24px; }
  .category-layout { grid-template-columns: 1fr; gap: 20px; }
  .filter-panel { border: 1px solid #bdc8d8; border-radius: 6px; }
  .filter-panel > summary { font-size: 15px; padding: 12px 16px; }
  .filter-panel > summary::after { content: ''; flex: none; width: 18px; height: 18px; background: currentColor; mask: url('./assets/icons/lucide/chevron-down.svg') center / contain no-repeat; -webkit-mask: url('./assets/icons/lucide/chevron-down.svg') center / contain no-repeat; margin-left: auto; }
  .filter-panel[open] > summary::after { transform: rotate(180deg); }
  .filter-content { padding: 0 16px 16px; }
  .facet-option { min-height: 44px; }
}
@media (max-width: 540px) { .results-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; } .results-toolbar label { width: 100%; justify-content: space-between; } .results-toolbar select { flex: 1; max-width: 210px; } .category-main { padding-block: 22px 48px; } .category-heading h1 { font-size: 28px; } }
@media (max-width: 420px) { .category-results .product-grid { grid-template-columns: 1fr; } .category-results .product-card .card-body h3 { font-size: 17px; } .category-results .card-view { font-size: 15px; } }
.results-display { display: flex; align-items: center; gap: 16px; }
.category-main .breadcrumbs { color: #58677d; }
.category-heading { padding-bottom: 26px; margin-bottom: 28px; }
.category-layout { gap: 28px; }
.filter-panel > summary { font-size: 18px; font-weight: 600; }
.sidebar-categories a { border-radius: 8px; }
.price-filter h2, .facet-group summary { font-weight: 600; }
.facet-option { border-radius: 6px; padding-inline: 6px; }
.facet-option:hover { background: #f6f8fc; }
.facet-option:has(input:disabled):hover { background: transparent; }
.category-search { border-color: #d9e2ef; border-radius: 10px; }
.category-search input, .category-search button { background: #fafbfd; }
.results-toolbar { margin-block: 22px; }
.active-filters button { border-radius: 8px; border-color: #dae5f5; }
.category-pagination { gap: 6px; margin-top: 36px; }
.category-pagination button { border-radius: 8px; border-color: #e0e6ee; }
.category-pagination button:hover:not(:disabled):not([aria-current]) { background: #f0f5fc; }
.results-toolbar select { appearance: none; background: #fff url('./assets/icons/lucide/chevron-down.svg') right 12px center / 16px no-repeat; border-color: #e0e6ee; border-radius: 8px; }
.view-switch { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.view-switch button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #52617a; }
.view-switch button[aria-pressed='true'] { background: #edf3fc; color: #0753c6; }
.view-switch button:hover { background: #f2f5f9; }
.view-switch .ui-icon { width: 20px; height: 20px; }
.icon-grid-layout { mask-image: url('./assets/icons/lucide/grid-layout.svg'); -webkit-mask-image: url('./assets/icons/lucide/grid-layout.svg'); }
.icon-list-layout { mask-image: url('./assets/icons/lucide/list-layout.svg'); -webkit-mask-image: url('./assets/icons/lucide/list-layout.svg'); }
.category-results .product-grid.is-list { grid-template-columns: minmax(0, 1fr); }
.category-results .is-list .product-card { flex-direction: row; gap: 24px; }
.category-results .is-list .card-media { width: 180px; flex: none; aspect-ratio: 1; }
.category-results .is-list .card-body { padding-top: 0; justify-content: center; }
.category-results .is-list .card-body h3 { min-height: 0; font-size: 16px; }
.category-results .is-list .card-actions { margin-top: 12px; max-width: 280px; }
@supports (appearance: base-select) {
  .results-toolbar select, .results-toolbar select::picker(select) { appearance: base-select; }
  .results-toolbar select { background-image: none; padding: 10px 12px; gap: 20px; }
  .results-toolbar select::picker(select) { margin-top: 8px; padding: 6px; border: 1px solid #e0e6ee; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 12px 28px #061a3914; }
  .results-toolbar select option { padding: 12px; min-height: 44px; border-radius: 6px; font-size: 14px; }
  .results-toolbar select option:hover, .results-toolbar select option:focus { background: #f0f5fc; }
  .results-toolbar select option:checked { background: #eaf2ff; color: #0753c6; }
}
@media (max-width: 540px) {
  .results-display { width: 100%; flex-wrap: wrap; gap: 10px; }
  .results-display label { flex: 1; width: auto; }
  .results-display select { min-width: 0; }
  .category-results .is-list .product-card { gap: 14px; }
  .category-results .is-list .card-media { width: 100px; align-self: center; }
  .category-results .is-list .card-body h3 { font-size: 14px; }
  .category-results .is-list .card-prices strong { font-size: 23px; }
  .category-results .is-list .card-actions { flex-wrap: wrap; }
}

.qn-catalog-form.is-enhanced .filter-apply{display:flex;min-height:44px;width:100%;justify-content:center;margin-top:20px}.filter-apply[aria-busy=true]{cursor:progress}@media(max-width:800px){.category-search input{font-size:16px}.filter-panel .filter-apply{position:sticky;bottom:12px;z-index:4}}
