.catalogue-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.collection-controls {
  margin: 0 0 18px;
}

.collection-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  background-color: #fff;
  cursor: text;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 51, 51, 0.14);
}

.search-field-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  border: 0;
  outline: 0;
  background: none;
  padding: 0;
  font-size: 16px;
}

.search-field input:focus-visible {
  outline: none;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
}

.sort-control select {
  height: 48px;
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 15px;
  background-color: #fff;
  color: var(--ink);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  min-height: 0;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background-color: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--taupe);
}

.filter-pill[aria-pressed="true"] {
  background-color: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-pill-count {
  font-size: 13.5px;
  opacity: 0.78;
}

.collection-status {
  margin: 16px 0 18px;
}

.collection-count {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.collection-empty {
  padding: 40px 24px;
  text-align: center;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.collection-empty h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.collection-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .collection-inputs {
    flex-wrap: wrap;
  }

  .search-field {
    flex: 1 1 100%;
  }

  .sort-control {
    width: 100%;
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }

  .filter-pill {
    flex: none;
  }
}
