.cat-filters {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 18px 18px 0;
  font-size: 14px;
  color: #1f2329;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  -webkit-tap-highlight-color: transparent; }
  .cat-filters button,
  .cat-filters label,
  .cat-filters input {
    -webkit-tap-highlight-color: transparent; }
  .cat-filters--busy {
    pointer-events: none; }
    .cat-filters--busy::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.6);
      -webkit-backdrop-filter: blur(1px);
              backdrop-filter: blur(1px);
      z-index: 5; }
  .cat-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px; }
  .cat-filters__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em; }
  .cat-filters__clear {
    border: 0;
    background: none;
    color: #8a9099;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease; }
    .cat-filters__clear:hover {
      color: #1f2329;
      text-decoration: underline; }
  .cat-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px; }
  .cat-filters__apply {
    position: sticky;
    bottom: 0;
    margin: 0 -18px;
    padding: 14px 18px;
    background: linear-gradient(to top, #ffffff 70%, rgba(255, 255, 255, 0)); }
  .cat-filters__apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #ffd200;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    cursor: pointer;
    outline: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, -webkit-filter 0.15s ease, -webkit-transform 0.05s ease;
    transition: filter 0.15s ease, transform 0.05s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    transition: filter 0.15s ease, transform 0.05s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, -webkit-filter 0.15s ease, -webkit-transform 0.05s ease; }
    .cat-filters__apply-btn:hover {
      -webkit-filter: brightness(0.95);
              filter: brightness(0.95); }
    .cat-filters__apply-btn:active {
      -webkit-transform: translateY(1px);
              transform: translateY(1px); }
    .cat-filters__apply-btn:disabled {
      background: #eef0f2;
      color: #8a9099;
      cursor: default;
      -webkit-filter: none;
              filter: none;
      -webkit-transform: none;
              transform: none; }
    .cat-filters__apply-btn--dirty {
      box-shadow: 0 4px 14px rgba(255, 210, 0, 0.5); }
  .cat-filters__apply-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8eaed;
  background: #f5f6f8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #1f2329;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease; }
  .cat-chip:hover {
    background: #eceef1;
    border-color: #d7dade; }
  .cat-chip__x {
    font-size: 15px;
    line-height: 1;
    color: #8a9099; }

.cat-section {
  border-top: 1px solid #e8eaed;
  padding: 4px 0; }
  .cat-section__head {
    display: flex;
    align-items: center;
    width: 100%;
    border: 0;
    background: none;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
    text-align: left;
    outline: none;
    -webkit-tap-highlight-color: transparent; }
    .cat-section__head:focus, .cat-section__head:focus-visible, .cat-section__head:active {
      outline: none;
      box-shadow: none; }
  .cat-section__name {
    flex: 1; }
  .cat-section__badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-right: 8px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 600; }
  .cat-section__chevron {
    width: 16px;
    height: 16px;
    color: #8a9099;
    transition: -webkit-transform 0.2s ease;
    transition: transform 0.2s ease;
    transition: transform 0.2s ease, -webkit-transform 0.2s ease;
    flex-shrink: 0; }
  .cat-section__body {
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
    transition: max-height 0.25s ease;
    padding-bottom: 10px;
    scrollbar-width: thin; }
  .cat-section__more {
    border: 0;
    background: none;
    color: #2b6cb0;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0 2px; }
    .cat-section__more:hover {
      text-decoration: underline; }
  .cat-section--closed .cat-section__chevron {
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg); }
  .cat-section--closed .cat-section__body {
    max-height: 0;
    padding-bottom: 0; }

.cat-search {
  width: 100%;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.15s ease; }
  .cat-search:focus {
    border-color: #1a1a1a; }

.cat-price {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px; }
  .cat-price__input {
    width: 100%;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease; }
    .cat-price__input:focus {
      border-color: #1a1a1a; }
  .cat-price__sep {
    color: #8a9099; }

.cat-options {
  list-style: none;
  margin: 0;
  padding: 0; }

.cat-option--empty {
  color: #8a9099;
  font-size: 13px;
  padding: 6px 0; }

.cat-option__label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: background 0.12s ease; }
  .cat-option__label:hover {
    background: #f5f6f8; }

.cat-option__box {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0; }

.cat-option__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.6px solid #c7cbd1;
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.12s ease, background 0.12s ease;
  position: relative; }

.cat-option__box:checked + .cat-option__check {
  background: #1a1a1a;
  border-color: #1a1a1a; }
  .cat-option__box:checked + .cat-option__check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg); }

.cat-option__box:focus-visible + .cat-option__check {
  box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.45); }

.cat-option__name {
  flex: 1;
  line-height: 1.3; }

.cat-option__count {
  color: #8a9099;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums; }

