/* Products Page Styles */

.page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #3f9940, #1e447f);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Product Categories */
.product-categories {
  padding: 4rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-image {
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #3f9940;
}

.category-content {
  padding: 2rem;
}

.category-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.category-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.category-features {
  list-style: none;
  margin-bottom: 2rem;
}

.category-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  color: #475569;
}

.category-features li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  margin-right: 0.75rem;
}

/* Product Comparison */
.product-comparison {
  background: #f8fafc;
  padding: 4rem 0;
}

.comparison-table {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-top: 3rem;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #1e293b;
}

.comparison-table tr:hover {
  background: #f8fafc;
}

/* Specs Section */
.product-specs {
  padding: 4rem 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.spec-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #3f9940, #1e447f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.spec-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.spec-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Call to Action */
.product-cta {
  background: #1e293b;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.product-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .category-content {
    padding: 1.5rem;
  }
}

/* Product List Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3rem 0;
}

.product-card-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
}

.product-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(63, 153, 64, 0.3);
}

.product-image-wrapper {
  height: 240px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.product-card-item:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.product-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
}

.product-info h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.product-tag.residential {
  background-color: #eff6ff;
  color: #1e447f;
  border: 1px solid #dbeafe;
}

.product-tag.commercial {
  background-color: #faf5ff;
  color: #9333ea;
  border: 1px solid #f3e8ff;
}

.product-tag.industrial {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
}

.product-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.product-specs-list li {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.75rem;
}

.product-specs-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-specs-list li strong {
  color: #334155;
  font-weight: 600;
}

.product-card-item .btn {
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.product-card-item .btn:hover {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
  transform: translateY(-1px);
}