/* Header scroll-ticker  */
.scroll-ticker {
  width: 100%;
  overflow: hidden;
  background: #d6fc70;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 6px 0;
}

.scroll-track {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.news-ticker {
  display: inline-block;
  margin-right: 80px;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  font-family: "Inter", sans-serif;
  color: #294733;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Infinite scrolling animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* half width because content is duplicated */
  }
}

/* form of product */

/* Container max width and font */
/* .wpcf7 {
  margin: 0 auto;
}

.wpcf7 p label {
  display: block;
  font-weight: 400;
  color: #2d4936;
  font-size: 20px;
  line-height: 25px;
  padding-bottom: 26px;
} */
/* .wpcf7-form-control.wpcf7-text {
    margin-top: 15px;
    display: block;
} */

/* .wpcf7 input.wpcf7-text,
.wpcf7 input.wpcf7-email,
.wpcf7 input.wpcf7-number,
.wpcf7 input.wpcf7-tel,
.wpcf7 textarea.wpcf7-textarea {
  margin-top: 15px;
  width: 100%;
  border: 1px solid #2d4936;
  border-radius: 25px;
  font-size: 14px;
  color: #2d4936;
  outline: none;
  box-sizing: border-box;
  font-weight: 400;
  transition: border-color 0.3s ease;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #7d9b7a;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #aadd00;
}

.wpcf7 textarea.wpcf7-textarea {
  min-height: 50px;
  resize: vertical;
}

.wpcf7 input.wpcf7-submit {
  background-color: #d9f743;
  color: #2d4936;
  border: none;
  padding: 12px 40px 12px 25px; 
  font-weight: 700;
  font-size: 14px;
  border-radius: 25px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  background-image: url('/wp-content/uploads/2025/11/Vector-3.svg');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}
.wpcf7 input.wpcf7-submit:hover {
  background-color: #c0e536;
}
@media (max-width: 600px) {
  .wpcf7 {
    padding: 0 15px;
  }
} */

/* new custom css for the Form */

/* CUSTOM CF7 FORM STYLING (NO CONFLICTS) */

/* Label styling */
.custom-cf7-label {
  font-size: 20px !important;
  display: block;
  color: #294733 !important;
  margin-bottom: 40px !important;
}

/* Inputs + textarea shared styling */
.custom-input-text,
.custom-input-email,
.custom-input-number,
.custom-input-tel,
.custom-input-textarea {
  margin-top: 15px !important;
  width: 100% !important;
  border: 1px solid #2d4936 !important;
  border-radius: 25px !important;
  font-size: 14px !important;
  color: #2d4936 !important;
  /* padding: 10px 15px !important; */
  outline: none !important;
  box-sizing: border-box;
  font-weight: 400;
}

/* Placeholder */
.custom-input-text::placeholder,
.custom-input-email::placeholder,
custom-input-number::placeholder,
.custom-input-tel::placeholder,
.custom-input-textarea::placeholder {
  color: #7d9b7a;
  font-size: 13px;
  font-weight: 400;
  opacity: 1;
}

/* Focus effect */
.custom-input-text:focus,
.custom-input-email:focus,
.custom-input-number:focus,
.custom-input-tel:focus,
.custom-input-textarea:focus {
  border-color: #aadd00;
}

/* Submit button */
.custom-input-submit {
  margin-top: 35px;
  background-color: #d6fc70 !important;
  color: #294733 !important;
  border: none !important;
  padding: 10px 58px 10px 20px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background-color 0.3s ease !important;
  position: relative !important;

  background-image: url("/wp-content/uploads/2025/11/Vector-3.svg");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

/* Submit hover */
.custom-input-submit:hover {
  background-color: #c0e536;
}
.custom-input-text,
.custom-input-email,
.custom-input-number,
.custom-input-tel,
.custom-input-textarea {
  padding: 0px 0px 0px 20px !important;
  height: 40px !important;
}

/* Mobile */
@media (max-width: 600px) {
  /* .custom-cf7-label {
    padding-bottom: 20px;
  } */

  .custom-input-submit {
    margin-top: 0px !important;
  }
}

/* ===============================
   WRAPPER LAYOUT
=============================== */
#product-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

/* ===============================
   PRODUCT GRID
=============================== */
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns like your screenshot */
  gap: 35px;
}

/* ===============================
   PRODUCT CARD
=============================== */
.product-item {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #73b06b;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.product-item:hover {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* ===============================
   PRODUCT IMAGE (FIXED HEIGHT + CROP)
=============================== */
.product-thumb {
  width: 100%;
  height: 320px; /* ⭐ EDIT THIS TO CHANGE IMAGE HEIGHT */
  overflow: hidden;
  border-radius: 16px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ⭐ Perfect crop without stretching */
  object-position: center;
  border-radius: 16px;
}

/* ===============================
   PRODUCT CONTENT
=============================== */
.product-content {
  padding-top: 10px;
}

.product-content h4 {
  font-size: 30px;
  margin-bottom: 15px;
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 800;
  color: #294733;
  line-height: 90px;
  margin-block-end: unset !important;
  margin-block-start: unset !important;
}

.product-content p {
  font-size: 20px;
  margin-bottom: 15px;
  font-family: "inter";
  font-style: normal;
  font-weight: 400;
  color: #294733;
  line-height: 25px;
  margin-block-end: unset !important;
}

button#load-more-btn:focus {
  background-color: unset !important;
}

/* ===============================
   BUTTON
=============================== */
.product-btn {
  font-family: "inter";
  line-height: 27px;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 100px !important;
  border-radius: 25px !important;
  border: 1px solid #294733;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #294733 !important;
  height: 40px !important;
  margin-top: 90px;
  padding: 14.5px 20px 14px 20px !important;
}

.product-btn:hover {
  background: #d6fc70;
}

#load-more-btn.hidden {
  display: none !important;
}

#load-more-btn {
  font-family: "inter";
  line-height: 27px;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 20px !important;
  border-radius: 25px !important;
  border: 1px solid #294733;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #294733 !important;
  height: 40px !important;
  margin-top: 90px;
  padding: 14.5px 20px 14px 20px !important;
  transition: 0s !important;
}
#load-more-btn:hover {
  background: #d6fc70 !important ;
  transition: 0s !important;
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */
/* ===============================
   RESPONSIVE GRID
=============================== */
@media (max-width: 992px) {
  #product-wrapper {
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    gap: 20px;
  }

  .product-content h4 {
    font-size: 24px;
    line-height: 32px;
  }

  .product-content p {
    font-size: 16px;
    line-height: 22px;
  }

  .product-btn {
    font-size: 14px;
    height: 38px;
    margin-top: 20px;
    gap: 10px;
    padding: 10px 16px !important;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    padding: 0px 40px;
  }
  .product-item {
    padding: 30px;
  }

  .product-content h4 {
    font-size: 25px;
    line-height: 30px;
  }

  .product-content p {
    font-size: 14px;
    line-height: 20px;
    padding-top: 35px;
    padding-bottom: 40px;
  }

  .product-btn {
    font-size: 14px;
    padding: 10px 16px !important;
    margin-top: 15px;
    gap: 20px !important;
  }
}

/* =====================================
   SLIDE-IN FILTER PANEL (BY DEFAULT)
===================================== */
.product-filter {
  position: fixed;
  top: 0;
  right: -520px; /* Hidden off-screen */
  width: 490px;
  height: 100vh; /* Ensure full viewport height */
  background: #0d2718;
  color: #cdeb84; /* Light green text to match */
  padding: 20px; /* Adjust padding to avoid overflow issues */
  z-index: 99999;
  transition: right 0.35s ease;
  overflow-y: auto; /* Enable scrolling */
  border-radius: 0;
  box-sizing: border-box; /* Include padding in element's total size */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0px 100px;
}

.product-filter.active {
  right: 0; /* slide in */
}

.product-filter h3 {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.25rem;
  color: #cdeb84;
  text-align: center;
  width: 100%;
}

.product-filter ul {
  list-style: none;
  padding: 0;
  width: 100%;
}

.product-filter ul li {
  margin-bottom: 21px;
}

.product-filter ul li a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border: 1.5px solid #cdeb84;
  border-radius: 50px;
  color: #cdeb84;
  text-decoration: none;
  font-family: "inter";
  font-weight: 400;
  font-size: 20px;
  line-height: 25px;
  transition: background-color 0s ease, color 0s ease;
}

.product-filter ul li a.active,
.product-filter ul li a:hover {
  background-color: #cdeb84;
  color: #0d2718;
}

.filter-close-btn {
  font-family: "inter";
  font-size: 15px;
  line-height: 27px;
  margin-top: 43px;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 30px;
  color: #0d2718;
  padding: 14.5px 20px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  user-select: none;
  transition: 0s;
  border: 1px solid #ffffff !important;

}

.filter-open-btn a {
  cursor: pointer;
}

.filter-close-btn:hover {
  color: #d6fc70 !important;
  background-color: #0d2718 !important;
  border: 1px solid #ffffff !important;
}

.filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99998;
  display: none;
}

.filter-overlay.active {
  display: block;
}
@media (max-width: 1500px) and (min-width: 769px) {
  .product-filter ul li a {
    font-size: 15px !important;
    line-height: 16px !important;
  }
  .product-filter ul {
    width: 90% !important;
  }
  .filter-close-btn {
    margin-top: 0px !important;
    font-size: 12px !important;
    line-height: 5px !important;
  }
}
/* Mobile Responsive: Screens smaller than 768px */
@media (max-width: 767px) {
  .product-filter {
    width: 100vw; /* 80% of viewport width */
    right: -100vw; /* Hide fully off screen */
    padding: 100px 88px; /* reasonable padding */
    box-sizing: border-box;
    border-radius: 0 0 0 12px; /* optional rounded corner on left */
    align-items: stretch;
  }

  .product-filter.active {
    right: 0; /* slide in */
    align-items: center;
  }

  /* Optional: Make product-filter full height on mobile */
  .product-filter {
    height: 100vh;
    overflow-y: auto;
  }

  /* Adjust filter-close-btn on mobile */
  .filter-close-btn {
    background: #fff;
    border-radius: 30px;
    color: #0d2718;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    user-select: none;
    width: fit-content;
  }
}

/* realted product css */

.related-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.related-product-item {
  background: #fff;
  border-radius: 20px;
  border: 2px solid #294733;
  padding: 50px;
}

.related-product-item img {
  border-radius: 20px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
h4.related-title {
  font-size: 30px;
  margin-bottom: 15px;
  font-family: "Sarabun";
  font-style: normal;
  font-weight: 800;
  color: #294733;
  line-height: 90px;
  margin-block-end: 12px !important;
  margin-block-start: 35px !important;
}
.learn-more-btn {
  font-family: "inter";
  line-height: 27px;
  position: relative;
  display: inline-flex !important;
  align-items: center !important;
  gap: 20px !important;
  border-radius: 25px !important;
  border: 1px solid #294733;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: #294733 !important;
  height: 40px !important;
  /* margin-top: 90px; */
  padding: 14.5px 20px 14px 20px !important;
}

.learn-more-btn:hover {
  background: #d6fc70;
}

@media (max-width: 768px) {
  .related-product-grid {
    grid-template-columns: 1fr !important;
    gap: 45px !important;
  }

  .related-product-item {
    padding: 30px !important;
    border-radius: 16px !important;
  }

  .related-product-item img {
    border-radius: 12px !important;
  }

  h4.related-title {
    font-size: 25px !important;
    line-height: 30px !important;
    margin-block-start: 37px !important;
    margin-block-end: 40px !important;
  }

  .learn-more-btn {
    font-size: 13px !important;
    height: 20px !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 20px !important;
  }
}
