/* E1.5 · Descubrimiento, filtros y estados del catálogo */
.catalog-filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, auto) auto;
  align-items: end;
  gap: .75rem;
}

.catalog-filter-panel > input,
.catalog-filter-panel > select {
  min-height: 46px;
}

.catalog-filter-panel > select {
  width: auto;
  min-width: 190px;
}

.catalog-mobile-filter {
  display: none;
  width: 100%;
  margin: 0 0 .85rem;
  justify-content: space-between;
}

.catalog-clear {
  min-height: 46px;
  white-space: nowrap;
}

.catalog-clear[hidden] {
  display: none;
}

.catalogue-result-status {
  min-height: 1.5em;
  color: var(--muted);
  font-weight: 720;
}

.category-grid,
.subcategory-grid,
.category-content .grid,
.catalog-search-products {
  align-items: stretch;
}

.category-card,
.subcategory-card,
.category-content .card,
.catalog-search-products .card {
  height: 100%;
}

.category-card > div,
.category-content .card-body,
.catalog-search-products .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.category-card .text-link,
.category-content .card-body > p:last-child,
.catalog-search-products .card-body > p:last-child {
  margin-top: auto;
}

.catalog-empty-state {
  max-width: none;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px dashed color-mix(in srgb, var(--action) 45%, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.catalog-empty-state h2,
.catalog-empty-state strong {
  color: var(--text);
}

.catalog-empty-state .catalog-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.catalog-empty-state .button {
  margin-top: .85rem;
}

.dark .catalog-empty-state {
  background: var(--surface);
}

@media (max-width: 760px) {
  .catalog-mobile-filter {
    display: flex;
  }

  .catalog-filter-panel {
    display: none;
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
  }

  .catalog-filter-panel[data-open="true"] {
    display: grid;
  }

  .catalog-filter-panel > select,
  .catalog-clear {
    width: 100%;
  }

  .catalogue-result-status {
    margin-top: .4rem;
  }
}

