/**
 * WeUtilities — grid de bancos de semillas ({marcas}).
 *
 * @author    MatillaPlant
 * @copyright MatillaPlant
 * @license   AFL-3.0
 */

.we-marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 1.5rem 0;
}

.we-marcas-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid #eaeaea;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.we-marcas-card:hover,
.we-marcas-card:focus-visible {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
  border-color: #dfe6d2;
  outline: none;
}

.we-marcas-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  margin-bottom: 4px;
}

.we-marcas-card__img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.we-marcas-card__name {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: #7db122;
  line-height: 1.3;
}

.we-marcas-card__count {
  display: block;
  font-size: 13px;
  color: #888;
  line-height: 1.3;
}

@media (max-width: 575px) {
  .we-marcas-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .we-marcas-card {
    padding: 16px 12px;
  }
}
