
/* =========================================
   SAGE STORE
   CSS GLOBAL
========================================= */

:root {
    --bg: #060d13;
    --bg-secondary: #0b171e;
    --surface: #111d24;
    --surface-hover: #172b35;
    --primary: #47c9ed;
    --primary-light: #a9f3ff;
    --primary-dark: #206f91;
    --text: #f5fbff;
    --muted: #94a8b3;
    --border: rgba(169, 243, 255, 0.13);
}


/* RESET */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 14px;
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1320px;
    margin: 14px auto 0;
}

.header-inner {
    position: relative;
    min-height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(12, 18, 21, 0.94);
    border: 1px solid rgba(169, 243, 255, 0.15);
    border-radius: 19px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}


/* LADO ESQUERDO */

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 35px;
    color: white;
    background: transparent;
    border: none;
    font-size: 15px;
}

.header-search {
    display: flex;
    align-items: center;
    width: 138px;
    height: 35px;
    background: #1b2024;
    border: 1px solid #343c42;
    border-radius: 10px;
    overflow: hidden;
}

    .header-search button {
        width: 36px;
        flex-shrink: 0;
        height: 100%;
        border: none;
        background: transparent;
        color: #94a8b3;
        font-size: 12px;
    }

    .header-search input {
        width: 100%;
        min-width: 0;
        height: 100%;
        background: transparent;
        border: none;
        outline: none;
        color: white;
        font-size: 11px;
    }

    .header-search:focus-within {
        border-color: var(--primary);
    }

    .header-search input::placeholder {
        color: #89959c;
    }

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 19px;
}

    .nav-left a,
    .nav-right a,
    .nav-pending {
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        color: #d7dce0;
        transition: color 0.2s;
    }

        .nav-left a:hover,
        .nav-right a:hover {
            color: var(--primary-light);
        }

.nav-pending {
    opacity: 0.65;
    cursor: default;
}


/* LOGO CENTRAL */

.header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: radial-gradient( circle, #164b5d 0%, transparent 75% );
    border-radius: 50%;
}

    .header-logo span {
        font-family: 'Barlow Condensed', sans-serif;
        font-size: 44px;
        font-weight: 900;
        font-style: italic;
        line-height: 1;
        color: var(--primary-light);
        text-shadow: 0 0 8px var(--primary), 0 0 25px rgba(71, 201, 237, 0.7);
    }


/* LADO DIREITO */

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    background: white;
    color: #111;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    cursor: default;
}

.cart-button {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(71, 201, 237, 0.09);
    color: var(--primary);
    border: 1px solid rgba(71, 201, 237, 0.2);
    border-radius: 10px;
    cursor: default;
}


/* MENU MOBILE */

.mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 260px;
    max-width: 100%;
    padding: 12px;
    background: #101c23;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

    .mobile-menu[hidden] {
        display: none;
    }

    .mobile-menu a {
        display: block;
        padding: 13px;
        color: #d4e7ed;
        font-size: 13px;
        border-radius: 7px;
    }

        .mobile-menu a:hover {
            background: #18313b;
        }


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 35px 20px 50px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

    .footer-links a,
    .footer-links span {
        font-size: 11px;
        color: #8899a3;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

    /* Crédito discreto do desenvolvedor no rodapé público. */
    .footer-links .footer-credit {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #687782;
        font-size: 11px;
        white-space: nowrap;
    }

        .footer-links .footer-credit strong {
            color: #8b9aa3;
            font-weight: 600;
        }

    .footer-links .footer-whatsapp {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        margin-left: 1px;
        color: #71877b;
        font-size: 13px;
        opacity: .78;
        transition: color .2s ease, opacity .2s ease;
    }

        .footer-links .footer-whatsapp:hover {
            color: #25D366;
            opacity: 1;
        }

        .footer-links .footer-whatsapp:focus-visible {
            outline: 1px solid #25D366;
            outline-offset: 3px;
            border-radius: 4px;
        }


/* ==========================================
   SAGESTORE - HEADER ANIMADO
========================================== */

/* Barra de pesquisa */

.site-header .header-search {
    transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

    .site-header .header-search:hover,
    .site-header .header-search:focus-within {
        border-color: rgba(105, 217, 238, .65);
        box-shadow: 0 0 0 1px rgba(105, 217, 238, .12), 0 0 20px rgba(105, 217, 238, .16);
    }

/* Links do menu */

.site-header .nav-left a {
    position: relative;
    transition: color .25s ease;
}

    .site-header .nav-left a:hover {
        color: #8beaff;
    }

    /* Linha animada */

    .site-header .nav-left a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 100%;
        height: 2px;
        background: #69d9ee;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .3s ease;
        box-shadow: 0 0 10px #69d9ee;
    }

    .site-header .nav-left a:hover::after,
    .site-header .nav-left a:focus-visible::after {
        transform: scaleX(1);
    }

/* Logo original da SageStore */

.site-header .header-logo > span {
    display: inline-block;
    transition: transform .35s ease, filter .35s ease;
}

.site-header .header-logo:hover > span {
    transform: scale(1.16);
    filter: drop-shadow(0 0 8px #69d9ee) drop-shadow(0 0 16px rgba(105, 217, 238, .65));
}

@media (prefers-reduced-motion: reduce) {
    .site-header .header-search,
    .site-header .nav-left a,
    .site-header .nav-left a::after,
    .site-header .header-logo > span {
        transition: none;
    }
}


/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 1100px) {

    .nav-left,
    .nav-right {
        gap: 11px;
    }

        .nav-left a,
        .nav-right a {
            font-size: 10px;
        }
}


@media (max-width: 900px) {

    .nav-left,
    .nav-right {
        display: none;
    }

    .header-inner {
        padding: 0 15px;
    }

    .header-left,
    .header-right {
        gap: 10px;
    }
}


@media (max-width: 480px) {

    .site-header {
        width: calc(100% - 20px);
        top: 10px;
        margin-top: 10px;
    }

    .header-search {
        width: 38px;
        transition: width 0.2s;
    }

        .header-search:focus-within {
            width: 130px;
        }

    .header-logo {
        width: 43px;
        height: 43px;
    }

        .header-logo span {
            font-size: 35px;
        }

    .login-button {
        padding: 10px;
        font-size: 0;
    }

        .login-button i {
            font-size: 14px;
        }

    .cart-button {
        width: 34px;
        height: 34px;
    }
}

/* ==================================================
   SAGE STORE — COR DAS CATEGORIAS DO HEADER
================================================== */

/* FORTNITE — AZUL GELO */

.site-header .nav-left a.nav-link-fortnite::after {
    background: #6fe6ff !important;
    box-shadow: 0 0 9px rgba(111, 230, 255, 0.60) !important;
}

.site-header .nav-left a.nav-link-fortnite:hover,
.site-header .nav-left a.nav-link-fortnite.active {
    color: #9cefff !important;
    text-shadow: 0 0 10px rgba(111, 230, 255, 0.20);
}

    .site-header .nav-left a.nav-link-fortnite.active::after {
        transform: scaleX(1) !important;
    }


/* ==================================================
   VALORANT — VERMELHO
================================================== */

.site-header .nav-left a.nav-link-valorant::after {
    background: #ff4655 !important;
    box-shadow: 0 0 7px rgba(255, 70, 85, 0.85), 0 0 15px rgba(255, 70, 85, 0.35) !important;
}

.site-header .nav-left a.nav-link-valorant:hover,
.site-header .nav-left a.nav-link-valorant.active {
    color: #ff526c !important;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.35) !important;
}

    /* BARRINHA SEMPRE VISÍVEL QUANDO ESTIVER NO VALORANT */

    .site-header .nav-left a.nav-link-valorant.active::after {
        transform: scaleX(1) !important;
    }


/* ==================================================
   MENU MOBILE
================================================== */

.site-header .mobile-menu a.nav-link-fortnite.active {
    color: #9cefff !important;
}

.site-header .mobile-menu a.nav-link-valorant.active {
    color: #ff526c !important;
}

/* =========================================
   BOTÃO FAVORITOS / CARRINHO
========================================= */

.cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(97, 238, 255, 0.22);
    background: linear-gradient(180deg, rgba(11, 20, 28, 0.96), rgba(8, 16, 23, 0.96));
    color: #7ee7ff;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

    .cart-button i {
        font-size: 16px;
        transition: transform 0.22s ease, color 0.22s ease;
    }

    .cart-button::before {
        content: "";
        position: absolute;
        inset: -30%;
        background: radial-gradient(circle, rgba(97, 238, 255, 0.18) 0%, rgba(97, 238, 255, 0) 70%);
        opacity: 0;
        transform: scale(0.7);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    .cart-button:hover {
        transform: translateY(-2px);
        border-color: rgba(97, 238, 255, 0.42);
        box-shadow: 0 0 0 1px rgba(97, 238, 255, 0.10) inset, 0 0 18px rgba(97, 238, 255, 0.18);
    }

        .cart-button:hover i {
            transform: scale(1.08);
            color: #aef6ff;
        }

        .cart-button:hover::before {
            opacity: 1;
            transform: scale(1);
        }

    .cart-button:active {
        transform: scale(0.95);
    }

    /* animação quando clicar */
    .cart-button.is-opening {
        animation: cartPulse 0.45s ease;
        border-color: rgba(97, 238, 255, 0.65);
        box-shadow: 0 0 0 1px rgba(97, 238, 255, 0.16) inset, 0 0 22px rgba(97, 238, 255, 0.32), 0 0 38px rgba(97, 238, 255, 0.16);
    }

        .cart-button.is-opening i {
            animation: cartIconPop 0.45s ease;
            color: #d8fbff;
        }

        .cart-button.is-opening::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            border: 1px solid rgba(97, 238, 255, 0.55);
            animation: cartRing 0.45s ease forwards;
            pointer-events: none;
        }

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cartIconPop {
    0% {
        transform: scale(1) rotate(0deg);
    }

    40% {
        transform: scale(1.20) rotate(-8deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@keyframes cartRing {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

/* ==================================================
   BOTÃO FAVORITOS EXPANSÍVEL
================================================== */

.site-header .cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 42px;
    padding: 0 14px;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(105, 217, 238, 0.28);
    border-radius: 13px;
    background: linear-gradient( 180deg, rgba(12, 25, 32, 0.96), rgba(8, 18, 24, 0.96) );
    color: #71def4;
    text-decoration: none;
    white-space: nowrap;
    transition: width 0.32s cubic-bezier(.2,.8,.2,1), gap 0.32s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}


    /* ÍCONE */

    .site-header .cart-button > i {
        flex-shrink: 0;
        font-size: 15px;
        transition: transform 0.3s ease, color 0.3s ease;
    }


/* TEXTO ESCONDIDO */

.site-header .cart-button-label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    color: #dff9ff;
    font-size: 11px;
    font-weight: 800;
    transform: translateX(-7px);
    transition: max-width 0.32s cubic-bezier(.2,.8,.2,1), opacity 0.22s ease, transform 0.32s ease;
}


/* ==================================================
   PASSAR O MOUSE
================================================== */

.site-header .cart-button:hover,
.site-header .cart-button:focus-visible {
    width: 112px;
    gap: 9px;
    border-color: rgba(105, 217, 238, 0.58);
    background: linear-gradient( 180deg, rgba(17, 42, 52, 0.98), rgba(9, 27, 35, 0.98) );
    box-shadow: 0 0 0 1px rgba(105, 217, 238, 0.06) inset, 0 0 20px rgba(105, 217, 238, 0.17);
}


    .site-header .cart-button:hover > i,
    .site-header .cart-button:focus-visible > i {
        transform: scale(1.08);
        color: #a3f1ff;
    }


    .site-header .cart-button:hover .cart-button-label,
    .site-header .cart-button:focus-visible .cart-button-label {
        max-width: 65px;
        opacity: 1;
        transform: translateX(0);
    }


/* CLIQUE */

.site-header .cart-button:active {
    transform: scale(0.96);
}


/* MANTÉM SUA ANIMAÇÃO DE CLIQUE */

.site-header .cart-button.is-opening {
    border-color: rgba(105, 217, 238, 0.75);
    box-shadow: 0 0 22px rgba(105, 217, 238, 0.30), 0 0 38px rgba(105, 217, 238, 0.12);
}


/* MOBILE */

@media (max-width: 700px) {

    .site-header .cart-button:hover,
    .site-header .cart-button:focus-visible {
        width: 48px;
        gap: 0;
    }

    .site-header .cart-button-label {
        display: none;
    }
}

/* ==================================================
   EFEITO HOVER NA CAIXA INTEIRA DO HEADER
================================================== */

.site-header .header-inner {
    position: relative;
    transition: border-color .28s ease, box-shadow .28s ease, background-color .28s ease, transform .28s ease;
}


    /* PASSOU O MOUSE EM QUALQUER PARTE DO HEADER */

    .site-header .header-inner:hover {
        border-color: rgba(105, 217, 238, .48);
        background-color: rgba(8, 20, 27, .97);
        box-shadow: 0 0 0 1px rgba(105, 217, 238, .06) inset, 0 0 18px rgba(105, 217, 238, .10), 0 8px 30px rgba(0, 0, 0, .24);
        transform: translateY(-1px);
    }


    /* BRILHO LEVE POR CIMA */

    .site-header .header-inner::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        background: linear-gradient( 110deg, transparent 20%, rgba(105, 217, 238, .035) 50%, transparent 80% );
        transition: opacity .28s ease;
    }

    .site-header .header-inner:hover::before {
        opacity: 1;
    }

/* ==================================================
   HEADER — BARRINHA AZUL SUAVE NO HOVER
================================================== */

.site-header .nav-left a,
.site-header .nav-right a {
    position: relative;
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
}

    /* barrinha escondida */
    .site-header .nav-left a::after,
    .site-header .nav-right a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -6px;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: #6fe6ff;
        box-shadow: 0 0 7px rgba(111, 230, 255, .75), 0 0 14px rgba(111, 230, 255, .35);
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        opacity: 0;
        transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
        pointer-events: none;
    }

    /* hover */
    .site-header .nav-left a:hover::after,
    .site-header .nav-right a:hover::after,
    .site-header .nav-left a:focus-visible::after,
    .site-header .nav-right a:focus-visible::after {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }

    /* texto fica um pouco mais vivo */
    .site-header .nav-left a:hover,
    .site-header .nav-right a:hover,
    .site-header .nav-left a:focus-visible,
    .site-header .nav-right a:focus-visible {
        color: #a9f2ff;
        text-shadow: 0 0 9px rgba(111, 230, 255, .22);
    }

/* Número da conta na loja (#SG0201). Pro dono vira link pro preço manual. */
.sg-codigo {
    margin-left: auto;
    color: #8fd8e3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    opacity: .75;
    text-decoration: none;
    white-space: nowrap;
}

.sg-codigo--dono {
    opacity: 1;
    transition: color .4s ease;
}

.sg-codigo--dono:hover,
.sg-codigo--dono:focus-visible {
    color: #fff;
}

.ff-product-price .sg-codigo {
    display: block;
    margin-top: 3px;
    text-align: right;
}
