/**
 * Products Archive Page Styles
 * 
 * Styles for the product listing page
 * 
 * @package dryerb2b
 */

:root {
  --leaf-green: #2E8B57;
  --leaf-green-dark: #27774d;
  --leaf-green-light: #4aa875;
  --harvest-gold: #FFD700;
  --muted: #6b7280;
  --bg: #f8fbf7;
  --card: #fff;
  --maxw: 1200px;
}

/* ① Hero Banner */
.products-hero {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #27774d, #2E8B57, #4aa875);
  background-size: cover;
  background-position: center;
  padding-top: 88px;
  margin-bottom: 0;
}

.products-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 60px 24px;
  color: #fff;
  text-align: center;
  max-width: var(--maxw);
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  text-shadow: 0 8px 24px rgba(2, 8, 23, 0.4);
  margin-bottom: 16px;
  color: #fff;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background: var(--harvest-gold);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 18px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

/* Section Styles */
.section-title {
  text-align: center;
  font-size: 32px;
  color: var(--leaf-green);
  margin-bottom: 12px;
  font-weight: 900;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
}

/* ② Product Categories */
.product-categories {
  padding: 72px 0;
  background: var(--bg);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.category-card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(6, 58, 128, 0.06);
  border: 1px solid rgba(10, 26, 60, 0.06);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 58, 128, 0.12);
  border-color: var(--leaf-green);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.category-title {
  font-weight: 900;
  color: #0A1A3C;
  margin-bottom: 8px;
  font-size: 20px;
}

.category-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

.category-link {
  color: var(--leaf-green);
  font-weight: 700;
  font-size: 14px;
}

/* ③ Featured Products */
.featured-products {
  padding: 72px 0;
  background: #fff;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.featured-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 58, 128, 0.06);
  border: 1px solid rgba(10, 26, 60, 0.06);
  transition: all 0.2s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6, 58, 128, 0.12);
}

.featured-image {
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #eaf5ef;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #eaf5ef, #d9efe4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leaf-green);
  font-size: 48px;
}

.featured-content {
  padding: 24px;
}

.featured-title {
  font-size: 20px;
  font-weight: 900;
  color: #0A1A3C;
  margin-bottom: 12px;
}

.featured-title a {
  color: inherit;
  text-decoration: none;
}

.featured-title a:hover {
  color: var(--leaf-green);
}

.featured-specs {
  margin-bottom: 12px;
}

.spec-item {
  font-size: 14px;
  color: #233;
  margin-bottom: 6px;
  line-height: 1.6;
}

.spec-item strong {
  color: #0A1A3C;
  margin-right: 6px;
}

.featured-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--leaf-green);
  font-weight: 600;
}

.featured-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ④ Product List Section */
.product-list-section {
  padding: 72px 0;
  background: var(--bg);
}

.products-header {
  margin-bottom: 32px;
}

.products-filters {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-weight: 700;
  color: #0A1A3C;
  font-size: 14px;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #d9efe4;
  border-radius: 6px;
  background: #fff;
  color: #0A1A3C;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--leaf-green);
  outline: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.product-card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(6, 58, 128, 0.06);
  border: 1px solid rgba(10, 26, 60, 0.06);
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(6, 58, 128, 0.12);
}

.product-image {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #eaf5ef;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  font-weight: 900;
  color: #0A1A3C;
  margin-bottom: 12px;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--leaf-green);
}

.product-specs {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaf5ef;
}

.product-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.products-pagination {
  margin-top: 48px;
  text-align: center;
}

.products-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span {
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.products-pagination .page-numbers a {
  background: #fff;
  color: var(--leaf-green);
  border: 1px solid #d9efe4;
}

.products-pagination .page-numbers a:hover {
  background: var(--leaf-green);
  color: #fff;
  border-color: var(--leaf-green);
}

.products-pagination .page-numbers .current {
  background: var(--leaf-green);
  color: #fff;
  border-color: var(--leaf-green);
}

.no-products {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 18px;
}

/* ⑤ Industry Applications */
.industry-applications {
  padding: 72px 0;
  background: #fff;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.application-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(6, 58, 128, 0.06);
  border: 1px solid rgba(10, 26, 60, 0.06);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.2s ease;
}

.application-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 58, 128, 0.12);
  border-color: var(--leaf-green);
}

.app-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.app-title {
  font-weight: 900;
  color: #0A1A3C;
  margin-bottom: 8px;
  font-size: 16px;
}

.app-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.app-link {
  color: var(--leaf-green);
  font-weight: 700;
  font-size: 13px;
}

/* ⑥ Solutions Section */
.solutions-section {
  padding: 72px 0;
  background: var(--bg);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.solution-card {
  background: var(--card);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(6, 58, 128, 0.06);
  border: 1px solid rgba(10, 26, 60, 0.06);
  border-left: 4px solid var(--leaf-green);
}

.solution-card h3 {
  font-size: 18px;
  font-weight: 900;
  color: #0A1A3C;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ⑦ Client Logos */
.client-logos {
  padding: 72px 0;
  background: #fff;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.logo-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--leaf-green);
  border: 1px solid #eaf5ef;
  font-size: 14px;
}

/* ⑧ Bottom CTA */
.products-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--leaf-green-light), var(--leaf-green), var(--leaf-green-dark));
  color: #fff;
  text-align: center;
}

.cta-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
}

.cta-subtitle {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.products-cta .btn-primary {
  background: #fff;
  color: var(--leaf-green);
}

.products-cta .btn-primary:hover {
  background: var(--harvest-gold);
  color: #000;
}

.products-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.products-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Responsive Design */
@media (max-width: 980px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .featured-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  
  .cta-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .products-hero {
    min-height: 300px;
    padding-top: 72px;
  }
  
  .hero-title {
    font-size: 26px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-lg {
    width: 100%;
    text-align: center;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .featured-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .products-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-select {
    width: 100%;
  }
  
  .cta-title {
    font-size: 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

