/* Products Page Specific Styles */

/* Active link in navigation */
.main-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hero Banner */
.product-hero {
  background-image: url('assets/usecase_living2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  position: relative;
  text-align: center;
  color: white;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.product-hero-content {
  position: relative;
  z-index: 2;
}

.product-hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-hero .subtitle {
  font-size: 1.25rem;
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.product-category {
  margin-bottom: 5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4rem;
}

.product-category:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-header h2 {
  color: var(--primary-color);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.category-products {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.category-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-features {
  flex: 1;
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.product-features h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.product-features ul {
  list-style-type: none;
  margin-bottom: 2rem;
}

.product-features ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.product-features ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.product-action {
  text-align: center;
}

/* Materials Section */
.materials {
  background-color: var(--bg-light);
  padding: 5rem 0;
}

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

.material-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.material-card:hover {
  transform: translateY(-5px);
}

.material-color {
  height: 150px;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.material-info {
  padding: 1.25rem;
}

.material-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.material-info p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
}

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

.benefit-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  font-size: 1.75rem;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.benefit-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content .btn {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid white;
  font-weight: 600;
}

.cta-content .btn:hover {
  background-color: transparent;
  color: white;
}

/* Media Queries */
@media (min-width: 768px) {
  .category-products {
    flex-direction: row;
  }
  
  .category-image, .product-features {
    flex: 1;
  }
  
  /* Alternate layout for even categories */
  .product-category:nth-child(even) .category-products {
    flex-direction: row-reverse;
  }
}

@media (max-width: 767px) {
  .product-hero h1 {
    font-size: 2.25rem;
  }
  
  .product-hero .subtitle {
    font-size: 1rem;
  }
  
  .category-header h2 {
    font-size: 1.75rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .material-card {
    min-width: 150px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
