/* Brands section — uses the same palette and card style as the existing product pages. */

/* ---- /brands ---- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 8px 0 60px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #2563eb;
  color: inherit;
}

.brand-card-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.brand-card-logo img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.brand-card-initial {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.brand-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.brand-card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px;
}

.brand-card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-card-count {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
}

/* ---- /brands/{slug} ---- */
.brand-breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 16px 0 0;
}

.brand-breadcrumb a {
  color: #2563eb;
}

.brand-breadcrumb span {
  margin: 0 6px;
}

.brand-breadcrumb .current {
  margin: 0;
  color: #374151;
}

.brand-header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 16px;
}

.brand-header-logo img {
  max-height: 44px;
  max-width: 180px;
  object-fit: contain;
}

.brand-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.brand-chip {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.brand-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.brand-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}


/* ---- Product page brand line ---- */
.product-brand-line {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 4px 0 8px;
}

.product-brand-line a {
  color: #2563eb;
  font-weight: 600;
}

@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .brand-card-logo {
    height: 96px;
    padding: 16px;
  }
}
