/* =========================================================================
   Loja na página inicial: botão do carrinho no topo, gaveta e checkout.
   Visual da home: azul-marinho, borda ciano, dourado, Oswald nos títulos e Poppins no texto.
   ========================================================================= */
.gc-botao, .gc-gaveta, .gc-modal, .toast { font-family: "Poppins", sans-serif; }
html.gc-travado { overflow: hidden; }

/* ---------- botão fixo no topo ---------- */
.gc-botao { position: fixed; z-index: 80; top: 16px; right: max(16px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; cursor: pointer; color: #2a1500; font: 700 16px/1 "Poppins", sans-serif;
  background: linear-gradient(180deg, #ffe46b 0%, #ffc41f 55%, #f0a300 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(120, 60, 0, .3), 0 0 0 3px rgba(4, 24, 74, .55), 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .15s ease, filter .15s ease; }
.gc-botao svg { width: 24px; height: 24px; }
.gc-botao:hover { filter: brightness(1.06); transform: translateY(-2px); }
.gc-botao:active { transform: scale(.96); }
.gc-botao:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gc-cont { min-width: 24px; height: 24px; padding: 0 7px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px;
  font: 800 13px/1 "Poppins", sans-serif; color: #fff; background: #0a54c9; box-shadow: 0 0 0 2px #fff3; }
.gc-cont.tem { background: #e5374d; }
@keyframes gc-pula { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
.gc-botao.pulou { animation: gc-pula .45s ease; }
@media (max-width: 640px) {
  .gc-botao { top: 10px; right: 10px; padding: 9px 12px; }
  .gc-botao-txt { display: none; }
}

/* ---------- véu ---------- */
.gc-veu { position: fixed; inset: 0; z-index: 90; background: rgba(1, 8, 30, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.gc-veu.aberto { opacity: 1; pointer-events: auto; }

/* ---------- peças comuns ---------- */
.gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px;
  cursor: pointer; font: 700 15px/1 "Poppins", sans-serif; text-decoration: none; transition: filter .15s ease, transform .15s ease; }
.gc-btn svg { width: 18px; height: 18px; flex: none; }
.gc-btn:hover:not([disabled]) { filter: brightness(1.08); }
.gc-btn:active:not([disabled]) { transform: scale(.97); }
.gc-btn[hidden] { display: none; }
.gc-btn[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.gc-btn-ouro { color: #2a1500; background: linear-gradient(180deg, #ffe46b 0%, #ffc41f 55%, #f0a300 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(120, 60, 0, .3), 0 0 0 2px #ffd84a; }
.gc-btn-sec { color: #fff; background: linear-gradient(180deg, #2f9bff 0%, #136de8 55%, #0a54c9 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 2px #5cc8ff; }
.gc-cheio { width: 100%; min-height: 54px; font-size: 17px; }
.gc-fechar { width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid rgba(100, 190, 255, .35); background: rgba(0, 40, 130, .5);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.gc-fechar:hover { border-color: #00bcff; }
.gc-rot { display: block; margin-bottom: 6px; font: 700 12px/1 "Poppins", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #ffc93c; }
.gc-entrada { width: 100%; min-width: 0; min-height: 46px; box-sizing: border-box; padding: 0 14px; border-radius: 12px; border: 2px solid rgba(100, 190, 255, .3);
  background: #071a52; color: #fff; font: 600 15px "Poppins", sans-serif; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.gc-entrada::placeholder { color: #7e98c8; font-weight: 500; }
.gc-entrada:focus { border-color: #2f9bff; box-shadow: 0 0 0 4px rgba(47, 155, 255, .25); }
.gc-entrada.ok { border-color: #63d84a; }
.gc-entrada.erro { border-color: #ff6b7a; }
.gc-entrada[readonly] { opacity: .85; }
.gc-linha { display: flex; gap: 8px; }
.gc-dica { margin: 0; font-size: 13px; line-height: 1.45; color: #a9c4ee; }
.gc-dica:empty { display: none; }
.gc-dica a, .gc-marcar a { color: #ffc93c; }
.gc-verde { color: #8bf05a !important; }

/* ---------- gaveta do carrinho ---------- */
.gc-gaveta { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, rgba(47, 155, 255, .25), transparent 55%), linear-gradient(180deg, #0a2d82 0%, #04184a 100%);
  border-left: 3px solid #00bcff; box-shadow: -20px 0 50px rgba(0, 0, 0, .45); transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.gc-gaveta.aberta { transform: none; }
.gc-cab { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid rgba(100, 190, 255, .2); }
.gc-cab h2 { margin: 0; font: 500 30px/1 "Oswald", sans-serif; letter-spacing: .02em; }
.gc-itens { flex: 1; overflow-y: auto; padding: 14px 18px; display: grid; align-content: start; gap: 10px; }
.gc-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  background: rgba(0, 45, 150, .5); border: 1px solid rgba(100, 190, 255, .28); }
.gc-mini { width: 58px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.gc-item-txt b { display: block; font-size: 15px; line-height: 1.25; }
.gc-item-txt small { color: #a9c4ee; font-size: 13px; }
.gc-dir { display: grid; gap: 6px; justify-items: end; text-align: right; }
.gc-dir > b { color: #ffd23f; font-size: 15px; }
.gc-qtd { display: inline-flex; align-items: center; border-radius: 999px; background: #071a52; box-shadow: inset 0 0 0 1px rgba(100, 190, 255, .35); }
.gc-qtd button { width: 30px; height: 30px; border: 0; background: transparent; color: #fff; font-size: 18px; cursor: pointer; border-radius: 999px; }
.gc-qtd button:hover { background: rgba(255, 255, 255, .1); }
.gc-qtd span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.gc-vazio { display: grid; justify-items: center; gap: 8px; padding: 50px 14px; text-align: center; color: #a9c4ee; }
.gc-vazio img { width: 110px; height: auto; opacity: .85; margin-bottom: 6px; }
.gc-vazio b { color: #fff; font-size: 17px; }
.gc-pe { display: grid; gap: 12px; padding: 16px 18px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(100, 190, 255, .2); background: rgba(2, 12, 44, .45); }
.gc-totais { display: grid; gap: 6px; font-size: 14px; color: #c3d6f7; }
.gc-totais:empty { display: none; }
.gc-totais > div { display: flex; justify-content: space-between; gap: 12px; }
.gc-total { padding-top: 8px; margin-top: 2px; border-top: 1px dashed rgba(100, 190, 255, .35); color: #fff; font: 500 24px/1.1 "Oswald", sans-serif !important; }
.gc-totais .gc-total span:last-child, .gc-resumo .gc-total b { color: #ffd23f; }

/* ---------- checkout ---------- */
.gc-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.gc-caixa { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; color: #fff; border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(47, 155, 255, .28), transparent 55%), linear-gradient(180deg, #0b2f8a 0%, #04184a 100%);
  border: 3px solid #00bcff; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .15), 0 30px 80px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .25s ease, transform .25s ease; }
.gc-modal.aberto { pointer-events: auto; }
.gc-modal.aberto .gc-caixa { opacity: 1; transform: none; }
.gc-mcab { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; }
.gc-tag { font: 800 14px/1 "Poppins", sans-serif; letter-spacing: .14em; color: #ffc93c; }
.gc-passos { display: flex; gap: 6px; padding: 14px 24px 0; }
.gc-passos span { flex: 1; height: 5px; border-radius: 5px; background: rgba(100, 190, 255, .22); transition: background .3s; }
.gc-passos span.feito { background: linear-gradient(90deg, #ffe46b, #f5b000); }
.gc-etapa { display: grid; gap: 14px; padding: 18px 24px 26px; }
.gc-etapa[hidden] { display: none; }
.gc-h { margin: 0; font: 500 30px/1.05 "Oswald", sans-serif; letter-spacing: .01em; }
.gc-h2 { margin-top: 10px; font-size: 22px; color: #dce8ff; }
.gc-texto { margin: 0; color: #c3d6f7; line-height: 1.5; }
.gc-quem { display: flex; gap: 14px; align-items: flex-end; }
.gc-cabeca { flex: none; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 14px;
  background: linear-gradient(180deg, #2f9bff, #0a54c9); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 0 0 2px #5cc8ff; }
.gc-cabeca img { width: 100%; height: 100%; image-rendering: pixelated; }
.gc-cabeca b { font: 500 32px/1 "Oswald", sans-serif; }
.gc-campo { flex: 1; min-width: 0; display: block; }
.gc-campo .gc-dica { display: block; margin-top: 6px; }
.gc-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #071a52; box-shadow: inset 0 0 0 1px rgba(100, 190, 255, .3); }
.gc-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: #a9c4ee; font: 700 14px "Poppins", sans-serif; cursor: pointer; }
.gc-seg button[aria-pressed="true"] { color: #2a1500; background: linear-gradient(180deg, #ffe46b, #f5b000); }
.gc-seg button[disabled] { cursor: default; }
.gc-resumo { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 45, 150, .45); border: 1px solid rgba(100, 190, 255, .28); }
.gc-resumo > div { display: flex; justify-content: space-between; gap: 12px; color: #c3d6f7; }
.gc-resumo b { color: #fff; font-weight: 600; text-align: right; }
.gc-aviso { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: #ffe9b0; background: rgba(255, 201, 60, .1); border: 1px dashed rgba(255, 201, 60, .5); }
.gc-aviso[hidden] { display: none; }
.gc-metodos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.gc-metodo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; cursor: pointer; color: #a9c4ee; font-size: 13px;
  background: rgba(0, 45, 150, .4); border: 2px solid rgba(100, 190, 255, .25); }
.gc-metodo[hidden] { display: none; }
.gc-metodo b { display: block; color: #fff; font-size: 16px; }
.gc-metodo:has(input:checked) { border-color: #ffc93c; background: rgba(255, 201, 60, .1); }
.gc-metodo input, .gc-marcar input { accent-color: #ffc93c; width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.gc-marcar { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #c3d6f7; cursor: pointer; }
.gc-alerta { padding: 12px 14px; border-radius: 12px; font-size: 14px; color: #ffd1d7; background: rgba(255, 107, 122, .12); border: 1px solid rgba(255, 107, 122, .45); }
.gc-alerta[hidden] { display: none; }
.gc-pix { justify-items: center; text-align: center; }
.gc-qr { width: 220px; height: 220px; padding: 14px; box-sizing: border-box; border-radius: 18px; background: #fff; box-shadow: 0 0 0 5px #ffc93c, 0 14px 30px rgba(0, 0, 0, .35); }
.gc-qr svg, .gc-qr img { width: 100%; height: 100%; display: block; }
.gc-valor { font: 500 40px/1 "Oswald", sans-serif; color: #ffd23f; }
.gc-timer { margin-top: 4px; font-size: 14px; color: #a9c4ee; }
.gc-pix .gc-linha { width: 100%; }
.gc-pix .gc-entrada { font-size: 12px; font-weight: 500; color: #c3d6f7; }
.gc-aguarda { display: inline-flex; align-items: center; gap: 10px; color: #c3d6f7; font-size: 14px; }
.gc-giro { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(100, 190, 255, .35); border-top-color: #ffc93c; animation: gc-gira .8s linear infinite; }
@keyframes gc-gira { to { transform: rotate(360deg); } }
.gc-ok { justify-items: center; text-align: center; }
.gc-ok .gc-resumo { width: 100%; box-sizing: border-box; text-align: left; }
.gc-medalha { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; color: #2a1500;
  background: linear-gradient(180deg, #ffe46b, #f5b000); box-shadow: 0 0 0 6px rgba(255, 201, 60, .25), 0 0 40px rgba(255, 201, 60, .45); }
.gc-medalha svg { width: 46px; height: 46px; }
@media (max-width: 560px) {
  .gc-modal { padding: 0; align-items: end; }
  .gc-caixa { max-height: 94dvh; border-radius: 22px 22px 0 0; border-bottom: 0; }
  .gc-h { font-size: 26px; }
}

/* card destacado quando chega por ?item= */
.gc-destaque { outline: 4px solid #ffc93c; outline-offset: 6px; border-radius: 24px; transition: outline-color .3s; }

/* aviso flutuante (site.js) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 14px; color: #fff;
  font: 600 15px/1.35 "Poppins", sans-serif; background: #0a2d82; border: 2px solid #00bcff; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transform: translate(-50%, calc(100% + 48px)); visibility: hidden; transition: transform .3s ease, visibility .3s; }
.toast.mostrar { transform: translate(-50%, 0); visibility: visible; }

/* preenchimento automático do navegador (e-mail, nick): mantém fundo escuro e texto branco legíveis */
.gc-entrada:-webkit-autofill, .gc-entrada:-webkit-autofill:hover, .gc-entrada:-webkit-autofill:focus, .gc-entrada:autofill {
  -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 1000px #071a52 inset; transition: background-color 99999s ease 0s; }
.gc-entrada:-webkit-autofill:focus { box-shadow: 0 0 0 1000px #071a52 inset, 0 0 0 4px rgba(47, 155, 255, .25); }
.gc-entrada { -webkit-text-fill-color: #fff; color-scheme: dark; }
.gc-entrada::placeholder { -webkit-text-fill-color: #7e98c8; }

/* no celular o aviso fica no alto, para não cobrir o botão do carrinho */
@media (max-width: 640px) {
  .toast { top: 64px; bottom: auto; z-index: 210; transform: translate(-50%, -160%); }
  .toast.mostrar { transform: translate(-50%, 0); }
}

/* Conta (Entrar / meu nome) ao lado esquerdo do carrinho, na mesma altura */
.topo-home { top: 16px; left: auto; right: 201px; }
@media (max-width: 1199.98px) { .topo-home { top: 16px; right: 201px; } }
@media (max-width: 640px) {
  .topo-home { top: 10px; right: 102px; }
  .topo-home .conta-topo { padding: 9px 14px; }
}
