/* =========================================================
|--------------------------------------------------------------------------
| NAVBAR
|--------------------------------------------------------------------------
========================================================= */

.navbar
{
    width: 100%;

    background: #0b1220;

    border-bottom: 1px solid rgba(255,255,255,.06);

    display: flex;

    flex-direction: column;
}

/* =========================================================
LOGO (IMAGEM)
========================================================= */

.navbar-logo a
{
    display: flex;

    align-items: center;

    justify-content: flex-end;

    text-decoration: none;
}

.navbar-logo img
{
    height: 42px;

    width: auto;

    object-fit: contain;

    border-radius: 10px;

    transition: .3s ease;
}

/* efeito leve ao passar mouse */
.navbar-logo img:hover
{
    transform: scale(1.05);
}

/* =========================================================
CONTAINER SUPERIOR
========================================================= */

.navbar-container
{
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
MENU (ESQUERDA)
========================================================= */

.navbar-menu
{
    display: flex;

    align-items: center;

    flex: 1;

    overflow: hidden;
}

.navbar-menu ul
{
    display: flex;

    align-items: center;

    gap: 22px;

    list-style: none;

    padding: 0;

    margin: 0;

    white-space: nowrap;
}

.menu-item
{
    position: relative;

    display: inline-flex;

    align-items: center;
}

.menu-item a
{
    text-decoration: none;

    color: rgba(255,255,255,.75);

    font-size: 14px;

    font-weight: 500;

    transition: .3s ease;

    white-space: nowrap;
}

.menu-item a:hover
{
    color: #ffffff;
}


/* =========================================================
SUBMENU
========================================================= */

.submenu
{
    position: absolute;

    top: 100%;

    left: 0;

    min-width: 180px;

    background: #111a2e;

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 10px;

    padding: 10px 0;

    display: none;

    flex-direction: column;

    z-index: 999;
}

.submenu li
{
    width: 100%;
}

.submenu li a
{
    display: block;

    padding: 10px 14px;

    font-size: 13px;

    color: rgba(255,255,255,.7);
}

.submenu li a:hover
{
    background: rgba(255,255,255,.06);

    color: #fff;
}

.menu-item:hover .submenu
{
    display: flex;
}


/* =========================================================
LOGO (DIREITA)
========================================================= */

.navbar-logo
{
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex: 1;
}

.navbar-logo a
{
    font-size: 18px;

    font-weight: 700;

    color: #ffffff;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
BOTTOM BAR
========================================================= */

.navbar-bottom
{
    width: 100%;

    max-width: 1400px;

    margin: 0 auto;

    padding: 12px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.05);
}


/* =========================================================
SEARCH
========================================================= */

.navbar-search
{
    flex: 1;

    display: flex;

    align-items: center;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 8px;

    overflow: hidden;
}

.navbar-search input
{
    width: 100%;

    padding: 10px 12px;

    background: transparent;

    border: none;

    outline: none;

    color: #fff;

    font-size: 13px;
}

.navbar-search button
{
    background: transparent;

    border: none;

    padding: 0 14px;

    cursor: pointer;

    color: rgba(255,255,255,.7);
}


/* =========================================================
CART
========================================================= */

.navbar-cart
{
    position: relative;

    font-size: 18px;

    color: rgba(255,255,255,.8);

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 6px;
}

.cart-count
{
    background: #2563eb;

    color: #fff;

    font-size: 11px;

    padding: 2px 6px;

    border-radius: 50px;
}


/* =========================================================
USER
========================================================= */

.navbar-user img
{
    width: 34px;

    height: 34px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(255,255,255,.08);
}


/* =========================================================
RESPONSIVO (SEM MOBILE MENU AINDA)
========================================================= */

@media(max-width: 992px)
{
    .navbar-menu ul
    {
        gap: 14px;
    }

    .navbar-logo a
    {
        font-size: 16px;
    }
}

/* =========================================================
NAVBAR BACKGROUND ANIMATION (GRADIENTE DINÂMICO)
========================================================= */

/* IMPORTANTE: garante que a navbar suporte pseudo-elemento */
.navbar
{
    position: relative;
    overflow: hidden;

background: linear-gradient(
    270deg,
    #0b1220,
    #1d4ed8,
    #7c3aed,
    #06b6d4,
    #f97316,
    #0b1220
);

background-size: 1200% 1200%;

animation: navbarGradientMove 10s ease infinite;
}


/* =========================================================
GLASS + BRILHO SUAVE (CAMADA SUPERIOR)
========================================================= */

.navbar::before
{
    content: "";

    position: absolute;

    inset: 0;

    background: radial-gradient(
        circle at top,
        rgba(37, 99, 235, 0.18),
        transparent 60%
    );

    pointer-events: none;

    z-index: 0;
}


/* garante que conteúdo fique acima do efeito */
.navbar-container,
.navbar-bottom
{
    position: relative;

    z-index: 1;
}


/* =========================================================
ANIMAÇÃO DO GRADIENTE
========================================================= */

@keyframes navbarGradientMove
{
    0%
    {
        background-position: 0% 50%;
    }

    50%
    {
        background-position: 100% 50%;
    }

    100%
    {
        background-position: 0% 50%;
    }
}
@media(max-width: 992px)
{
    .navbar-menu ul
    {
        gap: 22px;
    }

    .menu-item a
    {
        font-size: 13px;

        display: flex;

        align-items: center;

        gap: 8px;
    }
}