/* ============================================================
   EMERSORHACKER — TEMA CHAMATIVO COMPLETO (CSS GLOBAL)
   Cole este código em: Dashboard da Ereemby → CSS global
   Combine com o arquivo 2-JAVASCRIPT-GLOBAL.js (JavaScript global)
   Ajuste as cores na seção :root abaixo, se quiser.
   ============================================================ */

/* ---------- 1. CONFIGURAÇÃO DE CORES (mude aqui) ---------- */
:root {
    --emr-verde: #39ff14;
    /* verde neon principal */
    --emr-roxo: #b026ff;
    /* roxo neon */
    --emr-vermelho: #ff2d55;
    /* descontos / esgotado */
    --emr-ouro: #ffc531;
    /* destaque estrelas / vip */
    --emr-fundo: #060608;
    /* fundo do site */
    --emr-card: rgba(13, 13, 18, 0.82);
    /* fundo dos cards */
    --emr-borda: rgba(57, 255, 20, 0.18);
    /* borda dos cards */
}

/* ---------- 2. FONTES (Bungee para títulos, Chakra Petch para o resto) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Chakra+Petch:wght@400;500;600;700&display=swap');

body {
    font-family: 'Chakra Petch', sans-serif !important;
    background-color: var(--emr-fundo) !important;
}

/* ---------- 3. FUNDO DO SITE (brilhos neon roxo + verde) ---------- */
body {
    background-image:
        radial-gradient(ellipse 60% 40% at 15% 0%, rgba(176, 38, 255, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 35% at 85% 10%, rgba(57, 255, 20, 0.10), transparent 70%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(176, 38, 255, 0.10), transparent 70%) !important;
    background-attachment: fixed !important;
}

/* ---------- 4. BARRA DE ANÚNCIO DO TOPO (80% DE DESCONTO) ---------- */
div[style="background:#000000"] {
    background: linear-gradient(90deg, #b026ff, #ff2d55, #b026ff) !important;
    background-size: 200% 100% !important;
    animation: emr-desliza 6s linear infinite !important;
    box-shadow: 0 2px 18px rgba(176, 38, 255, 0.45);
}

div[style="background:#000000"] div[style="color:#ffffff"] {
    color: #ffffff !important;
    font-family: 'Bungee', cursive !important;
    font-size: 13px !important;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 45, 85, 0.6);
    animation: emr-pulsa-texto 1.2s ease-in-out infinite;
}

@keyframes emr-desliza {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes emr-pulsa-texto {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.72;
    }
}

/* ---------- 5. HEADER (topo com efeito de vidro + borda neon) ---------- */
header {
    background: rgba(8, 8, 12, 0.72) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(57, 255, 20, 0.35) !important;
    box-shadow: 0 4px 24px rgba(57, 255, 20, 0.12), 0 0 40px rgba(176, 38, 255, 0.10);
}

header img {
    filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.55));
    transition: transform 0.3s ease, filter 0.3s ease;
}

header a:hover img {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 0 12px rgba(176, 38, 255, 0.9));
}

/* ---------- 6. BANNER PRINCIPAL (moldura neon + flutuação) ---------- */
body img[src*="attachments"] {
    border-radius: 12px;
}

img[src*="17700874911031949"] {
    border-radius: 16px !important;
    border: 1px solid rgba(176, 38, 255, 0.45);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.35), 0 0 80px rgba(57, 255, 20, 0.12);
    animation: emr-flutua 4.5s ease-in-out infinite;
}

@keyframes emr-flutua {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ---------- 7. TÍTULOS DAS SEÇÕES (PAINÉIS XIT ANDROID etc.) ---------- */
h1 {
    font-family: 'Bungee', cursive !important;
    letter-spacing: 1.5px !important;
}

.home h1 {
    background: linear-gradient(90deg, var(--emr-verde), #7cff5e, var(--emr-roxo), var(--emr-verde));
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: emr-gradiente 4s linear infinite;
    filter: drop-shadow(0 0 14px rgba(57, 255, 20, 0.35));
    text-transform: uppercase;
}

@keyframes emr-gradiente {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 250% center;
    }
}

/* ---------- 8. CARDS DE CATEGORIA (XIT ANDROID, iOS...) ---------- */
.card_category {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid var(--emr-borda) !important;
    background: var(--emr-card) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.card_category:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--emr-verde) !important;
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.40), 0 0 60px rgba(176, 38, 255, 0.18);
}

.card_category img {
    transition: transform 0.5s ease;
}

.card_category:hover img {
    transform: scale(1.08);
}

.card_category div div {
    font-family: 'Chakra Petch', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
}

/* ---------- 9. CARDS DE PRODUTO ---------- */
.product_card {
    background: var(--emr-card) !important;
    border: 1px solid var(--emr-borda) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.product_card:hover {
    transform: translateY(-5px);
    border-color: rgba(57, 255, 20, 0.75) !important;
    box-shadow:
        0 0 20px rgba(57, 255, 20, 0.30),
        0 0 55px rgba(176, 38, 255, 0.15);
}

.product_card img {
    transition: transform 0.45s ease !important;
}

.product_card:hover img {
    transform: scale(1.07);
}

.product_info span {
    font-family: 'Chakra Petch', sans-serif !important;
    font-weight: 600 !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.product_card:hover .product_info span {
    color: var(--emr-verde);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.45);
}

/* ---------- 10. PREÇOS ---------- */
/* preço antigo (riscado) */
.product_info div:has(+ div > svg path[d^="M216.49"]) {
    color: #8f8f9a !important;
    text-decoration: line-through;
    text-decoration-color: var(--emr-vermelho);
    text-decoration-thickness: 2px;
}

/* selo de desconto (86% etc.) */
.product_info div:has(> svg path[d^="M216.49"]) {
    background: var(--emr-vermelho) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    padding: 1px 6px !important;
    box-shadow: 0 0 10px rgba(255, 45, 85, 0.55);
}

/* preço novo (promo) */
.product_info div:has(> p)>div:nth-child(2)>div:first-child {
    color: var(--emr-verde) !important;
    font-family: 'Bungee', cursive !important;
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.55);
}

/* "À vista no PIX" */
.product_info p {
    color: var(--emr-ouro) !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
}

/* ---------- 11. BOTÃO COMPRAR (gradiente animado + brilho) ---------- */
.product_card button {
    background: linear-gradient(90deg, #12b80a, var(--emr-verde), #00e5a0, #12b80a) !important;
    background-size: 250% 100% !important;
    color: #04140a !important;
    font-family: 'Bungee', cursive !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.45) !important;
    animation: emr-desliza 3.5s linear infinite !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.product_card button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 26px rgba(57, 255, 20, 0.85), 0 0 60px rgba(0, 229, 160, 0.35) !important;
}

.product_card button:active {
    transform: scale(0.97);
}

/* ---------- 12. AVALIAÇÕES (carrossel de feedbacks) ---------- */
[class*="feedback"] svg,
[class*="Feedback"] svg {
    filter: drop-shadow(0 0 5px rgba(255, 197, 49, 0.8));
}

/* ---------- 13. FOOTER ---------- */
footer {
    border-top: 1px solid rgba(176, 38, 255, 0.4) !important;
    background: linear-gradient(180deg, rgba(13, 13, 18, 0.4), rgba(6, 6, 8, 0.95)) !important;
}

footer a {
    transition: transform 0.25s ease, filter 0.25s ease;
}

footer a:hover {
    transform: translateY(-3px) scale(1.12);
    filter: drop-shadow(0 0 8px var(--emr-roxo));
}

/* ---------- 14. DETALHES FINAIS ---------- */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #0a0a0e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--emr-verde), var(--emr-roxo));
    border-radius: 8px;
}

::selection {
    background: var(--emr-verde);
    color: #04140a;
}

/* ============================================================
   BLOCOS INJETADOS PELO JAVASCRIPT (2-JAVASCRIPT-GLOBAL.js)
   ============================================================ */

/* ---------- 15. HERO DE BOAS-VINDAS (home) ---------- */
.emr-hero {
    text-align: center;
    padding: 34px 16px 10px;
    max-width: 680px;
    margin: 0 auto;
}

.emr-hero-titulo {
    font-family: 'Bungee', cursive !important;
    font-size: clamp(22px, 5vw, 40px) !important;
    line-height: 1.25 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    animation: none !important;
    text-shadow: 0 0 18px rgba(57, 255, 20, 0.55), 0 0 45px rgba(176, 38, 255, 0.35);
}

.emr-hero-titulo span {
    background: linear-gradient(90deg, #39ff14, #00e5a0, #b026ff, #39ff14);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: emr-gradiente 3.5s linear infinite;
}

.emr-hero-sub {
    color: #c9c9d4;
    font-size: 15px;
    line-height: 1.6;
    margin: 14px 0 20px;
}

.emr-hero-sub strong {
    color: var(--emr-verde);
}

.emr-hero-botoes {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.emr-botao {
    font-family: 'Bungee', cursive;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 13px 22px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.emr-botao-verde {
    background: linear-gradient(90deg, #12b80a, #39ff14, #00e5a0);
    background-size: 220% 100%;
    color: #04140a;
    box-shadow: 0 0 18px rgba(57, 255, 20, .5);
    animation: emr-desliza 3.5s linear infinite;
}

.emr-botao-roxo {
    background: linear-gradient(90deg, #7a15c9, #b026ff, #7a15c9);
    background-size: 220% 100%;
    color: #fff;
    box-shadow: 0 0 18px rgba(176, 38, 255, .5);
    animation: emr-desliza 3.5s linear infinite;
}

.emr-botao:hover {
    transform: scale(1.06);
}

.emr-hero-selos {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.emr-selo {
    background: rgba(13, 13, 18, .85);
    border: 1px solid rgba(57, 255, 20, .3);
    border-radius: 999px;
    color: #d8ffd2;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
}

/* ---------- 16. ALERTA DE ALTA DEMANDA ---------- */
.emr-demanda {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 8px auto 4px;
    width: fit-content;
    background: rgba(255, 45, 85, .10);
    border: 1px solid rgba(255, 45, 85, .4);
    border-radius: 999px;
    padding: 7px 16px;
    color: #ffb3c1;
    font-size: 13px;
    font-weight: 600;
}

.emr-demanda strong {
    color: var(--emr-vermelho);
}

.emr-demanda-bolinha {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--emr-vermelho);
    box-shadow: 0 0 10px var(--emr-vermelho);
    animation: emr-pulsa 1.1s ease-in-out infinite;
}

@keyframes emr-pulsa {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: .55;
    }
}

/* ---------- 17. CONTAGEM REGRESSIVA ---------- */
.emr-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 10px auto 18px;
    color: #ffd98a;
    font-size: 14px;
    font-weight: 600;
}

.emr-tempo {
    background: linear-gradient(180deg, #1a1a22, #0d0d12);
    border: 1px solid rgba(255, 197, 49, .5);
    border-radius: 8px;
    color: var(--emr-ouro);
    font-family: 'Bungee', cursive;
    font-size: 15px;
    padding: 5px 9px;
    box-shadow: 0 0 12px rgba(255, 197, 49, .3);
    min-width: 34px;
    text-align: center;
}

/* ---------- 18. BOTÃO FLUTUANTE DE SUPORTE ---------- */
.emr-suporte {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #39ff14, #00e5a0);
    color: #04140a;
    font-family: 'Bungee', cursive;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(57, 255, 20, .55);
    animation: emr-flutua-suporte 2.6s ease-in-out infinite;
}

.emr-suporte:hover {
    transform: scale(1.07);
}

@keyframes emr-flutua-suporte {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .emr-suporte span {
        display: none;
    }

    .emr-suporte {
        padding: 13px;
    }
}

/* ---------- 19. NOTIFICAÇÕES DE COMPRA ---------- */
.emr-toast-wrap {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.emr-toast {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(10, 10, 14, .94);
    border: 1px solid rgba(57, 255, 20, .45);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 0 22px rgba(57, 255, 20, .25), 0 8px 30px rgba(0, 0, 0, .6);
    max-width: 330px;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    animation: emr-toast-entra .5s cubic-bezier(.2, .9, .3, 1.15);
}

.emr-toast.saindo {
    animation: emr-toast-sai .4s ease forwards;
}

.emr-toast img {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(57, 255, 20, .3);
    flex-shrink: 0;
}

.emr-toast-texto {
    min-width: 0;
}

.emr-toast-titulo {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.emr-toast-titulo strong {
    color: var(--emr-verde);
    font-weight: 700;
}

.emr-toast-sub {
    color: #8f8f9a;
    font-size: 11px;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.emr-toast-verificado {
    color: var(--emr-verde);
    font-weight: 700;
}

@keyframes emr-toast-entra {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes emr-toast-sai {
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .emr-toast {
        max-width: calc(100vw - 70px);
    }

    .emr-toast img {
        width: 40px;
        height: 40px;
    }

    .emr-toast-titulo {
        font-size: 12px;
    }
}

/* ---------- 20. ACESSIBILIDADE: reduz animações se preferir ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* CORREÇÃO RESPONSIVA PARA CELULAR — cole no final do CSS global */
html {
    overflow-x: hidden !important;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden !important;
}

#__ecommerce_v1,
#__ecommerce_v1>section,
#__ecommerce_v1>section>div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body img[src*="attachments"] {
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {

    /* Cabeçalho adequado para telas estreitas */
    .search_pc {
        display: none !important;
    }

    .search_mobile {
        display: flex !important;
        min-width: 0;
        flex: 1 1 auto;
    }

    header {
        width: 100% !important;
        max-width: 100vw !important;
    }

    header .search_mobile span,
    header a[aria-label*="carrinho"] span {
        display: none;
    }

    header a[aria-label*="carrinho"],
    header a[aria-label*="página de login"] {
        white-space: nowrap;
        padding-left: 6px;
        padding-right: 6px;
    }

    div[style="background:#000000"] div[style="color:#ffffff"] {
        font-size: 10px !important;
        letter-spacing: 0.35px;
        white-space: nowrap;
    }

    #__ecommerce_v1>section>div {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Produtos em duas colunas, sem largura fixa de computador */
    .home {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .product_card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .product_card>div,
    .product_info {
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .product_card img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .product_info {
        padding: 8px !important;
    }

    .product_info>span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        min-height: 2.5em;
        font-size: clamp(10px, 2.8vw, 13px) !important;
        line-height: 1.2 !important;
    }

    .product_info p {
        font-size: 10px !important;
        letter-spacing: 0 !important;
    }

    .product_card button {
        min-width: 0 !important;
        min-height: 34px;
        padding: 8px 6px !important;
        font-size: clamp(9px, 2.8vw, 12px) !important;
        letter-spacing: 0.3px !important;
    }

    /* Categorias em duas colunas */
    .card_category {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .card_category img {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    #__ecommerce_v1>section h1 {
        font-size: clamp(13px, 4vw, 18px) !important;
        letter-spacing: 0.8px !important;
    }

    #__ecommerce_v1>section img[src*="17700874911031949"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 380px) {
    #__ecommerce_v1>section>div {
        padding-left: 8px;
        padding-right: 8px;
    }

    .home {
        gap: 8px !important;
    }

    .product_info {
        padding: 7px !important;
    }

    .product_info>span {
        font-size: 10px !important;
    }

    .product_info p {
        font-size: 9px !important;
    }

    .product_card button {
        min-height: 32px;
        padding: 7px 4px !important;
        font-size: 9px !important;
    }
}