/* styles.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #333;
}

header {
  background-color: #1e88e5;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.cart {
  font-size: 18px;
}

.hero {
  background: linear-gradient(to right, #42a5f5, #478ed1);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero button {
  padding: 12px 24px;
  background: white;
  color: #1e88e5;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  background: #e3f2fd;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
}

.product {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.product:hover {
  transform: translateY(-5px);
}

.product img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.product p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #666;
}

.product .price {
  font-weight: bold;
  color: #1e88e5;
  margin-bottom: 10px;
}

.product button {
  background: #1e88e5;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.product button:hover {
  background: #1565c0;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #eee;
  font-size: 14px;
  color: #666;
}

@media(max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  .products {
    padding: 20px;
  }
}
