/* =========================================
   PRODUCT CATEGORY PAGE - CSS
   Zait.ag - Pulverizando Tecnologia
   Template reutilizável para páginas de categorias
   ========================================= */

/* Variáveis de cores - Paleta Oficial Zait.ag */
:root {
  /* Verdes */
  --zait-green-light: #B9CF38;
  --zait-green-medium: #727927;
  --zait-green-dark: #606721;
  --zait-green-accent: #BAD042;
  --zait-green-primary: #727927;
  
  /* Escuros */
  --zait-dark-light: #2C2C2C;
  --zait-dark-medium: #1A1A1A;
  --zait-dark-deep: #100F0F;
  --zait-bg-dark: #1A1A1A;
  --zait-bg-darker: #100F0F;
  
  /* Claros */
  --zait-light-primary: #DFDFDF;
  --zait-light-medium: #ABACAD;
  --zait-light-dark: #676767;
  --zait-bg-light: #DFDFDF;
  --zait-bg-white: #ffffff;
  
  /* Texto */
  --zait-text-light: #ffffff;
  --zait-text-muted: #ABACAD;
  --zait-text-dark: #1A1A1A;
  --zait-text-gray: #676767;
  
  /* Gradientes */
  --zait-gradient-green: linear-gradient(135deg, #B9CF38 0%, #727927 100%);
  --zait-gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #100F0F 100%);
  
  --zait-transition: all 0.3s ease;
}

/* =========================================
   CATEGORY HERO SECTION
   ========================================= */
.category-hero {
  position: relative;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--zait-bg-darker);
}

.category-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--zait-gradient-dark);
  z-index: 2;
}

.category-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 70px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.category-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--zait-green-accent);
  text-transform: uppercase;
}

.category-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--zait-text-light);
  line-height: 1.1;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.category-hero-title span {
  display: block;
  color: var(--zait-bg-light);
}

.category-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
  max-width: 250px;
}

.category-hero-divider span {
  height: 2px;
  flex: 1;
  background: var(--zait-green-accent);
}

.category-hero-divider span:first-child {
  max-width: 40px;
}

.category-hero-divider span:last-child {
  max-width: 150px;
}

/* =========================================
   CATEGORY CONTENT SECTION
   ========================================= */
.category-content {
  padding: 60px 0;
  background: var(--zait-bg-white);
}

.category-description {
  max-width: 100%;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.category-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--zait-text-dark);
  text-align: justify;
}

.category-description p + p {
  margin-top: 20px;
}

.category-description strong {
  color: var(--zait-green-medium);
  font-weight: 600;
}

/* =========================================
   PRODUCTS GRID
   ========================================= */
.category-products {
  padding: 0 20px 60px;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 360px));
  gap: 30px;
  max-width: 1204px;
  margin: 0 auto;
  justify-content: center;
}

/* =========================================
   PRODUCT CARD
   ========================================= */
.category-product-card {
  background: var(--zait-bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--zait-transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 360px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
}

.category-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.category-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-product-image-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.category-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  transform-origin: center center;
  will-change: transform;
}

.category-product-card:hover .category-product-image {
  transform: scale(1.05);
}

.category-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(185, 207, 56, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
}

.category-product-card:hover .category-product-overlay {
  opacity: 1;
}

.category-product-view {
  display: none;
}

.category-product-card:hover .category-product-view {
  display: none;
}

.category-product-view svg {
  display: none;
}

.category-product-card:hover .category-product-view svg {
  display: none;
}

.category-product-info {
  padding: 24px;
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.category-product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zait-text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.category-product-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--zait-green-medium);
  transition: var(--zait-transition);
}

.category-product-card:hover .category-product-action {
  color: var(--zait-green-dark);
}

.category-product-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.category-product-card:hover .category-product-action svg {
  transform: translateX(6px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .category-hero-content {
    padding: 50px 20px;
  }

  .category-hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .category-content {
    padding: 40px 0;
  }

  .category-description {
    margin-bottom: 40px;
  }

  .category-description p {
    font-size: 1rem;
  }

  .category-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .category-product-info {
    padding: 20px;
  }

  .category-product-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .category-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .category-hero-label {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .category-hero-title {
    font-size: 3rem;
  }

  .category-hero-divider {
    max-width: 180px;
  }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-product-card {
  animation: fadeInUp 0.6s ease forwards;
}

.category-product-card:nth-child(1) { animation-delay: 0.1s; }
.category-product-card:nth-child(2) { animation-delay: 0.2s; }
.category-product-card:nth-child(3) { animation-delay: 0.3s; }
.category-product-card:nth-child(4) { animation-delay: 0.4s; }
.category-product-card:nth-child(5) { animation-delay: 0.5s; }
.category-product-card:nth-child(6) { animation-delay: 0.6s; }
.category-product-card:nth-child(7) { animation-delay: 0.7s; }
.category-product-card:nth-child(8) { animation-delay: 0.8s; }
.category-product-card:nth-child(9) { animation-delay: 0.9s; }
.category-product-card:nth-child(10) { animation-delay: 1.0s; }
.category-product-card:nth-child(11) { animation-delay: 1.1s; }
.category-product-card:nth-child(12) { animation-delay: 1.2s; }
.category-product-card:nth-child(13) { animation-delay: 1.3s; }
