body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #2b2b2b;
  background-color: #f9f9f9;
  padding-top: 80px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #2e7d32;
  color: white;
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
}

.dark-mode-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  background: url("images/banner.jpg") center/cover no-repeat;
  color: black;
  text-align: center;
  padding: 100px 20px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: green;
}

.btn {
  background: #66bb6a;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: #388e3c;
}

/* Products Section */
.products-section {
  padding: 60px 20px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease;
}

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

.product-card img {
  width: 100%;
  border-radius: 10px;
}

.product-card h3 {
  margin: 15px 0 10px;
}

.product-card button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.product-card button:hover {
  background: #1b5e20;
}

/* About & Contact Sections */
.about-section,
.contact-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.about-section p,
.contact-section p {
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #2e7d32;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.cart-section {
  max-width: 800px;
  margin: 100px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Toggle Button */
.dark-mode-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  margin-left: 20px;
}

.dark-mode-btn:hover {
  opacity: 0.8;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .header {
  background: #1b5e20;
  border-bottom: 2px solid #2e7d32;
}

body.dark-mode .hero {
  background-color: #0d3d1a;
  color: #e0e0e0;
}

body.dark-mode .hero-content h2 {
  color: #81c784;
}

body.dark-mode .btn {
  background: #2e7d32;
  color: white;
}

body.dark-mode .btn:hover {
  background: #1b5e20;
}

body.dark-mode .products-section {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .product-card {
  background: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.dark-mode .product-card h3,
body.dark-mode .product-card p {
  color: #e0e0e0;
}

body.dark-mode .product-card button {
  background: #2e7d32;
  color: white;
}

body.dark-mode .product-card button:hover {
  background: #1b5e20;
}

body.dark-mode .about-section,
body.dark-mode .contact-section {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .footer {
  background: #1b5e20;
  color: #e0e0e0;
}

body.dark-mode .footer a {
  color: #81c784;
}

body.dark-mode .cart-section {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .cart-item {
  border-bottom: 1px solid #444;
}

body.dark-mode .cart-item h4,
body.dark-mode .cart-item p {
  color: #e0e0e0;
}

body.dark-mode .cart-summary {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode #buy-now {
  background: #2e7d32;
  color: white;
}

body.dark-mode #buy-now:hover {
  background: #1b5e20;
}

.cart-item {
  text-align: left;
  margin-bottom: 20px;
}

.cart-item button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.cart-item button:hover {
  background: #1b5e20;
}

.cart-summary {
  text-align: center;
  margin-top: 20px;
}

#buy-now {
  background: #66bb6a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#buy-now:hover {
  background: #388e3c;
}

.header-controls {
  display: none;
}

.hamburger {
  display: none;
}

.mobile-nav {
  display: none;
}

.dark-mode-btn:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: -50%;
    width: 50%;
    height: calc(100vh - 60px);
    background: #2e7d32;
    transition: left 0.3s ease;
    z-index: 999;
  }
  .mobile-nav.open {
    left: 0;
  }
  .mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-bottom: 1px solid #388e3c;
    font-weight: 500;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .product-card {
    padding: 15px;
  }
  .product-card img {
    height: 150px;
    object-fit: cover;
  }
  .hero {
    padding: 50px 20px;
  }
  .hero-content h2 {
    font-size: 2rem;
  }
  .about-section,
  .contact-section {
    padding: 40px 20px;
  }
  .footer {
    padding: 15px;
  }
}
.checkout-section {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkout-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

#checkout-form {
  display: flex;
  flex-direction: column;
}

#checkout-form label {
  font-weight: 600;
  margin-top: 10px;
}

#checkout-form input,
#checkout-form textarea,
#checkout-form select {
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

#checkout-form button {
  margin-top: 20px;
  background: #2e7d32;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

#checkout-form button:hover {
  background: #1b5e20;
}
