* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: "Proxima Nova", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #edf1f6; color: #333; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
header { background: linear-gradient(90deg, #004f9d, #335b9e); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.top { display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.logo { background: #fff; border-radius: 8px; padding: 6px 12px; display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 38px; width: auto; display: block; }
.busca { flex: 1; display: flex; background: #fff; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.busca input { flex: 1; border: 0; padding: 10px 14px; font-size: 16px; outline: none; border-radius: 2px; min-width: 0; }
.busca button { border: 0; background: none; padding: 0 14px; cursor: pointer; font-size: 18px; border-left: 1px solid #e6e6e6; color: #666; }
.sub { display: flex; align-items: center; gap: 24px; padding: 0 0 10px; font-size: 14px; color: rgba(255,255,255,.8); }
.sub .cep { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.2; }
.sub .cep b { display: block; color: #fff; font-size: 14px; font-weight: 400; }
.sub nav { display: flex; gap: 18px; flex: 1; }
.seletor-loja:hover { color: #fff; }

.loja-topo { display: flex; align-items: flex-start; gap: 20px; padding: 20px 24px; }   /* tudo alinhado pelo topo */
.loja-topo p { margin-top: 2px; }
.loja-topo .logo-loja { width: 84px; height: 84px; }
.pagina.loja-topo h1 { font-size: 24px; line-height: 1.2; margin-bottom: 2px; }
.loja-topo .nota-loja { margin-top: 6px; }
.sobre-resumo { font-size: 14px; color: #555; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* até 3 linhas */
.razao-social { font-size: 12px; color: #8a94a3; letter-spacing: .3px; text-transform: uppercase; margin-top: 2px; }
.loja-dados { flex: 1; min-width: 0; }

/* Sobre a empresa, no quadro do topo da loja */
/* "Ver mais sobre a empresa": fechado por padrão */
.sobre-loja { margin-top: 4px; }
.sobre-loja summary { list-style: none; cursor: pointer; color: #335b9e; font-size: 13px; font-weight: 600; display: inline-block; }
.sobre-loja summary::-webkit-details-marker { display: none; }
.sobre-loja summary::after { content: " ▾"; }
.sobre-loja[open] summary::after { content: " ▴"; }
.sobre-loja .menos, .sobre-loja[open] .mais { display: none; }
.sobre-loja[open] .menos { display: inline; }
.sobre-loja[open] { margin-top: 8px; padding-top: 10px; border-top: 1px solid #eee; }
.pagina .sobre-loja h2 { font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.sobre-loja p { font-size: 14px; line-height: 1.6; color: #555; }

/* Contato no quadro do topo da loja */
/* Contato compacto: 3 colunas e o endereço numa linha inteira; valores longos cortados com "…" (completos ao passar o mouse) */
.contato-topo { flex: 0 0 56%; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; border-left: 1px solid #eee; padding-left: 24px; }
.pagina .contato-topo h2 { font-size: 13px; font-weight: 700; color: #6b7480; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 8px; line-height: 1.2; }
.contato-loja { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.contato-loja .campo-endereco { grid-column: 1 / -1; }
.contato-loja li { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 1.3; min-width: 0; }
.contato-loja li > span { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.contato-loja li > div { min-width: 0; }
.contato-loja small { display: block; color: #999; font-size: 11px; }
.contato-loja .valor { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contato-loja a { color: #335b9e; }
.contato-loja a:hover { text-decoration: underline; }
.contato-loja .nao-informado div { color: #a0a8b3; font-style: italic; }
.contato-loja .nao-informado > span { filter: grayscale(1); opacity: .5; }
.contato-loja .nao-informado small { font-style: normal; }
.comentarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.comentario { border: 1px solid #e3e8ef; border-radius: 8px; padding: 16px; }
.comentario-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.comentario .estrelas { color: #335b9e; }
.comentario .data { color: #999; font-size: 12px; }
.comentario p { font-size: 14px; color: #555; line-height: 1.5; }
.comentario small { display: block; margin-top: 8px; color: #999; font-size: 13px; }

/* Formulário de nova opinião */
.nova-opiniao { margin-top: 24px; padding: 20px; background: #f6f8fb; border-radius: 8px; max-width: 640px; }
.nova-opiniao h3 { font-size: 16px; font-weight: 600; }
.nova-opiniao .campo input, .nova-opiniao .campo textarea { background: #fff; }
/* Estrelas clicáveis: os inputs vêm de 5 a 1 e a ordem é invertida na tela */
.escolher-nota { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-top: 10px; }
.escolher-nota input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.escolher-nota label { font-size: 30px; color: #c9d3e0; cursor: pointer; line-height: 1; }
.escolher-nota input:checked ~ label,
.escolher-nota label:hover, .escolher-nota label:hover ~ label { color: #335b9e; }
.escolher-nota input:focus-visible + label { outline: 2px solid #335b9e; border-radius: 4px; }
.aviso.erro { background: #fdecea; color: #a12a1f; }
.aviso-topo { background: #fff4e0; color: #7a4b00; border: 1px solid #f5d199; }

/* Quantidade (tela do produto e carrinho) */
.qtd-compra { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* Seletor de quantidade − / número / + (mesmo visual das caixas .seletor) */
.qtd-seletor { display: inline-flex; align-items: stretch; height: 38px; flex-shrink: 0; border: 2px solid #9fb3c8; border-radius: 6px; background: #fff; overflow: hidden;
               transition: border-color .15s, box-shadow .15s; }
.qtd-seletor:hover { border-color: #004f9d; }
.qtd-seletor:focus-within { border-color: #004f9d; box-shadow: 0 0 0 3px rgba(0, 79, 157, .3); }
.qtd-seletor button { width: 34px; border: 0; background: #f1f6fc; color: #004f9d; font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .15s; }
.qtd-seletor button:hover:not(:disabled) { background: #004f9d; color: #fff; }
.qtd-seletor button:disabled { color: #b8c7d9; background: #f7f9fc; cursor: not-allowed; }
.qtd-seletor input { width: 52px; border: 0; border-inline: 1px solid #dbe4ee; text-align: center; font-size: 15px; font-weight: 600; font-family: inherit; color: #1b2f55;
                     -moz-appearance: textfield; appearance: textfield; }
.qtd-seletor input:focus { outline: none; }
.qtd-seletor input::-webkit-outer-spin-button, .qtd-seletor input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (prefers-reduced-motion: reduce) { .qtd-seletor, .qtd-seletor button { transition: none; } }
.titulo-comentarios { font-size: 16px; font-weight: 600; margin-top: 28px; }
.titulo-comentarios + .comentarios { margin-top: 12px; }
.sem-comentarios { margin-top: 20px; color: #6b7480; }

/* Logo da loja: imagem ou ícone dentro de um quadro */
.logo-loja { width: 96px; height: 96px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; font-size: 44px; overflow: hidden; }
.logo-loja img { max-width: 86%; max-height: 86%; object-fit: contain; }

/* Lista de lojas (lojas.php) */
.grade-lojas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card-loja { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s; }
.card-loja:hover { box-shadow: 0 7px 16px rgba(0,0,0,.15); }
.card-loja-topo { display: flex; align-items: center; gap: 14px; }
.card-loja-topo .logo-loja { width: 72px; height: 72px; font-size: 34px; }
.card-loja h3 { font-size: 18px; font-weight: 600; color: #333; }
.card-loja:hover h3 { color: #335b9e; }
.nota-loja { font-size: 14px; color: #335b9e; margin-top: 4px; }
.nota-loja span { color: #999; font-size: 13px; }
.descricao-loja { font-size: 14px; color: #666; line-height: 1.5; }
.numeros-loja { display: flex; gap: 16px; font-size: 13px; color: #666; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 10px 0; }
.numeros-loja b { color: #333; }
.card-loja .botao { margin-top: auto; }
.sub nav a:hover, .conta a:hover { color: #fff; }

/* Menu "Categorias" do topo (abre ao passar o mouse, como no Mercado Livre) */
.menu-categorias { position: relative; }
.menu-categorias > a { display: inline-block; }
.menu-categorias .seta-menu { font-size: 10px; margin-left: 2px; }
.menu-categorias .submenu { display: none; position: absolute; top: 100%; left: -12px; z-index: 100; padding-top: 10px; }
.menu-categorias:hover .submenu, .menu-categorias:focus-within .submenu { display: block; }
.menu-categorias:hover > a, .menu-categorias:focus-within > a { color: #fff; }
.submenu::before { content: ""; position: absolute; top: 4px; left: 28px; border: 6px solid transparent; border-top: 0; border-bottom-color: #fff; }
.submenu a { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 10px 18px; background: #fff; color: #333; font-size: 14px; }
.submenu > .item-menu:first-child > a { border-radius: 6px 6px 0 0; padding-top: 14px; }
.submenu a:hover { background: #335b9e; color: #fff; }
.submenu a span { font-size: 18px; width: 22px; text-align: center; }
.submenu .ver-todas { color: #335b9e; border-top: 1px solid #eee; border-radius: 0 0 6px 6px; padding-bottom: 14px; }
.submenu { filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
/* Subcategorias no menu: painel ao lado da categoria principal */
.item-menu { position: relative; }
.item-menu > a i { margin-left: auto; font-style: normal; color: #999; }
.item-menu > a:hover i { color: #fff; }
.submenu-filhos { display: none; position: absolute; left: 100%; top: 0; min-width: 240px; background: #fff; border-radius: 0 6px 6px 0; padding: 8px 0; box-shadow: 4px 4px 12px rgba(0,0,0,.12); }
.item-menu:hover > .submenu-filhos, .item-menu:focus-within > .submenu-filhos { display: block; }
.item-menu:hover > a { background: #335b9e; color: #fff; }
.submenu-filhos a { min-width: 0; padding: 8px 18px; }
.submenu-filhos a:first-child { border-radius: 0; padding-top: 8px; }
.submenu-filhos .titulo-filhos { font-weight: 700; color: #004f9d; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.submenu-filhos .neto { padding-left: 34px; color: #6b7480; font-size: 13px; }

/* Tela de categoria: subcategorias */
.subcategorias { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; color: #6b7480; }
.subcategorias a { background: #fff; border: 1px solid #dbe3ee; border-radius: 20px; padding: 6px 14px; color: #335b9e; }
.subcategorias a:hover { border-color: #335b9e; background: #edf3fb; }

/* Página de todas as categorias: um bloco por categoria principal, com a árvore de subcategorias */
.grade-arvores { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.bloco-categoria { background: #fff; border: 1px solid #dbe3ee; border-radius: 10px; padding: 24px; }
.bloco-categoria-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #e6ebf2; }
.bloco-categoria-nome { display: flex; align-items: center; gap: 14px; }
.bloco-categoria-nome .ic { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; background: #edf1f6; border-radius: 12px; }
.bloco-categoria-nome b { display: block; font-size: 20px; color: #1f2933; }
.bloco-categoria-nome small { color: #6b7480; font-size: 13px; }
.bloco-categoria-nome:hover b { color: #335b9e; }

/* Botões Expandir tudo / Recolher tudo */
.acoes-arvore { display: flex; gap: 8px; margin-left: auto; }
.botao-arvore { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #004f9d; border: 1px solid #c3d1e3; border-radius: 20px;
    padding: 7px 14px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.botao-arvore span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e3edf8; font-size: 12px; line-height: 1; }
.botao-arvore:hover { background: #004f9d; border-color: #004f9d; color: #fff; box-shadow: 0 3px 8px rgba(0, 79, 157, .25); }
.botao-arvore:hover span { background: rgba(255, 255, 255, .2); }
.botao-arvore:focus-visible { outline: 2px solid #335b9e; outline-offset: 2px; }

/* Árvore: linhas ligando cada categoria às filhas (├── └──) */
.arvore { margin-top: 14px; font-size: 14px; }
.arvore ul { list-style: none; margin: 0; padding: 0; }
.arvore ul ul { margin-left: 13px; }
.arvore li { position: relative; padding-left: 20px; }
.arvore li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 2px solid #d6e1ee; }        /* linha vertical */
.arvore li:last-child::before { bottom: auto; height: 19px; }                                                                /* └ no último */
.arvore li::after { content: ""; position: absolute; left: 0; top: 19px; width: 14px; border-top: 2px solid #d6e1ee; }      /* ── até o item */
.arvore > ul > li::before, .arvore > ul > li::after { border-color: #b8cbe4; }

/* Cada categoria: linha clicável com fundo ao passar o mouse */
.arvore .no { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 10px; margin: 1px 0; border-radius: 8px; transition: background .15s; }
.arvore .no:hover { background: #f0f5fb; }
.arvore a { color: #2b3542; flex: 1; }
.arvore .no:hover a { color: #004f9d; }
.arvore small { color: #8a94a3; font-size: 12px; }

/* 1º nível: destaque em azul, com fundo */
.arvore .nivel-1 > details > .no, .arvore .nivel-1 > .no { background: #f3f7fc; border: 1px solid #e3ebf5; margin: 6px 0; }
.arvore .nivel-1 > details > .no a, .arvore .nivel-1 > .no a { font-weight: 700; color: #004f9d; font-size: 15px; }
.arvore .nivel-1 > details > .no:hover, .arvore .nivel-1 > .no:hover { background: #e7effa; border-color: #c3d1e3; }
.arvore .nivel-1 > details[open] > .no { background: #004f9d; border-color: #004f9d; }
.arvore .nivel-1 > details[open] > .no a, .arvore .nivel-1 > details[open] > .no small { color: #fff; }
.arvore .nivel-1 > details[open] > .no::before { background: rgba(255, 255, 255, .2); color: #fff; }
.arvore .nivel-1 > details[open] > .no .qtd-filhos { background: rgba(255, 255, 255, .2); color: #fff; }

/* Abrir e fechar ramo: botão redondo com ▸ (gira para ▾ quando aberto) */
.arvore summary { list-style: none; cursor: pointer; }
.arvore summary::-webkit-details-marker { display: none; }
.arvore summary::before { content: "▸"; display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    background: #e3edf8; color: #004f9d; font-size: 11px; transition: transform .2s, background .15s; }
.arvore summary:hover::before { background: #c9daf0; }
.arvore details[open] > summary::before { transform: rotate(90deg); }
/* Categoria sem filhas: bolinha no lugar do botão */
.arvore .folha::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; margin: 0 6px 0 7px; border-radius: 50%; background: #9db4d3; }
.arvore .folha:hover::before { background: #004f9d; }
.arvore .qtd-filhos { font-size: 11px; font-weight: 600; color: #335b9e; background: #e3edf8; border-radius: 10px; padding: 2px 8px; }
/* Ramo abrindo com um leve deslize */
.arvore details[open] > ul { animation: ramo-abre .2s ease-out; }
@keyframes ramo-abre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .arvore details[open] > ul { animation: none; } }
.conta { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.carrinho { position: relative; font-size: 22px; }
.carrinho em { position: absolute; top: -6px; right: -10px; background: #fff; color: #004f9d; font-weight: 700; font-style: normal; font-size: 11px; border-radius: 10px; padding: 1px 6px; }

/* Carrossel */
.carrossel { position: relative; height: 190px; overflow: hidden; background: #ddd; }
.slides { display: flex; height: 100%; transition: transform .6s ease; }
.slide { min-width: 100%; display: flex; align-items: center; justify-content: center; gap: 60px; color: #fff; padding: 0 40px; }
.slide h2 { font-size: 32px; line-height: 1.1; max-width: 520px; }
.slide p { font-size: 16px; margin-top: 6px; opacity: .9; }
.slide .big { font-size: 80px; }
.slide-oferta h2 { font-size: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide p s { opacity: .75; }
.slide p b { font-size: 20px; }
.selo-slide { display: inline-block; background: #fff; color: #004f9d; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; letter-spacing: .3px; }
.foto-slide { width: 140px; height: 140px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.foto-slide img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.seta { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 0; width: 44px; height: 44px; cursor: pointer; font-size: 20px; color: #335b9e; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.seta.esq { left: 0; border-radius: 0 22px 22px 0; }
.seta.dir { right: 0; border-radius: 22px 0 0 22px; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.dots i.ativo { background: #fff; }


/* Seções */
section { margin-top: 36px; }
/* Home: seções mais próximas (categorias logo abaixo do banner, ofertas logo abaixo das categorias) */
.carrossel + main > section { margin-top: 20px; }
.carrossel + main > section:first-child { margin-top: 12px; }
.carrossel + main .titulo { margin-bottom: 10px; }
.carrossel + main .cat { padding: 12px 8px; }
.carrossel + main .cat div { font-size: 28px; margin-bottom: 4px; }
.titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.titulo h2 { font-size: 24px; font-weight: 400; color: #666; }
.titulo a { color: #335b9e; font-size: 15px; }

.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat { background: #fff; border-radius: 6px; padding: 18px 8px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: box-shadow .2s; }
.cat:hover, .cat.ativa { box-shadow: 0 7px 16px rgba(0,0,0,.15); color: #335b9e; }
.cat div { font-size: 34px; margin-bottom: 8px; }
.cat span { font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: 0 7px 16px rgba(0,0,0,.18); }
/* O link do título cobre o card inteiro; o botão fica por cima */
.card { position: relative; }
.card .link-produto::after { content: ""; position: absolute; inset: 0; }
.card form, .card .btn-add-carrinho { position: relative; z-index: 1; }
.card:hover h3 { color: #335b9e; }
.thumb { height: 200px; display: grid; place-items: center; border-bottom: 1px solid #eee; background: #fff; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.info { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.antigo { color: #999; font-size: 13px; text-decoration: line-through; }
.preco { font-size: 26px; display: flex; align-items: flex-start; gap: 2px; }
.preco .cifrao { font-size: 18px; margin-top: 4px; margin-right: 2px; }
.preco sup { font-size: 13px; margin-top: 4px; }
.off { color: #1f7f99; font-size: 14px; margin-left: 8px; margin-top: 6px; }
.card h3 { font-size: 14px; font-weight: 400; color: #333; line-height: 1.35; margin-top: 6px; }
.nota { font-size: 12px; color: #335b9e; }
.nota span { color: #999; }
.card form, .card .btn-add-carrinho { margin-top: auto; }
.card form { padding-top: 10px; }
.card button { width: 100%; background: #004f9d; color: #fff; border: 0; border-radius: 6px; padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.card button:hover { background: #003d7a; }

/* Cards de produto com mais contraste */
.card { border: 1px solid #dbe3ee; border-radius: 10px; box-shadow: 0 2px 6px rgba(16, 40, 80, .08); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: #b8cbe4; box-shadow: 0 12px 24px rgba(0, 79, 157, .18); }
.card .thumb { border-bottom: 1px solid #e3e9f1; }
.card:hover .thumb img { transform: scale(1.05); }
.card .info { gap: 5px; }
.card .antigo { color: #8a9099; }
.card .preco { color: #16202c; font-weight: 500; }
.card .off { background: #dff2f6; color: #0b6276; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-top: 6px; }
.card h3 { color: #1f2933; font-size: 14.5px; }
.card .nota { color: #004f9d; font-weight: 600; }
.card .nota span { color: #6b7480; font-weight: 400; }
.card button { transition: background .15s; box-shadow: 0 2px 4px rgba(0, 79, 157, .25); }

.vazio { background: #fff; padding: 40px; text-align: center; border-radius: 6px; color: #666; }
/* Aviso enquanto a tela busca os dados no endpoint (/api/...) */
.carregando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 0; color: #6b7480; font-size: 15px; }
.carregando::before { content: ""; width: 18px; height: 18px; border: 3px solid #d6e1ee; border-top-color: #004f9d; border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Página do carrinho */
.carrinho-pagina { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; margin-top: 24px; }
.caixa { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 24px; }
.caixa h1, .caixa h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.item-carrinho { display: flex; gap: 16px; align-items: center; padding: 16px 8px; border-top: 1px solid #eee; border-radius: 6px; transition: background .15s; }
.item-carrinho:has(.seletor:checked) { background: #eef4fb; }
.item-carrinho .ic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 6px; flex-shrink: 0; border: 1px solid #e3e9f1; background: #fff; overflow: hidden; }
.item-carrinho .ic img { width: 100%; height: 100%; object-fit: contain; }
.item-carrinho .nome { flex: 1; font-size: 15px; }
.item-carrinho .nome a:hover { color: #335b9e; }
.item-carrinho .nome small { display: block; color: #1f7f99; font-size: 13px; margin-top: 4px; }
.item-carrinho select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.item-carrinho .valor { width: 120px; text-align: right; font-size: 18px; }
.link-botao { background: none; border: 0; color: #335b9e; cursor: pointer; font-size: 13px; padding: 0; }
.link-botao:disabled { color: #9aa5b1; cursor: default; }
.carrinho-acoes { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0 12px; }
.carrinho-acoes .link-botao:not(:disabled) { color: #c0392b; font-weight: 600; }
.selecionar-todos { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; padding: 4px 8px; user-select: none; }
.area-seletor { display: grid; place-items: center; padding: 8px; margin: -8px; cursor: pointer; }   /* área de clique maior que a caixa */

/* Caixa de seleção (carrinho): marcado, parcial (indeterminate), foco pelo teclado e desativado */
.seletor { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; flex-shrink: 0; cursor: pointer;
           border: 2px solid #9fb3c8; border-radius: 5px; background: #fff center / 14px no-repeat;
           transition: background-color .15s, border-color .15s, box-shadow .15s; }
.seletor:hover { border-color: #004f9d; }
.seletor:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 79, 157, .3); }
.seletor:checked, .seletor:indeterminate { background-color: #004f9d; border-color: #004f9d; }
.seletor:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.seletor:indeterminate { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.seletor:disabled { background-color: #f1f4f8; border-color: #d3dbe5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .seletor, .item-carrinho { transition: none; } }
.resumo .linha { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 10px; }
.resumo .linha.total { font-size: 20px; font-weight: 600; border-top: 1px solid #eee; padding-top: 12px; margin-top: 12px; }
.botao { display: block; width: 100%; text-align: center; background: #004f9d; color: #fff; border: 0; border-radius: 6px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 12px; }
.botao:hover { background: #003d7a; }
.botao.secundario { background: #e3edf8; color: #004f9d; }
.botao:disabled { background: #b8c7d9; cursor: not-allowed; }

/* Páginas simples (conta, contato, ajuda, termos...) */
.pagina { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 32px; margin-top: 24px; }
.pagina.estreita { max-width: 480px; margin-left: auto; margin-right: auto; }
.pagina h1 { font-size: 26px; font-weight: 400; margin-bottom: 12px; }
.pagina h2 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
.pagina p, .pagina li { font-size: 15px; line-height: 1.6; color: #555; }
.pagina ul { padding-left: 20px; }
.pagina .icone-grande { font-size: 56px; margin-bottom: 8px; }
.pagina a.link { color: #335b9e; }

/* Contato (mesmo visual do contato do site institucional, nas cores da loja) */
.contato-sec { margin-top: 32px; }
.contato-header { text-align: center; margin-bottom: 32px; }
.contato-header .sec-tag { display: inline-block; background: #e3edf8; color: #004f9d; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; }
.contato-header h1 { font-size: 34px; font-weight: 700; color: #0f1f35; margin-top: 12px; }
.contato-header h1 em { font-style: normal; color: #004f9d; }
.contato-header p { font-size: 16px; color: #5a7a9e; margin-top: 10px; }
.contato-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.form-card { background: #f4f8ff; border: 1px solid #c3d1e3; border-radius: 20px; padding: 36px 36px 32px; box-shadow: 0 8px 40px rgba(0, 60, 160, .07); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #5a7a9e; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 13px 16px; background: #fff; border: 1.5px solid #c3d1e3; border-radius: 10px;
    font-family: inherit; font-size: 14px; color: #0f1f35; outline: none; resize: none; transition: box-shadow .2s, border-color .2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #b0bece; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #335b9e; box-shadow: 0 0 0 3px rgba(51, 91, 158, .15); }
.form-group textarea { min-height: 120px; }
.btn-enviar { width: 100%; padding: 15px; border-radius: 50px; border: none; background: linear-gradient(135deg, #004f9d, #335b9e); color: #fff; font-family: inherit;
    font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 26px rgba(0, 79, 157, .3); display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .22s, box-shadow .22s; margin-top: 4px; }
.btn-enviar:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 79, 157, .42); }
.btn-enviar:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.contato-side { display: flex; flex-direction: column; gap: 16px; }
.info-card { background: #f4f8ff; border: 1px solid #c3d1e3; border-radius: 18px; padding: 26px 24px; }
.info-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(0, 86, 179, .11); }
.info-card-title { font-size: 15px; font-weight: 700; color: #0f1f35; }
.info-row { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.info-row:last-child { margin-bottom: 0; }
.info-row-ico { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; background: rgba(0, 79, 157, .08); border: 1px solid rgba(0, 79, 157, .16); display: grid; place-items: center; font-size: 14px; }
.info-row-lbl { font-size: 11px; color: #5a7a9e; margin-bottom: 2px; }
.info-row-val { font-size: 14px; font-weight: 600; color: #0f1f35; }
a.info-row-val:hover { color: #004f9d; text-decoration: underline; }
.contato-map-wrap { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(0, 86, 179, .11); box-shadow: 0 4px 24px rgba(0, 60, 160, .07); }
.contato-map-label { background: #f4f8ff; border-bottom: 1px solid rgba(0, 86, 179, .11); padding: 14px 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contato-map-label span { font-size: 14px; font-weight: 700; color: #0f1f35; }
.contato-map-label small { font-size: 12px; color: #5a7a9e; margin-left: auto; }
.map-iframe { width: 100%; height: 380px; border: none; display: block; filter: grayscale(.15) contrast(1.02); }

/* Telas de erro (erros/) */
.tela-erro { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: 48px; margin-top: 32px;
    background: linear-gradient(135deg, #ffffff 55%, #eef4fb); border: 1px solid #dbe3ee; border-radius: 14px; }
.erro-ilustracao svg { width: 100%; height: auto; display: block; }
.erro-ilustracao .lupa { animation: erro-procura 3s ease-in-out infinite; transform-origin: 168px 52px; }
.erro-ilustracao .plugue { animation: erro-plugue 2.4s ease-in-out infinite; }
.erro-ilustracao .faiscas { animation: erro-faisca 1.2s ease-in-out infinite; }
@keyframes erro-procura { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-14px, 6px) rotate(-8deg); } }
@keyframes erro-plugue { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
@keyframes erro-faisca { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .erro-ilustracao * { animation: none !important; } }

.tela-erro .codigo-erro { font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: 4px; margin-bottom: 8px;
    background: linear-gradient(90deg, #004f9d, #6cb2c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tela-erro h1 { font-size: 28px; font-weight: 600; color: #1f2933; margin-bottom: 8px; }
.tela-erro .erro-texto > p { font-size: 16px; color: #555; line-height: 1.6; max-width: 520px; }

.erro-busca { display: flex; max-width: 480px; margin-top: 22px; border: 1px solid #c9d6e6; border-radius: 8px; overflow: hidden; background: #fff; }
.erro-busca input { flex: 1; border: 0; padding: 12px 14px; font-size: 15px; outline: none; min-width: 0; }
.erro-busca button { border: 0; background: #004f9d; color: #fff; padding: 0 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.erro-busca button:hover { background: #003d7a; }
.erro-busca:focus-within { border-color: #335b9e; box-shadow: 0 0 0 3px rgba(51, 91, 158, .15); }

.erro-botoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.erro-botoes .botao { width: auto; margin-top: 0; padding: 12px 22px; }

.erro-atalhos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: #6b7480; }
.erro-atalhos a { background: #fff; border: 1px solid #dbe3ee; border-radius: 20px; padding: 6px 12px; color: #335b9e; }
.erro-atalhos a:hover { border-color: #335b9e; background: #edf3fb; }

.erro-referencia { margin-top: 22px; font-size: 13px !important; color: #6b7480 !important; }
.erro-referencia a { color: #335b9e; }
.erro-referencia b { font-family: monospace; background: #edf1f6; padding: 2px 6px; border-radius: 4px; color: #1f2933; letter-spacing: 1px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; }
.campo input, .campo textarea, .campo select { padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; font-family: inherit; }
.campo input:focus, .campo textarea:focus { outline: 2px solid #335b9e; border-color: transparent; }
.aviso { background: #e6f3f6; color: #1f5f73; border-radius: 6px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.cartao { border: 1px solid #e3e8ef; border-radius: 6px; padding: 18px; }
.cartao b { display: block; font-size: 16px; margin-bottom: 4px; }
.cartao .codigo { display: inline-block; margin-top: 10px; border: 1px dashed #335b9e; color: #335b9e; padding: 4px 10px; border-radius: 4px; font-weight: 700; letter-spacing: 1px; }
.faq details { border-top: 1px solid #eee; padding: 14px 0; }
.faq summary { cursor: pointer; font-size: 16px; }
.faq details p { margin-top: 8px; }
.cats.grande .cat { padding: 28px 8px; }
.cats.grande .cat small { display: block; color: #999; margin-top: 4px; }

/* Tela do produto */
.trilha { font-size: 14px; color: #666; margin: 18px 0 12px; }
.trilha a { color: #335b9e; }
.pdp { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12); display: grid; grid-template-columns: 1fr 340px; }
.pdp-principal { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 20px; padding: 24px; }
.galeria-mini { display: flex; flex-direction: column; gap: 8px; }
.galeria-mini button { width: 56px; height: 56px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; background: #fff; padding: 2px; overflow: hidden; }
.galeria-mini button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.galeria-mini button.ativo { border: 2px solid #335b9e; }
.galeria-foto { min-height: 420px; border-radius: 6px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.galeria-foto img { width: 100%; max-height: 480px; object-fit: contain; display: block; cursor: zoom-in; }
/* Visualizador da foto em tela cheia: clique na imagem amplia/reduz; ampliada, percorre com o mouse ou arrastando o dedo */
.zoom-foto { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.9); }
.zoom-foto[hidden] { display: none; }
.zoom-area { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
.zoom-area img { max-width: 100vw; max-height: 100vh; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.zoom-area.ampliada { overflow: auto; display: block; }
.zoom-area.ampliada img { max-width: none; max-height: none; width: 250%; cursor: zoom-out; }
.zoom-fechar, .zoom-seta { position: absolute; z-index: 1; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #333; cursor: pointer; width: 44px; height: 44px; font-size: 22px; line-height: 1; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.zoom-fechar { top: 16px; right: 16px; }
.zoom-seta { top: 50%; transform: translateY(-50%); }
.zoom-seta.anterior { left: 16px; }
.zoom-seta.proxima { right: 16px; }
.zoom-contador { position: absolute; z-index: 1; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 12px; }
body.sem-rolagem { overflow: hidden; }
.pdp-info { display: flex; flex-direction: column; gap: 10px; }
.pdp-info h1 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.pdp-info .avaliacao { font-size: 14px; color: #335b9e; }
.pdp-info .avaliacao span { color: #999; }
.pdp-info .preco { font-size: 36px; font-weight: 300; }
.pdp-info .preco .cifrao { font-size: 24px; margin-top: 6px; }
.pdp-info .preco sup { font-size: 16px; margin-top: 6px; }
.pdp-info .off { font-size: 18px; margin-top: 10px; }
.pdp-info .meios { color: #335b9e; font-size: 14px; }
.destaques h2 { font-size: 16px; font-weight: 600; margin: 10px 0 8px; }
.destaques ul { padding-left: 18px; font-size: 14px; line-height: 1.6; }

.compra { border-left: 1px solid #eee; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.compra .estoque { font-size: 15px; font-weight: 600; }
.compra .estoque small { font-weight: 400; color: #999; }
.compra label { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.compra select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; }
.btn-comprar, .btn-carrinho { width: 100%; border: 0; border-radius: 6px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn-comprar { background: #004f9d; color: #fff; margin-bottom: 8px; }
.btn-comprar:hover { background: #003d7a; }
.btn-carrinho { background: #e3edf8; color: #004f9d; }
.btn-carrinho:hover { background: #d3e2f3; }
.compra .vendedor { font-size: 14px; color: #666; border-top: 1px solid #eee; padding-top: 14px; }
.compra .vendedor b { color: #335b9e; }
.compra-caracteristicas { border-top: 1px solid #eee; padding-top: 16px; }
.compra-caracteristicas h2 { font-size: 16px; font-weight: 600; color: #1b2f55; margin-bottom: 10px; }
.compra-caracteristicas .caracteristicas { max-width: none; font-size: 13px; border-radius: 6px; overflow: hidden; }
.compra-caracteristicas .caracteristicas th, .compra-caracteristicas .caracteristicas td { padding: 8px 10px; vertical-align: top; }

.pdp-bloco { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.12); padding: 24px; margin-top: 16px; }
.pdp-bloco h2 { font-size: 22px; font-weight: 400; margin-bottom: 16px; }
.pdp-bloco p { font-size: 16px; line-height: 1.6; color: #666; }
.caracteristicas { border-collapse: collapse; width: 100%; max-width: 520px; font-size: 14px; }
.caracteristicas th, .caracteristicas td { text-align: left; padding: 10px 14px; }
.caracteristicas th { background: #edf1f6; width: 45%; font-weight: 600; }
.caracteristicas tr:nth-child(even) th { background: #e1e9f2; }
.caracteristicas tr:nth-child(even) td { background: #f6f8fb; }
.opinioes { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.opinioes .media { font-size: 56px; color: #335b9e; line-height: 1; }
.opinioes .media small { display: block; font-size: 16px; margin-top: 6px; }
.opinioes .media span { display: block; font-size: 13px; color: #999; margin-top: 4px; }
.barras { flex: 1; min-width: 240px; max-width: 360px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #666; }
.barras div { display: flex; align-items: center; gap: 10px; }
.barras i { flex: 1; height: 6px; background: #e6e6e6; border-radius: 3px; overflow: hidden; }
.barras i b { display: block; height: 100%; background: #335b9e; }

footer { background: #fff; margin-top: 50px; padding: 30px 0; font-size: 13px; color: #999; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; color: #333; }

@media (max-width: 900px) {
    .sub nav, .conta a:not(.carrinho) { display: none; }
    .carrinho-pagina { grid-template-columns: 1fr; }
    .item-carrinho { flex-wrap: wrap; }
    .item-carrinho .valor { width: auto; }
    .pagina { padding: 20px; }
    .tela-erro { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align: center; }
    .erro-ilustracao { max-width: 220px; margin: 0 auto; }
    .tela-erro .codigo-erro { font-size: 72px; }
    .erro-busca, .tela-erro .erro-texto > p { margin-left: auto; margin-right: auto; }
    .erro-botoes, .erro-atalhos { justify-content: center; }
    .loja-topo { flex-direction: column; align-items: stretch; }
    .contato-topo { flex-basis: auto; border-left: 0; padding-left: 0; border-top: 1px solid #eee; padding-top: 16px; }
    .grade-lojas { grid-template-columns: 1fr; }
    .contato-grid, .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .contato-header h1 { font-size: 26px; }
    .acoes-arvore { margin-left: 0; width: 100%; }
    .grade-arvores { grid-template-columns: 1fr; }
    .contato-loja { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pdp { grid-template-columns: 1fr; }
    .pdp-principal { grid-template-columns: 1fr; padding: 16px; }
    .galeria-mini { flex-direction: row; order: 2; }
    .galeria-foto { min-height: 280px; }
    .compra { border-left: 0; border-top: 1px solid #eee; padding: 16px; }
    .cats { grid-template-columns: repeat(4, 1fr); }
    .carrossel { height: 150px; }
    .slide h2 { font-size: 26px; } .slide p { font-size: 15px; } .slide .big { font-size: 56px; }
    .slide-oferta h2 { font-size: 22px; } .foto-slide { width: 104px; height: 104px; } .slide p b { font-size: 17px; }
    .seta { width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 560px) {
    .top { gap: 10px; } .logo { padding: 4px 8px; } .logo img { height: 28px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .thumb { height: 130px; }
    .preco { font-size: 20px; }
    .slide { gap: 16px; padding: 0 44px; }
}
.campo-robo { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Produto sem preço: botão cinza "Inativo" */
.card button.inativo, .btn-comprar.inativo, .btn-carrinho.inativo { background: #c4c9d0; color: #fff; box-shadow: none; cursor: not-allowed; }
.card button.inativo:hover, .btn-comprar.inativo:hover { background: #c4c9d0; }
/* ---------- Propagandas da home ---------- */
.link-parceiro { font-weight: 700; color: #004f9d !important; }
/* ---------- Categorias da home: carrossel de bolinhas ---------- */
.faixa { position: relative; }
.faixa-trilho { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; }
.faixa-trilho::-webkit-scrollbar { display: none; }
.cat-bola { flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #333; text-decoration: none; }
.cat-bola span { width: 68px; height: 68px; border-radius: 50%; background: #004f9d; display: grid; place-items: center; font-size: 30px; box-shadow: 0 3px 8px rgba(0,79,157,.25); transition: transform .15s, background .15s; }
.cat-bola b { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-bola:hover span { transform: translateY(-3px); background: #335b9e; }
.cat-bola:hover b { color: #004f9d; }
.faixa-seta { position: absolute; top: 24px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; background: #fff; color: #335b9e; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.faixa-seta.esq { left: -14px; } .faixa-seta.dir { right: -14px; }
.faixa-seta.oculta { opacity: 0; pointer-events: none; }
@media (max-width: 560px) {
    .cat-bola { flex-basis: 84px; } .cat-bola span { width: 56px; height: 56px; font-size: 24px; } .cat-bola b { font-size: 12px; }
    .faixa-seta.esq { left: -6px; } .faixa-seta.dir { right: -6px; }
}
/* ---------- Propagandas da home (pp-) ---------- */
.pp-faixa, .pp-banner, .pp-quadrado { position: relative; overflow: hidden; color: #fff; text-decoration: none; border-radius: 12px; transition: transform .2s, box-shadow .2s; }
.pp-faixa:hover, .pp-banner:hover, .pp-quadrado:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.pp-arte { font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); transition: transform .3s; }
.pp-faixa:hover .pp-arte, .pp-banner:hover .pp-arte, .pp-quadrado:hover .pp-arte { transform: scale(1.08) rotate(-4deg); }
.pp-legal { font-size: 9px; opacity: .7; }
.pp-botao { display: inline-block; background: #fff; color: #111; font-style: normal; font-weight: 700; font-size: 13px; padding: 7px 18px; border-radius: 20px; white-space: nowrap; }
.pp-grande { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-style: italic; }
.pp-grande big { font-size: 54px; line-height: .9; letter-spacing: -2px; }
.pp-grande small { font-size: 13px; line-height: 1.05; text-align: left; }
.pp-selo { display: inline-flex; align-items: center; gap: 6px; background: #111; border-radius: 10px; padding: 6px 12px; font-size: 12px; }
.pp-selo big { font-size: 38px; font-weight: 800; color: #ff8a00; line-height: 1; }
.pp-selo small { font-size: 10px; font-weight: 700; line-height: 1.1; }

/* Faixa fina escura com confete */
.pp-faixa { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 24px; padding: 10px 28px; min-height: 64px; background: #160b2e; }
.pp-faixa .confete { position: absolute; inset: 0; pointer-events: none; opacity: .8;
    background: radial-gradient(circle at 8% 30%, #e0457b 0 3px, transparent 4px), radial-gradient(circle at 15% 80%, #6b4bff 0 3px, transparent 4px),
                radial-gradient(circle at 30% 20%, #e0457b 0 2px, transparent 3px), radial-gradient(circle at 70% 75%, #6b4bff 0 3px, transparent 4px),
                radial-gradient(circle at 88% 25%, #e0457b 0 3px, transparent 4px), radial-gradient(circle at 95% 70%, #21c1ff 0 2px, transparent 3px); }
.pp-marca { position: relative; font-size: 15px; font-weight: 600; line-height: 1.1; text-align: center; }
.pp-marca b { display: block; background: #fff; color: #160b2e; padding: 1px 6px; border-radius: 2px; }
.pp-faixa strong { position: relative; font-size: 24px; font-style: italic; line-height: 1; }
.pp-faixa strong small { display: block; font-size: 15px; font-weight: 600; }
.pp-prazo { position: relative; color: #ffc21a; font-weight: 700; font-size: 16px; line-height: 1.15; }
.pp-faixa .pp-legal { position: relative; max-width: 180px; }
.pp-faixa .pp-arte { position: relative; font-size: 40px; }

/* Duas lado a lado */
.pp-duplos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.pp-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 156px; padding: 18px 28px; }
.pp-texto.centro { text-align: center; flex: 1; }
.pp-texto b { font-size: 16px; line-height: 1.15; }
.pp-titulo { font-size: 24px; line-height: 1.15; }
.pp-titulo b { font-weight: 800; }
.pp-azul { background: radial-gradient(circle at 70% 50%, #2b3cff, #0a14a8 60%, #070d6e); }
.pp-azul .pp-grande { display: flex; justify-content: center; margin: 4px 0; }
.pp-laranja { background: linear-gradient(110deg, #0a1fd6 0%, #1446ff 45%, #ff6a00 85%, #ff8a00); }
.pp-laranja .pp-arte { font-size: 84px; }

/* Larga escura */
.pp-largo { margin-top: 24px; min-height: 156px; padding: 18px 48px; background: linear-gradient(90deg, #050505 0%, #111 35%, #3a1a05 60%, #0a0a0a 100%); }
.pp-largo::before { content: "//////"; position: absolute; top: -6px; left: 48%; color: #fff; opacity: .8; font-size: 22px; letter-spacing: -2px; }
.pp-logo { font-size: 26px; font-weight: 800; font-style: italic; line-height: .95; text-transform: lowercase; border: 3px solid #fff; border-radius: 10px; padding: 8px 14px; transform: skew(-8deg); }
.pp-logo b { font-size: 32px; }
.pp-largo .pp-titulo b { color: #ff7a1a; }
.pp-largo .pp-arte { font-size: 96px; filter: drop-shadow(0 0 22px rgba(255,122,26,.7)); }
.pp-botao-claro { background: #fff; color: #111; font-style: normal; font-weight: 800; font-size: 15px; letter-spacing: .5px; padding: 12px 22px; border-radius: 4px; white-space: nowrap; }
.pp-botao-claro::first-letter { color: #ff5a00; }

/* Quadrados */
.pp-quadrados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.pp-quadrado { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px 0; }
.pp-quadrado > b { font-size: 26px; line-height: 1.05; }
.pp-quadrado > span:not([class]) { font-size: 17px; line-height: 1.15; }
.pp-quadrado .pp-selo, .pp-quadrado .pp-botao { margin-top: 8px; }
.pp-quadrado .pp-arte { margin-top: auto; font-size: 92px; transform-origin: bottom; }
.pp-quadrado.q1 { background: linear-gradient(160deg, #0a1fd6, #1446ff 50%, #ff6a00); }
.pp-quadrado.q2 { background: radial-gradient(circle at 50% 30%, #2b6cff, #061a4d 75%); }
.pp-quadrado.q4 { background: linear-gradient(160deg, #3b1d8f, #160b2e 70%); }

/* Larga com neon */
.pp-neon { margin-top: 28px; min-height: 176px; padding: 18px 56px; background: radial-gradient(circle at 80% 50%, #0b4a63, #000 55%); }
.pp-neon .pp-logo { border: 0; transform: none; text-transform: none; font-size: 28px; }
.pp-neon .pp-logo b { color: #19f5c8; font-size: 28px; }
.pp-neon .pp-titulo { font-weight: 300; text-align: center; letter-spacing: .5px; }
.pp-neon .pp-titulo b { color: #19f5c8; }
.pp-oferta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pp-oferta .pp-grande { font-style: normal; }
.pp-oferta .pp-grande b { font-weight: 800; }
.pp-botao-neon { font-style: normal; font-weight: 600; color: #111; padding: 12px 70px; border-radius: 30px; background: linear-gradient(90deg, #fff, #19f5c8); }
.pp-neon .pp-arte { font-size: 88px; filter: drop-shadow(0 0 26px rgba(25,245,200,.55)); }
.pp-legal.vertical { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: center; white-space: nowrap; }

@media (max-width: 1100px) {
    .pp-faixa .pp-legal, .pp-faixa .pp-arte { display: none; }
    .pp-largo .pp-arte, .pp-neon .pp-arte { display: none; }
}
@media (max-width: 760px) {
    .pp-duplos { grid-template-columns: 1fr; }
    .pp-faixa { flex-wrap: wrap; gap: 10px 18px; }
    .pp-largo, .pp-neon { flex-wrap: wrap; justify-content: center; text-align: center; padding: 20px; gap: 14px; }
    .pp-titulo { font-size: 19px; }
    .pp-legal.vertical { display: none; }
    .pp-botao-neon { padding: 10px 40px; }
}
@media (max-width: 560px) {
    .pp-quadrados { gap: 10px; }
    .pp-quadrado { padding: 14px 8px 0; }
    .pp-quadrado > b { font-size: 19px; } .pp-quadrado > span:not([class]) { font-size: 13px; }
    .pp-grande big { font-size: 40px; } .pp-selo big { font-size: 28px; }
    .pp-banner { padding: 16px; } .pp-arte { font-size: 56px; }
}
/* ---------- Prateleiras por categoria ---------- */
.prateleira-corpo { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.prateleira-banner { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: 12px; color: #fff; text-decoration: none; min-height: 340px; }
.prateleira-banner b { font-size: 28px; line-height: 1.05; }
.prateleira-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prateleira-chips i { font-style: normal; font-size: 12px; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 14px; }
.prateleira-banner .pp-arte { margin-top: auto; align-self: center; font-size: 110px; }
.prateleira-banner:hover .pp-arte { transform: scale(1.08) rotate(-4deg); }
.prateleira-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
    .prateleira-corpo { grid-template-columns: 1fr; }
    .prateleira-banner { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .prateleira-banner .pp-arte { margin: 0 0 0 auto; font-size: 64px; }
}
@media (max-width: 760px) {
    .prateleira-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Carrossel de produtos (Ofertas do dia) */
.faixa-produtos .faixa-trilho { gap: 16px; padding: 4px 2px 12px; }
.faixa-produtos .card { flex: 0 0 220px; scroll-snap-align: start; }
.faixa-produtos .faixa-seta { top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 22px; }
@media (max-width: 560px) { .faixa-produtos .card { flex-basis: 160px; } .faixa-produtos .faixa-trilho { gap: 8px; } }
@media (max-width: 760px) {
    .pp-quadrados { grid-template-columns: 1fr; }
    .pp-quadrado { aspect-ratio: auto; min-height: 220px; }
}
/* ---------- Páginas institucionais (home/home_documento.php) ---------- */
.doc-topo { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 28px 32px; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #1b2f55, #004f9d 60%, #1f7f99); }
.doc-icone { font-size: 52px; width: 84px; height: 84px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 50%; flex-shrink: 0; }
.doc-topo h1 { font-size: 28px; font-weight: 700; }
.doc-topo p { opacity: .9; margin-top: 4px; }
.doc-topo small { display: block; margin-top: 6px; opacity: .7; font-size: 12px; }
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin-top: 20px; align-items: start; }
.doc-sumario { position: sticky; top: 16px; background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 2px; }
.doc-sumario b { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: #6b7480; margin-bottom: 6px; }
.doc-sumario a { font-size: 14px; color: #335b9e; padding: 6px 8px; border-radius: 6px; text-decoration: none; }
.doc-sumario a:hover { background: #e3edf8; }
.doc-conteudo { background: #fff; border-radius: 10px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.doc-secao { padding: 18px 0; border-bottom: 1px solid #eef1f5; scroll-margin-top: 16px; }
.doc-secao:last-of-type { border-bottom: 0; }
.doc-secao h2 { font-size: 19px; color: #1b2f55; margin-bottom: 10px; }
.doc-secao p, .doc-secao li { font-size: 15px; line-height: 1.65; color: #4a5260; }
.doc-secao ul, .doc-secao ol { padding-left: 22px; }
.doc-secao li { margin-bottom: 4px; }
.faq-item { border: 1px solid #e3e8ef; border-radius: 8px; margin-bottom: 8px; }
.faq-item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: #1b2f55; }
.faq-item[open] summary { border-bottom: 1px solid #e3e8ef; }
.faq-item p { padding: 12px 16px; }
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-cards div { background: #f4f8fd; border-radius: 10px; padding: 16px; }
.doc-cards span { font-size: 30px; }
.doc-cards b { display: block; color: #004f9d; margin: 4px 0 2px; }
.doc-cards p { font-size: 14px; }
.doc-passos li { margin-bottom: 8px; }
.doc-chamada { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 18px 22px; border-radius: 10px; background: #e3edf8; }
.doc-chamada span { font-weight: 600; color: #1b2f55; }
.doc-chamada .botao { max-width: 240px; margin: 0; }
@media (max-width: 860px) {
    .doc { grid-template-columns: 1fr; }
    .doc-sumario { position: static; flex-direction: row; flex-wrap: wrap; }
    .doc-sumario b { width: 100%; }
}
@media (max-width: 560px) {
    .doc-topo { padding: 20px; gap: 14px; } .doc-icone { width: 60px; height: 60px; font-size: 34px; } .doc-topo h1 { font-size: 21px; }
    .doc-conteudo { padding: 20px; } .doc-cards { grid-template-columns: 1fr; }
    .doc-chamada { flex-direction: column; align-items: stretch; text-align: center; } .doc-chamada .botao { max-width: none; }
}
/* ---------- Links relacionados (home) ---------- */
.links-relacionados { background: #fff; border-radius: 10px; padding: 22px 26px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.links-relacionados .titulo { margin-bottom: 14px; }
.links-colunas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 24px; }
.links-coluna { display: flex; flex-direction: column; gap: 6px; }
.links-coluna b, .links-titulo { font-size: 14px; font-weight: 700; color: #1b2f55 !important; margin-bottom: 2px; }
.links-coluna a { font-size: 13px; color: #5a6472; text-decoration: none; }
.links-coluna a:hover { color: #004f9d; text-decoration: underline; }
.links-coluna .links-ver { color: #335b9e; font-weight: 600; }
.links-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef1f5; }
.links-tags b { font-size: 13px; color: #1b2f55; margin-right: 4px; }
.links-tags a { font-size: 12px; color: #335b9e; background: #eef4fb; padding: 5px 12px; border-radius: 14px; text-decoration: none; }
.links-tags a:hover { background: #004f9d; color: #fff; }
@media (max-width: 560px) { .links-relacionados { padding: 18px; } .links-colunas { grid-template-columns: repeat(2, 1fr); } }

/* Toast "Adicionado ao carrinho" (SweetAlert2) */
.toast-produto { font-size: 13px; color: #4a5562; margin-top: 2px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: #004f9d; }
.toast-link:hover { text-decoration: underline; }
.swal2-toast .swal2-timer-progress-bar { background: #004f9d; }

/* Modal de confirmação (confirmarExclusao em js/main.js) */
.swal2-container:has(.modal-loja) { background: rgba(15, 31, 53, .45) !important; backdrop-filter: blur(3px); }
.swal2-popup.modal-loja { width: min(420px, calc(100vw - 32px)); padding: 28px 28px 22px; border-radius: 14px; font-family: inherit;
              box-shadow: 0 20px 50px rgba(15, 31, 53, .25); }
.modal-loja .swal2-icon.modal-icone { width: 56px; height: 56px; margin: 0 auto 14px; border: 0; border-radius: 50%; background: #fdecea; color: #c0392b; animation: none; }
.modal-loja .modal-icone .swal2-icon-content { display: grid; place-items: center; }
.modal-loja .modal-titulo { padding: 0; font-size: 20px; font-weight: 700; color: #1b2f55; }
.modal-loja .modal-corpo { margin: 8px 0 0; padding: 0; font-size: 14px; color: #4a5562; }
.modal-texto { margin: 0; }
.modal-itens { list-style: none; margin: 14px 0 0; padding: 4px; max-height: min(320px, 45vh); overflow-y: auto; overscroll-behavior: contain;
               text-align: left; background: #f4f7fb; border: 1px solid #e3e9f1; border-radius: 8px; }
.modal-itens li + li { border-top: 1px solid #e3e9f1; }
.modal-itens label { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; cursor: pointer; font-size: 14px; color: #1b2f55; transition: background-color .15s; }
.modal-itens label:hover { background: #e9f0f8; }
.modal-itens label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-itens label:has(.seletor:not(:checked)) span { color: #8a96a3; text-decoration: line-through; }   /* desmarcado = fica no carrinho */
.modal-loja .modal-acoes { width: 100%; margin: 22px 0 0; gap: 10px; flex-wrap: nowrap; }
.modal-loja .modal-botao { flex: 1; margin: 0; padding: 12px 16px; border: 0; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
               background: #e3edf8; color: #004f9d; transition: background-color .15s, box-shadow .15s; }
.modal-loja .modal-botao:hover { background: #d3e2f3; }
.modal-loja .modal-botao.perigo { background: #c0392b; color: #fff; }
.modal-loja .modal-botao:disabled { background: #e6eaef; color: #8a96a3; cursor: not-allowed; }
.modal-loja .modal-botao.perigo:hover:not(:disabled) { background: #a93226; }
.modal-loja .modal-botao:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 79, 157, .35); }
.modal-loja .modal-botao.perigo:focus-visible { box-shadow: 0 0 0 3px rgba(192, 57, 43, .35); }
.modal-entrar { animation: modal-entrar .18s ease-out; }
.modal-sair { animation: modal-sair .12s ease-in forwards; }
@keyframes modal-entrar { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes modal-sair { to { opacity: 0; transform: scale(.97); } }
@media (max-width: 400px) { .modal-loja .modal-acoes { flex-direction: column-reverse; } .modal-loja .modal-botao { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .modal-entrar, .modal-sair { animation: none; } }
