/* Elixir 43 — Revenda. CSS único, sem framework. */
:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6577;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --gold: #c9a227;
  --gold-soft: #f4ecd2;
  --gold-ink: #7a5d07;
  --dark: #0b1220;
  --dark-2: #141c2e;
  --on-dark: #e8eaef;
  --on-dark-muted: #9aa3b5;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 14px;
  --wrap: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--on-dark-muted); }
.eyebrow { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #dcb63a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem/1 var(--serif); }
.brand img { height: 34px; width: auto; }
.brand small { font: 700 .65rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); }
.nav .btn { margin-left: 8px; min-height: 42px; padding: 8px 18px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero p.lead { color: var(--on-dark-muted); }
.hero-media { position: relative; }
.hero-media img { border-radius: 24px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -16px; bottom: 24px; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.hero-badge strong { display: block; font: 700 1.5rem/1 var(--serif); }
.hero-badge span { font-size: .8rem; color: var(--muted); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--on-dark); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 8px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero-media { max-width: 420px; }
  .hero-badge { left: 12px; }
}

/* Números */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 8px; }
.stat strong { display: block; font: 700 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--serif); }
.stat span { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }

/* Cartões */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-dark .card { background: var(--dark-2); border-color: #26304a; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); border-radius: 999px; padding: 6px 10px; margin-bottom: 14px; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card li { margin-bottom: .35em; }
.card-model { display: flex; flex-direction: column; }
.card-model .tag { align-self: flex-start; }
.card-model .btn { margin-top: auto; align-self: flex-start; }
.card-model.featured { border: 2px solid var(--gold); }

/* Passos */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 700 1.1rem/1 var(--serif); }
.steps h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Comparativo */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare thead th { background: var(--bg-soft); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.compare td:nth-child(2) { font-weight: 700; color: var(--gold-ink); }
.compare tr:last-child td { border-bottom: 0; }

/* Produtos */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.product:hover { box-shadow: 0 10px 28px rgba(11,18,32,.1); transform: translateY(-2px); }
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--bg-soft); }
.product-body { padding: 14px 16px 18px; }
.product-body h3 { font-size: 1.1rem; margin: 0 0 4px; }
.product-body .insp { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.product-body .fam { display: block; line-height: 1.45; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.product[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: 700 .9rem/1 var(--sans); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }

/* Página do produto */
.crumbs { font-size: .9rem; color: var(--muted); padding: 18px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.gallery-main img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; }
.pdp .insp { font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.pills li { background: var(--bg-soft); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 700; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 24px; font-size: .97rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; }
.pyramid { display: grid; gap: 10px; margin: 0 0 24px; }
.pyramid div { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.pyramid strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.resale { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 24px; margin: 8px 0 24px; }
.resale .price { font: 700 2rem/1 var(--serif); color: #fff; }
.resale p { color: var(--on-dark-muted); margin: 8px 0 16px; font-size: .95rem; }
.resale .btn { width: 100%; }
.store-link { font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--gold-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 36px; }

/* Formulário */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; gap: 28px; } }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cbd0d8; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--gold); outline: 2px solid var(--gold-soft); }
.form .btn { width: 100%; }
.form small { display: block; color: var(--muted); margin-top: 12px; font-size: .82rem; }
.form-msg { margin-top: 14px; font-weight: 700; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }

/* Rodapé */
.foot { background: var(--dark); color: var(--on-dark-muted); padding: 56px 0 28px; font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h2 { font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .legal { border-top: 1px solid #26304a; margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product, .btn { transition: none; }
}

/* ---------- utilitários ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-link { background: none; border: 0; padding: 6px 0; font: 700 .9rem/1.2 var(--sans); color: var(--gold-ink); text-decoration: underline; cursor: pointer; }

/* ---------- catálogo: busca e filtros ---------- */
.catalog-tools { margin-top: 28px; }
.search input { width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid #cbd0d8; border-radius: 999px; font: inherit; font-size: 16px; background: #fff; }
.search input:focus { border-color: var(--gold); outline: 2px solid var(--gold-soft); }
.filter-panel { margin: 16px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 4px 20px 16px; }
.filter-panel summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0 6px; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: " ▾"; color: var(--gold-ink); }
.filter-panel:not([open]) summary::after { content: " ▸"; }
.filter-grid { display: grid; gap: 14px; margin-top: 8px; }
.filter-label { display: block; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.filter-block .filters { margin: 0; }
.filter-block .chip { min-height: 36px; padding: 8px 14px; font-size: .85rem; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
.product-body .meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.product-body .meta span { font-size: .72rem; font-weight: 700; background: var(--bg-soft); border-radius: 999px; padding: 4px 8px; color: var(--ink-2); }
.product-body .motivo { font-size: .85rem; color: var(--ink-2); margin: 10px 0 0; line-height: 1.45; }
.concierge-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 18px 22px; margin: 8px 0 24px; }
.concierge-cta strong { color: #fff; }

/* ---------- quiz ---------- */
.quiz-wrap { max-width: 860px; }
.quiz { margin-top: 28px; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.quiz-step { border: 0; padding: 0; margin: 0; }
.quiz-step legend { font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--serif); margin-bottom: 18px; padding: 0; }
.quiz-step legend small { display: block; font: 700 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.quiz-option { position: relative; }
.quiz-option input { position: absolute; opacity: 0; inset: 0; }
.quiz-option span { display: block; padding: 16px 18px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-option input:hover + span { border-color: #cbd0d8; }
.quiz-option input:checked + span { border-color: var(--gold); background: var(--gold-soft); }
.quiz-option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz-result { margin-top: 12px; }
.quiz-result .products { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
@media (max-width: 720px) { .quiz-result .products { grid-template-columns: 1fr; } }

/* ---------- concierge IA ---------- */
.concierge-float { position: fixed; left: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--dark); color: #fff; font: 700 .92rem/1 var(--sans); box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; }
.concierge-float:hover { background: var(--ink-2); }
@media (max-width: 520px) { .concierge-float span { display: none; } .concierge-float { width: 52px; padding: 0; justify-content: center; font-size: 1.2rem; } }
.concierge { position: fixed; inset: 0; z-index: 60; background: rgba(11,18,32,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.concierge[hidden] { display: none; }
.concierge-box { width: 100%; max-width: 560px; max-height: min(720px, calc(100vh - 32px)); background: #fff; border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (min-width: 720px) { .concierge { align-items: center; } }
.concierge-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--dark); color: #fff; }
.concierge-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.concierge-log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.msg p { margin: 0 0 .6em; }
.msg p:last-child { margin-bottom: 0; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; }
.msg.thinking { color: var(--muted); font-style: italic; }
.concierge-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.concierge-picks .product-body { padding: 8px 10px 10px; }
.concierge-picks .product-body h3 { font-size: .9rem; }
.concierge-picks .insp, .concierge-picks .fam { font-size: .7rem; }
@media (max-width: 480px) { .concierge-picks { grid-template-columns: 1fr 1fr; } }
.concierge-sugestoes { display: flex; gap: 6px; overflow-x: auto; padding: 10px 20px 0; }
.concierge-sugestoes .chip { flex: none; font-size: .8rem; min-height: 34px; padding: 6px 12px; }
.concierge-form { display: flex; gap: 8px; padding: 12px 20px 6px; }
.concierge-form input { flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid #cbd0d8; border-radius: 999px; font: inherit; font-size: 16px; }
.concierge-form .btn { min-height: 46px; padding: 10px 18px; }
.concierge-note { display: block; padding: 0 20px 14px; color: var(--muted); font-size: .75rem; }
body.concierge-open { overflow: hidden; }

/* menu com mais itens: colapsa um pouco antes */
@media (max-width: 1040px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; }
  .nav .btn { margin: 8px 0 0; }
}