/* Category listing. Prefix: ct-. Cards, chips, select and empty state come from components. */

/* Category artwork set by the shop. Contain keeps text-bearing artwork uncropped. */
.ct-cover { margin-bottom: var(--sf-space-5); border: 1px solid var(--sf-border); border-radius: var(--sf-radius-lg); }
.ct-cover > img { object-fit: contain; }

/* Filter + sort row. Hidden until category.js is running (it only works with JavaScript). */
.ct-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sf-space-3) var(--sf-space-4); margin-bottom: var(--sf-space-5); }
.ct-sort { display: flex; align-items: center; gap: var(--sf-space-3); flex: 1 1 220px; }
.ct-sort .sf-label { flex-shrink: 0; margin: 0; }
.ct-sort .sf-select { flex: 1; min-width: 0; }

/* Each card sits in a wrapper that carries the filter data; keep the cards equal height. */
.ct-item { display: grid; min-width: 0; }

@media (min-width: 768px) {
  .ct-toolbar { margin-bottom: var(--sf-space-6); }
  .ct-sort { flex: 0 1 280px; }
}
@media (min-width: 1024px) {
  /* Keep the artwork a strip on wide screens so the products stay above the fold. */
  .ct-cover { aspect-ratio: 16 / 5; height: auto; }
}
