:root {
  --bg-page: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-soft: #F3F8F8;
  --text-main: #1E293B;
  --text-muted: #475569;
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --primary-light: #CCFBF1;
  --accent-coral: #FF7E67;
  --accent-yellow: #FBBF24;
  --accent-purple: #8B5CF6;
  --accent-blue: #3B82F6;
  --border-color: #E2E8F0;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px -10px rgba(15, 118, 110, 0.12);
  --shadow-hover: 0 18px 36px -12px rgba(15, 118, 110, 0.2);
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ring-color-1: #4ECDC4;
  --ring-color-2: #3B82F6;
  --ring-color-3: #FF7E67;
}

/* Modos de Acessibilidade Sensorial */
body.calm-mode {
  --bg-page: #F4F6F4;
  --bg-card: #FAFBF9;
  --bg-soft: #E9EFEA;
  --primary: #4A7C77;
  --primary-hover: #3B635F;
  --accent-coral: #D98A7C;
  --accent-yellow: #DFB45B;
}

body.large-text {
  font-size: 112%;
}

body.pause-motion *,
body.pause-motion *::before,
body.pause-motion *::after {
  animation-play-state: paused !important;
  transition-duration: 0.01ms !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

section[id],
main[id] {
  scroll-margin-top: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Barra de Acessibilidade Sensorial */
.sensory-bar {
  background: #1E293B;
  color: #F8FAFC;
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.sensory-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sensory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ECDC4;
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.25);
}

.sensory-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sensory-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sensory-btn:hover,
.sensory-btn[aria-pressed="true"] {
  background: #4ECDC4;
  color: #0F172A;
  border-color: #4ECDC4;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12));
}

.spin-logo {
  width: 100%;
  height: 100%;
  animation: gentleRotate 14s linear infinite;
}

@keyframes gentleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0F172A;
}

.highlight-3d {
  background: linear-gradient(135deg, var(--primary), var(--accent-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, background 0.2s;
}

.cart-trigger:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.cart-count {
  background: #FFFFFF;
  color: var(--primary-hover);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 4rem;
  background: radial-gradient(circle at 85% 20%, rgba(78, 205, 196, 0.15), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(251, 191, 36, 0.14), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-pill {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: #0F172A;
}

.text-gradient {
  background: linear-gradient(135deg, #0F766E 0%, #1D4ED8 52%, #E11D48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 58ch;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.02rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.45);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.trust-icon {
  font-size: 1.5rem;
}

.trust-item strong {
  display: block;
  font-size: 0.9rem;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Card 3D Interativo no Hero */
.interactive-showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  border: 2px solid #E2E8F0;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
}

.showcase-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-hover);
  background: var(--bg-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.Mandala3D-stage {
  width: 260px;
  height: 260px;
  margin: 0.5rem auto 1.2rem;
  position: relative;
  perspective: 800px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.Mandala3D-stage.dragging {
  cursor: grabbing;
}

.gyro-ring {
  position: absolute;
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(15, 23, 42, 0.08);
  will-change: transform;
  transition: border-color 0.3s ease;
}

.ring-outer {
  width: 240px;
  height: 240px;
  border: 16px solid var(--ring-color-1);
}

.ring-mid {
  width: 185px;
  height: 185px;
  border: 15px solid var(--ring-color-2);
}

.ring-inner {
  width: 132px;
  height: 132px;
  border: 14px solid var(--ring-color-3);
}

.gyro-core {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #FFFDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  will-change: transform;
}

.gyro-QuickActions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.gyro-action-btn {
  background: var(--bg-soft);
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gyro-action-btn:hover,
.gyro-action-btn.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  border-color: var(--primary);
}

@keyframes gyroSpin1 {
  0% { transform: rotateX(22deg) rotateY(-18deg) rotateZ(0deg); }
  100% { transform: rotateX(-25deg) rotateY(30deg) rotateZ(180deg); }
}

@keyframes gyroSpin2 {
  0% { transform: rotateX(-30deg) rotateY(22deg) rotateZ(45deg); }
  100% { transform: rotateX(35deg) rotateY(-25deg) rotateZ(-135deg); }
}

@keyframes gyroSpin3 {
  0% { transform: rotateX(15deg) rotateY(35deg) rotateZ(-30deg); }
  100% { transform: rotateX(-35deg) rotateY(-15deg) rotateZ(150deg); }
}

.showcase-caption {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.color-dots {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dot-color);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 2px #CBD5E1;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-dot.active,
.color-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px #0F172A;
}

/* Seções Gerais */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.section-header h2,
.catalog-header h2,
.simulator-info h2,
.custom-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: #0F172A;
  margin-bottom: 0.5rem;
}

/* Necessidades Sensoriais */
.sensory-needs-section {
  padding: 3.5rem 0;
  background: var(--bg-soft);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.25rem;
}

.need-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.need-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.need-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.need-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #0F172A;
}

.need-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.need-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Catálogo */
.catalog-section {
  padding: 4rem 0;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.search-box input {
  width: min(340px, 85vw);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--border-color);
  font-family: inherit;
  font-size: 0.92rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-pill {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1.6rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-visual {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.noise-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.product-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.65rem;
}

.sensory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sensory-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-soft);
  color: var(--primary-hover);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #0F172A;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.product-color-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.mini-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #CBD5E1;
  cursor: pointer;
}

.mini-swatch.selected {
  box-shadow: 0 0 0 2px #0F172A;
  transform: scale(1.15);
}

.product-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.4rem;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.38rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.15;
}

.price-installment {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.card-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  width: 100%;
}

.btn-icon {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-add {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  white-space: nowrap;
}

.btn-add:hover {
  background: var(--primary-hover);
}

.btn-add:disabled,
.btn:disabled {
  background: #CBD5E1;
  color: #64748B;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Simulador / Laboratório 3D */
.simulator-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFDF9 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.sim-controls-panel {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #FFFFFF;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.sim-control-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.sim-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid var(--border-color);
  font-family: inherit;
  font-weight: 600;
}

.filament-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.filament-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}

.filament-btn.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

#simSpeedRange {
  width: 100%;
  accent-color: var(--primary);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.simulator-preview-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.4);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.preview-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-color-name {
  font-size: 0.85rem;
  color: #4ECDC4;
  font-weight: 700;
}

.preview-canvas {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.14) 0%, transparent 70%);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.preview-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spec-chip {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
}

/* Projetos Sob Medida */
.custom-order-section {
  padding: 4rem 0;
}

.custom-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #E0F2FE 100%);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.custom-checklist {
  list-style: none;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-weight: 600;
}

.custom-form {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-form h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-feedback {
  background: #DCFCE7;
  color: #166534;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Depoimentos */
.testimonials-section {
  padding: 3.5rem 0 4.5rem;
  background: var(--bg-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #FFFFFF;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars {
  color: #F59E0B;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.author span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-title {
  color: #FFFFFF;
  display: block;
  margin-bottom: 0.65rem;
}

.footer-links h4 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  margin-bottom: 0.8rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #4ECDC4;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Modal & Carrinho Drawer */
.modal-backdrop,
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop[hidden],
.cart-backdrop[hidden] {
  display: none;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: min(640px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close,
.cart-close {
  background: var(--bg-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.sensory-meter {
  margin: 1rem 0;
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: grid;
  gap: 0.6rem;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(410px, 92vw);
  height: 100vh;
  background: #FFFFFF;
  z-index: 110;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.3s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
  font-size: 0.95rem;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  cursor: pointer;
  font-weight: 700;
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.total-row {
  font-size: 1.15rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border-color);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 200;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (max-width: 920px) {
  .hero-grid,
  .simulator-grid,
  .custom-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    display: none;
  }
  .hero-trust-badges,
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   ESTILOS DE AUTENTICAÇÃO, ÁREA DO CLIENTE E PAINEL ADM
   ========================================================= */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
}

.user-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #1E293B;
  color: #F8FAFC;
  border: none;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.admin-switch-btn:hover {
  background: #334155;
  transform: translateY(-1px);
}

/* Modal de Login e Cadastro */
.auth-modal-card {
  width: min(500px, 95vw);
}

.checkout-modal-card {
  width: min(620px, 95vw);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-header h2 {
  font-family: var(--font-heading);
  margin-top: 0.35rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-soft);
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 0.65rem;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}

.auth-tab.active {
  background: #FFFFFF;
  color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.demo-credentials-box {
  margin-top: 0.6rem;
  padding: 0.85rem;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  font-size: 0.8rem;
  text-align: center;
}

.demo-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.btn-demo {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-demo-admin {
  background: #FEF3C7;
  color: #92400E;
  border-color: #FDE68A;
}

/* Dashboards (Área do Cliente & Área ADM) */
.dashboard-view {
  padding: 2.5rem 0 4.5rem;
  min-height: 75vh;
}

.admin-theme {
  background: #F1F5F9;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-topbar h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-danger-outline {
  background: #FFF1F2;
  color: #BE123C;
  border: 1.5px solid #FECDD3;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.customer-grid,
.admin-split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.panel-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.panel-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.panel-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
}

/* KPIs do Painel Admin */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: #FFFFFF;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0.25rem 0;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--primary-hover);
  font-weight: 600;
}

/* Abas do Painel Admin */
.admin-tabs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.admin-tab {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-tab.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
}

/* Tabelas Administrativas */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table th {
  background: #F8FAFC;
  font-weight: 800;
  color: #334155;
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* Status Badges */
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-novo { background: #DBEAFE; color: #1E40AF; }
.status-impressao { background: #FEF3C7; color: #92400E; }
.status-acabamento { background: #EDE9FE; color: #5B21B6; }
.status-enviado { background: #E0F2FE; color: #0369A1; }
.status-entregue { background: #DCFCE7; color: #166534; }
.status-cancelado { background: #FFE4E6; color: #9F1239; }

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.order-card-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  background: #FAFBF9;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkout-summary-box {
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.coupon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.coupon-list li {
  background: var(--bg-soft);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

@media (max-width: 920px) {
  .customer-grid,
  .admin-split-grid,
  .demo-btn-row {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   MODAL DE ESCOLHA: INSTALAR APLICATIVO (PWA) OU CONTINUAR NO SITE
   ========================================================= */
.pwa-trigger-btn {
  background: linear-gradient(135deg, #4ECDC4, #0D9488) !important;
  color: #0F172A !important;
  border-color: #4ECDC4 !important;
  font-weight: 800;
}

.pwa-trigger-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pwa-modal-card {
  width: min(680px, 95vw);
}

.pwa-modal-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.pwa-app-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 0.65rem;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.16);
}

.pwa-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin: 0.25rem 0 0.45rem;
  color: #0F172A;
}

.pwa-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.pwa-option-box {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}

.pwa-option-highlight {
  border-color: var(--primary);
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 100%);
  box-shadow: var(--shadow-soft);
}

.pwa-option-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.pwa-badge-neutral {
  background: #F1F5F9;
  color: #475569;
}

.pwa-option-icon {
  font-size: 1.85rem;
}

.pwa-option-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #0F172A;
}

.pwa-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 0.4rem;
}

.pwa-manual-guide {
  margin-top: 1.15rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: #FEF3C7;
  color: #78350F;
  border: 1px solid #FDE68A;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .pwa-options-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FOTOS REAIS DOS PRODUTOS & COMPONENTES ERP ADMIN
   ========================================================= */
.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-photo {
  transform: scale(1.04);
}

.pipeline-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pipeline-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
}

.pipeline-bar-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.pipeline-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #3B82F6);
  transition: width 0.35s ease;
}

.admin-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
  flex-shrink: 0;
}

/* ============================================================================
   MÓDULO ERP DE GESTÃO DE FILAMENTOS, PERDAS, DESPESAS & LUCRO REAL (DRE)
   ============================================================================ */
.spool-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #94A3B8;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.spool-bar-track {
  width: 100%;
  min-width: 120px;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.spool-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.erp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  white-space: nowrap;
}

.erp-badge-pedido { background: #DCFCE7; color: #166534; }
.erp-badge-venda_direta { background: #CCFBF1; color: #115E59; }
.erp-badge-particular { background: #E0E7FF; color: #3730A3; }
.erp-badge-estoque { background: #DBEAFE; color: #1E40AF; }
.erp-badge-cortesia { background: #F3E8FF; color: #6B21A8; }
.erp-badge-reposicao { background: #FEF3C7; color: #92400E; }
.erp-badge-perda { background: #FFE4E6; color: #BE123C; }

.dre-total-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  font-weight: 800;
  font-size: 0.96rem;
}

/* ============================================================================
   SEÇÃO FAQ SEO (ACCORDION ACESSÍVEL)
   ============================================================================ */
.faq-seo-section {
  padding: 3.5rem 0 4rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}



