.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.product-card {
  border: 1px solid var(--wa-border);
  background: var(--wa-surface);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: var(--wa-accent);
}
.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  margin-bottom: 0.75rem;
}
.product-card .placeholder {
  width: 100%;
  height: 160px;
  background: var(--wa-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wa-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.product-card h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.product-card .brand {
  font-size: 0.8rem;
  color: var(--wa-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
}
.product-allocated-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wa-accent);
  border: 1px solid color-mix(in srgb, var(--wa-accent) 45%, transparent);
  background: color-mix(in srgb, var(--wa-accent) 12%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  line-height: 1.2;
}
.product-sightings-filter-disabled {
  opacity: 0.55;
}
.product-allocated-filter-disabled {
  opacity: 0.55;
}
.product-unicorn-filter-disabled {
  opacity: 0.55;
}
.product-unicorn-filter-disabled .form-check-label {
  cursor: not-allowed;
}
.product-secondary-market-filter-disabled {
  opacity: 0.55;
}
.product-secondary-market-filter-disabled .form-check-label {
  cursor: not-allowed;
}
.product-stock-increase-filter-disabled {
  opacity: 0.55;
}

/* Phones and small tablets: a fixed 2-up grid keeps cards from filling the
   screen one at a time. Stays 2 columns even on the narrowest phones. */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .product-card {
    padding: 0.65rem;
  }
  .product-card img,
  .product-card .placeholder {
    height: 110px;
    margin-bottom: 0.5rem;
  }
  .product-card h2 {
    font-size: 0.9rem;
  }
  .product-card .brand {
    font-size: 0.72rem;
  }
}
