/* Castilho Tattoo — página da camiseta (pré-venda)
   Usa as variáveis e a tipografia do estilo.css; aqui só o que é da página */

.camisa { padding-top: 0; }

/* ---------- produto ---------- */
.prod { padding: clamp(28px, 4vw, 56px) 0 clamp(44px, 5vw, 64px); border-top: 0; }
.prod-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.prod-fotos { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; position: sticky; top: 90px; }
.prod-palco { grid-column: 2; grid-row: 1; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #bcbbbf; }
.prod-palco { transition: background-color .35s ease; }
.prod-palco img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.prod-palco img.trocando { opacity: 0; transform: scale(1.03); }
.prod-selo { position: absolute; top: 14px; left: 14px; padding: 7px 12px; border-radius: 999px; background: #121311; color: #A9B993;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.prod-minis { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.mini { width: 72px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); background: #c9c8c4; cursor: pointer; overflow: hidden; opacity: .62; transition: opacity .2s, border-color .2s; }
.mini img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mini:hover { opacity: .9; }
.mini[aria-pressed="true"] { opacity: 1; border-color: var(--accent-moss); box-shadow: 0 0 0 1px var(--accent-moss); }

.prod-info h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; margin: 0; }
.prod-apoio { margin: 16px 0 0; color: var(--text-muted); font-size: 17px; line-height: 1.6; max-width: 44ch; }

.prod-preco { margin: 26px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.prod-valor { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent-moss); }
.prod-cond { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); letter-spacing: .03em; }
[data-campo].pendente { outline: 1px dashed #c9a227; outline-offset: 3px; }

.prod-opcao { border: 0; margin: 24px 0 0; padding: 0; }
.prod-opcao legend { padding: 0; margin-bottom: 12px; font-size: 15px; color: var(--text-muted); }
.prod-opcao legend strong { color: var(--text); font-weight: 600; }

.cores { display: flex; gap: 12px; }
.cor { width: 48px; height: 48px; border-radius: 50%; padding: 4px; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .2s, transform .2s; }
.cor span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(128,128,128,.35); }
.cor[aria-pressed="true"] { border-color: var(--accent-moss); box-shadow: 0 0 0 1px var(--accent-moss); }
.cor:hover { transform: scale(1.06); }

.tamanhos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 360px; }
.tam { min-height: 48px; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tam:hover { border-color: var(--accent-moss); }
.tam[aria-pressed="true"] { background: var(--accent-moss); border-color: var(--accent-moss); color: var(--bg); }
.tamanhos.chamando .tam { animation: chama .5s ease; }
@keyframes chama { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }

.link-medidas { margin-top: 12px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--text); text-decoration: underline; text-underline-offset: 4px; font-size: 14.5px; cursor: pointer; }

.reservar { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 0 24px; border-radius: 999px;
  background: var(--accent-moss); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 16px; position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, opacity .25s; }
.reservar svg { width: 22px; height: 22px; flex: none; }
.reservar[aria-disabled="true"] { opacity: .55; }
.reservar:not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); }
.reservar::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); }
.reservar.pronto::after { animation: brilho 5s ease-in-out .3s infinite; }

.reservar { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.reservar-wa { margin-top: 10px; min-height: 52px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.reservar-wa::after { display: none; }
.reservar-wa:not([aria-disabled="true"]):hover { box-shadow: inset 0 0 0 1px var(--accent-moss); }
.reservar.carregando { opacity: .7; cursor: progress; }
.link-wa { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--text-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link-wa svg { width: 18px; height: 18px; }
.link-wa:hover { color: var(--text); }
.prod-nota { margin: 14px 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.prod-ficha { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.prod-ficha li { font-size: 15px; color: var(--text-muted); line-height: 1.5; padding-left: 18px; position: relative; }
.prod-ficha li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent-moss); transform: rotate(45deg); }
.prod-ficha strong { color: var(--text); font-weight: 600; }

/* ---------- formas de pagamento ---------- */
.prod-preco .prod-cond { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.pag { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.pag-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.pag-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--accent-moss) 16%, transparent); color: var(--accent-moss); }
.pag-ico svg { width: 20px; height: 20px; }
.pag-pix svg { fill: #32BCAD; }
.pag-pix { background: rgba(50,188,173,.14); }
.pag-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.pag-txt strong { font-size: 15px; color: var(--text); font-weight: 600; }
.pag-txt span { font-size: 13.5px; color: var(--text-muted); }
.bandeiras { display: flex; gap: 8px; margin-top: 12px; }
.band { height: 28px; min-width: 44px; padding: 0 8px; border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.band-visa { color: #1A1F71; font: italic 800 13px/1 Arial, sans-serif; letter-spacing: .02em; }
.band-master i { width: 15px; height: 15px; border-radius: 50%; background: #EB001B; display: block; }
.band-master i + i { background: #F79E1B; margin-left: -6px; mix-blend-mode: multiply; }
.band-elo { background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font: 800 14px/1 Arial, sans-serif; }

/* ---------- foto: fundo desfocado, lupa e ampliar ---------- */
.palco-fundo { position: absolute; inset: -40px; background-size: 100% 100%; background-position: center; filter: blur(34px); transition: opacity .35s ease; }
.palco-fundo.trocando { opacity: .4; }
.palco-abrir { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.palco-abrir img { position: relative; will-change: transform; }
.prod-palco.lupa .palco-abrir img { transition: opacity .35s ease, transform .18s ease-out; }
.palco-dica { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px;
  background: rgba(18,19,17,.78); color: #e9e8e2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; pointer-events: none;
  transition: opacity .3s, transform .3s; }
.palco-dica svg { width: 18px; height: 18px; }
.prod-palco.lupa .palco-dica { opacity: 0; transform: translateY(6px); }
.prod-selo { z-index: 2; }
.palco-abrir:focus-visible { outline: 2px solid var(--accent-moss); outline-offset: -4px; }

.zoom { position: fixed; inset: 0; z-index: 700; background: rgba(10,10,9,.97); animation: zoom-entra .3s ease; }
.zoom[hidden] { display: none; }
@keyframes zoom-entra { from { opacity: 0; } }
.zoom-palco { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; touch-action: none; }
.zoom-palco img { max-width: calc(100vw - 32px); max-height: calc(100svh - 110px); width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .25s; }
.zoom-palco img.perto { cursor: grab; }
.zoom-palco img.arrastando { transition: none; cursor: grabbing; }
.zoom-palco img.saindo-esq { opacity: 0; transform: translateX(-60px); }
.zoom-palco img.saindo-dir { opacity: 0; transform: translateX(60px); }
.zoom-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(18,19,17,.7); color: #f1f0ea; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s; }
.zoom-btn:hover { background: var(--accent-moss); color: #10120E; transform: scale(1.06); }
.zoom-btn svg { width: 22px; height: 22px; }
.zoom-fechar { top: 16px; right: 16px; }
.zoom-ant { left: 16px; top: 50%; margin-top: -26px; }
.zoom-prox { right: 16px; top: 50%; margin-top: -26px; }
.zoom-rodape { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 16px; color: #cfcec7; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; pointer-events: none; }
.zoom-ajuda { opacity: .6; }
@media (max-width: 700px) { .zoom-ant, .zoom-prox { top: auto; bottom: 10px; margin: 0; } .zoom-rodape { bottom: 28px; } .zoom-ajuda { display: none; } }
@media (hover: none) { .dica-txt { display: none; } .palco-dica { width: 40px; padding: 0; justify-content: center; } }

/* ---------- como funciona ---------- */
.como { padding-top: clamp(40px, 4.5vw, 56px); padding-bottom: clamp(36px, 4vw, 48px); }
.como h2 { margin: 0 0 24px; }
.como-passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: passo; }
.como-passos li { counter-increment: passo; border-top: 2px solid var(--accent-moss); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.como-passos li::before { content: "0" counter(passo); font-family: var(--font-mono); font-size: 12px; color: var(--accent-slate); }
.como-passos strong { font-family: var(--font-display); font-size: 18px; }
.como-passos span { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- entradas ---------- */
@media (prefers-reduced-motion: no-preference) {
  .prod-fotos { animation: foto-entra .9s cubic-bezier(.2,.7,.2,1) backwards; }
  .prod-palco img { animation: foto-zoom 1.4s cubic-bezier(.2,.7,.2,1) backwards; }
  .prod-minis .mini { animation: sobe-leve .6s cubic-bezier(.2,.7,.2,1) backwards; }
  .prod-minis .mini:nth-child(2) { animation-delay: .08s; } .prod-minis .mini:nth-child(3) { animation-delay: .16s; }
  .prod-minis .mini:nth-child(4) { animation-delay: .24s; } .prod-minis .mini:nth-child(5) { animation-delay: .32s; }
  .prod-info > * { animation: sobe-leve .7s cubic-bezier(.2,.7,.2,1) backwards; }
  .prod-info > :nth-child(2) { animation-delay: .08s; } .prod-info > :nth-child(3) { animation-delay: .16s; }
  .prod-info > :nth-child(4) { animation-delay: .24s; } .prod-info > :nth-child(5) { animation-delay: .3s; }
  .prod-info > :nth-child(n+6) { animation-delay: .36s; }
  .prod-valor { display: inline-block; }
  .como-passos li.passo { border-top-color: transparent; position: relative; transition-delay: var(--d); }
  .como-passos li.passo::after { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent-moss); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1) calc(var(--d) + .15s); }
  .como-passos li.passo.is-visible::after { transform: scaleX(1); }
  .cor[aria-pressed="true"] span, .tam[aria-pressed="true"] { animation: escolhe .35s cubic-bezier(.2,.7,.2,1); }
}
@keyframes foto-entra { from { opacity: 0; transform: translateY(18px); } }
@keyframes foto-zoom { from { transform: scale(1.08); } }
@keyframes sobe-leve { from { opacity: 0; transform: translateY(14px); } }
@keyframes escolhe { 40% { transform: scale(.9); } }

/* ---------- tabela de medidas ---------- */
.medidas { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; background: rgba(8,8,7,.72); }
.medidas[hidden] { display: none; }
.medidas-caixa { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); color: var(--text); padding: 30px clamp(18px, 4vw, 34px); border: 1px solid var(--line); animation: sobe .35s cubic-bezier(.2,.7,.2,1); }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } }
.medidas-caixa h2 { margin: 0 0 8px; font-size: 24px; }
.medidas-caixa p { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.medidas-caixa .medidas-dica { margin: 16px 0 0; }
.medidas-fechar { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--text); cursor: pointer; }
.medidas-fechar svg { width: 22px; height: 22px; }
.medidas table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 14px; }
.medidas th, .medidas td { padding: 11px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.medidas thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
.medidas tbody th { color: var(--accent-moss); }
.medidas tr.destaque td, .medidas tr.destaque th { background: color-mix(in srgb, var(--accent-moss) 18%, transparent); }

/* ---------- celular ---------- */
@media (max-width: 700px) {
  .prod-palco { aspect-ratio: 4 / 5; width: min(100%, 44svh); justify-self: center; }
  .prod { padding-top: 12px; }
  .prod-grid { gap: 22px; }
  .prod-fotos { gap: 8px; }
  .mini { width: 56px; }
  .prod-grid { grid-template-columns: minmax(0, 1fr); }
  .prod-fotos { position: static; grid-template-columns: minmax(0, 1fr); }
  .prod-palco { grid-column: 1; grid-row: 1; }
  .prod-minis { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .prod-minis::-webkit-scrollbar { display: none; }
  .mini { flex: none; width: 64px; }
}
@media (max-width: 900px) { .como-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 701px) { .prod-palco { max-height: calc(100svh - 120px); width: auto; } .prod-fotos { grid-template-columns: 64px minmax(0, 1fr); } .mini { width: 64px; } }
@media (max-width: 520px) {
  .como-passos { grid-template-columns: minmax(0, 1fr); }
  .tamanhos { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .prod-palco img, .cor, .tam, .reservar { transition: none; }
  .reservar.pronto::after, .tamanhos.chamando .tam, .medidas-caixa, .zoom { animation: none; }
  .zoom-palco img, .palco-fundo { transition: none; }
}

/* ---------- pagamento no Pix ---------- */
.pix-caixa { width: min(560px, 100%); text-align: left; }
.pix-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-family: var(--font-mono); font-size: 11.5px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.pix-tag svg { width: 18px; height: 18px; color: #32BCAD; }
.pix-caixa h2 { font-size: 30px; color: var(--accent-moss); }
.pix-caixa .pix-pedido { margin: 0 0 18px; color: var(--text); font-size: 15px; }
.pix-corpo { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; align-items: start; }
.pix-qr { width: 180px; aspect-ratio: 1; background: #fff; padding: 6px; border-radius: 8px; }
.pix-qr:empty { background: #fff linear-gradient(90deg, #fff, #eee, #fff) 0 0 / 200% 100%; animation: carregando 1.2s linear infinite; }
.pix-qr svg { display: block; width: 100%; height: 100%; }
@keyframes carregando { to { background-position: -200% 0; } }
.pix-caixa .pix-dica { margin: 0 0 10px; }
.pix-so-cel { display: none; }
.pix-codigo { display: block; font-family: var(--font-mono); font-size: 12px; line-height: 1.45; word-break: break-all; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--text-muted); max-height: 92px; overflow: auto; user-select: all; }
.pix-copiar { margin-top: 10px; width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid var(--accent-moss); background: transparent; color: var(--text); font: 600 15px/1 var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.pix-copiar svg { width: 18px; height: 18px; }
.pix-copiar:hover { background: var(--accent-moss); color: var(--bg); }
.pix-comprovante { margin-top: 22px; }
.pix-comprovante svg { width: 22px; height: 22px; }
.pix-caixa .pix-nota { margin: 12px 0 0; font-size: 13.5px; }
@media (max-width: 560px), (pointer: coarse) {
  .pix-so-cel { display: inline; } .pix-so-pc { display: none; }
  .pix-corpo { grid-template-columns: minmax(0, 1fr); }
  .pix-copia { order: -1; }
  .pix-qr { width: 150px; justify-self: center; }
}

/* ---------- volta do pagamento no cartão ---------- */
.paga { min-height: calc(100svh - 160px); display: grid; place-items: center; padding: 48px 16px; }
.paga-caixa { width: min(520px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; animation: sobe .5s cubic-bezier(.2,.7,.2,1); }
.paga-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-moss) 18%, transparent); color: var(--accent-moss); margin-bottom: 18px; }
.paga-ico svg { width: 36px; height: 36px; display: none; }
[data-estado="pago"] .i-ok, [data-estado="conferindo"] .i-espera, [data-estado="pendente"] .i-espera { display: block; }
[data-estado="conferindo"] .paga-ico { animation: cam-pulso-p 1.4s ease-in-out infinite; }
@keyframes cam-pulso-p { 50% { opacity: .45; } }
.paga-tag { margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-moss); }
.paga-caixa h1 { margin: 0 0 12px; font-size: clamp(28px, 6vw, 40px); }
.paga-txt { margin: 0; color: var(--text-muted); line-height: 1.55; }
.paga-pedido { margin: 16px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; }
.paga-caixa .reservar { margin-top: 26px; }
@media (prefers-reduced-motion: reduce) { .paga-caixa, [data-estado="conferindo"] .paga-ico { animation: none; } }

/* ---------- tabela de parcelas ---------- */
.parcelas { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
.parcelas summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; cursor: pointer; font-size: 14.5px; list-style: none; }
.parcelas summary::-webkit-details-marker { display: none; }
.parcelas summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s; }
.parcelas[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.parcelas table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13.5px; }
.parcelas th, .parcelas td { padding: 8px 14px; text-align: right; border-top: 1px solid var(--line); }
.parcelas th:first-child { text-align: left; color: var(--accent-moss); }
.parcelas thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted) !important; font-weight: 500; }
.parcelas p { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ---------- dados do comprador ---------- */
.prod-dados { display: grid; gap: 12px; }
.campo { display: grid; gap: 6px; font-size: 14px; color: var(--text-muted); }
.campo input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: 16px/1.2 var(--font-body); transition: border-color .2s; }
.campo input:focus { outline: none; border-color: var(--accent-moss); box-shadow: 0 0 0 1px var(--accent-moss); }
.campo input.erro { border-color: #C2553F; box-shadow: 0 0 0 1px #C2553F; }
.dados-aviso { margin: 0; font-size: 13px; color: var(--text-muted); }
.dados-aviso.erro { color: #C2553F; font-weight: 600; }
