/* Golf Cart Battery Source: brand strip with real logos + product_brand archive logo.
   Loaded after main.css (handle gcbs-brand-strip). Overrides main.css section 6. */
/* Logo tile (shared by the brand grid and the brand archive logo panel). */
.gcbs-brand-logo {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 4.25rem; padding: 0.5rem 0.65rem; border-radius: calc(var(--gcbs-radius, 0.75rem) - 0.25rem);
  background: #fff;
}
.gcbs-brand-logo--dark { background: var(--gcbs-charcoal, #18212A); }
.gcbs-brand-logo img,
.gcbs-brand-logo__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.gcbs-brand-logo--text .gcbs-wordmark { font-size: 1.25rem; font-weight: 800; color: var(--gcbs-charcoal, #18212A); }

/* Brand logo grid (v1.0.5): every brand with published products, same tile and logo height everywhere.
   Flex-wrap so a short last row is centred. 3 per row at 360px, up to 8 at 1440px. */
.gcbs-brand-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  list-style: none; margin: 0; padding: 0;
}
.gcbs-brand-grid__item { flex: 0 0 calc((100% - 1.2rem) / 3); min-width: 0; margin: 0; }
@media (min-width: 600px)  { .gcbs-brand-grid__item { flex-basis: calc((100% - 1.8rem) / 4); } }
@media (min-width: 900px)  { .gcbs-brand-grid { gap: 0.75rem; } .gcbs-brand-grid__item { flex-basis: calc((100% - 3.75rem) / 6); } }
@media (min-width: 1200px) { .gcbs-brand-grid__item { flex-basis: calc((100% - 5.25rem) / 8); } }
.gcbs-brand-grid__link {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.35rem;
  height: 100%; min-height: 44px; padding: 0.5rem 0.4rem 0.55rem;
  background: #fff; border: 1px solid var(--gcbs-border, #e5e7eb); border-radius: 10px;
  color: var(--gcbs-charcoal, #18212A); text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a.gcbs-brand-grid__link:hover, a.gcbs-brand-grid__link:focus-visible {
  border-color: var(--gcbs-green-400, #67B160); box-shadow: 0 6px 16px rgba(24,33,42,.10); transform: translateY(-1px);
}
.gcbs-brand-grid .gcbs-brand-logo { width: 100%; height: 3rem; padding: 0.3rem 0.4rem; border-radius: 6px; }
@media (min-width: 900px) { .gcbs-brand-grid .gcbs-brand-logo { height: 3.5rem; } }
.gcbs-brand-grid .gcbs-brand-logo--text .gcbs-wordmark { font-size: 1rem; line-height: 1.1; text-align: center; }
.gcbs-brand-grid__name {
  font-size: 0.75rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--gcbs-charcoal, #18212A);
  overflow-wrap: anywhere;
}
/* Grayscale at rest, full colour on hover/focus: only where hover exists (phones always show colour). */
@media (hover: hover) and (pointer: fine) {
  .gcbs-brand-grid .gcbs-brand-logo img { filter: grayscale(1); opacity: 0.78; transition: filter .25s ease, opacity .25s ease; }
  .gcbs-brand-grid a:hover .gcbs-brand-logo img, .gcbs-brand-grid a:focus-visible .gcbs-brand-logo img { filter: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .gcbs-brand-grid__link, .gcbs-brand-grid .gcbs-brand-logo img { transition: none; }
  a.gcbs-brand-grid__link:hover { transform: none; }
}

/* product_brand archive */
.gcbs-brand-hero { display: flex; justify-content: center; margin: 0 0 1.25rem; }
.gcbs-brand-logo--lg {
  width: auto; min-width: 14rem; max-width: 22rem; height: 7rem; padding: 1rem 1.5rem;
  border: 1px solid var(--gcbs-border, #e5e7eb);
}
.gcbs-brand-logo--lg.gcbs-brand-logo--dark { border-color: transparent; }
@media (max-width: 599px) { .gcbs-brand-grid .gcbs-brand-logo--text .gcbs-wordmark { font-size: 0.9rem; } }
