/* =========================================================
   BRAVURA PARK — Loja de ingressos (loja.html)
   Usa os tokens de style.css (cores, fontes, --raio).
   Componentes no padrão shadcn/ui: card, botão, grupo de quantidade,
   abas de etapa, linha de resumo — redesenhados com a marca.
   ========================================================= */

.loja { padding-block: clamp(120px, 14vw, 160px) clamp(56px, 8vw, 96px); background: var(--fundo); }
.loja .container { display: grid; gap: 28px; }

.loja-cabeca { display: grid; gap: .8rem; max-width: 760px; }
.loja-cabeca h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.loja-cabeca p { color: var(--texto-suave); font-size: 1.02rem; }

/* ---------- Etapas ---------- */
.loja-etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: etapa; }
.loja-etapa button {
  width: 100%; display: flex; align-items: center; gap: .65rem; min-height: 48px;
  padding: .55rem .75rem; background: var(--fundo-2); color: var(--texto-suave);
  border: 1px solid var(--linha); border-radius: var(--raio); cursor: pointer;
  font: 600 .85rem var(--f-texto); text-align: left;
}
.loja-etapa .num {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(239,236,234,.35); font-size: .8rem; font-weight: 700;
}
.loja-etapa[aria-current="step"] button { border-color: var(--ouro); color: var(--areia); background: rgba(253,186,77,.08); }
.loja-etapa[aria-current="step"] .num { background: var(--ouro); border-color: var(--ouro); color: var(--verde-noite); }
.loja-etapa.feita button { color: var(--areia); }
.loja-etapa.feita .num { background: var(--verde-campo); border-color: var(--verde-campo); color: #fff; }
.loja-etapa button:disabled { cursor: not-allowed; opacity: .55; }

/* ---------- Painéis ---------- */
.loja-painel { display: grid; gap: 22px; }
.loja-painel[hidden] { display: none; }
.loja-painel-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.loja-painel-topo h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.loja-link { background: none; border: 0; padding: .4rem 0; color: var(--ouro); font: 600 .9rem var(--f-texto); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

/* ---------- Datas ---------- */
.loja-datas { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.loja-data {
  display: grid; gap: 2px; padding: .8rem .9rem; text-align: left; cursor: pointer;
  background: var(--fundo-2); color: var(--areia); border: 1px solid var(--linha); border-radius: var(--raio);
  font-family: var(--f-texto); transition: border-color .15s, background .15s;
}
.loja-data:hover { border-color: rgba(253,186,77,.6); }
.loja-data small { font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--texto-suave); }
.loja-data strong { font-family: var(--f-titulo); font-size: 2.2rem; line-height: 1; }
.loja-data span { font-size: .8rem; color: var(--texto-suave); }
.loja-data em { font-style: normal; font-size: .72rem; color: var(--ouro); min-height: 1em; }
.loja-data[aria-pressed="true"] { background: var(--ouro); border-color: var(--ouro); color: var(--verde-noite); }
.loja-data[aria-pressed="true"] small, .loja-data[aria-pressed="true"] span, .loja-data[aria-pressed="true"] em { color: var(--verde-noite); }

/* ---------- Cards de produto ---------- */
.loja-produtos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.produto {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--fundo-2); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 4px);
  transition: border-color .2s;
}
.produto.ativo { border-color: rgba(253,186,77,.7); }
.produto-midia { flex: none; position: relative; aspect-ratio: 16 / 7; background: var(--verde-noite); }
.produto-midia { overflow: hidden; }

.produto-selo {
  position: absolute; left: 12px; top: 12px; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(29,31,13,.85); color: var(--ouro); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.produto-corpo { display: flex; flex-direction: column; gap: 14px; padding: 18px; flex: 1; }
.produto-corpo h3 { font-size: 1.9rem; }
.produto-desc { color: var(--texto-suave); font-size: .88rem; line-height: 1.5; }
.produto-opcoes { display: grid; margin-top: auto; }
.opcao { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--linha); }
.opcao-txt { display: grid; min-width: 0; }
.opcao-txt strong { font-size: .98rem; }
.opcao-txt strong b { color: var(--ouro); font-weight: 700; margin-left: .45rem; }
.opcao-txt span { font-size: .78rem; color: var(--texto-suave); }

/* Grupo de quantidade (input group) */
.qtd { display: inline-flex; align-items: stretch; flex: none; border: 1px solid rgba(239,236,234,.28); border-radius: var(--raio); overflow: hidden; background: var(--fundo); }
.qtd button {
  width: 52px; height: 56px; display: grid; place-items: center; border: 0; background: transparent; color: var(--areia);
  font: 700 1.25rem var(--f-texto); cursor: pointer; transition: background .15s, color .15s;
}
.qtd button:hover:not(:disabled) { background: rgba(253,186,77,.14); color: var(--ouro); }
.qtd button:disabled { opacity: .35; cursor: not-allowed; }
.qtd output { min-width: 60px; display: grid; place-items: center; font-weight: 800; font-size: 1.75rem; line-height: 1; font-variant-numeric: tabular-nums; border-inline: 1px solid rgba(239,236,234,.18); }
.qtd.tem output { color: var(--verde-noite); background: var(--ouro); }

/* Missão Dudinha: faixa larga embaixo, só com criança de 0 a 6 anos */
.produto-largo { flex-direction: row; }
.produto-largo .produto-midia { flex: 0 0 38%; aspect-ratio: auto; min-height: 190px; }
.produto-largo .produto-corpo { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.produto-largo .produto-info { flex: 1 1 260px; display: grid; gap: 8px; }
.produto-largo .produto-opcoes { flex: 1 1 280px; margin-top: 0; }
.loja-dudinha-dica { font-size: .85rem; color: var(--texto-suave); }
.loja-dudinha-dica b { color: var(--ouro); }

/* ---------- Barra do pedido ---------- */
.loja-barra {
  padding: 18px 20px; border-radius: calc(var(--raio) + 4px);
  background: var(--fundo-2); border: 1px solid rgba(253,186,77,.45);
}
.loja-barra-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.loja-barra-total { display: grid; line-height: 1.2; }
.loja-barra-total span { font-size: 1.15rem; font-weight: 700; color: var(--areia); }
.loja-barra-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.loja-barra-acoes { display: flex; gap: 10px; }
.loja .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Meia-entrada ---------- */
.loja-aviso { padding: 14px 16px; border-radius: var(--raio); background: rgba(253,186,77,.08); border: 1px solid rgba(253,186,77,.35); font-size: .95rem; }
.loja-aviso b { color: var(--ouro); }
.loja-lista { display: grid; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 4px); max-width: 820px; }
.loja-lista .opcao { padding: 14px 18px; }
.loja-lista .opcao:first-child { border-top: 0; }
.opcao-alerta { color: var(--ouro) !important; }

/* ---------- Resumo ---------- */
.resumo { display: grid; max-width: 820px; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 4px); }
.resumo-item { display: grid; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--linha); }
.resumo-linha { display: flex; justify-content: space-between; gap: 12px; }
.resumo-linha.sub { font-size: .85rem; color: var(--texto-suave); padding-left: 14px; }
.resumo-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px; }
.resumo-total strong { white-space: nowrap; font-size: 2rem; color: var(--ouro); font-variant-numeric: tabular-nums; }
.loja-nota { color: var(--texto-suave); font-size: .9rem; max-width: 820px; }

/* ---------- Celular: estrutura vertical ---------- */
@media (max-width: 760px) {
  .loja { padding-top: 112px; }
  .loja .container { gap: 18px; }
  .loja-cabeca p { display: none; }
  .loja-etapa button { justify-content: center; padding: .4rem; }
  .loja-etapa .rotulo { display: none; }
  .loja-etapa[aria-current="step"] .rotulo { display: inline; }
  .loja-etapas { grid-template-columns: auto auto auto auto; justify-content: start; }
  .loja-datas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .loja-data { padding: .55rem .6rem; }
  .loja-data strong { font-size: 1.7rem; }

  .loja-produtos { grid-template-columns: 1fr; gap: 10px; }
  /* imagem e descrição à esquerda, quantidades à direita */
  .produto, .produto-largo { flex-direction: row; align-items: stretch; }
  .produto-midia, .produto-largo .produto-midia { display: none; }
  .produto-corpo, .produto-largo .produto-corpo { flex-direction: row; align-items: center; gap: 10px; padding: 10px; flex-wrap: nowrap; }
  .produto-info, .produto-largo .produto-info { flex: 0 0 88px; display: grid; gap: 4px; align-self: start; }
  .produto-thumb { display: block !important; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--raio); }
  .produto-corpo h3 { font-size: 1.05rem; }
  .opcao-txt strong b { display: block; margin-left: 0; }
  .produto-desc { display: none; }
  .produto-curta { display: block; font-size: .7rem; line-height: 1.3; color: var(--texto-suave); }
  .produto-opcoes, .produto-largo .produto-opcoes { flex: 1 1 0; min-width: 0; margin: 0; }
  .opcao { padding: 6px 0; gap: 6px; }
  .opcao:first-child { border-top: 0; }
  .opcao-txt strong { font-size: .82rem; }
  .opcao-txt span { font-size: .68rem; line-height: 1.25; }
  .opcao.sem-cred .opcao-txt span { display: none; }
  .opcao.sem-cred .opcao-txt span.opcao-alerta { display: block; }
  .opcao-txt strong { line-height: 1.25; }
  .loja:not([data-passo="1"]) .loja-cabeca { display: none; }
  .loja-painel { gap: 12px; }
  .loja-painel-topo { align-items: center; }
  .loja-link { font-size: .8rem; min-height: 40px; }
  .loja-etapa button { min-height: 44px; }
  .qtd button { width: 42px; height: 50px; }
  .qtd output { min-width: 48px; font-size: 1.55rem; }
  .loja-barra-total strong { font-size: 1.3rem; }
  .produto-info > .produto-inclui { display: none; }
  .produto-detalhes { display: block; font-size: .72rem; }
  .produto-corpo, .produto-largo .produto-corpo { flex-wrap: wrap !important; }
  .produto-detalhes { order: 3; flex: 1 0 100%; border-top: 1px solid var(--linha); padding-top: 2px; }
  .produto-detalhes[open] p { font-size: .8rem; }
  .produto-detalhes .produto-inclui { font-size: .78rem; }
  .produto-detalhes summary { cursor: pointer; color: var(--ouro); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
  .produto-detalhes[open] { grid-column: 1 / -1; }
  .produto-detalhes p { color: var(--texto-suave); line-height: 1.35; margin-bottom: 6px; }
  .produto-detalhes .produto-inclui { font-size: .7rem; gap: 4px; }
  .loja-painel-topo h2 { font-size: 1.5rem; }
  .loja-cabeca h1 { font-size: 2.2rem; }
  .loja-dudinha-dica { font-size: .78rem; }
}
.produto-thumb, .produto-curta { display: none; }
@media (min-width: 761px) and (max-width: 1020px) {
  .loja-produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Surgimento da Missão Dudinha ---------- */
@keyframes loja-surgir {
  0% { opacity: 0; transform: translateY(18px) scale(.98); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes loja-brilho {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253,186,77,0); }
  40% { box-shadow: 0 0 0 4px rgba(253,186,77,.55); }
}
.produto.surgir { animation: loja-surgir .5s cubic-bezier(.2,.8,.2,1) both, loja-brilho 1.4s .35s ease-out; }

/* ---------- Setinha para descer até o total ---------- */
.loja-seta {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .45rem .9rem .45rem 1rem;
  border: 1px solid rgba(253,186,77,.6); border-radius: 999px; cursor: pointer;
  background: rgba(21,22,10,.92); color: var(--ouro); font: 600 .8rem var(--f-texto); letter-spacing: .06em;
  transition: opacity .25s;
}
.loja-seta svg { width: 18px; height: 18px; animation: loja-quicar 1.4s ease-in-out infinite; }
@keyframes loja-quicar { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) {
  .produto.surgir { animation: none; }
  .loja-seta svg { animation: none; }
}

/* ---------- Detalhes das Missões ---------- */
.produto-inclui { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; }
.produto-inclui li { position: relative; padding-left: 20px; line-height: 1.4; }
.produto-inclui li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 9px; height: 5px; border-left: 2px solid var(--ouro); border-bottom: 2px solid var(--ouro); transform: rotate(-45deg); }
.produto-detalhes { display: none; }

/* ---------- Mini carrossel ---------- */
.produto-midia .slide, .produto-thumb .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.produto-midia .slide.ativo, .produto-thumb .slide.ativo { opacity: 1; }
.produto-thumb { position: relative; overflow: hidden; }
.gal-pontos { position: absolute; right: 8px; bottom: 6px; z-index: 2; display: flex; gap: 2px; }
.gal-pontos button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.gal-pontos button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(239,236,234,.55); box-shadow: 0 0 0 1px rgba(21,22,10,.5); transition: width .3s, background .3s; }
.gal-pontos button[aria-current="true"]::before { width: 16px; border-radius: 4px; background: var(--ouro); }
.produto-thumb .gal-pontos { right: 2px; bottom: 0; gap: 0; }
.produto-thumb .gal-pontos button { width: 16px; height: 18px; }
.produto-thumb .gal-pontos button::before { width: 5px; height: 5px; }
.produto-thumb .gal-pontos button[aria-current="true"]::before { width: 10px; }
@media (prefers-reduced-motion: reduce) { .produto-midia .slide, .produto-thumb .slide { transition: none; } }

/* ---------- Calendário (classes lc- para não colidir com o calendário do site) ---------- */
.loja-seta[hidden] { display: none; }
.lc-bloco { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 32px; align-items: start; }
.lc { background: var(--fundo-2); border: 1px solid var(--linha); border-radius: calc(var(--raio) + 4px); padding: 16px; display: grid; gap: 10px; }
.lc-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lc-mes { font-family: var(--f-titulo); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.lc-nav { flex: none; width: 44px; height: 44px; border-radius: var(--raio); border: 1px solid var(--linha); background: transparent; color: var(--areia); font: 700 1.4rem var(--f-texto); cursor: pointer; display: grid; place-items: center; }
.lc-nav:hover:not(:disabled) { border-color: var(--ouro); color: var(--ouro); }
.lc-nav:disabled { opacity: .3; cursor: not-allowed; }
.lc-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.lc-sem { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--texto-suave); padding: 2px 0 4px; }
.lc-dia { position: relative; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 0; border-radius: var(--raio); font-family: var(--f-texto); font-variant-numeric: tabular-nums; }
.lc-num { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.lc-rot-mes { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; opacity: .85; }
button.lc-aberto { border: 1px solid rgba(102,147,83,.6); background: rgba(102,147,83,.22); color: var(--areia); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
button.lc-aberto:hover { border-color: var(--ouro); background: rgba(253,186,77,.12); }
button.lc-aberto[aria-pressed="true"] { background: var(--ouro); border-color: var(--ouro); color: var(--verde-noite); box-shadow: 0 0 0 3px rgba(253,186,77,.28); }
button.lc-hoje { outline: 1px dashed var(--ouro); outline-offset: 2px; }
button.lc-feriado::after { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); }
button.lc-feriado[aria-pressed="true"]::after { background: var(--verde-noite); }
.lc-fechado { color: rgba(239,236,234,.34); background: rgba(239,236,234,.035); }
.lc-fechado .lc-num { font-weight: 500; }
.lc-passado { color: rgba(239,236,234,.18); }
.lc-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--texto-suave); padding-top: 4px; }
.lc-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.lc-leg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lc-leg-abe { background: rgba(102,147,83,.22); border: 1px solid rgba(102,147,83,.6); }
.lc-leg-sel { background: var(--ouro); }
.lc-leg-fer { width: 6px; height: 6px; border-radius: 50%; background: var(--ouro); margin-inline: 3px; }
.lc-leg-fec { background: rgba(239,236,234,.06); border: 1px solid rgba(239,236,234,.15); }
.lc-escolha { display: grid; gap: 12px; align-content: start; padding-top: 8px; }
.lc-escolha strong { font-family: var(--f-titulo); font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; line-height: 1; color: var(--ouro); }
.lc-escolha p { color: var(--texto-suave); max-width: 40ch; }
.lc-escolha .btn { justify-self: start; }
@media (max-width: 760px) {
  .lc-bloco { grid-template-columns: 1fr; gap: 16px; }
  .lc { padding: 12px; }
  .lc-mes { font-size: 1.3rem; }
  .lc-dia { min-height: 44px; }
  .lc-escolha strong { font-size: 1.7rem; }
  .lc-escolha .btn { justify-self: stretch; }
}

/* ---------- Celular: foto grande no topo de cada card ---------- */
@media (max-width: 760px) {
  .produto, .produto-largo { flex-direction: column; }
  .produto-midia, .produto-largo .produto-midia { display: block; flex: none; aspect-ratio: 16 / 9; min-height: 0; width: 100%; }
  .produto-corpo, .produto-largo .produto-corpo { flex-direction: column; align-items: stretch; flex-wrap: nowrap !important; gap: 8px; padding: 12px 14px 10px; }
  .produto-info, .produto-largo .produto-info { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .produto-corpo h3 { font-size: 1.5rem; }
  .produto-thumb { display: none !important; }
  .produto-curta { display: block; font-size: .75rem; text-align: right; }
  .produto-opcoes, .produto-largo .produto-opcoes { flex: none; }
  .opcao { padding: 8px 0; }
  .opcao:first-child { border-top: 1px solid var(--linha); }
  .opcao-txt strong { font-size: .95rem; }
  .opcao-txt strong b { display: inline; margin-left: .4rem; }
  .opcao-txt span { font-size: .75rem; }
  .produto-selo { font-size: .62rem; left: 10px; top: 10px; }
}

/* Fotos em movimento: zoom lento na foto ativa (efeito Ken Burns) */
@keyframes loja-kb-a { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes loja-kb-b { from { transform: scale(1.02) translate(-1%, 0); } to { transform: scale(1.14) translate(1.5%, -1%); } }
.produto-midia .slide.ativo { animation: loja-kb-a 7s ease-out both; }
.produto-midia .slide.ativo:nth-child(even) { animation-name: loja-kb-b; }
@media (prefers-reduced-motion: reduce) { .produto-midia .slide.ativo { animation: none; } }

/* ---------- Missão Dudinha: destaque na primeira vez que aparece ---------- */
@keyframes loja-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(253,186,77,0); } 50% { box-shadow: 0 0 0 6px rgba(253,186,77,.45), 0 0 34px rgba(253,186,77,.35); } }
.produto.destaque-novo { border-color: var(--ouro); animation: loja-surgir .5s cubic-bezier(.2,.8,.2,1) both, loja-pulso 1.1s .4s ease-in-out 3; }
.produto-novo {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--ouro); color: var(--verde-noite); font: 800 .72rem var(--f-texto); letter-spacing: .08em; text-transform: uppercase;
}
.produto-info .produto-novo { justify-self: start; }
@media (max-width: 760px) { .produto-info { flex-wrap: wrap; } .produto-info .produto-novo { flex: 0 0 auto; max-width: 100%; order: -1; margin-right: 100%; } }
@media (prefers-reduced-motion: reduce) { .produto.destaque-novo { animation: none; box-shadow: 0 0 0 3px rgba(253,186,77,.45); } }

/* ---------- Celular: Missões compactas (Sargento, Soldado e Entrada numa tela) ---------- */
@media (max-width: 760px) {
  .loja-produtos { gap: 8px; }
  .produto,  .produto-largo { flex-direction: column; }
  .produto-midia,  .produto-largo .produto-midia { display: none; }
  .produto-corpo,  .produto-largo .produto-corpo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 12px 4px; flex-wrap: nowrap !important; }
  .produto-info, .produto-largo .produto-info { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center; }
  .produto-thumb { display: block !important; grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; aspect-ratio: auto; border-radius: var(--raio); }
  .produto-thumb .gal-pontos { display: none; }
  .produto-corpo h3 { grid-column: 2; font-size: 1.3rem; line-height: 1; padding-right: 76px; }
  .produto-curta { grid-column: 2; display: block; text-align: left; font-size: .72rem; line-height: 1.25; color: var(--texto-suave); }
  .produto-info .produto-novo { grid-column: 1 / -1; order: 0; margin: 0 0 6px; }
  .produto-opcoes,  .produto-largo .produto-opcoes { flex: none; margin: 0; }
  .opcao { padding: 5px 0; gap: 8px; }
  .opcao:first-child { border-top: 1px solid var(--linha); }
  .opcao-txt strong { font-size: .9rem; line-height: 1.2; }
  .opcao-txt strong b { display: inline; margin-left: .4rem; }
  .opcao-txt span { font-size: .7rem; line-height: 1.2; }
  .qtd button { width: 40px; height: 40px; font-size: 1.15rem; }
  .qtd output { min-width: 40px; font-size: 1.3rem; }
  .produto-detalhes { order: 3; flex: none; border-top: 0; padding: 0; font-size: .72rem; }
  .produto-detalhes summary { position: absolute; top: 10px; right: 12px; min-height: 32px; padding: 0 2px; display: flex; align-items: center; gap: 4px; font-size: .75rem; color: var(--ouro); font-weight: 600; cursor: pointer; list-style: none; }
  .produto-detalhes summary::-webkit-details-marker { display: none; }
  .produto-detalhes summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .produto-detalhes[open] summary::after { transform: translateY(1px) rotate(-135deg); }
  .produto-detalhes[open] { border-top: 1px solid var(--linha); padding: 8px 0 6px; }
  .produto-detalhes[open] p { font-size: .8rem; }
  .produto-detalhes .produto-inclui { font-size: .78rem; }
}

@media (max-width: 760px) {
  .qtd button { width: 40px; height: 36px; }
   .qtd output { min-width: 38px; }
   .loja[data-passo="2"] .loja-painel-topo h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
   .loja[data-passo="2"] .loja-link { min-height: 32px; }
   .loja[data-passo="2"] .container,  .loja[data-passo="4"] .container { padding-right: 34px; gap: 12px; }
   .cr-aba { padding: 12px 5px; font-size: .62rem; gap: 6px; }
   .cr-aba-moeda { width: 18px; height: 18px; font-size: .5rem; }
}

/* ---------- Aba lateral: créditos por atração ---------- */
.produto-inclui li.cr-li { padding-left: 0; }
.produto-inclui li.cr-li::before { display: none; }
.cr-li .loja-link { min-height: 36px; padding: 0; font-size: .85rem; text-align: left; }
.cr-aba {
  position: fixed; right: 0; top: 50%; z-index: 60; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 8px; padding: 14px 8px;
  background: var(--ouro); color: var(--verde-noite); border: 0; border-radius: 0 var(--raio) var(--raio) 0;
  font: 700 .72rem var(--f-texto); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  box-shadow: 4px 0 18px rgba(0,0,0,.4); transition: padding .2s;
}
.cr-aba:hover { padding-left: 11px; }
.cr-aba:focus-visible { outline: 2px solid var(--areia); outline-offset: 2px; }
.cr-aba[hidden] { display: none; }
.cr-aba-moeda { writing-mode: horizontal-tb; transform: rotate(180deg); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--verde-noite); color: var(--ouro); font-size: .58rem; letter-spacing: 0; }
.cr-fundo { position: fixed; inset: 0; z-index: 70; background: rgba(8,9,4,.62); opacity: 0; pointer-events: none; transition: opacity .25s; }
.cr-gaveta {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(390px, 92vw); overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 14px; padding: 18px 20px 28px;
  background: var(--fundo-2); border-left: 1px solid rgba(253,186,77,.45); box-shadow: -12px 0 40px rgba(0,0,0,.45);
  transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s;
}
.cr.aberta .cr-fundo { opacity: 1; pointer-events: auto; }
.cr.aberta .cr-gaveta { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cr-topo { display: flex; align-items: center; justify-content: space-between; }
.cr-fechar { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; background: none; border: 0; color: var(--areia); cursor: pointer; border-radius: var(--raio); }
.cr-fechar:hover { color: var(--ouro); }
.cr-fechar svg { width: 22px; height: 22px; }
.cr-gaveta h2 { font-size: 2rem; line-height: 1; }
.cr-intro { color: var(--texto-suave); font-size: .88rem; line-height: 1.5; }
.cr-intro b { color: var(--areia); font-weight: 600; }
.cr-tabela { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cr-tabela th, .cr-tabela td { padding: .6rem .25rem; border-bottom: 1px solid var(--linha); text-align: right; font-variant-numeric: tabular-nums; }
.cr-tabela th:first-child { text-align: left; font-weight: 600; }
.cr-tabela thead th { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-suave); vertical-align: bottom; }
.cr-tabela thead th small { display: block; font-size: .62rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
.cr-tabela td { width: 64px; font-weight: 700; }
.cr-tabela td:last-child { color: var(--ouro); }
.cr-tabela td small { font-size: .68rem; font-weight: 600; color: var(--texto-suave); }
.cr-exemplo { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--raio); background: rgba(253,186,77,.08); border: 1px solid rgba(253,186,77,.35); font-size: .85rem; }
.cr-exemplo-conta { display: flex; gap: 16px; }
.cr-exemplo-conta b { color: var(--ouro); }
.cr-exemplo small { color: var(--texto-suave); font-size: .75rem; }
.cr-notas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .78rem; color: var(--texto-suave); line-height: 1.4; }
.cr-notas li { padding-left: 14px; position: relative; }
.cr-notas li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--ouro); }
@media (prefers-reduced-motion: reduce) { .cr-fundo, .cr-gaveta, .cr.aberta .cr-gaveta { transition: none; } }
@media (max-width: 760px) {
  .cr-aba { padding: 12px 5px; font-size: .62rem; gap: 6px; }
  .cr-aba-moeda { width: 18px; height: 18px; font-size: .5rem; }
}

/* ---------- Cores da bandeira e símbolo por produto ---------- */
.cor-verde { --cor: #1f9d4c; --cor-ic: #fff; --cor-txt: #5ccf85; }
.cor-amarelo { --cor: #f7d417; --cor-ic: #1d1f0d; --cor-txt: #f7d417; }
.cor-azul { --cor: #2a64c8; --cor-ic: #fff; --cor-txt: #7eaaf5; }
.cor-ouro { --cor: var(--ouro); --cor-ic: #1d1f0d; --cor-txt: var(--ouro); }
.produto { border-top: 3px solid var(--cor, var(--linha)); }
.produto.ativo { border-top-color: var(--cor, rgba(253,186,77,.7)); }
.produto-corpo h3 { display: flex; align-items: center; gap: 10px; }
.produto-ico { flex: none; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--cor); color: var(--cor-ic); }
.produto-ico svg { width: 62%; height: 62%; }
.produto-linha2 { display: none; }

/* ---------- Galeria de fotos (botão "Ver fotos" no celular) ---------- */
.fotos { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; padding: 16px; background: rgba(8,9,4,.95); }
.fotos[hidden] { display: none; }
.fotos-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fotos-titulo { font: 800 1.6rem/1 var(--f-titulo); text-transform: uppercase; color: var(--areia); }
.fotos-fechar { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--areia); cursor: pointer; }
.fotos-fechar svg { width: 24px; height: 24px; }
.fotos-palco { position: relative; display: grid; place-items: center; min-height: 0; }
.fotos-palco img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; border-radius: var(--raio); }
.fotos-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(253,186,77,.5); background: rgba(21,22,10,.8); color: var(--ouro); font: 700 1.6rem/1 var(--f-texto); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.fotos-ant { left: 6px; } .fotos-prox { right: 6px; }
.fotos-cont { text-align: center; color: var(--texto-suave); font-size: .85rem; }

/* ---------- Aba de créditos mais discreta ---------- */
.cr-aba { background: rgba(21,22,10,.88); color: var(--ouro); border: 1px solid rgba(253,186,77,.45); border-left: 0; box-shadow: none; padding: 12px 6px; font-size: .64rem; font-weight: 600; letter-spacing: .08em; opacity: .85; }
.cr-aba:hover { opacity: 1; padding-left: 8px; }
.cr-aba-moeda { width: 16px; height: 16px; background: transparent; border: 1px solid currentColor; color: var(--ouro); font-size: .46rem; }
@media (max-width: 760px) {
  .produto-info, .produto-largo .produto-info { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding-right: 0; }
   .produto-thumb { display: none !important; }
   .produto-curta { display: none; }
   .produto-corpo h3 { grid-column: 1; font-size: 1.3rem; gap: 8px; padding-right: 76px; }
   .produto-ico { width: 28px; height: 28px; border-radius: 6px; }
   .produto-info .produto-novo { grid-column: 1; }
   .produto-linha2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
   .produto-selo-txt { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cor-txt, var(--ouro)); }
   .produto-ver-fotos { min-height: 28px; padding: 0; display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; }
   .produto-ver-fotos svg { width: 15px; height: 15px; }
   .cr-aba { padding: 10px 4px; font-size: .56rem; }
   .cr-aba-moeda { display: none; }
   .loja[data-passo="2"] .container,  .loja[data-passo="4"] .container { padding-right: 28px; }
}
@media (max-width: 760px) {
  .produto-info,  .produto-largo .produto-info { position: relative; padding-left: 40px; row-gap: 2px; }
   .produto-ico { position: absolute; left: 0; top: 4px; width: 30px; height: 30px; }
   .produto-corpo h3 { font-size: 1.25rem; line-height: 1.15; }
   .produto-info .produto-novo { margin-left: -40px; }
   .produto-ver-fotos { min-height: 24px; }
   .opcao { padding: 4px 0; }
   .qtd button { height: 34px; }
   .opcao.opcao-mostra .opcao-txt span { display: block; }
}
@media (max-width: 760px) {
  .loja[data-passo="2"] .loja-seta { display: none; }
}

/* ---------- Gratuidade (sem fotos) e tabela agrupada ---------- */
.cor-branco { --cor: #ecebe6; --cor-ic: #1d1f0d; --cor-txt: #ecebe6; }
.loja-produtos .produto-largo { grid-column: 1 / -1; }
.produto-sem-midia .produto-corpo { padding-block: 16px; }
.cr-tabela th[scope="row"] span { display: block; line-height: 1.25; }
.cr-tabela th[scope="row"] span + span { margin-top: 3px; }
.cr-nao { color: var(--texto-suave); font-weight: 400; }
.cr-exemplo p { line-height: 1.4; }
.cr-exemplo p b { color: var(--ouro); }
.cr-tabela td { width: 46px; padding-inline: .2rem; }
.cr-tabela th[scope="row"] { font-size: .84rem; }
.cr-tabela th[scope="row"] span { white-space: nowrap; }

/* ---------- Calendário: dia de semana em outro tom de verde ---------- */
button.lc-aberto.lc-util { border-color: rgba(150,196,118,.7); background: rgba(150,196,118,.10); }
button.lc-aberto.lc-util:hover { border-color: var(--ouro); background: rgba(253,186,77,.12); }
button.lc-aberto.lc-util[aria-pressed="true"] { background: var(--ouro); border-color: var(--ouro); }
.lc-leg-util { background: rgba(150,196,118,.10); border: 1px solid rgba(150,196,118,.7); }

/* Dudinha liberada: selo em cima, símbolo e Detalhes abaixo dele */
@media (max-width: 760px) {
  .produto-info .produto-novo { margin: 0 0 6px -40px; max-width: calc(100% + 40px); justify-self: start; white-space: normal; letter-spacing: .05em; }
  .produto-info:has(> .produto-novo) .produto-ico { top: auto; bottom: 10px; }
  .produto-corpo:has(.produto-novo) .produto-detalhes summary { top: 44px; }
}

/* ---------- Pop-up de detalhes (substitui a aba lateral) ---------- */
.produto-det-btn { display: none; }
.det-modal .cr-fundo { z-index: 70; }
.det-janela {
  position: fixed; left: 50%; top: 50%; z-index: 71; width: min(460px, calc(100vw - 32px)); max-height: min(86vh, 760px);
  display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--fundo-2); border: 1px solid rgba(253,186,77,.45);
  border-radius: calc(var(--raio) + 6px); box-shadow: 0 20px 60px rgba(0,0,0,.55);
  transform: translate(-50%, -46%) scale(.97); opacity: 0; visibility: hidden; transition: transform .25s, opacity .2s, visibility 0s .25s;
}
.det-modal.aberta .det-janela { transform: translate(-50%, -50%); opacity: 1; visibility: visible; transition: transform .25s, opacity .2s; }
.det-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 10px 20px; border-bottom: 1px solid var(--linha); }
.det-topo h2 { font-size: 1.7rem; line-height: 1; }
.det-corpo { overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 22px; display: grid; gap: 12px; align-content: start; }
.det-desc { color: var(--texto-suave); font-size: .9rem; line-height: 1.5; }
.det-sub { font-size: 1.15rem; margin-top: 4px; }
.det-nota { color: var(--texto-suave); font-size: .8rem; line-height: 1.4; }
.det-sug { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.det-sug li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: var(--raio); background: rgba(253,186,77,.08); border: 1px solid rgba(253,186,77,.3); font-size: .85rem; line-height: 1.35; }
.det-sug b { color: var(--ouro); white-space: nowrap; font-size: .8rem; }
.det-corpo .cr-tabela th[scope="row"] span { white-space: normal; }
@media (prefers-reduced-motion: reduce) { .det-janela, .det-modal.aberta .det-janela { transition: none; } }
@media (max-width: 760px) {
  .produto-det-btn { display: flex; position: absolute; top: 10px; right: 12px; min-height: 32px; align-items: center; gap: 4px; padding: 0 2px; background: none; border: 0; color: var(--ouro); font: 600 .75rem var(--f-texto); cursor: pointer; }
  .produto-det-btn::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
  .produto-corpo:has(.produto-novo) .produto-det-btn { top: 44px; }
}

/* ---------- Pop-up: fotos, créditos no topo, ícones e sugestões ---------- */
.det-fotos { position: relative; aspect-ratio: 16 / 9; border-radius: var(--raio); overflow: hidden; background: var(--verde-noite); }
.det-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.det-fotos img.ativo { opacity: 1; }
.det-fotos .fotos-nav { width: 38px; height: 38px; font-size: 1.4rem; }
.det-fotos-cont { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(21,22,10,.8); color: var(--areia); font-size: .7rem; }
.det-topo-cr { display: flex; gap: 10px; }
.det-topo-cr div { flex: 1; display: grid; justify-items: center; padding: 10px 8px; border-radius: var(--raio); background: rgba(253,186,77,.1); border: 1px solid rgba(253,186,77,.4); }
.det-topo-cr strong { font: 800 2rem/1 var(--f-titulo); color: var(--ouro); }
.det-topo-cr span { font-size: .72rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .08em; }
.at-ico { flex: none; width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; background: rgba(239,236,234,.08); color: var(--ouro); }
.at-ico svg { width: 18px; height: 18px; }
.cr-tabela .at-nome { display: flex !important; align-items: center; gap: 8px; white-space: normal; }
.det-sug li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "quem cr" "icos icos"; gap: 8px 10px; }
.sug-quem { grid-area: quem; font-size: .72rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .06em; }
.sug-cr { grid-area: cr; }
.sug-icos { grid-area: icos; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sug-icos i { font-style: normal; color: var(--texto-suave); font-size: .8rem; }
.sug-it { display: inline-flex; align-items: center; gap: 3px; }
.sug-it b { color: var(--areia); font-size: .78rem; }
.sug-icos .at-ico { width: 34px; height: 34px; background: rgba(253,186,77,.14); }
.sug-icos .at-ico svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .det-fotos img { transition: none; } }
.det-corpo { display: flex; flex-direction: column; }
.det-corpo > * { flex: none; }

/* ícones brancos sem fundo; tabela alinhada ao centro */
.at-ico { background: none !important; color: #fff; }
.sug-icos .at-ico { width: 30px; height: 30px; }
.sug-icos .at-ico svg { width: 24px; height: 24px; }
.cr-tabela th, .cr-tabela td { vertical-align: middle; }

/* ícones centralizados e maiores */
.at-ico { width: 32px; height: 32px; display: inline-grid; place-items: center; }
.at-ico svg { display: block; width: 24px; height: 24px; }
.sug-icos .at-ico { width: 36px; height: 36px; }
.sug-icos .at-ico svg { width: 28px; height: 28px; }
.cr-tabela .at-nome { gap: 10px; }
.cr-tabela .at-nome + .at-nome { margin-top: 6px; }

/* faixa de cor no topo sem engrossar nos cantos; sem a margem que era da aba lateral */
.produto { border-top: 1px solid var(--linha); box-shadow: inset 0 3px 0 var(--cor, transparent); }
.produto.ativo { border-top-color: rgba(253,186,77,.7); }
.restr-tabela td { width: auto; white-space: nowrap; font-weight: 600; }
.restr-tabela .at-nome > span { display: grid; gap: 2px; }
.restr-tabela .at-nome small { font-size: .7rem; font-weight: 400; color: var(--texto-suave); }
.restr-tabela .at-nome small { display: block; margin-top: 2px; line-height: 1.3; }
.restr-tabela td:last-child { color: var(--areia); }

/* Dados do comprador e status do pagamento */
.titular { display: grid; gap: 10px; max-width: 820px; margin: 18px 0 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.titular h3 { grid-column: 1 / -1; margin: 0; font-size: 1rem; }
.titular label { display: grid; gap: 4px; align-content: start; font-size: .82rem; color: var(--texto-suave); }
.titular input { font: inherit; font-size: 1rem; color: var(--texto); background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 10px 12px; min-width: 0; }
.titular input:focus { outline: 2px solid var(--ouro, #e0b84a); outline-offset: 1px; }
.pag-status { max-width: 820px; font-size: .92rem; }
.pag-status:empty { display: none; }
.pag-status { margin: 8px 0; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--linha); background: var(--fundo-2); }
.pag-status.erro { border-color: #c0533f; color: #f1a493; }
.pag-status.ok { border-color: #4d8f4f; }
.pag-status .btn { display: inline-flex; margin-left: 10px; }
@media (max-width: 600px) { .titular { grid-template-columns: minmax(0, 1fr); } .pag-status .btn { margin: 10px 0 0; } }
.celular .titular { grid-template-columns: minmax(0, 1fr); }
.celular .pag-status .btn { margin: 10px 0 0; }
.titular .obrig { color: #f1a493; font-weight: 700; }
.titular-dica { font-size: .74rem; color: var(--texto-suave); }
.pag-espera { display: block; margin-top: 8px; font-size: .82rem; color: var(--texto-suave); }
.titular-obs { grid-column: 1 / -1; margin: -4px 0 0; font-size: .78rem; color: var(--texto-suave); }

/* sugestões: créditos embaixo de cada atração e total embaixo */
.det-sug li { grid-template-columns: 1fr; grid-template-areas: "quem" "icos" "total"; }
.sug-icos { align-items: flex-start; }
.sug-icos i { align-self: center; margin-top: -14px; }
.sug-it { flex-direction: column; align-items: center; gap: 3px; }
.sug-ico { display: inline-flex; align-items: center; gap: 3px; }
.sug-val { font-size: .72rem; color: var(--areia); font-weight: 600; white-space: nowrap; }
.sug-total { grid-area: total; font-size: .82rem; color: var(--texto-suave); border-top: 1px solid rgba(253,186,77,.2); padding-top: 6px; }
.sug-total b { color: var(--ouro); }

/* ao trocar de etapa, a rolagem para com folga para o cabeçalho fixo */
.loja-etapas { scroll-margin-top: 110px; }
.celular .loja-etapas { scroll-margin-top: 76px; }

/* Produto sem data na Limber para o dia escolhido */
.opcao-indisp { opacity: .55; }
.opcao-indisp .opcao-txt span { color: #f1a493; }
.loja-ts { margin: 10px 0 0; min-height: 65px; }
