/* =====================================================================
 * Vitrine 4.1.0 — barras do topo animadas + barra secundária + relógio de largura fixa.
 * ===================================================================== */

/* ---------- Animações (barra 1 e barra 2) ---------- */
[data-vda-tb] .vda-tb__box { display: block; min-width: 0; }
[data-vda-tb] .vda-tb__msg a { color: inherit; }

/* Letreiro */
.vda-tb__marquee { display: block; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.vda-tb__track { display: inline-flex; width: max-content; animation: vda-tb-marquee var(--vda-tb-dur, 30s) linear infinite; will-change: transform; }
.vda-tb__set { display: inline-flex; align-items: center; gap: 1.6em; padding-right: 1.6em; }
.vda-tb__sep { opacity: .7; }
@keyframes vda-tb-marquee { to { transform: translateX(-50%); } }
[data-pause] .vda-tb__marquee:hover .vda-tb__track { animation-play-state: paused; }

/* Frases que alternam */
.vda-tb__rot { display: grid; overflow: hidden; }
.vda-tb__rot > .vda-tb__msg { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, transform .5s ease, visibility .5s; }
.vda-tb__rot > .vda-tb__msg.is-on { opacity: 1; visibility: visible; transform: none; }
[data-anim="slide-up"] .vda-tb__rot > .vda-tb__msg { transform: translateY(100%); }
[data-anim="slide-up"] .vda-tb__rot > .vda-tb__msg.is-out { transform: translateY(-100%); }
[data-anim="slide-left"] .vda-tb__rot > .vda-tb__msg { transform: translateX(40px); }
[data-anim="slide-left"] .vda-tb__rot > .vda-tb__msg.is-out { transform: translateX(-40px); }

/* Pulsar e brilho */
[data-anim="pulse"] .vda-tb__msg { display: inline-block; animation: vda-tb-pulse var(--vda-tb-every, 4s) ease-in-out infinite; }
@keyframes vda-tb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
[data-anim="shine"] { position: relative; overflow: hidden; }
[data-anim="shine"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-100%); animation: vda-tb-shine var(--vda-tb-every, 4s) ease-in-out infinite; }
@keyframes vda-tb-shine { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
[data-pause][data-anim="pulse"]:hover .vda-tb__msg, [data-pause][data-anim="shine"]:hover::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
	.vda-tb__track, [data-anim="pulse"] .vda-tb__msg, [data-anim="shine"]::after { animation: none !important; }
	.vda-tb__track .vda-tb__set + .vda-tb__set { display: none; }
	.vda-tb__marquee { white-space: normal; -webkit-mask-image: none; mask-image: none; }
	.vda-tb__rot > .vda-tb__msg { transition: none; }
}

/* ---------- Barra 2 ---------- */
.vda-topbar2 { position: relative; z-index: 1002; background-color: #0e0e0e; background-image: radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, .07), transparent 60%); color: #fff; }
.vda-topbar2__inner { max-width: var(--ach-max-width, 1200px); margin: 0 auto; padding: 12px 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; text-align: center; box-sizing: border-box; }
.vda-topbar2--stack .vda-topbar2__inner { flex-direction: column; gap: 8px; }
.vda-topbar2__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; }
.vda-topbar2__text { font-size: 18px; font-weight: 700; line-height: 1.25; color: #fff; min-width: 0; max-width: 100%; }
.vda-topbar2__text b, .vda-topbar2__text strong { color: #ffd23f; }
.vda-topbar2__text a, .vda-topbar2__sub a { color: #ffd23f; text-decoration: underline; }
.vda-topbar2--inline .vda-topbar2__sub { flex-basis: 100%; }
.vda-topbar2__sub { font-size: 13px; line-height: 1.35; color: #ffd23f; opacity: .95; }
.vda-topbar2__btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 999px; background: #ffd23f; color: #111; font-weight: 800; font-size: 15px; line-height: 1; text-decoration: none !important; white-space: nowrap; transition: transform .2s ease, filter .2s ease; }
.vda-topbar2__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.vda-topbar2__close { position: absolute; top: 10px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255, 255, 255, .08) !important; color: #fff; cursor: pointer; box-shadow: none !important; }
.vda-topbar2__close:hover { background: rgba(255, 255, 255, .18) !important; }
.vda-topbar2__hint { font-size: 12px; opacity: .8; }
.vda-topbar2.is-closed { display: none !important; }
@media (max-width: 768px) { .vda-hide-m { display: none !important; } .vda-topbar2__inner { padding: 10px 44px 10px 14px; } .vda-topbar2__text { font-size: min(var(--vda-tb2-m, 16px), 16px); } }
@media (min-width: 769px) { .vda-hide-d { display: none !important; } }

/* ---------- Relógio (largura fixa — SOL-13) ----------
 * Cada dígito ocupa uma célula de 1ch (largura do "0" na fonte): trocar 1 por 8 não muda a
 * largura de nada. Os rótulos ficam centralizados sob o número. */
.vda-cd2 { --vda-cd2-size: 34px; --vda-cd2-digits: #ffd23f; --vda-cd2-labels: #c9c9c9; display: inline-flex; align-items: flex-start; justify-content: center; gap: .18em; padding: .32em .7em .28em; border: 2px solid #ffd23f; border-radius: 12px; background: rgba(0, 0, 0, .55); font-size: var(--vda-cd2-size); line-height: 1; box-sizing: border-box; flex: 0 0 auto; }
.vda-cd2__unit { display: inline-flex; flex-direction: column; align-items: center; }
.vda-cd2__num { display: inline-flex; color: var(--vda-cd2-digits); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.vda-cd2__num i { display: inline-block; width: 1ch; min-width: 1ch; text-align: center; font-style: normal; }
.vda-cd2.has-glow .vda-cd2__num { text-shadow: 0 0 .18em color-mix(in srgb, var(--vda-cd2-digits) 75%, transparent), 0 0 .5em color-mix(in srgb, var(--vda-cd2-digits) 45%, transparent); }
.vda-cd2__lbl { margin-top: .32em; font-size: max(10px, calc(var(--vda-cd2-size) * .3)); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--vda-cd2-labels); font-family: inherit; }
.vda-cd2__sep { color: var(--vda-cd2-labels); font-weight: 700; padding: 0 .05em; opacity: .85; line-height: 1; }
.vda-cd2__end { font-size: .55em; font-weight: 800; color: var(--vda-cd2-digits); padding: .2em .4em; }
.vda-cd2__end[hidden] { display: none; }
.vda-cd2.is-ended .vda-cd2__unit, .vda-cd2.is-ended .vda-cd2__sep { display: none; }
@media (max-width: 640px) { .vda-cd2 { font-size: min(var(--vda-cd2-size), 26px); padding: .3em .5em; } }
