.catalog-search-form {
  grid-template-columns: minmax(260px, 2fr) minmax(160px, 1fr) minmax(150px, 1fr) auto;
}

.catalog-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  scroll-margin-top: 190px;
  border-color: rgba(29, 155, 240, 0.28);
}

.catalog-result-summary h2 {
  margin: 0.15rem 0 0.35rem;
}

.catalog-refine-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
}

.catalog-refine-panel summary span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.catalog-refine-panel[open] summary {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.catalog-results-column {
  min-width: 0;
}

.catalog-browse-shell.catalog-search-active {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-search-active .catalog-browse-sidebar {
  display: none;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.catalog-pagination-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.catalog-page-status {
  font-weight: 700;
  color: var(--muted);
}

.catalog-page-current {
  background: var(--brand-2);
  color: #07121b;
  border-color: transparent;
}

.catalog-near-match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.catalog-near-match-card {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  text-decoration: none;
}

.catalog-near-match-card span,
.catalog-near-match-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .catalog-search-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .catalog-result-summary,
  .catalog-pagination {
    display: grid;
  }

  .catalog-result-summary {
    scroll-margin-top: 390px;
  }

  .catalog-pagination-links {
    justify-content: flex-start;
  }

  .catalog-result-summary .button-link {
    width: 100%;
    text-align: center;
  }

  .catalog-refine-panel summary {
    display: grid;
  }
}
