* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
}
.hero {
  width: 100%;
  height: 450px;
  background: url("../images/Banner.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 60px;
  color: #124f2a;
}

.hero h2 {
  font-size: 44px;
  line-height: 1.3;
  font-weight: 600;
  max-width: 600px;
}

.hero-buttons {
  margin-top: 20px;
}

.hero-buttons button {
  padding: 12px 28px;
  border-radius: 5px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  margin-right: 15px;
  transition: 0.2s ease-in-out;
}

.farmer-button {
  background: #124f2a;
  color: #fff;
}

.farmer-button:hover {
  background: #0e3f22;
}

.buyer-button {
  background: #fff;
  color: #124f2a;
  border: 2px solid #124f2a;
}

.buyer-button:hover {
  background: #124f2a;
  color: #fff;
}

.products-section {
  padding: 40px 60px;
  background-color: #ffffff;
}

.products-section h2 {
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 600;
  color: #1a1a1a;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.product-card {
  background: #f0f4ec;                 
  border: 1px solid #d8e3d3;          
  padding: 14px;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.product-card p{
  margin-bottom: 10px;
}
.product-img {
  width: 100%;
  height: 140px;            
  border-radius: 12px;
  overflow: hidden;
  background: #dfe7da;
  margin-bottom: 10px;
}

.product-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;        
  display: block;
}

.product-info h3{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price {
  margin: 0;
  font-size: 14px;
}

.farmer {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}
.view-btn {
  margin-top: 10px;
  background: #2ecc71;
  color: white;
  border: none;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: block;
}

.view-btn:hover{
  filter: brightness(0.95);
}

.about {
  padding: 50px 40px;
}

.about h2 {
  text-align: left;
  margin-left: 25px;
  font-size: 28px;
  margin-bottom: 40px;
}

.about-container {
  display: flex;
  justify-content: space-around; 
  align-items: flex-start;
  text-align: center;
  flex-wrap: wrap;
  gap: 40px;
}
.about-info {
  width: 280px;
}

.about-info img {
  width: 180px;
  height: auto;
  margin-bottom: 15px;
}

.about-info h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}

/* Mobile view */
@media (max-width: 768px) {

  .hero {
      padding-left: 30px;
      height: 350px;
  }

  .hero h2 {
      font-size: 30px;
  }

  .product-card {
      width: 100%;
  }

  .about-info {
      width: 100%;
      margin-bottom: 20px;
  }
}
