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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Header styles */
header {
  background: linear-gradient(to right, #ff9900, #ffcc00);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#searchInput {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  width: 70%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#searchButton {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #ff9900;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#searchButton:hover {
  background-color: #e68a00;
}

.results-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.product-card p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.product-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #ff9900;
  text-decoration: none;
  font-weight: bold;
}

.product-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem;
  color: #777;
  font-size: 0.9rem;
  background-color: #eaeaea;
}

/* Responsive design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .search-container {
    flex-direction: row;
    width: 100%;
  }

  #searchInput {
    width: 70%;
  }
}
