/* Brands directory + detail pages */

.brands-intro .section-lede:last-of-type {
  margin-bottom: 24px;
}

.brands-finance-cta {
  text-align: center;
  margin-bottom: 40px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.brand-card:hover,
a.brand-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.brand-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
}

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

.brand-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
}

.brand-grid--accessories .brand-card-logo {
  height: 70px;
}

/* Brand detail */

.brand-detail-back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-green-dark);
}

.brand-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.brand-detail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 12px;
}

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

.brand-detail-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
}

.brand-detail-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.brand-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.brand-detail-gallery li {
  border-radius: 12px;
  overflow: hidden;
}

.brand-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .brand-detail-header {
    flex-direction: column;
    text-align: center;
  }
}
