/* ==========================================================================
   P3D.ART · Natal — loja da árvore com nomes (landing, checkout e pedido)
   Tipografia da marca (Bricolage + Instrument Serif) com paleta de Natal.
   ========================================================================== */
:root {
  --pine: #0f3d2e;
  --pine-2: #17513d;
  --pine-3: #0a2c21;
  --green: #2f9a4c;
  --red: #c62a2f;
  --red-deep: #9c1f25;
  --gold: #f0b429;
  --gold-soft: #fbe7b0;
  --cream: #f6efe2;
  --paper: #fbf7ef;
  --white: #fffdf7;
  --ink: #12261d;
  --muted: #5b6a61;
  --line: #e4d9c3;
  --ok: #23774a;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --tree: var(--display);   /* troca para a fonte da peça quando ela carrega (arvore.js) */

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before { content: "★"; color: var(--gold); font-size: 14px; letter-spacing: 0; }

/* ---------- botões ---------- */
.btn {
  --bg: var(--red); --fg: var(--white); --hover: var(--red-deep);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 700 16.5px/1 var(--display); letter-spacing: -.01em; text-decoration: none;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 14px 34px -16px rgba(156, 31, 37, .7);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hover); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--gold { --bg: var(--gold); --fg: var(--ink); --hover: #ffc94a; box-shadow: 0 14px 34px -16px rgba(240, 180, 41, .8); }
.btn--pine { --bg: var(--pine); --hover: var(--pine-2); box-shadow: 0 14px 34px -18px rgba(15, 61, 46, .8); }
.btn--ghost { --bg: transparent; --fg: currentColor; --hover: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--block { width: 100%; }
.btn.is-busy::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); transform-origin: 0 50%; animation: busy 1.2s var(--ease) infinite; }
@keyframes busy { from { transform: scaleX(0); } to { transform: scaleX(1); opacity: 0; } }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--pine) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--white);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand b i { font-style: normal; color: var(--gold); }
.brand small { display: block; font: italic 400 17px/1 var(--serif); color: var(--gold-soft); margin-top: 2px; }
.top .btn { padding: 12px 18px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 85% -10%, rgba(240, 180, 41, .18), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(47, 154, 76, .25), transparent 60%),
    var(--pine);
  color: var(--white);
}
.hero::before {   /* neve discreta */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 120px 80px, #fff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 200px 150px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60px 190px, #fff 50%, transparent 51%);
  background-size: 240px 240px;
  animation: neve 24s linear infinite;
}
@keyframes neve { to { background-position: 0 240px, 40px 240px, -30px 240px, 20px 240px; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 7vw, 96px); }
.hero h1 { margin: 0 0 20px; font: 800 clamp(2.5rem, 5.6vw, 4.6rem)/.98 var(--display); letter-spacing: -.035em; }
.hero h1 em { color: var(--gold); font-size: 1.08em; }
.hero__lead { max-width: 30em; margin: 0 0 28px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 253, 247, .82); }
.hero__buy { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price { display: grid; line-height: 1; }
.price strong { font: 800 2.3rem/1 var(--display); letter-spacing: -.04em; }
.price small { margin-top: 6px; font-size: 13.5px; color: rgba(255, 253, 247, .7); }
.prazo-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 14px; font-weight: 600;
}
.prazo-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(240, 180, 41, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(240, 180, 41, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, 0); } }
.hero__media { position: relative; max-width: 400px; margin-inline: auto; }
/* A foto principal flutua devagar, no mesmo compasso do pandinha e da etiqueta. */
.hero__foto {
  position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--pine);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 34px 70px -34px rgba(0, 0, 0, .8);
  --r: -2deg; --y: 9px;
  animation: flutua 6.4s ease-in-out -.4s infinite;
}
.hero__foto img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
@keyframes flutua {
  0%, 100% { transform: rotate(var(--r)) translateY(calc(var(--y) * -1)); }
  50% { transform: rotate(var(--r)) translateY(var(--y)); }
}
.hero__panda {
  position: absolute; left: -32px; bottom: 16px; width: 128px; z-index: 4;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35));
  animation: balanca 4s ease-in-out infinite; transform-origin: 50% 90%;
}
.hero__panda img { display: block; width: 100%; height: auto; }
/* Pálpebras: ficam fechadas por um instante e somem de novo. */
.hero__pisca { position: absolute; inset: 0; width: 100%; height: 100%; fill: #1f1f21; }
.hero__pisca ellipse { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: piscar 6.5s ease-in-out infinite; }
@keyframes piscar { 0%, 92%, 100% { transform: scaleY(0); } 94%, 96% { transform: scaleY(1); } }
@keyframes balanca { 50% { transform: rotate(-6deg) translateY(-4px); } }
.hero__tag {
  position: absolute; left: -14px; top: 18px; z-index: 5; padding: 10px 14px; border-radius: 14px;
  background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 700;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); transform: rotate(-3deg);
  transform-origin: 18% 82%; animation: etiqueta 5.6s ease-in-out infinite;
}
@keyframes etiqueta {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-1.2deg) translateY(-6px); }
}
.hero__tag em { color: var(--red); font-size: 1.15em; }
/* O selo do cartão que vai na caixa, do lado oposto ao pandinha.
   Só o anel de texto gira; o fundo e o panda ficam parados. */
.hero__selo {
  position: absolute; right: -30px; top: 27%; width: 116px; z-index: 5;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45));
}
.hero__selo svg { display: block; width: 100%; height: auto; }
.hero__selo text { font: 800 7.4px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.hero__selo-gira { transform-box: view-box; transform-origin: 50% 50%; animation: gira 22s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- seções ---------- */
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0 0 14px; font: 800 clamp(2rem, 4.2vw, 3.3rem)/1.02 var(--display); letter-spacing: -.035em; }
.section-head h2 em { color: var(--red); }
.section-head p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 36em; }

/* ---------- monte a sua ---------- */
.monte { background: var(--cream); }
.monte__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.preview {
  position: sticky; top: 92px;
  padding: clamp(18px, 3vw, 32px); border-radius: 30px;
  background:
    radial-gradient(420px 300px at 50% 0%, rgba(240, 180, 41, .16), transparent 70%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(15, 61, 46, .55);
}
.preview__tree { display: grid; place-items: center; min-height: 380px; }
.preview__tree svg { width: 100%; max-width: 420px; max-height: 560px; height: auto; transition: opacity .25s; }
.preview__tree.is-loading svg { opacity: .4; }
.preview__note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.cfg { display: grid; gap: 18px; }
.card { padding: clamp(18px, 2.6vw, 28px); border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.card__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.card__title small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card__hint { margin: 0 0 16px; font-size: 14px; color: var(--muted); }

.nomes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.nome { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; animation: entra .45s var(--ease) both; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.nome__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--white); background: var(--green); }
.nome.is-red .nome__n { background: var(--red); }
.nome.is-sem .nome__n { background: var(--line); color: var(--muted); }
.nome[data-cor="vermelho"] .nome__n { background: var(--red); }
.nome[data-cor="branco"] .nome__n { background: #f4f1ea; color: var(--ink); box-shadow: inset 0 0 0 1.5px #c9c1b1; }

/* opções de cor */
.cores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cor { position: relative; display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--paper); text-align: center; cursor: pointer; transition: border-color .25s, background .25s, transform .35s var(--ease-back); }
.cor:hover { border-color: var(--muted); }
.cor:has(input:checked) { border-color: var(--pine); background: var(--white); box-shadow: 0 14px 30px -22px rgba(15, 61, 46, .6); transform: translateY(-1px); }
.cor:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.cor input { position: absolute; opacity: 0; pointer-events: none; }
.cor__amostra { display: grid; justify-items: center; gap: 2px; height: 64px; align-content: end; }
.cor__amostra i { display: block; height: 9px; border-radius: 2px; }
.cor__amostra .estrela { width: 11px; height: 11px; border-radius: 0; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.cor__amostra .branco { background: #f4f1ea; box-shadow: inset 0 0 0 1px #c9c1b1; }
.cor__amostra .verde { background: var(--green); }
.cor__amostra .vermelho { background: var(--red); }
.cor__amostra .marrom { height: 6px; background: #8b6448; }
.cor__foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 12px; }
.cor strong { font-size: 14.5px; }
.cor small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.preview.is-branca { background: radial-gradient(420px 300px at 50% 0%, rgba(240, 180, 41, .14), transparent 70%), #ece4d3; }
@media (max-width: 420px) { .cor small { display: none; } }
.nome input {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper);
  font: 800 19px/1.1 var(--tree); letter-spacing: .02em; text-transform: uppercase; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.nome input::placeholder { color: #b3ab9b; }
.nome input:focus { outline: none; border-color: var(--pine); background: var(--white); box-shadow: 0 0 0 4px rgba(15, 61, 46, .08); }
.nome.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(198, 42, 47, .1); }
.nome__acts { display: flex; gap: 2px; }
.ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); transition: background .2s, color .2s; }
.ico:hover { background: var(--cream); color: var(--ink); }
.ico[disabled] { opacity: .3; pointer-events: none; }
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1.5px dashed var(--line); font-size: 14.5px; font-weight: 700; color: var(--pine); transition: border-color .25s, background .25s; }
.add:hover { border-color: var(--pine); background: var(--paper); }
.arvores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.arvores button { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 700; color: var(--muted); transition: border-color .25s, background .25s, color .25s; }
.arvores button:hover { border-color: var(--pine); color: var(--pine); }
.arvores button[aria-selected="true"] { border-color: var(--pine); background: var(--pine); color: #fff; }
.arvores button[data-tirar-arvore] { color: var(--erro, #c62a2f); border-style: dashed; }
.card--outra { text-align: center; }
.ordem { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.ordem input { width: 18px; height: 18px; accent-color: var(--pine); }
.acento { margin: -6px 0 16px; padding: 10px 12px; border-radius: 12px; background: #fbf3df; border: 1px solid var(--gold-soft); font-size: 13.5px; line-height: 1.45; color: #5f4a14; }
.aviso-acento { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--pine); color: var(--white); font-size: 13.5px; animation: entra .35s var(--ease) both; }
/* Tamanho da árvore: aparece com 6 nomes (convite para a grande) e vira destaque quando ela é a grande. */
.tamanho { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--cream); color: var(--ink); font-size: 13.5px; }
.tamanho.is-grande { background: var(--gold-soft); }
.tamanho a { color: inherit; }
.preview__foto { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; }
.erro { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--red); }
.erro:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font: 800 16px/1 var(--tree); letter-spacing: .02em; color: var(--ink);
  transition: border-color .25s, background .25s, color .25s, transform .35s var(--ease-back);
}
.chip:hover { border-color: var(--muted); }
.chip[aria-checked="true"] { background: #7d5e4b; border-color: #7d5e4b; color: var(--white); transform: translateY(-1px); }
.chip--outro { font: 700 14px/1 var(--display); letter-spacing: 0; }
.base-outro { margin-top: 12px; }
.base-outro input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: 800 19px/1.1 var(--tree); letter-spacing: .02em; text-transform: uppercase; }
.base-outro input:focus { outline: none; border-color: var(--pine); background: var(--white); }

/* frete */
.cep-row { display: flex; gap: 8px; }
.cep-row input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: 600 17px/1 var(--display); letter-spacing: .02em; }
.cep-row input:focus { outline: none; border-color: var(--pine); background: var(--white); }
.cep-row .btn { padding: 14px 18px; font-size: 15px; box-shadow: none; }
.cep-hint { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); min-height: 1.2em; }
.fretes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.frete { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .25s, background .25s; }
.frete:has(input:checked) { border-color: var(--pine); background: #f1f6ef; }
.frete input { appearance: none; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.frete input:checked { border-color: var(--pine); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 10px var(--pine); }
.frete__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.frete__txt strong { font-size: 15px; }
.frete__txt small { font-size: 13px; color: var(--muted); }
.frete__preco { font-weight: 800; white-space: nowrap; }
.frete__preco.is-free { color: var(--ok); }

.resumo { display: grid; gap: 8px; margin: 0 0 18px; font-size: 15.5px; }
.resumo div { display: flex; justify-content: space-between; gap: 12px; }
.resumo dt { color: var(--muted); }
.resumo dd { margin: 0; font-weight: 700; }
.resumo .total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 17px; }
.resumo .total dt { color: var(--ink); font-weight: 700; }
.resumo .total dd { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.selos { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.selos li { display: flex; align-items: center; gap: 6px; }
.selos li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- galeria ---------- */
/* Mosaico: branca (alta) · clássica (grande) · verde (alta) em cima, quatro fotos embaixo. */
.galeria { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 290px); grid-auto-flow: dense; gap: 14px; }
.galeria figure { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: var(--cream); }
.galeria .g-grande { grid-column: span 2; grid-row: span 2; }
.galeria .g-alta { grid-row: span 2; }
.galeria .g-alta img { object-position: 50% 62%; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.galeria figure:hover img { transform: scale(1.04); }
.galeria figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 11px; border-radius: 999px; background: rgba(255, 253, 247, .92); font-size: 12.5px; font-weight: 700; }

/* ---------- detalhes / passos ---------- */
.detalhes { background: var(--pine); color: var(--white); }
.detalhes .section-head p { color: rgba(255, 253, 247, .75); }
.detalhes .section-head h2 em { color: var(--gold); }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.specs li { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.specs strong { display: block; margin-bottom: 6px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--gold); }
.specs span { font-size: 14.5px; color: rgba(255, 253, 247, .8); }
.passos { counter-reset: p; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.passos li { counter-increment: p; padding: 26px 24px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.passos li::before { content: "0" counter(p); display: block; margin-bottom: 18px; font: 800 2.2rem/1 var(--display); color: var(--red); }
.passos h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -.02em; }
.passos p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- rodapé ---------- */
.foot { background: var(--pine-3); color: rgba(255, 253, 247, .75); font-size: 14px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 34px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--gold); }

/* barra de compra no celular */
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--pine); color: var(--white); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.buybar.is-on { transform: none; }
.buybar strong { font-size: 1.15rem; letter-spacing: -.02em; }
.buybar small { display: block; font-size: 12px; color: rgba(255, 253, 247, .7); }
.buybar .btn { margin-left: auto; padding: 13px 18px; font-size: 15px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 14.5px; font-weight: 600; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility .3s; pointer-events: none; }
/* Só mostra com mensagem: no iPhone, a barra do Safari recolhe e o toast vazio aparecia. */
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ==========================================================================
   Checkout e página do pedido
   ========================================================================== */
.co { background: var(--paper); }
.co-top { background: var(--pine); color: var(--white); }
.co-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.co-secure { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; color: rgba(255, 253, 247, .8); }
.co-secure svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: 34px 90px; }
.co-title { margin: 0 0 10px; font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.04 var(--display); letter-spacing: -.035em; }
.co-title em { color: var(--red); }
.co-lead { margin: 0 0 26px; color: var(--muted); max-width: 34em; }

.stepper { list-style: none; margin: 0 0 30px; padding: 0; display: flex; gap: 8px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; border-bottom: 2px solid var(--line); font-size: 14px; font-weight: 700; color: var(--muted); transition: color .4s, border-color .5s; }
.stepper span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); font-size: 12.5px; }
.stepper .is-current { color: var(--ink); border-color: var(--pine); }
.stepper .is-current span { background: var(--pine); color: var(--white); }
.stepper .is-done { color: var(--ink); border-color: var(--green); }
.stepper .is-done span { background: var(--green); color: var(--white); font-size: 0; }
.stepper .is-done span::before { content: "✓"; font-size: 13px; }
.step-panel.is-active { animation: entra .6s var(--ease) both; }

.fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font: 500 16px/1.4 var(--display); color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(15, 61, 46, .08); }
.field.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(198, 42, 47, .1); }
.field-hint { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.span-2 { grid-column: span 2; }
.modos { margin: 0 0 16px; }
.modos + .aviso-retirada { margin-top: -4px; }
.aviso-retirada { margin: 0 0 22px; padding: 14px 16px; border-radius: 16px; background: #e3f1e6; border: 1px solid #b9dcc3; color: #1d4f33; font-size: 14.5px; line-height: 1.5; }
.aviso-retirada b { display: block; margin-bottom: 2px; }

.co-sub { margin: 10px 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }

.co-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.co-error { flex-basis: 100%; margin: 0; text-align: right; color: var(--red); font-size: 14px; font-weight: 700; }
.co-error:empty { display: none; }
.co-fine { margin: 16px 0 0; text-align: right; font-size: 13px; color: var(--muted); }
.link-back { font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

.pagamento { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.pagamento legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
.opcao { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .25s, box-shadow .4s var(--ease); }
.opcao:has(input:checked) { border-color: var(--pine); box-shadow: 0 16px 40px -28px rgba(15, 61, 46, .6); }
.opcao input { appearance: none; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.opcao input:checked { border-color: var(--pine); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 11px var(--pine); }
.opcao-corpo { display: grid; gap: 2px; }
.opcao-corpo strong { font-size: 16px; }
.opcao-corpo small { font-size: 13.5px; color: var(--muted); }
.opcao-selo { margin-left: auto; padding: 7px 11px; border-radius: 999px; background: #e3f1e6; color: var(--ok); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* Cartão fora do ar: o aviso aparece quando o cliente escolhe essa opção. */
.pag-aviso { margin: 0; padding: 14px 16px; border-radius: 16px; background: #fdf3e0; box-shadow: inset 0 0 0 1px #efd9ad; color: #6b4a12; font-size: 14px; line-height: 1.5; }
.pag-aviso strong { display: block; margin-bottom: 2px; }

/* Prazo de produção maior que o normal (NATAL_PRAZO_AVISO). Fica no tom de aviso do
   checkout, não no de erro: é uma informação a mais, não um problema com o pedido. */
.prazo-aviso { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #fdf3e0; box-shadow: inset 0 0 0 1px #efd9ad; color: #6b4a12; font-size: 13.5px; line-height: 1.5; }

.review { display: grid; gap: 12px; }
.review-block { padding: 18px 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.review-block p { margin: 0; }
.review-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pine); }
.review-edit { font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.co-summary { position: sticky; top: 24px; }
.sum-card { padding: 24px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(15, 61, 46, .5); }
.sum-tree { display: grid; place-items: center; padding: 14px; margin-bottom: 16px; border-radius: 18px; background: radial-gradient(260px 200px at 50% 0, rgba(240, 180, 41, .14), transparent 70%), var(--cream); }
.sum-tree svg { width: 100%; max-width: 230px; height: auto; max-height: 300px; }
.sum-lista { list-style: none; margin: 0; padding: 6px 0; display: grid; justify-items: center; gap: 2px; font: 800 20px/1.15 var(--tree); letter-spacing: .02em; text-align: center; }
.sum-lista li:nth-last-child(2n) { color: var(--green); }
.sum-lista li:nth-last-child(2n+3) { color: var(--red); }
.sum-lista .sum-lista__base { color: #7d5e4b; font-size: 15px; }
.sum-name { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.sum-meta { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.sum-edit { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sum-card .resumo { margin: 18px 0; }
.sum-perks { list-style: none; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--paper); display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sum-perks li { position: relative; padding-left: 20px; }
.sum-perks li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }

/* pedido / Pix */
.tr-hero { max-width: 760px; margin: 10px 0 30px; }
.tr-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.pix-card, .timeline-card { padding: clamp(22px, 3.4vw, 34px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); }
.pix-card { box-shadow: 0 40px 90px -50px rgba(15, 61, 46, .55); }
.pix-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.pix-top h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.pix-amount { margin: 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; color: var(--red); }
.pix-code { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); font: 500 11.5px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); word-break: break-all; max-height: 3.2em; overflow: hidden; cursor: pointer; }
.pix-qr-wrap { display: grid; grid-template-columns: 196px 1fr; gap: 24px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.pix-qr { width: 196px; aspect-ratio: 1; padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--white); }
.pix-qr svg { width: 100%; height: 100%; }
.pix-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.pix-steps strong { color: var(--ink); }
.pix-wait { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px; border-radius: 16px; background: #fbf3df; border: 1px solid var(--gold-soft); }
.pix-wait p { margin: 0; font-size: 14px; color: var(--muted); }
.pix-wait strong { color: var(--ink); }
/* Quem escolheu o cartão pode passar para o Pix sem refazer o pedido. O caminho
   inverso não existe: um pedido no Pix nunca mostra a opção de ir para o cartão. */
.pix-troca { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.pix-troca button { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pix-troca button[disabled] { opacity: .5; cursor: default; }
.spinner { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2.5px solid var(--gold-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-copy.is-copied { --bg: var(--ok); }

.tl-tree { display: grid; place-items: center; margin-bottom: 18px; padding: 12px; border-radius: 18px; background: var(--cream); }
.tl-tree svg { width: 100%; max-width: 200px; height: auto; }
.tl-insta { margin: -14px 0 26px; padding: 14px 16px; border-radius: 16px; background: #e3f1e6; border: 1px solid #b9dcc3; color: #1d4f33; font-size: 15px; max-width: 34em; }
.tl-cor { margin: -8px 0 16px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; color: var(--muted); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--green); }
.timeline i { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; }
.timeline strong { display: block; font-size: 15.5px; color: inherit; }
.timeline span { font-size: 13.5px; }
.timeline li.done, .timeline li.current { color: var(--ink); }
.timeline li.done i { background: var(--green); border-color: var(--green); }
.timeline li.done i::before { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.timeline li.current i { border-color: var(--red); }
.timeline li.current i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tl-help { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: cai 2.6s cubic-bezier(.2, .7, .4, 1) forwards; }
@keyframes cai { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--r)); opacity: .9; } }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .hero .wrap, .monte__grid, .co-grid, .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .preview { position: relative; top: 0; }
  .preview__tree { min-height: 0; }
  .preview__tree svg { max-height: 420px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passos { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-summary { position: static; order: -1; }
  .sum-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 14px; }
  .sum-tree { grid-row: span 2; margin: 0; padding: 6px; }
  .sum-card .resumo, .sum-perks { grid-column: 1 / -1; }
  .sum-card .resumo { margin: 10px 0 0; }
  .sum-perks { display: none; }
  .buybar { display: flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .btn { display: none; }
  .hero__panda { width: 92px; left: -8px; bottom: 18px; }
  .hero__tag { left: 0; }
  .hero__selo { width: 88px; right: -12px; }
  .fields { grid-template-columns: minmax(0, 1fr) 90px; }
  .fields .field { grid-column: 1 / -1; }
  .fields .field-city { grid-column: 1; }
  .fields .field-uf { grid-column: 2; }
  .co-actions { justify-content: space-between; }
  .co-actions .btn { flex: 1; }
  .stepper li { font-size: 12.5px; gap: 6px; }
  .pix-qr-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .pix-top { flex-direction: column; gap: 4px; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .galeria { grid-auto-rows: 210px; }
  .foot .wrap { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
