* {
    box-sizing: border-box;
}

/*==================================Primeira Nav==================================*/
.first-nav-box {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    width: 95%;
    height: 100px;
    margin-left: 100px;
    padding: 10px 20px;
    background-color: #b92f38;
    border: 5px solid #FFFDC8;
}

.first-nav-box img {
    width: 200px;
    height: 80px;
}

.nav1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/*Botões da Primeira Nav*/
.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.nav-links li {
    margin-right: 10px;
}

.nav-links button {
    height: 55px;
    padding: 0 25px;
    font-family: sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #FFFDC8;
    white-space: nowrap;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #FFFDC8;
    border-radius: 50px;
    transition: background-color 0.1s ease;
}

.nav-links button:hover {
    color: #b92f38;
    background-color: #FFFDC8;
}

/*==================================Segunda Nav (vertical)==================================*/
.second-nav-box {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 101;
    width: 100px;
    height: 100vh;
    background-color: #b92f38;
    border: 5px solid #FFFDC8;
}

.nav2 {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-lateral {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    margin: 0;
}

.nav-lateral-text {
    margin: auto 0;
    font-family: sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: center;
}

/* Botões da Segunda Nav */
.nav-links-lateral {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin-top: 0;
    padding-inline-start: 0;
    list-style: none;
}

.nav-links-lateral li {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-links-lateral li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 28px;
    color: #FFFDC8;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.nav-links-lateral li a:hover {
    color: #ffe7a1;
    transform: scale(1.05);
}

.letreiro {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: center;
    white-space: nowrap;
    margin: auto;
    color: #FFFDC8;
    font-size: 4vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    font-weight: 200;
}

.letreiro span {
    font-weight: bold;
}


.procuraMain {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 7px;
}

.procuraMain button {
    display: none;
}

.caixaDeBusca {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 150px;
    max-width: 400px;
}

.caixaDeBusca input {
    width: 100%;
    height: 30px;
    padding: 0 5px;
    color: #FFFDC8;
    background-color: transparent;
    border: 4px solid #FFFDC8;
    border-radius: 0;
    outline: none;
}

#resultados {
    position: absolute;
    top: 25px;
    left: 30px;
    z-index: 999;
    display: none;
    width: calc(100% - 30px);
    max-height: 250px;
    overflow-y: auto;
    background-color: #FFFDC8;
}

/*==================================Categorias==================================*/
.dropdown {
    position: relative;
    display: inline-block;
}

.button-categorias {
    height: 55px;
    padding: 0 25px;
    font-family: sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #FFFDC8;
    white-space: nowrap;
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #FFFDC8;
    transition: background-color 0.1s ease;
}

.dropdown:hover .button-categorias {
    color: #b92f38;
    background-color: #FFFDC8;
}


.dropdown-content {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 1000;
    display: none;
    overflow: hidden;
    min-width: 160px;
    text-align: center;
    background-color: #DD5A43;
    border: 4px solid #FFFDC8;
    box-shadow: 0 8px 16px #b92f387c;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    font-family: sans-serif;
    font-weight: bold;
    color: #FFFDC8;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #b92f38;
}

.burger-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #b92f38;
    height: 8vh;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list {
    letter-spacing: 3px;
}

.mobile-menu div {
    width: 32px;
    height: 2px;
    background-color: #FFFDC8;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}


.burger-menu {
    display: none;
}

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .second-nav-box {
        width: 80px;
    }

    .first-nav-box {
        width: calc(100% - 80px);
        margin-left: 80px;
        height: 90px;
        padding: 8px 15px;
    }

    .first-nav-box img {
        width: 150px;
        height: auto;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links li {
        margin-right: 0;
    }

    .nav-links button,
    .button-categorias {
        height: 45px;
        padding: 0 15px;
        font-size: 16px;
    }

    .nav-links-lateral {
        gap: 15px;
    }

    .nav-links-lateral li a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .nav-lateral-text {
        font-size: 18px;
    }

    .letreiro {
        font-size: 3vh;
    }

    .caixaDeBusca {
        max-width: 250px;
    }

    .caixaDeBusca input {
        height: 28px;
    }
}


@media screen and (max-width: 768px) {

    body {
        overflow-x: hidden;
    }



    .second-nav-box {
        display: none;
    }



    .first-nav-box {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin-left: 0;
        padding: 10px;
        gap: 10px;
        left: 0;
    }

    .first-nav-box img {
        width: 140px;
        height: auto;
    }

    .nav1 {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
        gap: 8px;
    }

    .nav-links button {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .caixaDeBusca {
        width: 100%;
        max-width: 100%;
    }

    .caixaDeBusca input {
        height: 35px;
        font-size: 14px;
    }

    #resultados {
        width: 100%;
        left: 0;
    }



    .burger-menu {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 2000;

        display: block;

        width: auto;
        height: auto;

        background-color: transparent;
    }


    .mobile-menu {
        position: relative;
        z-index: 2002;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;

        width: 50px;
        height: 50px;

        padding: 10px;

        cursor: pointer;

        background-color: #b92f38;
        border: 3px solid #FFFDC8;
    }

    .mobile-menu div {
        width: 100%;
        height: 3px;

        background-color: #FFFDC8;

        transition: all 0.3s ease;
    }



    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2001;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        width: 280px;
        height: 100vh;

        margin: 0;
        padding: 100px 0 30px;

        list-style: none;

        background-color: #b92f38;
        border-right: 5px solid #FFFDC8;

        transform: translateX(-100%);

        transition: transform 0.3s ease;
    }


    .nav-list.active {
        transform: translateX(0);
    }


    .nav-list li {
        width: 100%;
        opacity: 1;
    }

    .nav-list li a {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        width: 100%;

        padding: 20px 30px;

        gap: 20px;

        font-family: sans-serif;
        font-size: 20px;
        font-weight: bold;

        color: #FFFDC8;

        text-decoration: none;

        transition: background-color 0.2s ease;
    }

    .nav-list li a:hover {
        background-color: #DD5A43;
    }

    .nav-list li a i {
        width: 30px;

        font-size: 24px;

        text-align: center;
    }


    .mobile-menu.active .line1 {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu.active .line2 {
        opacity: 0;
    }

    .mobile-menu.active .line3 {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}