/* Vitrine SPA — BASE: shell (header, drawer, login, modais) e componentes compartilhados.
   CSS por funcionalidade: catalogo.css, home.css, produto.css, checkout.css, conta.css. */
:root { --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%); --indigo: #4f46e5;
        --ink: #1e293b; --sub: #64748b; --line: #e2e8f0; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* body em coluna ocupando a viewport toda: o footer gruda no fim mesmo com pouco conteúdo */
body { margin: 0; background: #f4f5f9; color: var(--ink); min-height: 100vh;
       display: flex; flex-direction: column;
       font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ═══ Skeletons (geometria = conteúdo real) ═══ */
.sk { background: linear-gradient(90deg,#eceef5 25%,#f6f7fb 50%,#eceef5 75%);
      background-size: 200% 100%; animation: skshine 1.2s infinite; border-radius: 8px; }
@keyframes skshine { to { background-position: -200% 0; } }
.sk-card { background:#fff; border:1px solid #eceef4; border-radius:14px; overflow:hidden; }
.sk-card .sk-img { height:190px; border-radius:0; }
@media (max-width: 560px) { .sk-card .sk-img { height:140px; } }
.sk-card .sk-b { padding:.75rem .85rem .9rem; display:flex; flex-direction:column; gap:.5rem; }

/* skeleton POR IMAGEM: shimmer atrás de cada <img> até ela carregar (importante p/ S3 externo) */
.img-sk { position: relative; display: block; width: 100%; height: 100%; }
.img-sk::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg,#eceef5 25%,#f6f7fb 50%,#eceef5 75%); background-size: 200% 100%;
  animation: skshine 1.2s infinite; }
.img-sk img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; }
.img-sk.is-on img { opacity: 1; }
.img-sk.is-on::before { display: none; }         /* carregou: some o shimmer */
.img-sk.is-off::before { display: none; }         /* falhou: some o shimmer (mostra o fallback) */
.img-sk-fb { position: absolute; inset: 0; z-index: 0; display: none; align-items: center; justify-content: center; color: #d7dbe6; font-size: 2.4rem; }
.img-sk.is-off .img-sk-fb { display: flex; }

/* ═══ Transição de view ═══ */
#view { min-height: 55vh; min-width: 0; }
.v-enter { opacity: 0; transform: translateY(8px); }
.v-in { opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }

/* ═══ Header ═══ */
.hd { background: var(--grad); position: sticky; top: 0; z-index: 300; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.hd-inner { max-width: 1280px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.hd-brand { display: flex; align-items: center; gap: .6rem; color: #fff; flex: none; min-width: 0; cursor: pointer; }
.hd-brand .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: none; overflow: hidden; }
.hd-brand .ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hd-brand .nm { font-weight: 800; font-size: 1.12rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.hd-brand small { display: block; font-weight: 500; font-size: .62rem; opacity: .85; letter-spacing: .3px; }
.hd-search { flex: 1; position: relative; max-width: 640px; }
.hd-search input { width: 100%; border: none; border-radius: 10px; padding: .72rem 2.9rem .72rem 1.1rem; font-size: .95rem; outline: none; }
.hd-search .go { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: var(--indigo); color: #fff; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: 0 16px 44px rgba(15,23,42,.22); overflow: hidden; display: none; z-index: 400; }
.sug.on { display: block; }
.sug .sug-h { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #98a1b3; padding: .55rem .9rem .25rem; }
.sug .sug-vazio { padding: .8rem .9rem .4rem; font-size: .82rem; color: var(--sub); }
.sug .sug-vazio i { margin-right: .3rem; color: #cbd5e1; }
.sug .sug-i { display: flex; align-items: center; gap: .6rem; padding: .45rem .9rem; cursor: pointer; font-size: .85rem; width: 100%; border: none; background: none; text-align: left; color: var(--ink); }
.sug .sug-i:hover { background: #f4f5fb; }
.sug .sug-i .th { width: 34px; height: 34px; border-radius: 8px; background: #f1f3f8; display: flex; align-items: center; justify-content: center; color: #c3c9d6; overflow: hidden; flex: none; }
.sug .sug-i .th img { width: 100%; height: 100%; object-fit: contain; }
.sug .sug-i .pr { margin-left: auto; font-weight: 800; font-size: .8rem; white-space: nowrap; }
.hd-actions { display: flex; align-items: center; gap: .35rem; flex: none; margin-left: auto; }
.hd-act { display: flex; align-items: center; gap: .55rem; color: #fff; background: none; border: none; cursor: pointer; padding: .45rem .7rem; border-radius: 10px; font-size: .8rem; text-align: left; }
.hd-act:hover { background: rgba(255,255,255,.14); }
.hd-act i { font-size: 1.25rem; }
.hd-act .t1 { display: block; font-size: .66rem; opacity: .85; line-height: 1.1; }
.hd-act .t2 { display: block; font-weight: 700; font-size: .8rem; line-height: 1.15; white-space: nowrap; }
.cart-badge { position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: .66rem; font-weight: 800; display: none; align-items: center; justify-content: center; }
.dd { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 12px; box-shadow: 0 16px 44px rgba(15,23,42,.22); min-width: 215px; display: none; z-index: 400; overflow: hidden; }
.dd.on { display: block; }
.dd button { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; border: none; background: none; padding: .62rem .95rem; font-size: .84rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.dd button:hover { background: #f4f5fb; }
.dd .dd-sep { border-top: 1px solid #f1f3f8; }
.dd i { width: 18px; color: #98a1b3; }

/* barra de departamentos */
.cats { background: #fff; border-bottom: 1px solid var(--line); }
/* Barra de departamentos = carrossel de abas: uma linha, rola só se houver overflow, com
   setas < > condicionais (aparecem só quando dá pra rolar) e swipe no mobile. O popup do
   hover NÃO é filho do trilho que rola — é posicionado com position:fixed via JS, então não
   é cortado pelo overflow do trilho. */
.cats-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; position: relative; display: flex; align-items: stretch; }
.cats-track { display: flex; gap: .25rem; overflow-x: auto; scroll-behavior: smooth; flex: 1; scrollbar-width: none; }
.cats-track::-webkit-scrollbar { display: none; }   /* scroll por setas/swipe, sem barra visível */
.cats-nav { flex: none; border: none; background: #fff; color: var(--indigo); width: 30px; cursor: pointer; font-size: .9rem; display: none; align-items: center; justify-content: center; }
.cats-nav.on { display: flex; }
.cats-nav.prev { box-shadow: 8px 0 10px -6px rgba(0,0,0,.12); }
.cats-nav.next { box-shadow: -8px 0 10px -6px rgba(0,0,0,.12); }
.cat { flex: none; border: none; background: none; padding: .75rem .9rem; font-size: .84rem; font-weight: 600; color: var(--sub); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.cat:hover, .cat.active { color: var(--indigo); }
.cat.active { border-bottom-color: var(--indigo); }
.cat small { opacity: .6; font-weight: 600; }

/* menu de departamentos com submenu HOVER (posição HEADER). O painel é position:FIXED
   (posicionado por JS) para escapar do overflow do trilho que rola. */
.cat-drop { position: relative; flex: none; }
.cat-drop-panel {
  position: fixed; min-width: 240px; max-width: 300px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.18);
  padding: .35rem; z-index: 620; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.cat-drop.on > .cat-drop-panel { opacity: 1; visibility: visible; transform: none; }
.cd-item {
  position: relative; display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; border: none;
  background: none; padding: .5rem .7rem; border-radius: 8px; font-size: .84rem; font-weight: 600;
  color: #475569; cursor: pointer; white-space: nowrap;
}
.cd-item:hover, .cd-item.open { background: #f4f5fb; color: var(--indigo); }
.cd-item > span:first-child { flex: 1; }
.cd-item .cd-desc { font-size: .68rem; font-weight: 800; color: #16a34a; }
.cd-item .cd-more { font-size: .62rem; opacity: .6; margin-left: .3rem; }
.cd-all { color: var(--indigo); border-bottom: 1px solid #f1f3f8; border-radius: 8px 8px 0 0; margin-bottom: .2rem; }
/* item com submenu: wrapper relativo contendo o botão + o submenu aninhado */
.cd-item-wrap { position: relative; }
.cd-item-wrap > .cd-item { width: 100%; }
/* submenu aninhado (nível 2, 3...) — abre à direita do item pai no hover */
.cd-sub { position: absolute; left: calc(100% + 2px); top: -.35rem; min-width: 220px; max-width: 300px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.18);
  padding: .35rem; opacity: 0; visibility: hidden; transform: translateX(6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s; z-index: 1; }
/* ponte invisível para transitar o mouse do item ao submenu sem fechar */
.cd-sub::before { content: ""; position: absolute; left: -6px; top: 0; bottom: 0; width: 6px; }
.cd-item-wrap:hover > .cd-sub { opacity: 1; visibility: visible; transform: none; }

/* ═══ Layout base ═══ */
.main { max-width: 1280px; width: 100%; margin: 0 auto; padding: 1.25rem; flex: 1 0 auto; min-width: 0; }
@media (max-width: 760px) {
  .hd-inner { flex-wrap: wrap; gap: .6rem; padding: .7rem .9rem; }
  .hd-search { order: 3; flex-basis: 100%; max-width: none; }
  .hd-brand .nm { max-width: 150px; font-size: .98rem; }
  .hd-act .t1, .hd-act .t2 { display: none; }
  .hd-act i { font-size: 1.35rem; }
  .main { padding: .9rem; }
}
/* Subcategorias como cards (mesmo visual da home) num slider horizontal com setas */
.sub-cats { position: relative; display: flex; align-items: center; gap: .4rem; margin: .2rem 0 1rem; min-width: 0; }
.sub-cats .sc-track { display: flex; gap: .8rem; overflow-x: auto; scroll-behavior: smooth; flex: 1; min-width: 0; padding: .2rem .1rem .5rem; scrollbar-width: none; -ms-overflow-style: none; }
.sub-cats .sc-track::-webkit-scrollbar { display: none; }
.sub-cats .hm-cat { flex: 0 0 160px; width: 160px; }
.sub-cats .sc-nav { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: var(--indigo); cursor: pointer; box-shadow: 0 2px 8px rgba(30,41,59,.08); display: flex; align-items: center; justify-content: center; }
.sub-cats .sc-nav:hover { background: #eef2ff; }

/* HTML promocional da categoria (modelo vinculado; CSS interno escopado pelo JS) */
.cat-promo { margin: .2rem 0 1rem; border-radius: 14px; overflow: hidden; max-width: 100%; min-width: 0; }
.cat-promo img, .cat-promo video, .cat-promo iframe { max-width: 100%; height: auto; display: block; }
.cat-promo * { box-sizing: border-box; }
.bc { font-size: .78rem; color: #98a1b3; margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.bc button { border: none; background: none; padding: 0; color: var(--indigo); font-weight: 600; cursor: pointer; font-size: .78rem; }
.bc i { font-size: .58rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin: .25rem 0 .9rem; gap: 1rem; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.toolbar .cnt { font-size: .8rem; color: var(--sub); }
.info-bar { background: #eef2ff; border: 1px solid #c7d2fe; color: var(--indigo); border-radius: 12px; padding: .7rem 1rem; font-size: .84rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.info-bar button { border: none; background: none; text-decoration: underline; font-weight: 800; color: var(--indigo); cursor: pointer; font-size: .84rem; }

/* layout com menu lateral (desktop) */
.lay { display: block; }
/* a coluna de conteúdo precisa de min-width:0, senão o .grid (auto-fill/1fr) cresce infinito
   (min-width:auto de item de grid) e gera scroll horizontal gigante */
.lay > div { min-width: 0; }
.side { display: none; }
@media (min-width: 992px) {
  .lay { display: grid; grid-template-columns: 240px 1fr; gap: 1.1rem; align-items: start; }
  .side { display: block; background: #fff; border-radius: 14px; padding: .8rem; border: 1px solid #eceef4; position: sticky; top: 82px; max-height: calc(100vh - 105px); overflow-y: auto; }
}
.side h6 { font-size: .66rem; text-transform: uppercase; letter-spacing: .5px; color: #98a1b3; font-weight: 800; margin: .3rem .4rem .5rem; }
.side .sit { display: flex; justify-content: space-between; align-items: center; width: 100%; border: none; background: none; text-align: left; padding: .48rem .6rem; border-radius: 9px; font-size: .82rem; font-weight: 600; color: #475569; cursor: pointer; gap: .4rem; }
.side .sit:hover { background: #f6f7fb; }
.side .sit.active { background: #eef2ff; color: var(--indigo); }
.side .sit .q { font-size: .66rem; color: #98a1b3; }
.side ul { list-style: none; padding-left: .85rem; margin: 0; }
.chips-m { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .6rem; }
@media (min-width: 992px) { .chips-m { display: none; } }

/* chips (subcategorias / mobile) */
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { border: 1px solid #e2e6ef; background: #fff; color: #475569; border-radius: 999px; padding: .4rem .95rem; font-size: .78rem; font-weight: 700; cursor: pointer; }
.chip:hover { border-color: #c7d2fe; color: var(--indigo); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.chip small { opacity: .75; }

/* preço com desconto (ML) — usado em card, sugestão, produto e home */
.pr-orig { font-size: .74rem; color: #98a1b3; text-decoration: line-through; margin-top: .3rem; }
.pr-tag { display: inline-block; background: #16a34a; color: #fff; font-size: .64rem; font-weight: 800; padding: .1rem .4rem; border-radius: 5px; margin-left: .35rem; vertical-align: 1px; }

/* stepper de quantidade + botão comprar (card, produto, drawer) */
.qty { display: flex; align-items: center; border: 1.5px solid #e2e6ef; border-radius: 9px; overflow: hidden; flex: none; }
.qty button { width: 26px; border: none; background: #f6f7fb; color: var(--indigo); font-weight: 800; cursor: pointer; font-size: .85rem; height: 100%; padding: 0; }
.qty input { width: 36px; border: none; text-align: center; font-weight: 700; font-size: .8rem; outline: none; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy { flex: 1; border: none; border-radius: 9px; padding: .5rem .4rem; font-size: .76rem; font-weight: 800; cursor: pointer; background: var(--grad); color: #fff; }
.buy:hover { opacity: .93; }
.buy.ghost { background: #eef2ff; color: var(--indigo); }
.buy:disabled { background: #e2e6ef; color: #98a1b3; cursor: not-allowed; }

/* estados vazios / fim de lista */
.fim { text-align: center; color: #98a1b3; font-size: .78rem; padding: 1.2rem 0; }
.empty { text-align: center; color: #98a1b3; padding: 3.5rem 1rem; }
.empty i { font-size: 2.6rem; opacity: .35; display: block; margin-bottom: .8rem; }
.loading-c { text-align: center; color: var(--indigo); padding: 2rem; }

/* cards genéricos, badges e botões (conta, checkout, modais) */
.card-it { background: #fff; border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: .75rem; border: 1px solid #eceef4; }
.card-it .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.card-it .titulo { font-weight: 700; font-size: .95rem; }
.card-it .subt { color: #98a1b3; font-size: .76rem; margin-top: .15rem; }
.card-it .val { font-weight: 800; font-size: 1.02rem; color: var(--indigo); white-space: nowrap; }
.badge-st { display: inline-block; padding: .2rem .55rem; border-radius: 7px; font-size: .66rem; font-weight: 800; }
.b-ok { background: #f0fdf4; color: #166534; } .b-warn { background: #fffbeb; color: #92400e; }
.b-info { background: #eff6ff; color: #1e40af; } .b-off { background: #fef2f2; color: #991b1b; }
.btn-g { background: var(--grad); color: #fff; border: none; border-radius: 9px; padding: .5rem .95rem; font-size: .8rem; font-weight: 700; cursor: pointer; margin-top: .6rem; }
.btn-o { background: transparent; border: 1.5px solid #c7d2fe; color: var(--indigo); border-radius: 9px; padding: .45rem .9rem; font-size: .8rem; font-weight: 700; cursor: pointer; margin-top: .6rem; }
.iti { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid #f1f3f8; }
.iti:last-child { border-bottom: none; }
.iti .im { width: 46px; height: 46px; border-radius: 10px; flex: none; background: #f6f7fb; display: flex; align-items: center; justify-content: center; color: #c3c9d6; overflow: hidden; }
.iti .im img { width: 100%; height: 100%; object-fit: contain; }
.sumrow { display: flex; justify-content: space-between; font-size: .84rem; padding: .22rem 0; }
.sumrow.tot { font-weight: 800; font-size: 1rem; color: var(--indigo); border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .5rem; }

/* ═══ Drawer do carrinho ═══ */
.dw-ov { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 500; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dw-ov.on { opacity: 1; pointer-events: auto; }
.dw { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 94vw); background: #fff; z-index: 510; transform: translateX(105%); transition: transform .22s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(15,23,42,.25); }
.dw.on { transform: none; }
.dw-h { background: var(--grad); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.dw-h h5 { margin: 0; font-size: 1rem; font-weight: 800; }
.dw-x { background: none; border: none; color: #fff; font-size: 1.35rem; cursor: pointer; line-height: 1; }
.dw-b { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.dw-it { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid #f1f3f8; }
.dw-it .im { width: 54px; height: 54px; border-radius: 10px; background: #f6f7fb; flex: none; display: flex; align-items: center; justify-content: center; color: #c3c9d6; overflow: hidden; }
.dw-it .im img { width: 100%; height: 100%; object-fit: contain; }
.dw-it .nm { font-size: .8rem; font-weight: 600; line-height: 1.25; }
.dw-it .sb { font-size: .72rem; color: #98a1b3; }
.dw-it .pr { font-size: .82rem; font-weight: 800; white-space: nowrap; margin-left: auto; }
.dw-it .rm { border: none; background: none; color: #b91c1c; cursor: pointer; font-size: .8rem; padding: .2rem; }
.dw-f { border-top: 1px solid #eceef4; padding: 1rem 1.2rem; }
.dw-tot { display: flex; justify-content: space-between; font-size: .95rem; font-weight: 800; margin-bottom: .8rem; }
.dw-cta { width: 100%; border: none; border-radius: 10px; padding: .8rem; font-size: .92rem; font-weight: 800; cursor: pointer; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #fff; }
.dw-link { display: block; width: 100%; text-align: center; margin-top: .6rem; font-size: .8rem; color: var(--indigo); font-weight: 700; cursor: pointer; border: none; background: none; }

/* ═══ Modal de login (dentro da SPA) ═══ */
.lg-ov { position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 600; display: none; align-items: center; justify-content: center; padding: 1rem; }
.lg-ov.on { display: flex; }
.lg { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.32); }
.lg-h { background: var(--grad); color: #fff; padding: 1.5rem 1.5rem 1.2rem; text-align: center; position: relative; }
.lg-h .lgx { position: absolute; top: .8rem; right: 1rem; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }
.lg-h .ic { width: 56px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: .6rem; overflow: hidden; }
.lg-h .ic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lg-h h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.lg-h p { margin: .2rem 0 0; font-size: .76rem; opacity: .9; }
.lg-b { padding: 1.4rem 1.5rem 1.5rem; }
.lg-b label { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--sub); margin: 0 0 .25rem; }
.lg-b input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .62rem .8rem; font-size: .92rem; margin-bottom: .8rem; outline: none; }
.lg-b input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.lg-cta { width: 100%; border: none; border-radius: 10px; padding: .7rem; font-size: .92rem; font-weight: 800; cursor: pointer; background: var(--grad); color: #fff; }
.lg-cta:disabled { opacity: .6; }
.lg-err { display: none; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: .55rem .8rem; font-size: .8rem; margin-bottom: .8rem; }
.lg-cod { text-align: center; font-size: 1.35rem !important; font-weight: 800; letter-spacing: 8px; }

/* ═══ Modais utilitários (PIX/OS) ═══ */
.ov { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 550; align-items: center; justify-content: center; padding: 1rem; }
.ov.show { display: flex; }
.modal-c { background: #fff; border-radius: 16px; width: 100%; max-width: 440px; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; }
.modal-h { background: var(--grad); color: #fff; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.modal-h h5 { margin: 0; font-size: 1rem; font-weight: 700; }
.modal-x { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.modal-b { padding: 1.25rem; overflow-y: auto; }
.copia { display: flex; gap: .5rem; }
.copia input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: .55rem; font-family: monospace; font-size: .76rem; background: #f8fafc; }
.dl { margin: 0; } .dl dt { font-size: .68rem; text-transform: uppercase; color: #98a1b3; font-weight: 800; margin-top: .7rem; }
.dl dd { margin: 0; font-size: .9rem; }

/* footer / toast / telas de bloqueio */
.ft { background: #1e293b; color: #94a3b8; margin-top: 2.5rem; flex: none; }
.ft-inner { max-width: 1280px; margin: 0 auto; padding: 1.4rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; }
.ft b { color: #e2e8f0; }
.toast-c { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: #1e293b; color: #fff; padding: .65rem 1.2rem; border-radius: 10px; font-size: .85rem; z-index: 9999; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast-c.show { opacity: 1; }
.hero-lock { max-width: 520px; margin: 4rem auto; background: #fff; border-radius: 18px; padding: 2.5rem 2rem; text-align: center; border: 1px solid #eceef4; }
.hero-lock .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem; }
.hero-lock h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .4rem; }
.hero-lock p { color: var(--sub); font-size: .9rem; margin: 0 0 1.25rem; }
.hero-lock .go { display: inline-block; background: var(--grad); color: #fff; font-weight: 800; padding: .7rem 1.8rem; border-radius: 10px; font-size: .9rem; cursor: pointer; border: none; }
