/* ===================== PRODUCTS HERO ===================== */
.products-hero {
  padding: 180px 0 80px;
  background: linear-gradient(135deg, #f1f8f3 0%, #e5f2e9 50%, #faf8f4 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.products-hero h1::after {
  content: '';
  display: block;
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  margin: 16px auto 0;
  border-radius: 10px;
}

/* ===================== PRODUCTS FILTER ===================== */
.products-filter-section {
  padding: 30px 0;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(7, 34, 18, 0.04);
  border-bottom: 1px solid rgba(7, 34, 18, 0.05);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter-btn {
  background: var(--bg-light);
  border: 2px solid transparent;
  padding: 10px 28px;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--primary-light);
  background: rgba(24, 92, 55, 0.06);
  border-color: rgba(24, 92, 55, 0.15);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ===================== PRODUCTS GRID ===================== */
.products-grid-section {
  padding: 60px 0 100px;
  background: var(--bg-light);
}

.product-item {
  display: block;
}

.product-item.hidden {
  display: none;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(7, 34, 18, 0.04);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 175, 55, 0.2);
}

.product-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f8faf8;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img img {
  transform: scale(1.08);
}

.product-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 34, 18, 0.4) 0%, transparent 50%);
  z-index: 1;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 18px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.product-badge-green {
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(45, 138, 78, 0.25);
  border-color: rgba(45, 138, 78, 0.2);
}

.product-badge-grain {
  background: linear-gradient(135deg, #b8860b, #8b6914);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.25);
  border-color: rgba(184, 134, 11, 0.2);
}

.product-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-body h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  transition: var(--transition);
}

.product-card-body h3 span {
  color: var(--primary-light);
  font-size: 0.9em;
  font-weight: 700;
}

.product-card:hover .product-card-body h3 {
  color: var(--secondary);
}

.product-desc {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 18px;
  flex-grow: 1;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.spec-item {
  background: var(--light);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--primary-light);
  font-weight: 600;
  border: 1px solid rgba(24, 92, 55, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spec-item i {
  color: var(--accent-dark);
  font-size: 0.7rem;
}

.product-planting {
  background: rgba(45, 138, 78, 0.04);
  border: 1px solid rgba(45, 138, 78, 0.1);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-planting i {
  color: var(--accent-dark);
  font-size: 0.9rem;
}

/* ===================== CTA BANNER ===================== */
.products-cta {
  padding: 80px 0;
  background: var(--white);
}

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.15);
  box-shadow: 0 20px 60px rgba(7, 34, 18, 0.2);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-light);
  margin-bottom: 20px;
  position: relative;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 2;
  position: relative;
}

.cta-banner .btn-hero-primary {
  position: relative;
}

/* ===================== PRODUCT MODAL ===================== */
.product-modal .modal-content {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.product-modal .btn-close-modal {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-modal .btn-close-modal:hover {
  background: var(--primary);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-product-layout {
  display: flex;
  flex-direction: row;
}

.modal-product-img {
  width: 45%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(7, 34, 18, 0.3) 0%, transparent 50%);
}

.modal-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 22px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-badge-green {
  background: linear-gradient(135deg, var(--secondary), var(--primary-light));
  color: var(--white);
}

.modal-badge-grain {
  background: linear-gradient(135deg, #b8860b, #8b6914);
  color: var(--white);
}

.modal-product-info {
  padding: 45px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-product-info h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.modal-product-info h2 span {
  color: var(--primary-light);
}

.modal-product-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 24px;
}

.modal-specs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-spec {
  background: var(--light);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 700;
  border: 1px solid rgba(24, 92, 55, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-spec i {
  color: var(--accent-dark);
}

.modal-planting {
  background: rgba(45, 138, 78, 0.04);
  border: 1px solid rgba(45, 138, 78, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-planting i {
  color: var(--accent-dark);
}

.modal-cta-btn {
  align-self: flex-start;
  font-size: 0.95rem !important;
  padding: 14px 34px !important;
}

.product-card {
  cursor: pointer;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {

  .products-hero h1 {
    font-size: 2.8rem;
  }

  .cta-banner {
    padding: 50px 30px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .products-hero {
    padding: 150px 0 60px;
  }

  .products-hero h1 {
    font-size: 2rem;
  }

  .product-card-img {
    height: 180px;
  }

  .product-card-body {
    padding: 20px;
  }

  .filter-btn {
    padding: 8px 20px;
    font-size: 0.82rem;
  }

  .cta-banner {
    padding: 40px 20px;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }
}
