/* :root {
    --cor-ciclo-primaria: #CD1417;
    --cor-topbar: #272e61;
} */
/* ----- Classe Universal para o grid das barras de navegacao ----- */
.top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
    width: 100%;
    height: 50px;
    background: var(--cor-ciclo-primaria);
    color: #ffffff;
}
.icone-navbar {
    font-size: 25px !important;
}
/* ----- Barra superior com logo, paginacao e botao de pesquisa ----- */
.title-bar {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1% 4%;
    width: 100%;
    height: 50px;

    &>.title-bar__grid {
        display: flex;
        justify-content: center;
        flex: 1 30%;
    
        &:first-child {
            justify-content: start;
        }

        &:last-child {
            justify-content: end;
            align-items: center;
            gap: 3vw;
        }

        &>img {
            width: 80%;
        }

        &>.container-paginacao {

            &>#current-page-mobile {
                text-align: center;
                background-color: lightgray;
                border: none;
                border-bottom: 1px solid grey;
                border-radius: 5px;
            }
        }

        &>.title-bar__search {
            display: flex; 
            align-items: center; 
            justify-content: center;
            background-color: transparent;
            border: none;

            &>i {
                font-size: 25px;
            }
        }
    }
}
/* ----- Dois botoes para passar de pagina no mobile ----- */
.passador-de-pags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 3vh;
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translate(-50%);
    z-index: 1000;
    width: 40%;
    height: 50px;

    &>div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 6vh;
        height: 6vh;
        padding: 5%;
        background-color: var(--cor-ciclo-primaria);
        border-radius: 100%;
        font-size: 30px;
        font-weight: 900;
        color: white;
        box-shadow: 2px 2px 5px 0px #00000055;

        &.previous-button-mobile {
            &>i {
                transform: translateX(-2px);
            }
        }

        &.next-button-mobile {
            &>i {
                transform: translateX(2px);
            }
        }
    }   
}
/* ----- Versao da barra de navegacao para mobile ----- */
#header-mobile {
    display: flex;

    &>div {
        flex: 1 20%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 100 !important;
        height: 100%;
        background-color: var(--cor-topbar);
        transition: .3s all linear;

        &>i {
            font-size: 20px;
        }

        &>img {
            width: 50%;
        }

        &>.icone-oferta {
            width: 24%;
        }

        &:active {
            transition: .3s all linear;
            background-color: #333963;
        }
    }
}
/* ----- Notificacao de quantidade de itens incluidos no carrinho ----- */
.button-carrinho-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.notify-carrinho {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -25%;
    right: -35%;
    z-index: 101;
    width: 15px;
    height: 15px;
    background-color: orangered;
    border-radius: 50%;   

    & > p {
        color: #FFF;
        margin: 0;
        font-size: 10px;
    }
}
/* ----- Opcoes (Zoom in, Zoom out e Ofertas) usadas no desktop  ----- */
#opcoes-extras {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 2vw;
    position: fixed;
    right: 0;
    bottom: 75px;
    z-index: 1000;
    width: 20%;

    &>div {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 15vw;
        height: 15vw;
        background-color: var(--cor-topbar);
        border-radius: 50%;
        box-shadow: 2px 2px 5px 0px #00000055;
        transform: translateY(300px); 

        &:first-child {
            width: 17vw;
            height: 17vw;
            background-color: var(--cor-ciclo-primaria);
        }

        &>i {
            color: #fff;
        }
    }
}

@media screen and (min-width: 475px) {
    .icone-oferta {
        width: 20% !important;
    }

    .notify-carrinho {
        top: -15% !important;
        right: -50% !important;
    }
    

    .top {
        height: 65px;
    }
}

@media screen and (min-width: 1025px) {
    .notify-carrinho {
        top: -14% !important;
        right: -60% !important;
        width: 20px !important;
        height: 20px !important;
    }
}

.swipeUp {
    animation: swipeUp .5s ease forwards;

    &:nth-child(1) {
        animation-delay: .3s;
    }
    &:nth-child(2) {
        animation-delay: .2s;
    }
    &:nth-child(3) {
        animation-delay: .1s;
    }
}
@keyframes swipeUp {
    0% {
        transform: translateY(300px); 
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.swipeDown {
    animation: swipeDown .9s ease forwards;

    &:nth-child(1) {
        animation-delay: .1s;
    }
    &:nth-child(2) {
        animation-delay: .2s;
    }
    &:nth-child(3) {
        animation-delay: .3s;
    }
}
@keyframes swipeDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(300px);
        opacity: 0;
    }
    
}