/* Altura reservada antes de carregar: a página não pula. 18px são do rótulo "Publicidade". */
.anuncio { margin: 16px auto; max-width: 100%; box-sizing: border-box; overflow: hidden; text-align: center; }
.anuncio[data-espaco="inicio-topo"] { width: 320px; height: 118px; }
.anuncio[data-espaco="estudo-meio"], .anuncio[data-espaco="estudo-fim"], .anuncio[data-espaco="resultado"] { width: 300px; height: 268px; }
.anuncio-rotulo { display: block; height: 18px; font-size: 11px; line-height: 18px; color: #595959; }
.anuncio a { display: flex; align-items: center; justify-content: center; width: 100%; height: calc(100% - 18px); background: #f1f3f5; color: #0b3d91; padding: 0; text-decoration: none; overflow-wrap: anywhere; }
.anuncio img { width: 100%; height: 100%; object-fit: contain; display: block; }
.anuncio a.chamada { background: #0056b3; color: #fff; font-weight: 600; padding: 0 16px; box-sizing: border-box; border-radius: 8px; }
.sem-anuncios .anuncio { display: none; }

/* Vitrine: altura fixa; os produtos rolam para o lado dentro da caixa (a página não). */
.anuncio[data-espaco$="vitrine"], .anuncio[data-espaco^="kit-vitrine"] { width: 100%; max-width: 720px; height: 300px; text-align: left; }
.vitrine-titulo { display: block; height: 28px; line-height: 28px; font-size: 1rem; color: #083a7d; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vitrine-trilho { display: flex; gap: 10px; height: 254px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.anuncio .vitrine-item { flex: 0 0 150px; width: 150px; height: auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 4px; background: #fff; border: 1px solid #d8dee8; border-radius: 10px; padding: 0 0 8px; scroll-snap-align: start; color: #1b2430; overflow: hidden; }
.anuncio .vitrine-item img { width: 150px; height: 110px; object-fit: contain; background: #f4f7fb; }
.vitrine-nome { padding: 0 8px; font-size: .85rem; line-height: 1.25; height: 2.5em; overflow: hidden; }
.vitrine-preco { padding: 0 8px; font-weight: 700; color: #15803d; }
.vitrine-botao { margin: auto 8px 0; padding: 8px 4px; border-radius: 8px; background: #ee4d2d; color: #fff; font-size: .8rem; font-weight: 700; text-align: center; }

/* Vídeo vertical na página inicial: cartão 9:16, não flutua; sem anúncio, o espaço some. */
.anuncio[data-espaco="inicio-video"] { position: relative; width: 270px; height: auto; aspect-ratio: auto; }
.video-quadro { width: 270px; max-width: 100%; aspect-ratio: 9 / 16; background: #111; border-radius: 12px; overflow: hidden; }
.video-quadro video { width: 100%; height: 100%; object-fit: cover; display: block; }
.anuncio .video-som, .anuncio .video-fechar { position: absolute; border: 0; border-radius: 20px; background: rgba(0, 0, 0, .65); color: #fff; font: inherit; font-size: .8rem; min-height: 36px; padding: 0 12px; cursor: pointer; }
.anuncio .video-som { left: 8px; top: 26px; }
.anuncio .video-fechar { right: 8px; top: 26px; width: 36px; padding: 0; }
.anuncio a.video-link { height: 44px; margin-top: 8px; border-radius: 8px; background: #15803d; color: #fff; font-weight: 700; }
