

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #333;
}

header {
  background: #3e046e;
  padding: 20px;
  text-align: center;
  color: rgb(2, 132, 150);
  font-size: 24px;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 16px;
  margin: 10px 0;
}

.product-card p {
  font-weight: bold;
  color: #1e90ff;
}

.product-card button {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.product-card button:hover {
  background: #015e15;
  transform: scale(1.05);
}


@media (max-width: 1024px) {
  header {
    font-size: 20px;
    padding: 15px;
  }
  .product-card h3 {
    font-size: 15px;
  }
  .product-card img {
    height: 130px;
  }
}


@media (max-width: 768px) {
  .product-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 15px;
    gap: 15px;
  }
  .product-card {
    padding: 12px;
  }
  .product-card img {
    height: 120px;
  }
  .product-card h3 {
    font-size: 14px;
  }
  header {
    font-size: 18px;
  }
}


@media (max-width: 480px) {
  header {
    font-size: 16px;
    padding: 10px;
  }
  .product-container {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }
  .product-card img {
    height: 100px;
  }
  .product-card h3 {
    font-size: 13px;
  }
  .product-card button {
    padding: 8px 12px;
    font-size: 14px;
  }
}

