/* ═══════════════════════════════════════════════════════════
   SANCOSTA ENGENHARIA — Design System v2.0
   style.css
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS GLOBAIS ──────────────────────────────────────── */
:root {
  /* Brand */
  --p-500: #1D4ED8;
  --p-600: #1E40AF;
  --p-700: #1E3A8A;
  --s-400: #38BDF8;
  --s-500: #0EA5E9;
  --s-600: #0284C7;
  --a-300: #7DD3FC;
  --a-400: #38BDF8;

  /* Semântico */
  --success: #22C55E;
  --warning: #F59E0B;
  --error:   #EF4444;

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #0EA5E9, #1D4ED8);
  --grad-premium: linear-gradient(135deg, #38BDF8, #2563EB, #1E3A8A);
  --grad-airflow: linear-gradient(270deg, #0EA5E9, #1D4ED8, #38BDF8);

  /* Glow & Sombras */
  --glow-pri: 0 0 40px rgba(56, 189, 248, 0.30);
  --glow-str: 0 0 60px rgba(14, 165, 233, 0.50);
  --sh-sm:    0 4px  10px rgba(0, 0, 0, 0.05);
  --sh-md:    0 10px 30px rgba(0, 0, 0, 0.08);
  --sh-lg:    0 30px 60px rgba(0, 0, 0, 0.12);

  /* Raios */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  /* Tipografia */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── TEMA CLARO ──────────────────────────────────────────── */
[data-theme="light"] {
  --bg-base:       #F8FAFC;
  --bg-surface:    #FFFFFF;
  --bg-elevated:   #FFFFFF;
  --txt-pri:       #0F172A;
  --txt-sec:       #64748B;
  --txt-muted:     #94A3B8;
  --txt-inv:       #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-default:#CBD5E1;
  --state-hover:   #EFF6FF;
  --state-active:  #DBEAFE;
  --state-focus:   #93C5FD;
  --header-bg:     rgba(248, 250, 252, 0.94);
  --card-bg:       #FFFFFF;
  --input-bg:      #F1F5F9;
  --stream-opacity:.05;
  --mobile-nav-bg: rgba(255, 255, 255, 0.97);
}

/* ── TEMA ESCURO ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg-base:       #020617;
  --bg-surface:    #0F172A;
  --bg-elevated:   #1E293B;
  --txt-pri:       #E2E8F0;
  --txt-sec:       #94A3B8;
  --txt-muted:     #64748B;
  --txt-inv:       #020617;
  --border-subtle: #1E293B;
  --border-default:#334155;
  --state-hover:   rgba(255, 255, 255, 0.05);
  --state-active:  rgba(255, 255, 255, 0.08);
  --state-focus:   #38BDF8;
  --header-bg:     rgba(2, 6, 23, 0.94);
  --card-bg:       #0F172A;
  --input-bg:      #020617;
  --stream-opacity:.11;
  --mobile-nav-bg: rgba(15, 23, 42, 0.97);
}

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-base);
  color: var(--txt-pri);
  font-family: var(--font-body);
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.65;
  transition: background 0.35s, color 0.35s;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ═══════════════════════════════════════════════════════════
   AIRFLOW BACKGROUND
   ═══════════════════════════════════════════════════════════ */
#airBox {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.stream {
  position: absolute;
  height: 1px;
  width: 260px;
  background: linear-gradient(90deg, transparent, var(--s-400), transparent);
  opacity: var(--stream-opacity);
  animation: flow 14s linear infinite;
}

@keyframes flow {
  0%   { transform: translateX(-320px) translateY(var(--y)); opacity: 0; }
  30%  { opacity: var(--stream-opacity); }
  80%  { opacity: calc(var(--stream-opacity) * 0.6); }
  100% { transform: translateX(120vw) translateY(var(--y)); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.35s, border-color 0.35s;
}

/* Logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
}

.logo-text .brand {
  display: block;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  background: var(--grad-premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo-text small {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--s-500);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--s-500);
}

/* Nav desktop */
nav.desktop {
  display: none;
  align-items: center;
  gap: 2px;
}

nav.desktop a {
  color: var(--txt-sec);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: 0.25s;
}

nav.desktop a:hover {
  color: var(--s-400);
  background: var(--state-hover);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão de tema */
.btn-theme {
  background: none;
  border: 1px solid var(--border-default);
  color: var(--txt-sec);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  flex-shrink: 0;
}

.btn-theme:hover {
  background: var(--state-hover);
  color: var(--s-400);
  border-color: var(--s-400);
}

/* ═══════════════════════════════════════════════════════════
   BOTÕES
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--grad-premium);
  color: #fff;
  box-shadow: var(--glow-pri);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-str);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--txt-pri);
}

.btn-ghost:hover {
  border-color: var(--s-400);
  color: var(--s-400);
  background: var(--state-hover);
}

.btn-wa {
  background: #22C55E;
  color: #fff;
}

.btn-wa:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.page-wrap {
  position: relative;
  z-index: 1;
}

section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── CHIP ────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--s-400);
  background: rgba(56, 189, 248, 0.08);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100svh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 108px;
  padding-bottom: 60px;
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  justify-content: center;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h1 .gradient-text {
  background: var(--grad-premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--txt-sec);
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 52px;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.stat {
  background: var(--bg-surface);
  padding: 20px 10px;
  text-align: center;
  transition: background 0.3s;
}

.stat:hover { background: var(--state-hover); }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--grad-premium);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--txt-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--txt-sec);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.7;
}

.accent-line {
  color: var(--s-400);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: var(--grad-primary);
  transition: 0.4s;
  border-radius: inherit;
  z-index: 0;
  mask:
    linear-gradient(white, white) content-box,
    linear-gradient(white, white);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-pri);
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s-400);
  margin-bottom: 18px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.875rem;
  color: var(--txt-sec);
  line-height: 1.65;
}

/* ── Feature card ───────────────────────────────────────── */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card-inner { padding: 32px; }

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--txt-pri);
}

.feature-list li svg {
  flex-shrink: 0;
  color: var(--s-400);
  margin-top: 2px;
}

.feature-highlight {
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid var(--s-400);
  padding: 20px 24px;
}

.feature-highlight p {
  font-size: 0.875rem;
  color: var(--txt-sec);
}

/* ═══════════════════════════════════════════════════════════
   CALLOUT
   ═══════════════════════════════════════════════════════════ */
.callout {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
}

.callout-icon {
  flex-shrink: 0;
  color: #ef4444;
  margin-top: 1px;
}

.callout p {
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CALCULADORA
   ═══════════════════════════════════════════════════════════ */
.calc-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glow-pri);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--s-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  padding: 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--txt-pri);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: 0.25s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus {
  border-color: var(--s-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.calc-result {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.btu-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--txt-pri);
  line-height: 1;
}

.tr-number {
  font-size: 0.875rem;
  color: var(--s-400);
  margin-top: 4px;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════
   PMOC
   ═══════════════════════════════════════════════════════════ */
.pmoc-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ═══════════════════════════════════════════════════════════
   QUOTE
   ═══════════════════════════════════════════════════════════ */
.quote-wrap {
  background: var(--grad-premium);
  padding: 2px;
  border-radius: var(--radius-lg);
  display: block;
  width: 100%;
}

.quote-inner {
  background: var(--bg-base);
  border-radius: calc(var(--radius-lg) - 2px);
  padding: 32px;
  text-align: center;
}

blockquote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--txt-pri);
}

/* ═══════════════════════════════════════════════════════════
   CONTACT CARD
   ═══════════════════════════════════════════════════════════ */
.contact-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--grad-premium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
}

.contact-email {
  font-size: 0.85rem;
  color: var(--txt-muted);
  margin-top: 14px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 5%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--txt-muted);
  background: var(--bg-surface);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE NAV (bottom bar)
   ═══════════════════════════════════════════════════════════ */
.nav-mobile {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px;
  z-index: 2000;
  box-shadow: var(--sh-lg);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--txt-muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 12px;
  transition: 0.25s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--s-400);
  background: rgba(56, 189, 248, 0.08);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════
   UTILITÁRIOS INLINE MIGRADOS
   ═══════════════════════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-sec     { color: var(--txt-sec); }
.text-muted   { color: var(--txt-muted); }
.text-accent  { color: var(--s-400); }
.fw-700       { font-weight: 700; }
.mt-4         { margin-top: 4px; }
.mt-10        { margin-top: 10px; }
.mt-14        { margin-top: 14px; }
.mt-16        { margin-top: 16px; }
.mt-20        { margin-top: 20px; }
.mb-6         { margin-bottom: 6px; }
.mb-24        { margin-bottom: 24px; }
.w-full       { width: 100%; }
.flex-wrap    { flex-wrap: wrap; }
.gap-12       { gap: 12px; }

.pmoc-btns {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sobre-desc {
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--txt-sec);
  font-size: 1rem;
  line-height: 1.7;
}

.sobre-section { text-align: center; }
.contato-section { text-align: center; padding-bottom: 120px; }

.engenharia-desc {
  color: var(--txt-sec);
  margin: 16px 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.nr10-title { font-size: 1.2rem; margin-top: 10px; }
.nr10-text  { margin-top: 10px; }

.contact-role {
  color: var(--txt-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.contact-label {
  color: var(--s-400);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .calc-grid    { grid-template-columns: 1fr 1fr; }
  .grid-3       { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  section { padding: 100px 6%; }

  nav.desktop            { display: flex; }
  .header-actions .btn-sm{ display: inline-flex; }
  .grid-3                { grid-template-columns: repeat(3, 1fr); }
  .nav-mobile            { display: none; }

  .hero           { text-align: left; }
  .hero-eyebrow   { justify-content: flex-start; }
  .hero-ctas      { justify-content: flex-start; }
  .hero-stats     { max-width: 560px; }
  .hero-sub       { margin-left: 0; margin-right: auto; }

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

@media (min-width: 900px) and (max-width: 1100px) {
  header { padding: 0 4%; }
}

@media (max-width: 900px) {
  .header-actions .btn-sm { display: none; }
  body { padding-bottom: 100px; }
}

/* ═══════════════════════════════════════════════════════════
   CARROSSEL DE PRODUTOS — Sistemas de Climatização
   ═══════════════════════════════════════════════════════════ */

/* ── Seção wrapper ───────────────────────────────────────── */
.produtos-section {
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
}

.produtos-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Track: faixa deslizante ─────────────────────────────── */
.carousel-viewport {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.35, 1);
  will-change: transform;
  padding: 12px 5% 28px;
}

/* ── Card do produto ─────────────────────────────────────── */
.prod-card {
  flex: 0 0 260px;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s,
              border-color 0.3s;
  position: relative;
}

.prod-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--glow-pri);
  border-color: rgba(56, 189, 248, 0.5);
}

.prod-card.active-card {
  border-color: var(--s-400);
  box-shadow: var(--glow-pri);
}

/* Imagem do card */
.prod-img-wrap {
  width: 100%;
  height: 168px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: block;
  position: relative;
  z-index: 1;
}

.prod-card:hover .prod-img-wrap img {
  transform: scale(1.07);
}

/* Placeholder: fica atrás da imagem (position absolute) */
/* Só aparece visualmente se a img falhar (tratado via JS) */
.prod-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
  z-index: 0;
}

/* Quando imagem falha, esconde a img e mostra placeholder */
.prod-img-wrap.img-error img {
  display: none;
}

.prod-img-wrap.img-error .prod-img-placeholder {
  z-index: 1;
}

.prod-img-placeholder svg {
  color: var(--s-400);
  opacity: 0.7;
}

.prod-img-placeholder span {
  font-size: 0.7rem;
  color: var(--txt-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Badge de categoria no canto */
.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--s-400);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Ícone "ver mais" */
.prod-expand-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s-400);
  transition: 0.3s;
}

.prod-card:hover .prod-expand-icon {
  background: var(--s-400);
  color: #fff;
  transform: scale(1.1);
}

/* Conteúdo textual do card */
.prod-body {
  padding: 18px 20px 20px;
}

.prod-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--txt-pri);
  margin-bottom: 6px;
  line-height: 1.3;
}

.prod-tagline {
  font-size: 0.78rem;
  color: var(--txt-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-cta-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--s-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Controles ───────────────────────────────────────────── */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding-bottom: 4px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--card-bg);
  color: var(--txt-pri);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--s-400);
  border-color: var(--s-400);
  color: #fff;
  box-shadow: var(--glow-pri);
  transform: scale(1.08);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Dots de paginação */
.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-default);
  transition: 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.dot.active {
  width: 22px;
  background: var(--s-400);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* Barra de progresso automático */
.carousel-progress {
  height: 2px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 5%;
  margin-top: 16px;
}

.carousel-progress-bar {
  height: 100%;
  background: var(--grad-airflow);
  border-radius: 999px;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── MODAL / POPUP ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Modal como bottom-sheet no mobile, centered no desktop */
.modal-sheet {
  background: var(--bg-surface);
  border-radius: 28px 28px 0 0;
  width: 100%;
  max-width: 100%;
  max-height: 90svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

/* Handle de drag no mobile */
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border-default);
  border-radius: 999px;
  margin: 14px auto 0;
}

/* Header do modal */
.modal-head {
  padding: 20px 24px 0;
}

.modal-img-wrap {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 20px;
  position: relative;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
}

.modal-img-placeholder svg { color: var(--s-400); }

.modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--grad-premium);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Título do modal */
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt-pri);
  line-height: 1.2;
  margin-bottom: 8px;
}

/* Subtítulo/indicador */
.modal-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--s-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Corpo do modal */
.modal-body {
  padding: 0 24px 24px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--txt-sec);
  line-height: 1.75;
  margin-bottom: 24px;
}

.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--txt-pri);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.modal-feat-item svg { color: var(--s-400); flex-shrink: 0; }

.modal-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

/* Botão fechar */
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--txt-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}

/* Navegação entre produtos no modal */
.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 20px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 16px;
}

.modal-nav-info {
  font-size: 0.75rem;
  color: var(--txt-muted);
  font-weight: 600;
}

.modal-nav-btns {
  display: flex;
  gap: 8px;
}

.modal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: var(--card-bg);
  color: var(--txt-pri);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.25s;
}

.modal-nav-btn:hover {
  background: var(--s-400);
  border-color: var(--s-400);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (min-width: 640px) {
  .prod-card { flex: 0 0 280px; }
  .prod-img-wrap { height: 180px; }
}

@media (min-width: 900px) {
  .prod-card     { flex: 0 0 300px; }
  .prod-img-wrap { height: 192px; }

  .modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .modal-sheet {
    border-radius: 28px;
    max-width: 560px;
    max-height: 85svh;
    transform: translateY(24px) scale(0.97);
  }

  .modal-overlay.open .modal-sheet {
    transform: translateY(0) scale(1);
  }

  .modal-handle { display: none; }

  .modal-img-wrap  { height: 240px; }
  .modal-title     { font-size: 1.75rem; }
  .modal-actions   { flex-direction: row; }
  .modal-actions .btn { flex: 1; }
}

/* ── Modal: ícone badge no canto inferior direito da imagem ── */
.modal-icon-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.20);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s-400);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

/* Modal img fora do modal-head — ocupa topo sem padding */
#prodModal .modal-img-wrap {
  border-radius: 0;
  margin-bottom: 0;
  width: 100%;
  height: 220px;
}

#prodModal .modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* modal-head agora só tem texto */
#prodModal .modal-head {
  padding: 20px 24px 0;
}

@media (min-width: 900px) {
  #prodModal .modal-img-wrap {
    border-radius: 28px 28px 0 0;
    height: 260px;
  }
}
