/* Products Page Styles */

/* Category Navigation */
.category-nav {
  background: var(--color-white);
  padding: 0;
  position: sticky;
  top: 70px;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.category-tab svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.category-tab:hover,
.category-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: rgba(232, 133, 12, 0.05);
}

/* Product Series Section */
.product-series {
  padding: 80px 0;
}

.product-series.series-alt {
  background: var(--color-bg);
}

.series-header {
  text-align: center;
  margin-bottom: 50px;
}

.series-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--color-accent), #d4780a);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.series-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.series-desc {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Product List */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card */
.product-card-large {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.product-card-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--color-bg);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text);
}

.product-features li svg {
  width: 12px;
  height: 12px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.product-inquiry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-primary), #2a3f6a);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.product-inquiry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.3);
}

.product-inquiry-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.product-inquiry-btn:hover svg {
  transform: translateX(4px);
}

/* CTA Section */
.products-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a3f6a 100%);
  color: var(--color-white);
  text-align: center;
}

.products-cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.products-cta p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.products-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.products-cta .btn-primary,
.products-cta .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.products-cta .btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.products-cta .btn-primary:hover {
  background: #d4780a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 133, 12, 0.4);
}

.products-cta .btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
}

.products-cta .btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.products-cta .btn-primary svg,
.products-cta .btn-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* Navbar solid state for subpage */
.navbar-solid {
  background: var(--color-white) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

.navbar-solid .nav-link {
  color: var(--color-text) !important;
}

.navbar-solid .nav-link:hover {
  color: var(--color-accent) !important;
}

/* Ensure navbar stays on top */
.navbar {
  z-index: 1000 !important;
}

/* Active nav link */
.nav-link.active {
  color: var(--color-accent) !important;
}

/* Responsive */
@media (max-width: 1200px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .category-tab {
    padding: 16px 24px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .category-nav {
    top: 60px;
  }

  .category-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .category-tab {
    padding: 14px 20px;
    font-size: 13px;
  }

  .category-tab span {
    display: none;
  }

  .category-tab svg {
    width: 24px;
    height: 24px;
  }

  .product-series {
    padding: 50px 0;
  }

  .series-title {
    font-size: 26px;
  }

  .product-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .products-cta {
    padding: 50px 0;
  }

  .products-cta h2 {
    font-size: 24px;
  }

  .products-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .products-cta .btn-primary,
  .products-cta .btn-whatsapp {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
