/* === brands.css === */
/* ---------------------------------------------------------------------------
brands.css -- /marques/, the full brand index.

The home page carousel only carries the brands with real depth behind them
(HOME_BRAND_MIN_PRODUCTS in routers/pages.js). This page is where the rest stay
reachable, so it is built as an index: one bucket per initial, a jump bar on
top, and a card that states the product count instead of implying it.
--------------------------------------------------------------------------- */

.brands-crumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 18px 0 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brands-crumb a { color: #6b7280; }
.brands-crumb a:hover { color: #d10024; }

.brands-head { margin-bottom: 22px; }
.brands-head h1 { margin: 0 0 6px; font-size: 1.7rem; }
.brands-head p { margin: 0; color: #6b7280; font-size: 0.92rem; }

.brands-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 22px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
.brands-alpha a {
  min-width: 32px;
  padding: 5px 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  background: #fff;
}
.brands-alpha a:hover { border-color: #d10024; color: #d10024; }

.brands-group { margin: 26px 0; }
.brands-group h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: #d10024;
  scroll-margin-top: 90px;   /* the header is sticky -- do not hide the anchor */
}

.brands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.brands-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 14px 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.brands-card:hover {
  border-color: #d10024;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.brands-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brands-logo img { max-width: 120px; max-height: 60px; object-fit: contain; }

.brands-initial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f1f3f9;
  color: #4b5563;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brands-name { font-weight: 600; color: #1f2937; font-size: 0.92rem; line-height: 1.25; }
.brands-count { font-size: 0.78rem; color: #9ca3af; }

.brands-empty { color: #6b7280; padding: 30px 0; }

@media (max-width: 480px) {
  .brands-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .brands-logo { height: 48px; }
  .brands-logo img { max-height: 48px; }
}
