/* ================================================================
   PRODUCTS HUB PAGE — produits-hub.css
   Main products landing page showing all categories
   ================================================================ */

/* ========== HUB HERO ========== */
.hub-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hub-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(0, 168, 120, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(0, 217, 152, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201, 169, 98, 0.04) 0%, transparent 60%);
  z-index: 1;
}

.hub-hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(0, 168, 120, 0.15);
  border: 1px solid rgba(0, 168, 120, 0.3);
  border-radius: 50px;
  margin: 32px 0 28px;
}

.hub-hero-badge span {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hub-hero-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hub-hero-title span {
  color: var(--green-primary);
  font-style: italic;
}

.hub-hero-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 720px;
}

.hub-hero-description strong {
  color: var(--text-light);
  font-weight: 600;
}

.hub-hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.hub-stat {
  text-align: left;
}

.hub-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
}

.hub-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.hub-stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .hub-hero { padding: 110px 0 60px; }
  .hub-hero-stats { gap: 24px; padding: 20px 24px; }
  .hub-stat-value { font-size: 32px; }
  .hub-stat-divider { display: none; }
}


/* ========== FILTER NAV ========== */
.hub-filter-section {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

.hub-filter-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.hub-filter-nav::-webkit-scrollbar {
  height: 4px;
}

.hub-filter-nav::-webkit-scrollbar-thumb {
  background: var(--green-primary);
  border-radius: 4px;
}

.hub-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 50px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.hub-filter-item i {
  font-size: 14px;
  color: var(--green-primary);
}

.hub-filter-item:hover {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
  transform: translateY(-2px);
}

.hub-filter-item:hover i {
  color: var(--white);
}

@media (max-width: 768px) {
  .hub-filter-section { padding: 16px 0; top: 60px; }
  .hub-filter-item { padding: 10px 16px; font-size: 12px; }
}


/* ========== CATEGORY SECTION ========== */
.hub-category-section {
  padding: 100px 0;
  background: var(--white);
}

.hub-category-section.section-light {
  background: var(--gray-100);
}

.hub-category-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

.hub-category-section.section-light .hub-category-header {
  border-bottom-color: var(--gray-300);
}

.hub-category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hub-category-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
}

.hub-category-icon i {
  font-size: 34px;
  color: var(--green-light);
}

.hub-category-text {
  flex: 1;
}

.hub-category-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hub-category-title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--gray-800);
  margin-bottom: 14px;
  line-height: 1.2;
}

.hub-category-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 720px;
}

.hub-category-count {
  flex-shrink: 0;
  text-align: center;
  padding: 0 24px;
  border-left: 2px solid var(--gray-200);
}

.hub-category-section.section-light .hub-category-count {
  border-left-color: var(--gray-300);
}

.hub-category-count span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 600;
  color: var(--green-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hub-category-count small {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 1024px) {
  .hub-category-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .hub-category-count {
    border-left: none;
    border-top: 2px solid var(--gray-200);
    padding: 20px 0 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
  }
  .hub-category-count span { font-size: 36px; }
}

@media (max-width: 768px) {
  .hub-category-section { padding: 70px 0; }
  .hub-category-icon { width: 64px; height: 64px; border-radius: 16px; }
  .hub-category-icon i { font-size: 28px; }
}


/* ========== PRODUCTS GRID ========== */
.hub-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.hub-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.hub-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.hub-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .hub-grid-2, .hub-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hub-products-grid,
  .hub-grid-2,
  .hub-grid-3 { grid-template-columns: 1fr; }
}


/* ========== PRODUCT CARD ========== */
.hub-product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.hub-category-section.section-light .hub-product-card {
  background: var(--white);
}

.hub-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.hub-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  border-color: var(--green-primary);
}

.hub-product-card:hover::before {
  transform: scaleX(1);
}

.hub-product-image {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 180px;
  overflow: hidden;
}

.hub-product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 168, 120, 0.15) 0%, transparent 60%);
}

.hub-product-icon {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(0, 168, 120, 0.3);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.hub-product-card:hover .hub-product-icon {
  background: rgba(0, 168, 120, 0.2);
  border-color: var(--green-light);
  transform: scale(1.1) rotate(-5deg);
}

.hub-product-icon i {
  font-size: 40px;
  color: var(--green-light);
}

.hub-product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 168, 120, 0.9);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
}

.hub-product-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub-product-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.3;
}

.hub-product-body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.hub-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.hub-product-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-700);
}

.hub-product-specs span i {
  font-size: 11px;
  color: var(--green-primary);
}

.hub-product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-primary);
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.hub-product-card:hover .hub-product-link {
  gap: 14px;
}

/* Featured card (full-width single product) */
.hub-product-card-featured {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.hub-product-card-featured .hub-product-image {
  min-height: 100%;
}

.hub-product-card-featured .hub-product-body {
  padding: 36px 40px;
}

.hub-product-card-featured .hub-product-body h3 {
  font-size: 24px;
}

.hub-product-card-featured .hub-product-body p {
  font-size: 15px;
}

@media (max-width: 768px) {
  .hub-product-card-featured {
    grid-template-columns: 1fr;
  }
  .hub-product-card-featured .hub-product-image {
    min-height: 180px;
  }
  .hub-product-card-featured .hub-product-body {
    padding: 28px 24px;
  }
}


/* ========== CTA BANNER ========== */
.hub-cta-section {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hub-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 168, 120, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201, 169, 98, 0.08) 0%, transparent 50%);
}

.hub-cta-banner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
}

.hub-cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-primary), var(--green-light), var(--gold));
  border-radius: 28px 28px 0 0;
}

.hub-cta-content {
  flex: 1;
}

.hub-cta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hub-cta-content h2 {
  font-size: clamp(26px, 3vw, 38px);
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}

.hub-cta-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

.hub-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.hub-cta-section .btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  padding: 18px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hub-cta-section .btn-whatsapp i {
  font-size: 20px;
}

.hub-cta-section .btn-whatsapp:hover {
  background: #128C7E;
  border-color: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

@media (max-width: 1024px) {
  .hub-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
  }
  .hub-cta-actions { width: 100%; }
}

@media (max-width: 768px) {
  .hub-cta-section { padding: 60px 0; }
  .hub-cta-actions { flex-direction: column; width: 100%; }
  .hub-cta-actions .btn,
  .hub-cta-actions .btn-whatsapp { width: 100%; justify-content: center; }
}
