* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #222;
}

header {
  background-color: white;
  padding: 25px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header h1 {
  margin-bottom: 8px;
}

main {
  max-width: 1100px;
  margin: 25px auto;
  padding: 0 15px;
}

.search-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.category-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.category-box button {
  padding: 10px 16px;
  border: 1px solid #222;
  background-color: white;
  cursor: pointer;
  border-radius: 4px;
}

.category-box button:hover,
.category-box button.active {
  background-color: #222;
  color: white;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 6px;
}

.discount {
  color: #0b7a28;
  font-weight: bold;
}
