.catalog-filter-toggle { display: none; }

.catalog-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: .15rem 0 .45rem;
  scrollbar-width: thin;
}

.catalog-chips button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.filter-title__actions { display: flex; align-items: center; gap: .55rem; }
.catalog-filter-close { display: none; border: 0; border-radius: 50%; background: #e2e8f0; color: #334155; width: 30px; height: 30px; padding: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; }

@media (max-width: 767px) {
  .catalog-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .65rem;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
  }

  .catalog-filters.is-open {
    display: block;
    position: fixed;
    z-index: 1060;
    inset: 72px 12px 68px;
    /* Override the desktop `height: max-content`: with a fixed panel that
       makes the panel taller than the viewport, so the page—not the filters—
       receives the swipe. */
    height: auto;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 16px 42px rgba(15, 23, 42, .2);
  }

  .catalog-filter-close { display: inline-grid; place-items: center; }
}
