.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filters input,
.filters select {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  background: #2a2a2a;
  color: #eee;
}

#resultsCount {
  margin-bottom: 1rem;
  font-weight: bold;
  color: #bbb;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1e1e1e;
  color: #eee;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  padding: 1rem;
  font-weight: bold;
}

.wishlist-link {
  position: relative;
  color: #2979ff;
  font-size: 1.3rem;
  text-decoration: none;
}

.wishlist-link:hover {
  color: #1c5fd4;
}

#wishlistBadge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff5252;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.card img {
  width: 100%;
  border-radius: 6px;
  background: #444;
}

.info {
  margin-top: 0.6rem;
  flex: 1;
}

.name {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.set {
  font-size: 0.85rem;
  color: #bbb;
}

.meta {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.flag {
  font-size: 1.3rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.price {
  margin-top: 0.4rem;
  font-weight: bold;
}

button {
  margin-top: 0.6rem;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #2979ff;
  color: white;
  font-weight: bold;
}

button:hover {
  background: #1c5fd4;
}

#pagination {
  text-align: center;
  margin-top: 1rem;
}

#pagination button {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #2979ff;
  color: white;
}

#pagination button:disabled {
  background: #555;
  cursor: not-allowed;
}

#pagination span {
  font-weight: bold;
}

@media(max-width: 600px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .card img {
    height: auto;
  }
}
