/* Products Page Styles */

/* Hero Section */
.products-hero-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #546743 0%, #3d4d31 100%);
  color: white;
  text-align: center;
}

.products-hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

/* White Underline */
.products-hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: white;
  border-radius: 1px;
}


/* Products Grid Section */
.products-grid-section {
  padding: 80px 0;
  background-color: #fff;
}

.products-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* Product Card */
.product-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #666;
  font-weight: 500;
  text-align: center;
}

.product-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-sage-500);
  margin: 0;
}

.product-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
  height: 4.8rem; /* Fixed height for 3 lines of text */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.product-actions .btn-outline-green,
.product-actions .btn-filled {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.product-actions .btn-outline-green {
  background-color: transparent;
  color: var(--color-sage-500);
  border: 2px solid var(--color-sage-500);
}

.product-actions .btn-outline-green:hover {
  background-color: var(--color-sage-500);
  color: white;
}

.product-actions .btn-filled {
  background-color: var(--color-sage-500);
  color: white;
  border: 2px solid var(--color-sage-500);
}

.product-actions .btn-filled:hover {
  background-color: var(--color-sage-600);
  border-color: var(--color-sage-600);
}

/* Trust Badges */
.trust-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  border-top: 1px solid #e0e0e0;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}

.trust-check {
  color: var(--color-sage-500);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .products-hero-section {
    padding: 80px 0 60px;
  }

  .products-hero-title {
    font-size: 2.5rem;
  }

  .products-hero-description {
    font-size: 1.125rem;
  }

  .products-grid-section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-info {
    padding: 24px;
  }

  .product-name {
    font-size: 1.375rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .trust-badges {
    gap: 24px;
  }

  .trust-badge {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .products-hero-container {
    padding: 0 16px;
  }

  .products-grid-container {
    padding: 0 16px;
  }

  .products-hero-title {
    font-size: 2rem;
  }

  .product-info {
    padding: 20px;
    gap: 12px;
  }

  .trust-badges {
    flex-direction: column;
    gap: 16px;
  }
}