:root {
  --brand-900: #0b1f4d;
  --brand-700: #113171;
  --brand-500: #1e49a7;
  --brand-100: #e4edff;
  --accent: #2bc56d;
  --bg: radial-gradient(circle at 10% 10%, rgba(43, 197, 109, 0.08), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(30, 73, 167, 0.16), transparent 42%),
    linear-gradient(160deg, #f2f7ff 0%, #f9fbff 55%, #eef4ff 100%);
  --surface: #ffffff;
  --text: #111827;
  --muted: #55627c;
  --shadow: 0 16px 34px rgba(12, 39, 93, 0.16);
  --shadow-soft: 0 10px 24px rgba(12, 39, 93, 0.11);

  /* Backward-compatible aliases used in product.js inline styles */
  --primary-color: var(--brand-700);
  --secondary-color: var(--brand-500);
  --text-dark: var(--text);
  --text-light: var(--muted);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.28;
  background-image: radial-gradient(rgba(17, 49, 113, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.product-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #dce8ff;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.product-header-inner {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-700);
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: var(--shadow-soft);
}

.brand strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.16rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid #cddcff;
  background: #ffffff;
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.product-shell {
  width: min(1160px, calc(100% - 28px));
  margin: 20px auto 36px;
}

.produto-card {
  background: var(--surface);
  border: 1px solid #d9e5ff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.produto-imagem {
  background: #f5f7ff;
  border: 1px solid #e5edff;
}

.produto-imagem img {
  display: block;
}

.badge {
  letter-spacing: 0.2px;
}

.btn.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(90deg, #20bf62, #1b8c48);
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 30px rgba(37, 211, 102, 0.32);
}

#product-detail > p {
  margin: 0;
  border: 1px solid #dce8ff;
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 980px) {
  .produto-card {
    gap: 16px !important;
    padding: 18px !important;
  }

  .produto-imagem {
    min-width: 260px !important;
    max-width: 340px !important;
    height: 250px !important;
  }
}

@media (max-width: 760px) {
  .product-header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .btn-ghost {
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .product-shell {
    margin-top: 14px;
  }

  .produto-card {
    flex-direction: column !important;
    border-radius: 18px;
  }

  .produto-imagem {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
    height: 220px !important;
  }

  .produto-card h2 {
    font-size: 1.5rem !important;
  }

  .produto-card .preco {
    font-size: 1.48rem !important;
  }

  .produto-card p {
    font-size: 0.95rem !important;
  }

  .btn.btn-whatsapp {
    width: 100%;
    font-size: 1rem !important;
    padding: 12px 14px !important;
  }
}

@media (max-width: 480px) {
  .product-shell {
    width: min(1160px, calc(100% - 20px));
  }

  .product-header-inner {
    width: min(1160px, calc(100% - 20px));
  }

  .produto-card {
    padding: 14px !important;
  }

  .produto-imagem {
    height: 196px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
