/* ========== PRODUCTS SECTION ========== */
.products-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 130px 20px;
}

.product-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* ADDED: Fixed height for scrolling */
  max-height: calc(100vh - 160px);
}

/* Left column */
.product-list {
  background-color: #43b048;
  color: #fff;
  padding: 40px 30px;
  width: 25%;
  min-width: 240px;
  /* ADDED: Scrolling for left sidebar */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* ADDED: Custom scrollbar for webkit browsers */
.product-list::-webkit-scrollbar {
  width: 6px;
}

.product-list::-webkit-scrollbar-track {
  background: transparent;
}

.product-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.product-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.product-list h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  /* ADDED: Sticky header */
  /* position: sticky; */
  /* top: 0; */
  background-color: #43b048;
  /* padding-bottom: 10px;
  z-index: 1; */
}

.product-list ul {
  list-style: none;
}

.product-list li {
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.product-list li.active {
  background-color: #2d8c3e;
  transform: translateX(5px);
}

/* Right column */
.product-display {
  flex: 1;
  padding: 40px;
  background: linear-gradient(135deg, #f1f8e9, #ffffff);
  /* ADDED: Scrolling for right content area */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #b4d7b0 #f1f8e9;
}

/* ADDED: Custom scrollbar for right side */
.product-display::-webkit-scrollbar {
  width: 8px;
}

.product-display::-webkit-scrollbar-track {
  background: #f1f8e9;
  border-radius: 4px;
}

.product-display::-webkit-scrollbar-thumb {
  background: #43b048;
  border-radius: 4px;
}

.product-display::-webkit-scrollbar-thumb:hover {
  background: #2d8c3e;
}

.product-display h2 {
  margin-bottom: 15px;
  color: #2e7d32;
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  text-align: center;
  /* ADDED: Sticky header for product title */
  /* position: sticky; */
  /* top: 0;
  background: linear-gradient(135deg, #f1f8e9, #ffffff);
  padding-bottom: 10px;
  z-index: 1; */
}

.product-display > p {
  margin-bottom: 35px;
  color: #555;
  text-align: center;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Image grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  width: 100%;
}

.image-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-card h3 {
  font-size: 1.2rem;
  margin: 15px;
  color: #333;
  font-weight: 600;
}

.image-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0 15px 20px 15px;
  line-height: 1.5;
}

/* ========== MODAL STYLES ========== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 1000px;
  width: 100%;
  margin: 40px auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #f44336;
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

/* Left side - Images */
.modal-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-main-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Right side - Details */
.modal-details {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 2rem;
  color: #2e7d32;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #666;
}

.modal-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-section {
  margin-bottom: 25px;
}

.modal-section h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: #43b048;
  border-radius: 2px;
}

.modal-section ul {
  list-style: none;
  padding-left: 0;
}

.modal-section li {
  padding: 8px 0;
  color: #555;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.modal-section li::before {
  content: "•";
  color: #43b048;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.modal-table th,
.modal-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.modal-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.modal-table td {
  color: #666;
}

/* Added styles for action buttons */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.action-button {
  flex: 1;
  padding: 12px;
  border: 2px solid #43b048;
  background: #fff;
  color: #43b048;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-button:hover {
  background: #43b048;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 176, 72, 0.3);
}

.modal-cta {
  margin-top: auto;
  padding-top: 20px;
}

.order-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #43b048, #2d8c3e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(67, 176, 72, 0.3);
}

.order-button a {
  text-decoration: none;
  color: #fff;
  padding: 15px;
}

.order-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(67, 176, 72, 0.4);
}

/* Added styles for Growing Guide popup */
.guide-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  margin: 40px auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

.guide-modal-title {
  font-size: 1.8rem;
  color: #2e7d32;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
}

/* ========== RESPONSIVE ========== */
/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .product-container {
    flex-direction: column;
    /* ADDED: Remove max-height on mobile */
    max-height: none;
  }

  .product-list {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px;
    background: #43b048;
    border-radius: 0;
    scrollbar-width: thin;
    scrollbar-color: #2d8c3e transparent;
  }

  .product-list::-webkit-scrollbar {
    height: 6px;
  }

  .product-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .product-list::-webkit-scrollbar-thumb {
    background: #2d8c3e;
    border-radius: 3px;
  }

  .product-list h2 {
    display: none;
  }

  .product-list ul {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .product-list li {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 0;
    font-size: 0.95rem;
  }

  .product-list li:hover {
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.25);
  }

  .product-list li.active {
    background: #2d8c3e;
    transform: translateX(0);
  }

  .product-display {
    padding: 30px 20px;
  }

  .product-display h2 {
    font-size: 1.6rem;
  }

  .image-grid {
    /* grid-template-columns: repeat(2, 1fr); */
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-card {
    max-width: 100%;
  }

  /* .product-list {
    width: 100%;
    padding: 20px;
  } */

  .modal-body {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .modal-main-image {
    height: 250px;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.2rem;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .product-display h2 {
    font-size: 1.4rem;
  }

  .product-display p {
    font-size: 0.95rem;
  }
}

/* ========== HOVER OVERLAY WITH SEE DETAIL BUTTON ========== */

/* Add position relative to image cards for absolute positioning of overlay */
.image-card {
  position: relative;
  overflow: hidden;
}

/* Hover overlay with blur effect */
.image-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(67, 176, 72, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
  pointer-events: none;
}

/* Show overlay on card hover */
.image-card:hover .image-card-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* See Detail button */
.see-detail-btn {
  background: #fff;
  color: #43b048;
  border: 2px solid #fff;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.5s ease forwards 0.1s;
}

/* Fade up animation */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reset animation when not hovering */
.image-card:not(:hover) .see-detail-btn {
  animation: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Button hover effect */
.see-detail-btn:hover {
  background: #43b048;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(67, 176, 72, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .see-detail-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  .image-card-overlay {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
