/* ============================================================
   produtos.css — estilos exclusivos das páginas de produto
   Depende de: base.css, layout.css, components.css
   ============================================================ */

/* ---------- Variável de cor por produto ---------- */
:root { --produto-cor: #0f5ea8; }

/* ============================================================
   Hero do produto
   ============================================================ */
.produto-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--produto-cor) 8%, transparent), transparent 60%);
  border-bottom: 1px solid var(--color-border);
}

.produto-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 768px) {
  .produto-hero__inner { grid-template-columns: 1fr; }
  .produto-hero__visual { display: none; }
}

.produto-hero__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: color 0.15s;
}
.produto-hero__back:hover { color: var(--color-text); }

.produto-hero__nome {
  color: var(--produto-cor);
}

.produto-hero__tagline {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.35;
}

.produto-hero__tag {
  display: inline-block;
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
}

.produto-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.produto-hero__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-2xl, 24px);
  background: color-mix(in srgb, var(--produto-cor) 10%, var(--color-surface));
  color: var(--produto-cor);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--produto-cor) 18%, transparent);
}

/* ============================================================
   Seção destaques — card com acento de cor
   ============================================================ */
.produto-feature {
  border-top: 3px solid var(--produto-cor);
}

/* ============================================================
   Grid de recursos e para-quem
   ============================================================ */
.produto-detalhes { align-items: start; }

.produto-features-card,
.produto-para-quem { height: 100%; }

/* ============================================================
   Produtos relacionados (seção "continue explorando")
   ============================================================ */
.produto-related {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.produto-related:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
}

.produto-related__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg, 12px);
  background: color-mix(in srgb, var(--produto-cor) 10%, var(--color-surface));
  color: var(--produto-cor);
}

.produto-related > div { flex: 1; }
.produto-related > div .kicker { margin-bottom: var(--space-1); }
.produto-related > div h3 { margin-bottom: var(--space-1); font-size: var(--text-base); }
.produto-related > div p { font-size: var(--text-sm); color: var(--color-muted); margin: 0; }

.produto-related__arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: var(--text-lg);
  color: var(--color-muted);
  transition: transform 0.2s;
}
.produto-related:hover .produto-related__arrow { transform: translateX(4px); }

/* ============================================================
   Overview — grade de cards de produtos (/produtos)
   ============================================================ */
.produto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) { .produto-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .produto-grid { grid-template-columns: 1fr; } }

.produto-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--produto-cor);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow 0.2s, transform 0.2s;
}
.produto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}

.produto-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg, 12px);
  background: color-mix(in srgb, var(--produto-cor) 10%, var(--color-surface));
  color: var(--produto-cor);
  margin-bottom: var(--space-1);
}

.produto-card__kicker { margin-bottom: 0; }

.produto-card__nome {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  margin: 0;
}

.produto-card__tagline {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  line-height: 1.35;
}

.produto-card__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  flex: 1;
}

.produto-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.produto-card__bullets li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-left: var(--space-4);
  position: relative;
}
.produto-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--produto-cor);
}

.produto-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.produto-card__tag {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.produto-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--produto-cor);
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s;
}
.produto-card__cta:hover { gap: var(--space-2); }

/* ============================================================
   Botão de ação inline com ícone
   ============================================================ */
.button__icon { vertical-align: middle; margin-left: var(--space-1); }

/* ============================================================
   WhatsApp flutuante
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  animation: none;
}
.whatsapp-float svg { display: block; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,.70); }
}

@media (max-width: 480px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
}

/* ============================================================
   Seção de produtos na home (index.php)
   ============================================================ */
.home-produtos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (max-width: 1024px) { .home-produtos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .home-produtos-grid { grid-template-columns: 1fr; } }

.home-produto-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--produto-cor);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;          /* evita overflow em grid */
  overflow: hidden;
}
.home-produto-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
}

.home-produto-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md, 8px);
  background: color-mix(in srgb, var(--produto-cor) 10%, var(--color-surface));
  color: var(--produto-cor);
}

.home-produto-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0;
  color: var(--color-heading);
  word-break: break-word;
}

.home-produto-card p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.home-produto-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--produto-cor);
  margin-top: var(--space-2);
}

/* Kicker dentro do card da home — menor, sem quebra */
.home-produto-card .kicker {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
  opacity: 0.8;
  max-width: 100%;
}

/* Seção de produtos na home — espaçamento e lead */
.section--produtos-home .section__lead {
  max-width: 64ch;
}
