/* Ornamentação das campanhas (Black Friday, Natal Nerd, campanha especial): site e PDV.
   Tudo é decoração: pointer-events:none, abaixo de menus e janelas, e respeita "reduzir movimento".
   Arquivo único copiado no site (/css) e no PDV (/public/css). */

.cmp-fx-layer, .cmp-fx-layer * { pointer-events: none; box-sizing: border-box; }
.cmp-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 997; }
.cmp-floaters { position: fixed; inset: 0; overflow: hidden; z-index: 998; }
.cmp-floaters span { position: absolute; top: 0; will-change: transform; user-select: none; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.cmp-fall span { animation-name: cmp-fall; animation-timing-function: linear; animation-iteration-count: infinite; }
.cmp-rise span { animation-name: cmp-rise; animation-timing-function: linear; animation-iteration-count: infinite; top: auto; bottom: 0; }
@keyframes cmp-fall { 0% { transform: translate3d(0,-12vh,0) rotate(0deg); } 50% { transform: translate3d(28px,55vh,0) rotate(180deg); } 100% { transform: translate3d(-10px,112vh,0) rotate(360deg); } }
@keyframes cmp-rise { 0% { transform: translate3d(0,12vh,0) rotate(-8deg) scale(.9); opacity: 0; } 12% { opacity: .75; } 50% { transform: translate3d(22px,-48vh,0) rotate(8deg) scale(1); } 88% { opacity: .75; } 100% { transform: translate3d(-12px,-112vh,0) rotate(-8deg) scale(.9); opacity: 0; } }

/* trenó do Papai Noel atravessando a tela de tempos em tempos */
.cmp-sleigh { position: fixed; top: 16vh; left: 0; z-index: 997; white-space: nowrap; font-size: 46px; line-height: 1; transform: translate3d(-420px,0,0); animation: cmp-fly 62s linear infinite; animation-delay: 5s; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.cmp-sleigh .cmp-sleigh-in { display: inline-block; transform: scaleX(-1); animation: cmp-bob 1.6s ease-in-out infinite; }
.cmp-sleigh .cmp-trail { display: inline-block; font-size: 22px; opacity: .85; margin-right: 6px; transform: scaleX(-1); animation: cmp-blink 1.1s ease-in-out infinite; }
@keyframes cmp-fly { 0% { transform: translate3d(-420px,0,0); } 26% { transform: translate3d(calc(100vw + 60px),-34px,0); } 100% { transform: translate3d(calc(100vw + 60px),-34px,0); } }
@keyframes cmp-bob { 0%,100% { transform: scaleX(-1) translateY(0) rotate(-2deg); } 50% { transform: scaleX(-1) translateY(-8px) rotate(2deg); } }

/* neve acumulada no rodapé + enfeites (só telas grandes: no celular o rodapé tem a barra de navegação) */
.cmp-ground { position: fixed; left: 0; right: 0; bottom: 0; height: 30px; z-index: 996; display: none;
  background: radial-gradient(circle at 24px 34px, #f8fafc 22px, transparent 23px) 0 0 / 48px 30px repeat-x, radial-gradient(circle at 54px 38px, #e2e8f0 26px, transparent 27px) 0 0 / 96px 30px repeat-x; opacity: .95; }
.cmp-decor { position: fixed; bottom: 14px; z-index: 996; font-size: 44px; line-height: 1; display: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); animation: cmp-sway 4s ease-in-out infinite; }
.cmp-decor.l { left: 14px; } .cmp-decor.r { right: 14px; font-size: 54px; }
@keyframes cmp-sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (min-width: 900px) { .cmp-ground, .cmp-decor { display: block; } }

/* enfeite pendurado embaixo do cabeçalho */
.cmp-hang { position: absolute; left: 0; right: 0; top: 100%; z-index: 1; height: 34px; overflow: hidden; pointer-events: none; }
.cmp-garland { display: flex; }
.cmp-seg { position: relative; flex: 0 0 84px; height: 34px; }
.cmp-seg:before { content: ''; position: absolute; left: -2px; right: -2px; top: -12px; height: 24px; border-bottom: 2px solid #166534; border-radius: 0 0 50% 50%; }
.cmp-seg i { position: absolute; left: 50%; top: 11px; width: 10px; height: 15px; margin-left: -5px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--c); box-shadow: 0 0 12px 2px var(--c); animation: cmp-blink 1.8s ease-in-out infinite; }
.cmp-seg i:before { content: ''; position: absolute; left: 50%; top: -5px; width: 6px; height: 6px; margin-left: -3px; background: #475569; border-radius: 2px 2px 0 0; }
.cmp-seg:nth-child(4n+1) i { --c: #ef4444; animation-delay: 0s; } .cmp-seg:nth-child(4n+2) i { --c: #22c55e; animation-delay: .45s; }
.cmp-seg:nth-child(4n+3) i { --c: #facc15; animation-delay: .9s; } .cmp-seg:nth-child(4n) i { --c: #38bdf8; animation-delay: 1.35s; }
@keyframes cmp-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.cmp-tape { height: 9px; background: repeating-linear-gradient(-45deg, #facc15 0 12px, #050505 12px 24px); background-size: 34px 34px; animation: cmp-tape 1.1s linear infinite; box-shadow: 0 3px 12px rgba(250,204,21,.35); }
@keyframes cmp-tape { to { background-position: 34px 0; } }
.cmp-sparkle { height: 5px; background: linear-gradient(90deg, transparent, #c4b5fd, #f472b6, #c4b5fd, transparent); box-shadow: 0 0 14px #a78bfa; }
.cmp-hat { position: absolute; left: -9px; top: -13px; width: 34px; height: 30px; transform: rotate(-16deg); z-index: 3; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }

/* borda do cabeçalho com as cores da campanha */
.camp-fx-natal .site-header, .camp-fx-natal .navbar-custom { border-bottom: 3px solid transparent !important; border-image: repeating-linear-gradient(135deg, #ef4444 0 14px, #f8fafc 14px 20px, #16a34a 20px 34px) 1 !important; }
.camp-fx-black .site-header, .camp-fx-black .navbar-custom { border-bottom: 3px solid #facc15 !important; box-shadow: 0 4px 22px rgba(250,204,21,.28) !important; }
.camp-fx-extra .site-header, .camp-fx-extra .navbar-custom { border-bottom: 3px solid #a78bfa !important; box-shadow: 0 4px 22px rgba(167,139,250,.3) !important; }

/* botão para pausar os efeitos */
.cmp-toggle { position: fixed; left: 12px; bottom: 12px; z-index: 1001; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,15,26,.82); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; pointer-events: auto !important; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0,0,0,.4); opacity: .75; transition: opacity .2s; }
.cmp-toggle:hover, .cmp-toggle:focus-visible { opacity: 1; }
@media (max-width: 768px) { .cmp-toggle { bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); left: 8px; width: 32px; height: 32px; font-size: 15px; } .cmp-sleigh { font-size: 34px; } }
.camp-fx-off .cmp-canvas, .camp-fx-off .cmp-floaters, .camp-fx-off .cmp-sleigh, .camp-fx-off .cmp-ground, .camp-fx-off .cmp-decor { display: none !important; }
.camp-fx-off .cmp-seg i, .camp-fx-off .cmp-tape { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .cmp-canvas, .cmp-floaters, .cmp-sleigh { display: none !important; }
  .cmp-seg i, .cmp-tape, .cmp-decor, .cmp-stage *, .cmp-stage *:before { animation: none !important; }
}

/* ===== cartão da campanha na home ===== */
.cmp-stage { position: relative; overflow: hidden; margin: 0 0 18px; border-radius: 18px; color: #fff; isolation: isolate; border: 2px solid var(--cs-acc); box-shadow: 0 10px 40px var(--cs-glow); }
.cmp-stage-in { position: relative; z-index: 2; padding: 26px clamp(16px, 4vw, 44px) 24px; display: grid; gap: 10px; max-width: 1180px; margin: 0 auto; }
.cmp-stage .cmp-stage-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; background: var(--cs-acc); color: #07070b; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; border-radius: 999px; padding: 5px 14px; }
.cmp-stage h2 { margin: 0; font-size: clamp(1.9rem, 5.4vw, 3.6rem); line-height: 1.02; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.cmp-stage p { margin: 0; max-width: 62ch; color: rgba(255,255,255,.88); font-size: clamp(.9rem, 2vw, 1.05rem); }
.cmp-stage .cmp-stage-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.cmp-stage .cmp-stage-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--cs-acc); color: #07070b !important; text-decoration: none; font-weight: 900; border-radius: 12px; padding: 12px 22px; font-size: 1rem; box-shadow: 0 6px 20px var(--cs-glow); transition: transform .15s; }
.cmp-stage .cmp-stage-cta:hover { transform: translateY(-2px) scale(1.03); }
.cmp-stage .promo-cd-box { margin: 0; }
.cmp-stage-icons { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.cmp-stage-icons span { position: absolute; font-size: clamp(22px, 4vw, 40px); opacity: .5; animation: cmp-float 6s ease-in-out infinite; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
@keyframes cmp-float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.cmp-stage-scene { position: absolute; right: clamp(8px, 3vw, 40px); bottom: 4px; z-index: 2; font-size: clamp(34px, 7vw, 74px); line-height: 1; white-space: nowrap; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); animation: cmp-bob2 3.2s ease-in-out infinite; }
@keyframes cmp-bob2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cmp-stage .cmp-stage-edge { position: absolute; left: 0; right: 0; height: 10px; z-index: 3; }
.cmp-stage .cmp-stage-edge.top { top: 0; } .cmp-stage .cmp-stage-edge.bot { bottom: 0; }

.cmp-stage-black { --cs-acc: #facc15; --cs-glow: rgba(250,204,21,.28); background: radial-gradient(900px 300px at 85% -20%, rgba(250,204,21,.22), transparent 60%), linear-gradient(135deg, #000, #15110a 60%, #241b05); }
.cmp-stage-black h2 { color: #facc15; text-shadow: 0 0 18px rgba(250,204,21,.55), 2px 0 #ef4444, -2px 0 #38bdf8; animation: cmp-glitch 3.4s steps(1) infinite; }
@keyframes cmp-glitch { 0%,92%,100% { transform: none; text-shadow: 0 0 18px rgba(250,204,21,.55), 2px 0 #ef4444, -2px 0 #38bdf8; } 93% { transform: translate(3px,-1px) skewX(-6deg); text-shadow: -3px 0 #ef4444, 3px 0 #38bdf8; } 95% { transform: translate(-3px,1px) skewX(5deg); } 97% { transform: translate(2px,0); } }
.cmp-stage-black .cmp-stage-edge { background: repeating-linear-gradient(-45deg, #facc15 0 12px, #050505 12px 24px); }
.cmp-stage-natal { --cs-acc: #fca5a5; --cs-glow: rgba(239,68,68,.3); background: radial-gradient(700px 260px at 12% -10%, rgba(34,197,94,.25), transparent 60%), radial-gradient(600px 260px at 95% 0%, rgba(239,68,68,.35), transparent 60%), linear-gradient(160deg, #052e16, #14301f 45%, #7f1d1d); }
.cmp-stage-natal h2 { color: #fff; text-shadow: 0 3px 0 #b91c1c, 0 0 22px rgba(255,255,255,.35); }
.cmp-stage-natal .cmp-stage-edge { background: repeating-linear-gradient(135deg, #ef4444 0 14px, #f8fafc 14px 20px, #16a34a 20px 34px); }
.cmp-stage-natal:after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 2; background: radial-gradient(circle at 30px 40px, #f8fafc 26px, transparent 27px) 0 0 / 60px 34px repeat-x, radial-gradient(circle at 70px 44px, #e2e8f0 30px, transparent 31px) 0 0 / 120px 34px repeat-x; }
.cmp-stage-extra { --cs-acc: #c4b5fd; --cs-glow: rgba(167,139,250,.3); background: linear-gradient(135deg, #150f33, #3b2f7a); }
@media (max-width: 1000px) { .cmp-stage-scene { position: relative; right: auto; bottom: auto; padding: 0 clamp(16px, 4vw, 44px) 30px; margin-top: -6px; } .cmp-stage-in { padding-bottom: 8px; } }
