:root {
  --bg: #0b0d12;
  --bg-elev: #14171f;
  --border: #232733;
  --text: #f2f3f5;
  --text-muted: #9aa0ac;
  --accent-gold: #ffb81c;
  --accent-blue: #2b4dff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --radius: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

button { font: inherit; }

.card {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
}

/* 1. Hero */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* 2. Galeria */
.gallery {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}

.gallery::-webkit-scrollbar { display: none; }

.thumb {
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}

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

.thumb.is-active {
  opacity: 1;
  border-color: var(--accent-gold);
}

/* Info */
.info {
  padding: 20px 18px 4px;
}

.title {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.badge-conserved {
  display: inline-block;
  background: rgba(43, 77, 255, 0.15);
  color: #7d93ff;
  border: 1px solid rgba(43, 77, 255, 0.4);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.benefits {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px;
}

.benefits li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--text);
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.5);
}

.benefits li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: -1px;
  font-size: 0.72rem;
  color: var(--whatsapp);
  font-weight: 900;
}

/* Descrição */
.description {
  margin-bottom: 22px;
}

.description-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 8px;
}

.description-text.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-read-more {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
}

/* 9. Botões secundários */
.secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 18px 18px;
}

.btn-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 4px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:active {
  background: #1b1f2a;
}

.btn-secondary.is-copied {
  color: var(--whatsapp);
  border-color: var(--whatsapp);
}

/* Rodapé */
.footer {
  text-align: center;
  padding: 6px 18px 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.fixed-cta-spacer {
  height: 84px;
}

/* 8. Botão fixo inferior */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(11,13,18,0) 0%, rgba(11,13,18,0.96) 30%, var(--bg) 100%);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: var(--whatsapp);
  color: #05210f;
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: background 0.15s, transform 0.1s;
}

.btn-whatsapp:active {
  background: var(--whatsapp-dark);
  transform: scale(0.98);
}

@media (min-width: 600px) {
  .hero { aspect-ratio: 16 / 9; }
  .title { font-size: 1.6rem; }
  .price { font-size: 2.4rem; }
}
