/* Favorite brands: extends css/styles.css + css/favorites.css */

.container.favorites-toolbar-wrap .brand-toolbar-hint {
  flex: 0 1 auto;
  align-self: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 56ch;
  margin: 0;
  margin-inline: 0;
  text-align: start;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.container.favorites-toolbar-wrap .brand-toolbar-hint code {
  font-size: 0.86em;
  color: var(--text);
}

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

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px 18px 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(43, 36, 32, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(43, 36, 32, 0.07);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.brand-card:hover {
  border-color: rgba(47, 111, 107, 0.35);
  box-shadow: 0 14px 36px rgba(43, 36, 32, 0.1);
  transform: translateY(-2px);
}

.brand-card:focus {
  outline: none;
  box-shadow: var(--focus), 0 10px 28px rgba(43, 36, 32, 0.07);
}

.brand-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 8px 12px;
}

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

.brand-card__name-fallback {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.brand-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 36ch;
}

.brand-card__cta {
  margin-top: auto;
  pointer-events: none;
}
