@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f0faf2;
  color: #2e7d32;
}

header {
  background: #43a047;
  padding: 20px 40px;
  color: white;
  text-align: center;
}

header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 28px;
}

header p {
  margin: 5px 0 0;
  font-weight: 400;
}

main {
  max-width: 960px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.welcome {
  text-align: center;
  margin-bottom: 40px;
}

.welcome h2 {
  font-weight: 600;
  font-size: 26px;
}

.welcome p {
  font-size: 16px;
  color: #4a4a4a;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 128, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 128, 0, 0.2);
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
}

.product-info h3 {
  margin: 0 0 10px;
  color: #2e7d32;
}

.product-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.product-info .price {
  font-weight: 700;
  color: #43a047;
  font-size: 18px;
}

.btn-buy {
  background-color: #43a047;
  color: white;
  border: none;
  padding: 12px 0;
  width: 100%;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border-radius: 0 0 14px 14px;
  transition: background-color 0.3s ease;
}

.btn-buy:hover {
  background-color: #388e3c;
}

footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 20px 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

footer a {
  color: #a5d6a7;
  text-decoration: none;
  font-weight: 600;
  margin-left: 15px;
}

footer a:hover {
  text-decoration: underline;
}

@media(max-width: 480px) {
  header h1 {
    font-size: 22px;
  }

  .welcome h2 {
    font-size: 20px;
  }

  .btn-buy {
    font-size: 14px;
    padding: 10px 0;
  }
}
