/* ============================================================
   AFRITRONIC — Sistema de Design Completo
   Condensado de: Tailwind config + globals.css + componentes
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #0040E0;
  --primary-dark: #0040C0;
  --primary-light: #1A5FFF;
  --accent: #3366FF;
  --accent-glow: #5588FF;
  --bg: #000015;
  --bg-card: rgba(0, 20, 60, 0.75);
  --text: #E0E0E0;
  --text-muted: #8899BB;
  --border-subtle: rgba(0, 64, 224, 0.2);
  --border-medium: rgba(0, 64, 224, 0.3);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --nav-height: 68px;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: rgba(0,64,224,0.3); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* --- Tipografia --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 700; color: var(--text); }
.section-title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; color: var(--text); line-height: 1.15; }
.section-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 650px; line-height: 1.6; }
.text-gradient {
  background: linear-gradient(135deg, #E0E0E0 0%, #5588FF 40%, #1A5FFF 70%, #E0E0E0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* --- Containers --- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section { position: relative; padding: 6rem 0; }
@media (min-width: 640px) { .section { padding: 8rem 0; } }

/* --- Grids --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }
.gap-8 { gap: 2.5rem; }
.text-center { text-align: center; }

/* --- Glass Effects --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(0, 64, 224, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 64, 224, 0.12);
}

.glass-nav {
  background: rgba(0, 0, 21, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 64, 224, 0.12);
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0040E0 0%, #1A5FFF 50%, #0040E0 100%);
  background-size: 200% 100%;
  color: #fff;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  animation: gradientMove 3s ease infinite;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0, 64, 224, 0.6), 0 8px 30px rgba(51, 102, 255, 0.3);
  transform: translateY(-3px);
}
.btn-primary:active { transform: translateY(-1px) scale(0.98); }
.btn-primary:disabled {
  background: #333;
  color: #999;
  animation: none;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(224, 224, 224, 0.15);
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 25px rgba(0, 64, 224, 0.2);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-xs { padding: 0.25rem 0.75rem; font-size: 0.75rem; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
}
.navbar.scrolled {
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { transition: all 0.3s ease; width: 52px; height: 39px; }
.navbar.scrolled .nav-logo img { width: 44px; height: 33px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-light); }

.nav-links .btn-primary { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 10;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--primary-light); }
.mobile-menu .btn-primary { font-size: 1.125rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(0, 64, 192, 0.15);
  background: var(--bg);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col h4 {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-col a, .footer-col p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.375rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-logo { width: 140px; margin-bottom: 1rem; }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 64, 192, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 64, 192, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
  font-size: 1rem;
}
.social-link:hover {
  color: var(--primary-light);
  border-color: rgba(0, 64, 224, 0.4);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.whatsapp-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0040E0, #1A5FFF);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,64,224,0.4);
  transition: all 0.3s ease;
  animation: pulse-glow 6s ease-in-out infinite;
  cursor: pointer;
  border: none;
}
@media (min-width: 640px) { .whatsapp-btn { width: 64px; height: 64px; } }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 28px; height: 28px; }
@media (min-width: 640px) { .whatsapp-btn svg { width: 32px; height: 32px; } }

.whatsapp-tooltip {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.whatsapp-tooltip.show { opacity: 1; transform: translateX(0); }

/* --- Loader --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s ease;
}
.loader.hidden { opacity: 0; pointer-events: none; }

.loader-rings {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: loaderRing 1.5s ease-in-out infinite;
}
.loader-ring:nth-child(2) {
  border-color: var(--primary-light);
  animation-delay: 0.3s;
}
.loader-ring:nth-child(3) {
  border-color: rgba(0,64,224,0.3);
  animation-delay: 0.6s;
}
.loader-logo { width: 52px; position: relative; z-index: 10; }
.loader-text {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderRing {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#hero-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas-container canvas { display: block; }
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(0,40,120,0.5) 0%, rgba(0,0,21,0.95) 70%);
}
.hero-content { position: relative; z-index: 10; width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: rgba(0,64,224,0.1);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 640px) { .hero-badge { font-size: 0.875rem; } }

.hero-logo { width: 16rem; margin-bottom: 1rem; filter: drop-shadow(0 0 60px rgba(0,64,224,0.3)); }
@media (min-width: 640px) { .hero-logo { width: 20rem; } }
@media (min-width: 768px) { .hero-logo { width: 24rem; } }
@media (min-width: 1024px) { .hero-logo { width: 24rem; } }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-cta { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }

.hero-search { display: flex; gap: 0.5rem; margin-bottom: 1rem; max-width: 500px; }
.hero-search input { flex: 1; }
.hero-search .btn-primary { padding: 0.625rem 1.25rem; font-size: 0.875rem; white-space: nowrap; }

/* Hero card (direita) */
.hero-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  padding: 1.5rem;
  border: 1px solid rgba(0,64,224,0.2);
  color: #1a1a2e;
}
@media (min-width: 640px) { .hero-card { padding: 2rem; } }
.hero-card-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .hero-card h2 { font-size: 1.875rem; } }
.hero-card p { font-size: 0.875rem; color: #555; line-height: 1.6; margin-bottom: 1rem; }
.hero-card-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.hero-card-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(0,64,224,0.08);
  color: var(--primary);
  border: 1px solid rgba(0,64,224,0.15);
  transition: all 0.2s;
  display: inline-block;
}
.hero-card-pill:hover { background: rgba(0,64,224,0.15); }
.hero-card .btn-primary { width: 100%; }
@media (min-width: 640px) { .hero-card .btn-primary { width: auto; } }
.hero-card-footer { margin-top: 0.5rem; font-size: 0.625rem; color: #999; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-chevron {
  animation: bounce 2s ease-in-out infinite;
  color: var(--primary-light);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Stats Section --- */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.stat-card { padding: 1.5rem; text-align: center; }
@media (min-width: 640px) { .stat-card { padding: 2rem; } }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary-light); }
@media (min-width: 640px) { .stat-value { font-size: 3rem; } }
.stat-label { color: var(--text); font-weight: 600; margin-top: 0.25rem; }
.stat-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* --- Categories Section --- */
.cat-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.cat-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}
.cat-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.cat-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
.cat-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.cat-card-highlight { font-size: 0.875rem; color: var(--primary-light); font-weight: 500; }

/* --- Services Section --- */
.services-section { background: rgba(0,64,224,0.02); }
.service-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,64,224,0.06);
  background: rgba(0,0,21,0.5);
  transition: border-color 0.3s;
}
.service-card:hover { border-color: rgba(0,64,224,0.2); }
.service-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(0,64,224,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.service-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

/* --- CTA Section --- */
.cta-section { overflow: hidden; }
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,64,224,0.08) 0%, rgba(0,64,224,0.03) 50%, transparent 70%);
  pointer-events: none;
}
.cta-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.cta-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1rem; }
.cta-buttons { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; align-items: center; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; justify-content: center; } }
.cta-note { font-size: 0.875rem; color: var(--text-muted); margin-top: 1.5rem; }

/* --- Catalog Teaser / Hero Card --- */
.catalog-teaser { background: #fff; color: #1a1a2e; }
.catalog-teaser-card {
  background: #fff;
  border: 1px solid rgba(0,64,224,0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 2rem;
}
@media (min-width: 640px) { .catalog-teaser-card { padding: 2.5rem; } }
.catalog-teaser-card h2 { color: var(--primary); }
.catalog-teaser-card p { color: #555; }
.catalog-teaser-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.catalog-teaser-pill {
  font-size: 0.75rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,64,224,0.2);
  background: rgba(0,64,224,0.04);
  color: var(--primary);
  transition: all 0.2s;
  display: inline-block;
}
.catalog-teaser-pill:hover { background: rgba(0,64,224,0.1); }
.catalog-teaser-note { font-size: 0.75rem; color: #999; margin-top: 1rem; }

/* --- About Page --- */
.about-section { padding-top: 8rem; padding-bottom: 4rem; }
.about-card { padding: 2rem; }
.about-card h2 { color: var(--primary-light); margin-bottom: 1rem; }
.about-card p { color: var(--text-muted); line-height: 1.7; }
.about-values { margin-top: 3rem; }

/* --- Contact Page --- */
.contact-section { padding-top: 8rem; padding-bottom: 4rem; }
.contact-card { padding: 2rem; }
.contact-card h2 { color: var(--primary-light); margin-bottom: 1rem; }
.contact-info { font-size: 0.875rem; color: var(--text-muted); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,64,224,0.2);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,64,224,0.1);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

/* --- Categories Index Page --- */
.categories-section { padding-top: 8rem; padding-bottom: 4rem; }
.category-index-card {
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}
.category-index-card h3 { font-size: 1.125rem; color: var(--text); margin-bottom: 0.25rem; }
.category-index-card .count {
  font-size: 0.75rem;
  color: var(--primary-light);
  background: rgba(0,64,224,0.1);
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* --- Catalog SPA --- */
.catalog-page { padding-top: 5rem; min-height: 100vh; }

/* Top bar */
.catalog-topbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,64,224,0.12);
  padding: 1rem 0;
}
.catalog-topbar-inner { display: flex; gap: 0.75rem; align-items: center; }
.catalog-search-wrap { flex: 1; position: relative; }
.catalog-search {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-medium);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.catalog-search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,64,224,0.1); }
.catalog-search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  display: none;
}

.cart-btn { position: relative; white-space: nowrap; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-light);
  color: #fff;
  font-size: 0.625rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Breadcrumb */
.catalog-breadcrumb { padding: 0.75rem 0; font-size: 0.8125rem; color: var(--text-muted); }
.catalog-breadcrumb strong { color: var(--text); }

/* Layout */
.catalog-layout { display: flex; gap: 1.5rem; padding-bottom: 3rem; }

/* Sidebar */
.catalog-sidebar {
  width: 280px;
  min-width: 280px;
  display: none;
  position: sticky;
  top: calc(var(--nav-height) + 72px);
  align-self: flex-start;
  max-height: 60vh;
  overflow-y: auto;
}
@media (min-width: 1024px) { .catalog-sidebar { display: block; } }

.catalog-sidebar h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.catalog-sidebar .sidebar-all {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: all 0.15s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 0.25rem;
}
.catalog-sidebar .sidebar-all.active { background: rgba(0,64,224,0.08); color: var(--primary); font-weight: 500; }
.catalog-sidebar .sidebar-all:hover { color: var(--text); }

.sidebar-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  margin-bottom: 0.125rem;
}
.sidebar-cat-btn:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.sidebar-cat-btn.active { color: var(--primary); font-weight: 500; background: rgba(0,64,224,0.06); }
.sidebar-cat-count {
  font-size: 0.625rem;
  background: rgba(0,64,224,0.1);
  color: var(--primary-light);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}

.sidebar-subs {
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(0,64,224,0.12);
  margin-bottom: 0.25rem;
  display: none;
}
.sidebar-subs.open { display: block; }
.sidebar-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.sidebar-sub-btn:hover { color: var(--text); }
.sidebar-sub-btn.active { color: var(--primary); }
.sidebar-sub-count { font-size: 0.625rem; color: var(--text-muted); }

.sidebar-footer {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  color: #555;
  line-height: 1.4;
}

/* Product Grid */
.catalog-main { flex: 1; min-width: 0; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

/* Product Card */
.product-card {
  background: #fff;
  border: 1px solid rgba(0,64,224,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s;
  color: #1a1a2e;
}
.product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); transform: translateY(-1px); }

.product-img {
  height: 144px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  position: relative;
}
.product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.product-img .no-img {
  font-size: 3rem;
  opacity: 0.1;
}

.product-info { padding: 0.75rem; display: flex; flex-direction: column; flex: 1; }
.product-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.product-card:hover .product-title { color: var(--primary); }
.product-sku {
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.625rem;
  color: rgba(0,0,0,0.35);
  margin-top: 0.25rem;
  letter-spacing: -0.02em;
}
.product-desc {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-seo-link {
  font-size: 0.625rem;
  color: var(--primary);
  margin-top: 0.25rem;
  display: inline-block;
}
.product-seo-link:hover { text-decoration: underline; }

.product-card .btn-add {
  width: 100%;
  padding: 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-add-default { background: var(--primary); color: #fff; }
.btn-add-default:hover { background: var(--primary-dark); }
.btn-added {
  background: #059669;
  color: #fff;
  cursor: default;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.page-btn:hover:not(:disabled) { background: rgba(0,64,224,0.05); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-info { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.75rem; white-space: nowrap; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; }

/* "Não encontrou?" section */
.missing-section { margin-top: 3rem; margin-bottom: 2rem; }
.missing-card {
  border: 2px solid rgba(0,64,224,0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.missing-card h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 0.5rem; }
.missing-card p { font-size: 0.875rem; color: #666; margin-bottom: 1rem; }
.missing-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,64,224,0.2);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.missing-card .btn-primary { width: 100%; padding: 0.75rem; }
.missing-note { font-size: 0.625rem; color: #999; margin-top: 0.5rem; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 18px; width: 80%; }
.skeleton-sku { height: 10px; width: 30%; }
.skeleton-desc { height: 12px; }
.skeleton-btn { height: 32px; margin-top: 8px; }
.skeleton-img { height: 144px; }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 150;
  box-shadow: -4px 0 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1a1a2e;
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}
.cart-header h3 { font-size: 1.125rem; font-weight: 600; color: var(--primary); }
.cart-close {
  font-size: 1.5rem;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.cart-close:hover { color: #333; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cart-empty { text-align: center; color: #999; padding: 3rem 0; }

.cart-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: #fafafa;
  border: 1px solid #eee;
}
.cart-item-img {
  width: 48px; height: 48px;
  background: #f0f0f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.8125rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-sku { font-family: 'SF Mono', 'Consolas', monospace; font-size: 0.625rem; color: #999; }
.cart-item-qty { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.qty-btn:hover { background: #f5f5f5; border-color: #bbb; }
.qty-val { font-size: 0.8125rem; font-weight: 500; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 0.6875rem;
  color: rgba(220, 38, 38, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.25rem;
}
.cart-item-remove:hover { color: #dc2626; }

.cart-footer {
  padding: 1rem;
  border-top: 1px solid #eee;
}
.cart-total { font-size: 0.875rem; color: #666; margin-bottom: 0.75rem; }
.cart-footer .btn-primary { width: 100%; }
.cart-continue {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--primary);
  margin-top: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.cart-continue:hover { text-decoration: underline; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.toast.show { opacity: 1; }

/* --- Breadcrumb SEO --- */
.seo-breadcrumb { font-size: 0.8125rem; color: var(--text-muted); padding: 0.5rem 0; }
.seo-breadcrumb a { color: var(--text-muted); }
.seo-breadcrumb a:hover { color: var(--primary-light); }
.seo-breadcrumb span { color: var(--text); }

/* --- SEO Product Page --- */
.seo-product { padding-top: 7rem; padding-bottom: 4rem; }
.seo-product-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .seo-product-layout { grid-template-columns: 1fr 1fr; } }

.seo-product-img {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,64,224,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2rem;
}
.seo-product-img img { max-width: 100%; max-height: 400px; object-fit: contain; }
.seo-product-img .no-img { font-size: 6rem; opacity: 0.1; }

.seo-product-info h2 { font-size: 1.5rem; color: var(--text); margin-bottom: 0.75rem; }
.seo-product-sku {
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.seo-product-desc { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.seo-product-info .btn-primary { margin-bottom: 0.5rem; }

/* --- SEO Category/Subcategory Page --- */
.seo-category { padding-top: 7rem; padding-bottom: 4rem; }
.seo-category h2 { font-size: 1.75rem; color: var(--text); margin-bottom: 0.5rem; }
.seo-subcat-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,64,224,0.08);
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}
.seo-subcat-link:hover { border-color: var(--border-medium); background: rgba(0,64,224,0.03); }
.seo-subcat-link h4 { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.seo-subcat-link span { font-size: 0.75rem; color: var(--text-muted); }

/* --- Sitemap page --- */
.sitemap-section { padding-top: 7rem; padding-bottom: 4rem; }
.sitemap-section h2 { margin-bottom: 1.5rem; }
.sitemap-section ul { list-style: none; }
.sitemap-section li { margin-bottom: 0.5rem; }
.sitemap-section a { color: var(--primary-light); font-size: 0.875rem; }
.sitemap-section a:hover { text-decoration: underline; }

/* --- Responsive utilities --- */
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: initial; } }

.mobile-only { display: initial; }
@media (min-width: 768px) { .mobile-only { display: none; } }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.text-primary { color: var(--primary); }
.text-primary-light { color: var(--primary-light); }
.text-muted { color: var(--text-muted); }
.bg-white { background: #fff; color: #1a1a2e; }

/* --- Section backgrounds --- */
.section-dim { background: rgba(0,64,224,0.015); }

/* --- Animations --- */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0,64,224,0.4); }
  50% { box-shadow: 0 0 50px rgba(0,64,224,0.7); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 0.6s ease-out both; }
.animate-fade-up { animation: fadeInUp 0.6s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- Product Badge (Sob cotação) --- */
.product-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0,64,224,0.85);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

/* --- Accessibility: Focus Visible --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-gradient-overlay { animation: none !important; }
  .btn-primary { animation: none !important; }
  .text-gradient { animation: none !important; }
  .whatsapp-btn { animation: none !important; }
  .loader-ring { animation: none !important; opacity: 0.3; }
  .skeleton { animation: none !important; }
}

/* --- Print Styles --- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .navbar, .mobile-menu, .whatsapp-float, .loader,
  #hero-canvas-container, .hero-gradient-overlay, .scroll-indicator,
  .cart-overlay, .cart-drawer, .toast,
  .footer .social-links, .catalog-topbar { display: none !important; }
  .hero { min-height: auto; padding: 2rem 0; }
  .hero-logo { filter: none; max-width: 200px; }
  .glass-card, .glass-nav {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  .section-title, .section-subtitle, h1, h2, h3 { color: #000 !important; }
  .section-title span { color: #0040E0 !important; }
  .btn-primary, .btn-ghost { border: 1px solid #0040E0; color: #0040E0; background: none; }
  .product-card { border: 1px solid #ddd; break-inside: avoid; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer { border-top: 1px solid #ddd; }
  a { color: #0040E0; }
  @page { margin: 1.5cm; }
}
