* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}
header img {
  max-height: 80px;
}
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #007bff;
}

/* Hero Banner */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
}
.hero h2 { font-size: 40px; margin-bottom: 10px; }
.hero p { font-size: 18px; }

/* Section Headings */
.section { padding: 40px; }
.section h3 {
  margin-bottom: 20px;
  font-size: 24px;
  border-bottom: 2px solid #007bff;
  display: inline-block;
}

/* Product Grid */
.products, .categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.product, .category {
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product img, .category img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.product:hover, .category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product a, .category a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product a:hover, .category a:hover { color: #333; }

/* Product Detail Page */
.product-detail {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  background-color: #fff;
}
.product-detail img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}
.product-detail h2, .product-detail h4, .product-detail p, .product-detail h3 {
  margin-bottom: 10px;
}
.quantity-selector { margin: 20px 0; }
.quantity-selector input {
  padding: 8px;
  width: 60px;
  text-align: center;
}
input[type="number"] {
  width: 170px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type="number"]:hover {
  border-color: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
}
input[type="number"]:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

/* Pay Button */
.pay-button {
  background-color: #099c30;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.pay-button:hover {
  background-color: #11410c;
  transform: scale(1.05);
}

/* Promo Banner */
.promo {
  margin: 40px 0;
  text-align: center;
}
.promo img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}
.promo p {
  font-size: 20px;
  font-weight: bold;
  color: #007bff;
}

/* About & Signup */
.about-signup {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px;
}
.about, .signup { flex: 1; }
.signup button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.signup button:hover { background-color: #0056b3; }

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
  header { flex-direction: column; }
  nav { margin-top: 10px; }
  .about-signup { flex-direction: column; }
  .products, .categories { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  header { flex-direction: column; padding: 10px; }
  header img { width: 70%; max-height: 60px; margin-bottom: 10px; }
  nav { flex-wrap: wrap; justify-content: center; }
  nav a { margin: 6px; font-size: 14px; }
  .product, .category { padding: 15px; }
  .product img, .category img { width: 100%; height: auto; }
  .product-detail { margin: 15px; padding: 15px; }
  .product-detail img { max-height: 300px; }
  .quantity-selector { flex-direction: column; align-items: center; }
  .quantity-selector input { width: 100%; max-width: 240px; margin-bottom: 10px; font-size: 15px; }
  .pay-button { width: 100%; max-width: 240px; padding: 12px; font-size: 16px; }
  .hero { padding: 30px 10px; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 14px; }
}
