/* Vitrine Kosmonauta. Cores, fontes e medidas lidas na loja atual (celular 390 x 844). */
:root {
  --fundo: rgba(255, 255, 243, 1);
  --roxo: rgba(126, 66, 134, 1);
  --roxo-card: rgba(126, 66, 132, 1);
  --moldura: rgba(255, 217, 50, 1);
  --amarelo-check: rgba(255, 214, 0, 1);
  --sombra: rgba(212, 24, 118, 0.23) 2px 2px 11px 8px;
  --verde: rgba(29, 177, 0, 1);
  --texto-card: rgb(59, 59, 59);
  --texto-resumo: rgba(47, 42, 92, 1);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --moz: "Mozilla Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --coluna: min(381px, 100vw);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: #000; font-family: var(--sans); overflow-x: hidden; padding-bottom: 24px; }
body.com-barra { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
body.com-cta { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
b, strong { font-weight: 700; }
.oculto { display: none !important; }
body.carregando .pagina { visibility: hidden; }

/* ---- Topo ---- */
.faixa-campanha {
  width: calc(100% - 20px); max-width: 370px; min-height: 30px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 4px;
  padding: 6px 8px; border-radius: 0 0 3px 3px; color: #fff;
  background: linear-gradient(90deg, rgba(118, 25, 200, 1), var(--roxo));
  font-size: 12px; line-height: 14px; text-align: center;
}
.faixa-campanha b { color: #FAE232; }
.pagina { width: var(--coluna); max-width: 100%; margin: 0 auto; padding: 0 8px; }
.logo-area { display: block; margin: 7px auto 0; border-radius: 50%; }
.logo { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto; }

/* ---- Títulos ---- */
.titulo { margin: 10px auto 0; max-width: 318px; padding: 0 4px; font-size: 18px; line-height: 21.6px; font-weight: 700; text-align: center; }
.titulo-home { margin-top: 18px; line-height: 27px; }
.titulo-largo { max-width: 351px; }
.titulo-estreito { max-width: 260px; margin-top: 18px; }
.subtitulo { margin: 10px auto 0; max-width: 318px; font-size: 14px; line-height: 17px; font-weight: 500; text-align: center; }
.caixa-amarela { margin: 14px auto 0; max-width: 318px; padding: 7px 18px; border-radius: 16px; background: rgba(255, 245, 175, 1); font-size: 14px; line-height: 17px; font-weight: 700; text-align: center; text-decoration: underline; }
.titulo-leve { margin: 10px auto 0; font-family: var(--moz); font-size: 20px; line-height: 30px; font-weight: 400; text-align: center; }
.titulo-leve b { font-weight: 700; }
.titulo-dados { color: var(--texto-resumo); }

/* ---- Partes comuns dos cards ---- */
.card-texto { display: block; flex: 1; min-width: 0; text-align: left; color: var(--texto-card); }
.card-texto strong { display: block; font-size: 16px; line-height: 20px; font-weight: 700; }
.card-texto small { display: block; margin-top: 2px; font-size: 13px; line-height: 20px; font-weight: 400; }
.card-img { flex: none; width: 65px; height: 65px; object-fit: contain; }
.card-branco { display: block; background: #fff; border-radius: 20px; }
.check {
  position: absolute; right: -20px; top: 50%; width: 42px; height: 42px; margin-top: -21px; z-index: 3;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--amarelo-check); color: #000;
  font-family: "Noto Sans Mono", monospace; font-size: 26px; font-weight: 700; line-height: 1;
}
.sel > .check { display: flex; }
.riscado { font-family: var(--moz); font-weight: 700; color: rgba(94, 94, 94, 1); }
.selo-off { display: inline-block; padding: 0 5px; background: rgba(228, 246, 237, 1); color: rgba(0, 170, 143, 1); font-family: var(--moz); font-size: 12px; line-height: 17px; font-weight: 700; white-space: nowrap; }

/* ---- Home ---- */
.cards { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 15px; }
.card {
  position: relative; display: flex; align-items: stretch; width: min(333px, 100% - 20px);
  background: #fff; border-radius: 20px; box-shadow: var(--sombra); text-align: left;
  -webkit-tap-highlight-color: transparent; transition: background-color .12s;
}
.card:focus-visible, .presente:focus-visible { outline: 3px solid var(--roxo); outline-offset: 10px; }
.card > .card-branco { flex: 1; min-width: 0; }
.simples-linha { display: flex; align-items: center; gap: 7px; padding: 1px 6px 3px 1px; min-height: 86px; }
.card-preco { flex: none; width: 96px; display: flex; justify-content: center; align-items: center; padding-right: 4px; font-family: var(--moz); font-size: 19px; line-height: 27px; font-weight: 700; color: var(--verde); white-space: nowrap; }
.card-preco.menos { color: rgba(0, 44, 159, 1); }
.card-preco.mais { color: var(--verde); }
.card-preco.escolhido { color: rgba(255, 240, 86, 1); font-family: var(--sans); font-weight: 700; }
.card.sel { background: var(--roxo-card); box-shadow: 0 0 0 8px var(--moldura); }

/* Pacotão: cabeçalho por cima, quatro linhas empilhadas, preço no alto */
.card-combo { margin-top: 30px; }
.card-combo .card-preco { align-items: flex-start; padding-top: 16px; }
.combo-cab { position: absolute; left: -5px; right: -4px; top: -30px; height: 30px; z-index: 2; }
.combo-rabo { position: absolute; inset: 0 -1px 0 auto; width: 40px; border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(206, 0, 102, 1), rgba(241, 176, 93, 1)); }
.combo-faixa { position: absolute; inset: 0 2px 0 0; display: flex; align-items: center; justify-content: space-between; padding: 0 2px 0 24px; border-radius: 10px 12px 12px 10px; background: linear-gradient(90deg, rgba(129, 0, 250, 1), rgba(255, 200, 0, 1)); color: #fff; }
.combo-faixa b { font-size: 12px; }
.combo-faixa i { font-style: normal; font-size: 10px; font-weight: 700; }
.combo-seta { position: absolute; right: 44px; top: 100%; width: 20px; height: 10px; clip-path: polygon(0 0, 100% 0, 50% 100%); background: radial-gradient(circle at 50% 0, rgba(241, 176, 93, 1), rgba(254, 230, 95, 1)); }
.combo-linha { display: flex; align-items: flex-start; padding: 9px 2px 0 3px; }
.combo-linha .card-img { align-self: center; }
.combo-mais { flex: none; width: 15px; margin: 8px 2px 0 1px; font-family: var(--sans); font-size: 20px; line-height: 20px; font-weight: 700; color: #000; text-align: center; }
.combo-linha .card-texto { padding-bottom: 9px; }
.combo-linha + .combo-linha .card-texto { padding-top: 0; }
.combo-linha:not(:last-child) .card-texto { border-bottom: 2px solid var(--moldura); box-shadow: 0 1px 0 rgba(212, 24, 118, .35); }
.combo-linha:last-child { padding-bottom: 9px; }
.card-combo .check { top: 50%; }

/* ---- Oferta 1B ---- */
.oferta-um { width: min(331px, 100% - 20px); margin: 31px auto 0; padding: 12px 14px 11px 12px; background: #fff; border-radius: 20px; box-shadow: var(--sombra); }
.oferta-um-topo { display: flex; align-items: flex-start; gap: 6px; }
.oferta-um-topo .card-texto { padding-top: 9px; }
.oferta-um-de { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 12px; width: 74px; }
.oferta-um-de .riscado { font-size: 19px; line-height: 23px; }
.oferta-um-base { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; padding-left: 55px; gap: 6px; }
.preco-grande { font-family: var(--moz); font-size: 22px; line-height: 22px; font-weight: 700; color: var(--verde); white-space: nowrap; }
.bt-add { width: 165px; height: 41px; }

/* ---- Oferta 1C ---- */
.presentes { display: flex; flex-direction: column; align-items: center; gap: 23px; margin-top: 12px; }
.presente { position: relative; display: flex; align-items: stretch; width: min(340px, 100% - 20px); min-height: 91px; background: #fff; border-radius: 20px; box-shadow: var(--sombra); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.presente-branco { flex: 1; min-width: 0; padding: 8px 2px 8px 6px; }
.presente-linha { display: flex; align-items: center; gap: 6px; }
.presente-linha .card-img { width: 60px; height: 65px; }
.presente-preco { flex: none; width: 92px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding-right: 18px; }
.presente-preco .riscado { font-size: 14px; line-height: 16px; }
.preco-por { font-family: var(--moz); font-size: 20px; line-height: 20px; font-weight: 700; color: var(--verde); white-space: nowrap; }
.presente.sel { background: var(--roxo-card); box-shadow: 0 0 0 7px var(--moldura); margin: 8px 0; }
.presente.sel .presente-branco { margin: 3px 0 3px 3px; }
.presente.sel .preco-por { color: rgba(255, 240, 86, 1); font-family: var(--sans); }
.presente.sel .riscado { color: rgba(255, 240, 86, .85); }
.presente.sel .selo-off { color: var(--roxo-card); font-family: var(--sans); font-weight: 700; background: rgba(228, 246, 237, 1); }
.box-opcao { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0 62px; font-size: 12px; line-height: 14.4px; font-weight: 700; color: var(--texto-card); cursor: pointer; }
.box-marca { flex: none; width: 16px; height: 16px; margin: 3px 0 0 0; }

/* ---- Oferta 1D ---- */
.faixa-aquarelas { width: 299px; max-width: 100%; height: auto; margin: 22px auto 0; }
.aquarelas { position: relative; width: min(340px, 100% - 20px); margin: 33px auto 0; padding: 9px 10px 10px 16px; background: #fff; border-radius: 20px; box-shadow: var(--sombra); }
.aquarelas-branco { display: flex; gap: 6px; align-items: flex-start; }
.aquarelas-img { flex: none; width: 45px; height: 65px; object-fit: contain; }
.aquarelas .card-texto strong { line-height: 19px; }
.aquarelas .card-texto small { margin-top: 0; line-height: 17px; }
.aquarelas-base { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: -22px; padding-left: 53px; }
.aquarelas-valor { display: flex; flex-direction: column; align-items: center; color: var(--texto-card); }
.aquarelas-valor small { font-size: 10px; line-height: 13px; margin-top: 6px; white-space: nowrap; }
.preco-medio { font-family: var(--moz); font-size: 18px; line-height: 18px; font-weight: 700; color: var(--verde); }
.aquarelas-preco-sel { display: none; }
.aquarelas .card-texto { padding-bottom: 26px; }
.aquarelas.sel { display: flex; align-items: center; padding: 6px 0 6px 6px; background: var(--roxo-card); box-shadow: 0 0 0 7px var(--moldura); }
.aquarelas.sel .aquarelas-branco { flex: 1; min-width: 0; padding: 6px 4px 6px 8px; }
.aquarelas.sel .card-texto strong { font-size: 14px; line-height: 17px; }
.aquarelas.sel .card-texto small { font-size: 11px; line-height: 16px; }
.aquarelas.sel .card-texto { padding-bottom: 0; }
.aquarelas.sel .aquarelas-base { display: none; }
.aquarelas.sel .aquarelas-preco-sel { display: block; flex: none; width: 84px; padding: 0 20px 0 2px; text-align: center; font-size: 18px; font-weight: 700; color: rgba(255, 240, 86, 1); }
.aquarelas.sel > .check { display: flex; }

/* ---- Botões ---- */
.bt-principal, .bt-nao { display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 20px; line-height: 20px; font-weight: 700; color: #000; border: 1px solid #000; border-radius: 16px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.bt-principal { background: linear-gradient(180deg, rgba(255, 240, 86, 1), rgba(250, 214, 0, 1)); }
.bt-principal:active { filter: brightness(.96); }
.bt-principal:disabled { opacity: .65; cursor: default; }
.bt-nao { width: 234px; max-width: calc(100% - 16px); height: 55px; margin: 37px auto 0; background: rgba(255, 150, 141, 1); opacity: 0; pointer-events: none; }
.bt-nao.visivel { opacity: 1; pointer-events: auto; }
.bt-nao-largo { width: 272px; }
.oferta-um-base .bt-principal { flex: none; }
.bt-alterar { font-family: "Noto Sans Mono", monospace; font-size: 14px; line-height: 20px; font-weight: 700; color: rgba(1, 113, 1, 1); }

/* ---- Formulários ---- */
.form-central { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-top: 18px; }
.form-central .bt-principal { width: min(284px, 100% - 16px); height: 52px; }
.campo { width: min(284px, 100% - 16px); height: 45px; padding: 0 12px; text-align: center; background: rgb(252, 252, 252); border: 2px solid rgb(125, 66, 134); border-radius: 16px; box-shadow: var(--sombra); font-family: var(--moz); font-size: 16px; font-weight: 500; }
input::placeholder { color: rgb(170, 170, 170); opacity: 1; }
.campo:focus, .campo-dados:focus { outline: none; background: #fff; border-color: rgba(56, 74, 143, 1); }
.invalido { border-color: rgba(214, 39, 85, 1) !important; }
/* Celular com bandeira (intl-tel-input, 21/11/2026): o campo fica com a largura e o desenho do .campo; a bandeira entra à esquerda */
.form-central .iti { width: min(284px, 100% - 16px); --iti-border-color: rgb(125, 66, 134); --iti-hover-color: rgba(126, 66, 134, .08); --iti-icon-color: rgb(125, 66, 134); }
.form-central .iti .campo { width: 100%; text-align: left; }
.form-central .iti__country-container { border-radius: 16px 0 0 16px; }
.iti__dropdown-content { border-radius: 12px; font-family: var(--moz); font-size: 15px; box-shadow: var(--sombra); }
.iti__search-input { font-family: var(--moz); font-size: 16px; }
.doc-ruim { color: rgb(255, 0, 0) !important; }
.ent { opacity: 0; }
.ent.visivel { animation: fadeIn 500ms ease-out both; }

.form-dados { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px auto 0; width: min(308px, 100%); }
.campo-dados { width: 100%; height: 45px; padding: 0 10px; text-align: center; background: rgb(252, 252, 252); border: 2px solid var(--roxo); border-radius: 10px; font-family: var(--moz); font-size: 16px; font-weight: 500; }
.campo-dados:disabled { color: rgb(107, 107, 107); background: rgb(244, 244, 238); opacity: 1; }
.bt-buscar { width: 100%; height: 45px; border-radius: 16px; background: rgba(213, 213, 213, 1); color: #fff; font-family: var(--sans); font-size: 17px; font-weight: 700; cursor: default; }
.bt-buscar.pronto { background: var(--verde); cursor: pointer; }
.endereco { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 10px 8px; }
.form-dados .bt-principal { width: 100%; height: 52px; margin-top: 4px; }
body.digital .so-fisico { display: none !important; }
.entra-lado { animation: slideLeftIn 1000ms ease-out both; }

/* ---- Revisão ---- */
.rev-sub { margin: 14px auto 0; font-size: 15px; line-height: 22px; font-weight: 700; text-align: center; }
.rev-colunas { display: flex; align-items: stretch; justify-content: center; gap: 8px; margin-top: 18px; color: var(--texto-resumo); font-size: 16px; line-height: 22px; font-weight: 500; }
.rev-pedido { flex: 1 1 182px; min-width: 0; max-width: 182px; padding-right: 5px; border-right: 2px solid var(--texto-resumo); text-align: center; overflow-wrap: anywhere; }
.rev-pedido b, .rev-entrega b { display: block; }
.rev-pedido p { margin: 8px 0 0; line-height: 24px; }
.rev-mais { margin-top: 4px; font-weight: 700; line-height: 18px; }
.rev-entrega { flex: 1 1 177px; min-width: 0; max-width: 177px; overflow-wrap: anywhere; }
.rev-entrega p { margin: 22px 0 0; }
.rev-alterar { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.rev-alterar .bt-alterar { flex: 1 1 0; max-width: 182px; min-height: 40px; }

/* ---- Barra fixa ---- */
.fixos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none; padding-top: 40px; }
.barra { height: calc(94px + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); background: var(--roxo); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.barra-col { flex: 0 1 100px; min-width: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--moz); }
.barra-col span { font-size: clamp(18px, 5.7vw, 22px); line-height: 26px; font-weight: 600; white-space: nowrap; }
.barra-col small { font-size: 16px; line-height: 22px; font-weight: 500; white-space: nowrap; }
.barra-col:nth-child(3) { flex-basis: 113px; }
.barra-sinal { flex: none; width: 12px; margin: 0; text-align: center; font-family: var(--sans); font-size: 24px; font-weight: 700; }
.bar-cta { position: absolute; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(272px, 100% - 32px); height: 52px; z-index: 1; pointer-events: auto; }
body.teclado .fixos { display: none; }

/* ---- Toast, espera ---- */
.toasts { position: fixed; top: 0; left: 0; right: 0; z-index: 40; pointer-events: none; }
.toast { position: relative; margin: 0 auto; max-width: 480px; padding: 16px 24px; background: rgba(80, 205, 137, 1); color: #fff; font-family: var(--moz); font-size: 17px; line-height: 22px; overflow: hidden; }
.toast i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(0, 0, 0, .35); transform-origin: left; animation: toastTempo linear both; }
.espera { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 243, .6); }
.espera-gira { width: 44px; height: 44px; margin: 16px auto; color: var(--roxo); animation: gira 1.4s linear infinite; }
.espera-gira::before { content: "\f2dd"; display: block; font: 44px/44px "FA"; text-align: center; }

/* ---- Teste ---- */
.caixa-teste { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 20px auto 0; padding: 18px 14px; border: 2px dashed rgb(212, 2, 2); border-radius: 16px; text-align: center; }
.caixa-teste p { margin: 0; }
.caixa-teste .bt-principal, .caixa-teste .bt-nao { width: 234px; height: 52px; margin: 0; opacity: 1; pointer-events: auto; }

/* ---- Loja fechada ---- */
.tela-fechada { padding-top: 7px; }

/* ---- Retorno ---- */
body.retorno { padding-bottom: 40px; }
.ret { width: min(381px, 100%); margin: 0 auto; padding: 16px 20px; text-align: center; font-family: var(--moz); }
.ret-logo { width: 47px; height: 47px; border-radius: 50%; margin: 0 auto; }
.ret-texto { margin: 18px 0 0; font-size: 16px; line-height: 1.5; }
.ret-aviso { margin: 20px 0 0; padding: 8px; border: 2px dashed rgb(212, 2, 2); border-radius: 10px; font-size: 13px; }
.ret-cta { width: min(284px, 100%); height: 52px; margin: 24px auto 0; }
.ret-link { display: inline-block; margin-top: 22px; font-size: 14px; color: var(--roxo); }

/* ---- Telas maiores: mesma coluna, mesma proporção. Abaixo de 360 px os cards encolhem sem cortar texto ---- */
@media (max-width: 379px) {
  .check { right: -12px; }
}
@media (max-width: 359px) {
  .check { right: -8px; width: 36px; height: 36px; margin-top: -18px; font-size: 22px; }
  .card.sel .card-preco { width: 90px; padding-right: 26px; }
  .presente.sel .presente-preco { width: 92px; padding-right: 26px; }
  .aquarelas.sel .aquarelas-preco-sel { width: 84px; padding-right: 26px; }
  .presente-preco { padding-right: 10px; }
  .card-preco { width: 76px; font-size: 17px; }
  .presente-preco { width: 74px; }
  .preco-por { font-size: 18px; }
  .card-img, .presente-linha .card-img { width: 50px; height: 56px; }
  .combo-faixa i { font-size: 9px; }
  .box-opcao { margin-left: 0; }
  .bt-add { width: 136px; font-size: 18px; }
  .oferta-um-base, .aquarelas-base { padding-left: 0; }
  .bt-principal, .bt-nao { font-size: 18px; }
  .barra-col small { font-size: 14px; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideLeftIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes toastTempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
  .ent { opacity: 1; }
  .ent.visivel, .entra-lado { animation: none; }
}
