/* ═══════════════════════════════════════════════
   AMGOO V2 — Products Page
   ═══════════════════════════════════════════════ */

/* ── Page Hero (small banner) ── */
.page-hero {
  position: relative;
  padding: calc(64px + var(--space-4xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 50%, #0d1f3c 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 60% 50%, rgba(32, 96, 164, 0.2), transparent),
    radial-gradient(ellipse 50% 60% at 25% 70%, rgba(245, 101, 26, 0.06), transparent);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.page-hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-300);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
  font-size: 0.85rem;
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--orange-400);
}

.breadcrumb .sep {
  color: var(--gray-600);
}

.breadcrumb .current {
  color: var(--orange-400);
  font-weight: 600;
}

/* ── Category Tabs ── */
.category-tabs {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 64px;
  z-index: 100;
}

.tabs-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
}

.tab-btn:hover {
  color: var(--blue-700);
  background: var(--gray-100);
}

.tab-btn.active {
  color: #fff;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.tab-btn .tab-icon {
  font-size: 1.1rem;
}

.tab-btn .tab-count {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

.tab-btn.active .tab-count {
  background: rgba(255,255,255,0.25);
}

/* ── Product Grid ── */
.products-section {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.product-panel {
  display: none;
}

.product-panel.active {
  display: block;
}

/* ── Product Card ── */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-200);
}

.product-img {
  position: relative;
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img .product-emoji {
  font-size: 3.5rem;
  transition: transform var(--transition-base);
}

.product-card:hover .product-emoji {
  transform: scale(1.1);
}

.product-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag-hot {
  background: var(--orange-500);
  color: #fff;
}

.tag-new {
  background: var(--blue-500);
  color: #fff;
}

.tag-eco {
  background: var(--success);
  color: #fff;
}

.product-info {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--gray-500);
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-actions {
  display: flex;
  gap: var(--space-sm);
}

.product-actions .btn {
  flex: 1;
}

/* ── CTA Section ── */
.products-cta {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  overflow: hidden;
}

.products-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, rgba(245, 101, 26, 0.1), transparent),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(32, 96, 164, 0.15), transparent);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content .cta-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: 1rem;
  color: var(--gray-300);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
  }

  .category-tabs {
    padding: var(--space-xl) 0;
    top: 64px;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .product-img {
    height: 160px;
  }

  .products-cta {
    padding: var(--space-3xl) 0;
  }

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

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .breadcrumb {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
}
