@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;500;600&family=Raleway:wght@400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #faf3e0;
  font-family: "Raleway", sans-serif;
}

/* ================= PRODUCTS ================= */
.products {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px;
  background-color: #faf3e0;
  text-align: center;
}

/* Heading Styling */
.products h5 {
  display: block;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #2f3e1f;
  font-family: "Open Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.products h2 {
  width: 100%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  color: #4f6d3a;
  font-weight: 700;
  font-size: 48px;
  margin-bottom: 40px;
}

.products h5,
.products h2 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Filter Buttons Alignment */
.filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 60px;
  width: 100%;
}

.filters button {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 25px;
  border-radius: 50px;
  border: 2px solid #8a9a5b;
  background: transparent;
  color: #4f6d3a;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.filters .active {
  background: #4f6d3a !important;
  border-color: #4f6d3a !important;
  color: #faf3e0 !important;
}

/* Product Grid Layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
  margin: 0 auto 40px auto;
}

.product-card {
  background: #faf3e0;
  border: 1px solid rgba(138, 154, 91, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: background 0.3s ease;
  margin: -0.5px;
}

.product-image {
  background: rgba(79, 109, 58, 0.5);
  border-radius: 4px;
  padding: 20px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.product-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-card:hover {
  background: rgba(212, 232, 194, 0.3);
  cursor: pointer;
}

.product-card:hover .product-name {
  color: #4f6d3a;
}

/* Product Info Text */
.product-name {
  color: #4f6d3a;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  font-family: "Montserrat", sans-serif;
}

.product-type {
  color: #8a9a5b;
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 5px 0;
}

.product-price {
  color: #2f3e1f;
  font-weight: 800;
  font-size: 16px;
}

/* No Products Found Styling */
.no-products-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: rgba(79, 109, 58, 0.05);
  border: 2px dashed #4f6d3a;
  border-radius: 12px;
  color: #2f3e1f;
  margin-top: 20px;
}

.no-products-message i {
  font-size: 50px;
  color: #4f6d3a;
  margin-bottom: 15px;
  opacity: 0.6;
}

.no-products-message h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.no-products-message p {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: #4f6d3a;
}

.no-products-message strong {
  text-transform: capitalize;
  color: #2f3e1f;
}

/* Product Divider */
.product-footer-divider {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0px 60px 0px;
  gap: 20px;
  color: #4f6d3a;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: bold;
}

.divider-line {
  flex: 1;
  border: none;
  border-top: 1.5px solid #4f6d3a;
}

/* ================= FEATURES ================= */
.features {
  background: #8a9a5b;
  padding: 80px 10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  color: #faf3e0;
  margin-bottom: 80px;
}

.feature {
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(250, 243, 224, 0.3);
}

.feature:last-child {
  border-right: none;
}

.feature-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.feature h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #faf3e0;
}

.feature p {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ================= NEWSLETTER ================= */
.news {
  background: #4f6d3a;
  color: #faf3e0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 100px;
}

.news-content {
  padding: 80px 60px 80px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.news-logo {
  width: 120px;
  margin-bottom: 30px;
}

.news h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 42px; /* Much larger heading based on image_635214.jpg */
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
}

.news p {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 500px;
}

.news-btn {
  color: #faf3e0;
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  transition: 0.2s ease;
  border-radius: 7px;
  background: #8a9a5b;
  width: 220px;
  height: 50px;
  border: none;
  margin-top: 40px;
  margin-left: 27rem;
}

.news-btn:hover {
  background-color: #faf3e0;
  color: #4f6d3a;
  transform: translateY(-2px);
}
.news-image {
  width: 100%;
  height: 100%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* RESPONSIVE VIEWS */
/* ========== TABLET VIEW (max-width: 1024px) ========== */
@media screen and (max-width: 1024px) {
  /* Products Section */
  .products {
    padding: 60px 40px;
  }

  .products h2 {
    font-size: 36px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Features Section */
  .features {
    padding: 60px 5%;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature {
    border-right: none;
    border-bottom: 1px solid rgba(250, 243, 224, 0.3);
    padding-bottom: 40px;
  }

  .feature:last-child {
    border-bottom: none;
  }

  /* Newsletter Section */
  .news {
    grid-template-columns: 1fr;
  }

  .news-content {
    padding: 60px 40px;
    text-align: center;
    order: 2;
  }

  .news-image {
    height: 400px;
    order: 1;
  }

  .news-logo {
    margin: 0 auto 30px auto;
  }

  .news p {
    margin: 0 auto 40px auto;
  }

  .news-btn {
    margin: 20px auto 0 auto;
  }
}

/* ========== MOBILE VIEW (max-width: 768px) ========== */
@media screen and (max-width: 768px) {
  .products {
    padding: 40px 20px;
  }

  .products h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Filters */
  .filters {
    gap: 10px;
    margin-bottom: 40px;
  }

  .filters button {
    padding: 8px 15px;
    font-size: 11px;
  }

  /* Product Grid */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    align-items: center;
    text-align: center;
  }

  .product-image {
    width: 100%;
    height: 250px;
  }

  /* Feature Text */
  .feature h3 {
    font-size: 28px;
  }

  /* Newsletter Typography */
  .news h2 {
    font-size: 30px;
  }

  .news-content {
    padding: 40px 20px;
  }

  /* Divider */
  .product-footer-divider {
    padding: 0 20px 40px 20px;
    font-size: 12px;
  }
}
