body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    color: #333;
  }

  .hero-section {
    position: relative;
    background-image: url("https://source.unsplash.com/1600x900/?organic,vegetables");
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
  }
  
  .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black overlay */
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 1px 1px 5px #000;
  }
  
  .hero-content p {
    font-size: 1.5rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px #000;
  }
    
  header {
    background: #4caf50;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  header input {
    margin-top: 0.5rem;
    padding: 0.5rem;
    width: 60%;
    max-width: 400px;
    border-radius: 6px;
    border: none;
  }
  
  main {
    display: flex;
    padding: 1rem;
    gap: 2rem;
  }
  
  .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    flex: 3;
  }

  #search-input {
    width: 60%;
    max-width: 500px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin: 1.5rem auto;
    display: block;
  }
  
  .products-section {
    text-align: center;
  }
  
  
  .product-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
  }
  
  .product-card h3 {
    margin: 0.5rem 0 0.2rem;
  }
  
  .product-card p {
    margin: 0.2rem 0;
  }
  
  .product-card button {
    background: #4caf50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .cart {
    flex: 1;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .cart ul {
    padding-left: 0;
    list-style: none;
  }
  
  .cart li {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cart button.remove {
    background: red;
    padding: 0.2rem 0.5rem;
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 0.8rem;
  }
  
  /* Modal */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: grid;
    place-items: center;
    z-index: 1000;
  }
  
  .modal.hidden {
    display: none;
  }
  
  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
  }
  
  /* Navbar styles */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    color: white;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
  
  /* Responsive nav */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background: #388e3c;
      width: 100%;
      margin-top: 10px;
      padding: 10px;
      border-radius: 6px;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
    }
  
    header input {
      width: 100%;
    }
  }
  
  /* Hero Section */
.hero-section {
    background-image: url("https://source.unsplash.com/1600x900/?organic,vegetables");
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 1.5rem;
  }
  
  /* Info Sections (About & Contact) */
  .info-section {
    padding: 2rem;
    background: #f1f1f1;
    text-align: center;
  }
  
  .info-section form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .info-section input,
  .info-section textarea {
    padding: 0.7rem;
    border-radius: 6px;
    border: 1px solid #ccc;
  }
  
  .info-section button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 6px;
    cursor: pointer;
  }
  
  /* Smooth scroll */
  html {
    scroll-behavior: smooth;
  }
  
  /* Section IDs spacing */
  section {
    scroll-margin-top: 80px;
  }
  