/* Reset & base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding: 1rem;
}

#controls {
  display: flex;
  gap: 1rem;
  margin: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
#controls input, #controls select {
  padding: 0.5rem;
  font-size: 1rem;
}


/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  color: #2c3e50;
}

header p {
  font-size: 1rem;
  color: #777;
}

/* Product Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* Each product card */
.item {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.item:hover {
  transform: scale(1.02);
}

.item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.item h2 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.item a {
  font-size: 0.9rem;
  color: #3498db;
  text-decoration: none;
}

.item a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  .item h2 {
    font-size: 1rem;
  }
}
