/* ================= Página inicial: visual novo ================= */
:root { --o-red: #e33241; --o-violet: #7b5cff; --o-pink: #ff3d8b; }

/* Faixa animada do topo */
.topbar { background: linear-gradient(90deg, #1a0f24, #24102a 50%, #1a0f24); border-bottom: 1px solid rgba(123,92,255,.35); overflow: hidden; white-space: nowrap; position: relative; z-index: 101; }
.topbar-track { display: inline-flex; align-items: center; gap: 22px; padding: 9px 0; animation: tb-scroll 38s linear infinite; }
.topbar:hover .topbar-track { animation-play-state: paused; }
.tb-item { font-size: 12.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #e9e3ff; }
.tb-item i { color: var(--o-pink); margin-right: 6px; }
.tb-dot { color: var(--o-violet); opacity: .8; }
@keyframes tb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Banner principal */
.hero { position: relative; padding: 70px 0 60px; min-height: 560px; }
.hero-bg { position: absolute; top: -40px; bottom: 0; left: -50vw; right: -50vw; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: orb-float 14s ease-in-out infinite alternate; }
.orb-1 { width: 460px; height: 460px; background: var(--o-violet); left: 52%; top: 0; }
.orb-2 { width: 380px; height: 380px; background: var(--o-red); left: 70%; top: 220px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: var(--o-pink); left: 38%; top: 320px; opacity: .25; animation-delay: -9s; }
@keyframes orb-float { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px,-20px) scale(.95); } }
.hero-grid { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.hero-word { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); font-size: 20vw; font-weight: 900; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.05); text-transform: uppercase; white-space: nowrap; user-select: none; }

.hero-text { z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(123,92,255,.14); border: 1px solid rgba(123,92,255,.4); color: #cbbcff; font-size: 13px; font-weight: 700; letter-spacing: .4px; margin-bottom: 18px; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 900; line-height: 1.05; color: #fff; margin-bottom: 18px; }
.hero-title .grad { background: linear-gradient(90deg, var(--o-violet), var(--o-pink), var(--o-red), var(--o-violet)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: grad-move 6s linear infinite; }
@keyframes grad-move { to { background-position: 300% 0; } }
.hero-sub { color: #b9b9c2; font-size: 17px; line-height: 1.7; max-width: 560px; margin-bottom: 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.btn-hero { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none !important; }
.btn-hero.primary { background: linear-gradient(135deg, var(--o-violet), var(--o-red)); color: #fff !important; box-shadow: 0 10px 30px -10px rgba(227,50,65,.7); }
.btn-hero.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(123,92,255,.8); }
.btn-hero.ghost { border: 1px solid rgba(255,255,255,.18); color: #fff !important; background: rgba(255,255,255,.04); }
.btn-hero.ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-bottom: 30px; }
.hs-item { display: flex; flex-direction: column; }
.hs-num { font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
.hs-label { color: #9a9aa0; font-size: 13px; margin-top: 4px; }

.hero-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; opacity: .55; }
.hero-logos img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.hero-logos .hl-text { color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .5px; }

/* Capas em 3D girando */
.hero-stage { position: relative; height: 430px; perspective: 1200px; }
.hero-card { position: absolute; top: 50%; left: 50%; width: 420px; height: 250px; margin: -125px 0 0 -210px; border-radius: 18px; overflow: hidden; background: #1c1c1e; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s, filter .8s; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .hc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: flex; flex-direction: column; }
.hero-card .hc-info b { color: #fff; font-size: 18px; }
.hero-card .hc-info small { color: #ffb3bb; font-weight: 700; }
.hero-card.pos-0 { transform: translate3d(0,0,0) rotateY(-12deg) rotateX(4deg); opacity: 1; z-index: 4; }
.hero-card.pos-1 { transform: translate3d(70px,-50px,-140px) rotateY(-18deg) rotateX(4deg); opacity: .7; z-index: 3; filter: brightness(.7); }
.hero-card.pos-2 { transform: translate3d(130px,-95px,-280px) rotateY(-22deg) rotateX(4deg); opacity: .4; z-index: 2; filter: brightness(.5); }
.hero-card.pos-3 { transform: translate3d(180px,-130px,-400px) rotateY(-24deg); opacity: 0; z-index: 1; pointer-events: none; }
.hero-card.pos-0:hover { transform: translate3d(0,-6px,30px) rotateY(-6deg) rotateX(2deg); }

/* Barra de cupom */
.coupon-bar { background: linear-gradient(90deg, #c2185b, var(--o-red) 35%, #8e2de2 70%, var(--o-violet)); background-size: 200% 100%; animation: grad-move 10s linear infinite; padding: 12px 0; margin: 10px 0 40px; color: #fff; font-size: 15px; position: relative; z-index: 2; }
.coupon-bar .container { gap: 12px; }
.cb-pulse { width: 10px; height: 10px; border-radius: 50%; background: #5cff9d; box-shadow: 0 0 0 0 rgba(92,255,157,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(92,255,157,0); } 100% { box-shadow: 0 0 0 0 rgba(92,255,157,0); } }
.cb-code { background: rgba(0,0,0,.28); border: 1px dashed rgba(255,255,255,.6); color: #fff; font-weight: 800; letter-spacing: 1px; padding: 5px 14px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.cb-code:hover { background: rgba(0,0,0,.45); }

/* Cards da vitrine: brilho ao passar o mouse */
#products .product-wrapper .product { transition: transform .2s, box-shadow .2s; }
#products .product-wrapper:not(.is-unavailable) .product:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -16px rgba(123,92,255,.55), 0 0 0 1px rgba(123,92,255,.35); }

/* Botões flutuantes */
.float-btns { position: fixed; right: 20px; bottom: 22px; z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.fb { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; font-size: 22px; box-shadow: 0 10px 25px -8px rgba(0,0,0,.7); position: relative; transition: transform .15s; text-decoration: none !important; }
.fb:hover { transform: scale(1.07); }
.fb span { position: absolute; right: 66px; background: #1c1c1e; border: 1px solid #2e2e31; padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: all .15s; pointer-events: none; }
.fb:hover span { opacity: 1; transform: none; }
.fb-forum { background: linear-gradient(135deg, var(--o-violet), #5a3fd6); animation: fb-bounce 3s ease-in-out infinite; }
.fb-support { background: linear-gradient(135deg, #1fa652, #138a40); }
@keyframes fb-bounce { 0%, 85%, 100% { transform: translateY(0); } 90% { transform: translateY(-6px); } 95% { transform: translateY(0); } }

/* Aviso de compras reais */
.sale-toast { position: fixed; left: 20px; bottom: 22px; z-index: 900; max-width: 330px; display: flex; align-items: center; gap: 12px; background: rgba(28,28,30,.96); border: 1px solid rgba(123,92,255,.35); border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); transform: translateY(140%); opacity: 0; transition: all .45s cubic-bezier(.2,.8,.2,1); }
.sale-toast.show { transform: none; opacity: 1; }
.st-icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--o-violet), var(--o-red)); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.st-text { font-size: 13.5px; color: #ddd; line-height: 1.4; }
.st-text b { color: #fff; }
.st-text .st-prod { color: #ff8fa0; font-weight: 700; }
.st-text small { display: block; color: #888; font-size: 12px; }
.st-close { background: none; border: 0; color: #888; font-size: 20px; line-height: 1; cursor: pointer; align-self: flex-start; }

@media (max-width: 991px) {
  .hero { padding: 40px 0 30px; min-height: 0; }
  .hero-word { font-size: 30vw; }
}
@media (max-width: 575px) {
  .float-btns { right: 14px; bottom: 14px; }
  .fb { width: 48px; height: 48px; font-size: 19px; }
  .sale-toast { left: 12px; right: 76px; bottom: 14px; }
  .hero-stats { gap: 20px; }
  .hs-num { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar-track, .orb, .hero-title .grad, .coupon-bar, .fb-forum, .cb-pulse { animation: none; }
  .hero-card { transition: none; }
}

/* Vitrine larga: a grade ocupa a tela e ajusta o número de colunas sozinha */
.container.store-wide { max-width: 1800px; width: 100%; padding-left: 24px; padding-right: 24px; }
.store-grid-wrap { width: 100%; }
#products { width: 100%; }
#products .products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; width: 100%; }
#products .products > .product-wrapper { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: none !important; }
#products .products > .product-wrapper .product { width: 100%; height: 100%; }
#products .products > .product-wrapper .m-img { width: 100%; object-fit: cover; }
#products .products > p { grid-column: 1 / -1; }
@media (max-width: 575px) {
  .container.store-wide { padding-left: 16px; padding-right: 16px; }
  #products .products { grid-template-columns: 1fr; gap: 18px; }
}

/* O fundo animado do banner passa das bordas: evita rolagem lateral */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* Cabeçalho, banner e vitrine alinhados na mesma largura */
@media (min-width: 1200px) {
  body.saas-template .container { max-width: 1800px; padding-left: 24px; padding-right: 24px; }
}
