/* Products Page Styles */
.products-page {
  padding-top: var(--header-height);
}

/* Page Header */
.page-header.products-header {
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), 
              url('images/products-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.products-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.products-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Product Categories */
.product-categories {
  background-color: var(--white);
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.category-tab {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background-color: var(--light-color);
  color: var(--text-color);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.category-tab:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.category-tab.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Product Sections */
.product-section {
  padding: 4rem 0;
}

.product-section:nth-child(even) {
  background-color: var(--light-color);
}

.product-section h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-section h2 i {
  color: var(--primary-color);
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: center;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
}

.product-details {
  padding: 1.5rem;
}

.product-details h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.product-specs {
  background-color: rgba(0, 51, 102, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.product-specs p {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.product-specs strong {
  color: var(--secondary-color);
}

.product-features {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.product-features li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-brands {
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

.product-brands strong {
  color: var(--secondary-color);
}

.product-card .btn {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.product-card .btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Product Comparison CTA */
.product-comparison {
  padding: 4rem 0;
  background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), 
              url('images/solar-components.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
}

.product-comparison h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.product-comparison p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 250px;
}

.cta-buttons .secondary-btn {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.cta-buttons .secondary-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.cta-buttons .secondary-btn i {
  margin-right: 0.5rem;
}

/* Brand Partners */
.brand-partners {
  padding: 4rem 0;
  background-color: var(--white);
}

.brand-partners h2 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 1rem;
}

.brands-grid img {
  height: 60px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(100%);
}

.brands-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-header.products-header {
    padding: 4rem 0;
  }
  
  .products-header h1 {
    font-size: 2.5rem;
  }
  
  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .products-header h1 {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    height: 200px;
  }
  
  .brands-grid {
    gap: 1.5rem;
  }
  
  .brands-grid img {
    height: 40px;
  }
}

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card, .product-comparison, .brand-partners {
  opacity: 0;
}