/* ==========================================================================
   GOYAZ IMPLEMENTOS - ESTILOS INDUSTRIAIS HEAVY-DUTY & HIGH-TECH
   Corte e Dobra de Chapas | Kits para Carrocerias, Agrícolas e Carretinhas
   ========================================================================== */

/* --- VARIÁVEIS CSS (TEMA PADRÃO: CLEAN INDUSTRIAL / FUNDO BRANCO) --- */
:root {
  /* Cores Principais */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-metal: #e2e8f0;
  --bg-viewer: #f1f5f9;
  
  /* Laranja Industrial (Solda / CTA) */
  --accent-orange: #f38118;
  --accent-orange-hover: #ff9d2e;
  --accent-orange-glow: rgba(243, 129, 24, 0.35);
  --accent-orange-subtle: rgba(243, 129, 24, 0.12);

  /* Tons Metálicos & Textos */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Bordas de Engenharia */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-industrial: #94a3b8;
  --border-accent: rgba(243, 129, 24, 0.45);

  /* Sombras e Elevações Técnicas */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(243, 129, 24, 0.35);

  /* Tipografia */
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-tech: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Transições & Raios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- TEMA ESCURO INDUSTRIAL (DARK HEAVY-DUTY) --- */
[data-theme="dark"] {
  --bg-primary: #121315;
  --bg-secondary: #1a1b1e;
  --bg-card: #1f2227;
  --bg-card-hover: #262930;
  --bg-metal: #2a2d32;
  --bg-viewer: #16181b;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-light: #2a2d32;
  --border-medium: #374151;
  --border-industrial: #4b5563;
  --border-accent: rgba(243, 129, 24, 0.55);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65);
}

/* --- RESET & ESTRUTURA BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Textura industrial sutil no fundo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0%, rgba(243, 129, 24, 0.04) 0%, transparent 60%);
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, select, textarea {
  font-family: inherit;
}

/* --- HEADER & BARRA DE NAVEGAÇÃO --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(18, 19, 21, 0.92);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-orange);
  background-color: var(--accent-orange-subtle);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botões do Sistema */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  user-select: none;
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background-color: var(--accent-orange-subtle);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border-color: #20ba5a;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  background-color: var(--bg-metal);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

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

/* --- HERO SECTION --- */
.hero-section {
  padding: 48px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-orange-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent-orange);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title span.highlight {
  color: var(--accent-orange);
  text-shadow: 0 0 20px var(--accent-orange-glow);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.feature-pill svg {
  color: var(--accent-orange);
  flex-shrink: 0;
}

.feature-pill span {
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --- CARD DO VISUALIZADOR 3D PRINCIPAL (HERO) --- */
.hero-viewer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--bg-metal);
  border-bottom: 1px solid var(--border-medium);
}

.viewer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.viewer-product-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
}

.viewer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CONTAINER DO MODEL-VIEWER */
.model-viewer-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: var(--bg-viewer);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(243, 129, 24, 0.05) 0%, transparent 70%),
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
}

[data-theme="dark"] .model-viewer-wrapper {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(243, 129, 24, 0.08) 0%, transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  outline: none;
}

/* BARRA DE CONTROLES 3D SOBRE O VIEWER */
.viewer-controls-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.viewer-controls-group {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.btn-viewer-action {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 8px 14px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

[data-theme="dark"] .btn-viewer-action {
  background-color: rgba(31, 34, 39, 0.95);
}

.btn-viewer-action:hover {
  background-color: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-glow);
}

.btn-viewer-action.active {
  background-color: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

/* Barra de Progresso Customizada do Model Viewer */
.viewer-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  display: none;
}

.viewer-progress-bar.loading {
  display: block;
}

.viewer-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-orange), var(--accent-orange-hover));
  transition: width 0.2s ease;
}

/* Rodapé do Visualizador com especificações instantâneas */
.viewer-footer-info {
  padding: 14px 18px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.viewer-quick-specs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.quick-spec-item {
  display: flex;
  flex-direction: column;
}

.quick-spec-label {
  font-size: 0.75rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-spec-val {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* --- SEÇÃO DE CATÁLOGO & FILTROS --- */
.catalog-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-tag {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--accent-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Barra de Filtros e Busca */
.catalog-controls-bar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-and-categories {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab-btn {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  background-color: var(--bg-metal);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.category-tab-btn:hover {
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.category-tab-btn.active {
  background-color: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 2px 8px var(--accent-orange-glow);
}

.search-box-wrapper {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px var(--accent-orange-subtle);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Subcategorias (pills dinâmicos) */
.subcategories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

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

.subcat-pill {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background-color: var(--bg-metal);
  color: var(--text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.subcat-pill:hover,
.subcat-pill.active {
  background-color: var(--accent-orange-subtle);
  color: var(--accent-orange);
  border-color: var(--border-accent);
}

/* Grid de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* Card Individual de Produto */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.product-thumb-box {
  position: relative;
  width: 100%;
  height: 240px;
  background-color: var(--bg-viewer);
  overflow: hidden;
  cursor: pointer;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.05);
}

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent-orange);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-3d-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.product-category-meta {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs-summary {
  background-color: var(--bg-metal);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.spec-mini-item {
  display: flex;
  flex-direction: column;
}

.spec-mini-label {
  font-size: 0.7rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-mini-val {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

/* --- SEÇÃO SOBRE A GOYAZ IMPLEMENTOS --- */
.about-section {
  padding: 70px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-medium);
}

.about-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-orange);
}

.stat-desc {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* --- SEÇÃO DE CONTATO & WHATSAPP --- */
.contact-section {
  padding: 60px 0 80px;
  background-color: var(--bg-primary);
}

.contact-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-metal) 100%);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* --- MODAL 3D SINGLETON (INSPEÇÃO TÉCNICA) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background-color: var(--bg-metal);
  border-bottom: 1px solid var(--border-medium);
}

.modal-title-box {
  display: flex;
  flex-direction: column;
}

.modal-category-tag {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--accent-orange);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  flex-grow: 1;
  overflow-y: auto;
}

.modal-viewer-col {
  position: relative;
  height: 480px;
  background-color: var(--bg-viewer);
  border-right: 1px solid var(--border-light);
}

.modal-details-col {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-section-title {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.specs-table td.spec-key {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--text-muted);
  width: 40%;
  text-transform: uppercase;
}

.specs-table td.spec-val {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-actions-area {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background-color: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--border-light);
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .modal-body-grid {
    grid-template-columns: 1fr;
  }
  .modal-viewer-col {
    height: 360px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .model-viewer-wrapper {
    height: 380px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .search-and-categories {
    flex-direction: column;
    align-items: stretch;
  }
}
