/* /brands index page — discovery hub for every brand in the catalog.
   Renders as a responsive grid of cards; each card links to /brand/<slug>. */

.brands-main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 5rem }

.brands-header { margin-bottom: 1.75rem }
.brands-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--accent); margin-bottom: .35rem;
}
.brands-header p { color: var(--muted); font-size: .92rem }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
}

.brand-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: .9rem; text-decoration: none;
  color: inherit; display: flex; flex-direction: column; gap: .65rem;
  transition: border-color .15s, transform .15s;
}
.brand-card:hover { border-color: var(--accent); transform: translateY(-1px) }

.brand-card-img {
  width: 100%; height: 0; padding-top: 56%; position: relative;
  border-radius: 8px; overflow: hidden;
  background: var(--surface2); border: 1px solid var(--border2);
}
.brand-card-img > img,
.brand-card-img > .brand-card-fallback {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.brand-card-img > img { object-fit: cover; display: block }
.brand-card-img > .brand-card-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.brand-card-meta { display: flex; flex-direction: column; gap: .2rem }
.brand-card-name {
  font-size: .95rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-card-stats {
  font-size: .72rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .35rem;
}

.brands-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--muted); font-size: .95rem;
  border: 1px dashed var(--border2); border-radius: 12px;
}
