
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  background: #fff;
  color: #333;
}

header {
  background: #4fd1a7;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  background: #999;
  color: white;
  padding: 0.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

nav a {
  margin-left: 1rem;
  color: black;
  text-decoration: underline;
}

.search-section {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1 1 200px;
}

.category {
  background: #e0e0e0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.category:hover {
  background: #ccc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
  animation: fadeIn 0.6s ease-in;
}

.tile {
  text-decoration: none;
  color: black;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tile img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile p {
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.tile:hover p {
  color: #4fd1a7;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  .grid {
    padding: 1rem;
  }
}
