@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Bebas+Neue&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Bebas+Neue&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200..700&display=swap');

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

/*Base (MOBILE FIRST */
body {
    margin: 0;
    padding: 0;
    padding-top: 70px;
    padding-bottom: 70px; /* espaço pra tab bar */
    background-color: #f5f5f5;
}

/* HEADER DESKTOP - escondido no mobile */
header {
    display: none;
}

/* HEADER MOBILE - só logo */
.header-mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background-color: #f5f5f5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    align-items: center;
    height: 65px;
}

.header-mobile h1 {
    margin: 0;
    line-height: 0;
}

.header-mobile img {
    width: 70px;
    height: auto;
    display: block;
}


.tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
    justify-content: space-around;
    align-items: center;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    transition: 0.2s;
    position: relative;
}

.tab-btn i {
    font-size: 20px;
}

.tab-btn.ativo {
    color: #ff6200;
}

.tab-btn span {
    font-size: 10px;
}

#contador-mobile {
    position: absolute;
    top: 4px;
    right: 8px;
    background: red;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

#contador-mobile.ativo {
    opacity: 1;
}

.banner {
    width: 100%;
    height: 55vh;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: right bottom;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 60%;
}

.banner-text h1 {
    font-family: 'Anton', sans-serif;
    color: #ff6200;
    font-size: 2.2rem;
    line-height: 0.95;
    margin-bottom: 10px;
    text-transform: uppercase;

}

.suafome {
    color: #331207;
}

.banner-text p {
    display: none; /* esconde no mobile pra não poluir */
}

.destaque-carne {
    font-family: "Anton", sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    text-transform: uppercase;
    background-color: #f86700;
    padding: 6px 10px;
    width: fit-content;
    border-radius: 10px;
    margin-bottom: 6px;
    
}

.preco-banner {
    font-family: 'Oswald', sans-serif;
    color: #331207;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
}

.cifrao {
    font-size: 0.9rem;
    margin-top: 6px;
    font-weight: bold;
}

.valor {
    font-size: 2.8rem;
    line-height: 1;
}

.centavos {
    font-size: 1.3rem;
    margin-top: 4px;
}

.categorias-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    z-index: 100;
    overflow-x: auto;
    white-space: nowrap;
    background: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.16);
    margin-top: 15px;
    scrollbar-width: none;
}

.categorias-container::-webkit-scrollbar {
    display: none;
}

.categoria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    font-size: 12px;
    padding: 8px;
    border: none;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    color: #663415;
    font-size: 11px;
    transition: 0.3s;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.categorias-container .categoria-item img {
    width: 50px;
    height: 35px;
    object-fit: contain;
    margin-bottom: 4px;
}

.categoria-item.ativo {
    border-bottom: 3px solid #ff6200;
    color: #ff6200;
}


.chamada-vitrine {
    display: flex;
    justify-content: flex-start;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 0 15px;
}

.chamada-vitrine h2 {
    font-family: "fraunces", serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    color: #ff6200;
    text-transform: uppercase;
    position: relative;
}

.chamada-vitrine h2::after {
    content: '';
    display: block; 
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #270d04;
    margin-top: 6px;
}

h2 {
    margin-left: 0;
    margin-top: 0;
    padding-left: 0;
}

.vitrine {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 14px;
    padding: 10px 15px 20px 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vitrine::-webkit-scrollbar {
    display: none;
}

.card {
    min-width: 155px;
    max-width: 155px;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 14px 0 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.card:active {
    transform: scale(0.97);
}

.img-produto {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
}

.info-produto {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 8px 10px 0 10px;
}

.info-produto h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #000000;
    margin-bottom: 6px;
    text-align: left;
    font-weight: 600;
}

.preco-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 10px;
}

.preco {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
}

.btn-add {
    background-color: #f86700;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

#carrinho {
    position: fixed;
    right: -75%;
    top: 0;
    width: 65%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    padding: 20px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1002;
    border-left: 3px solid #ff7a00;
    transition: right 0.3s ease;
}

#carrinho.ativo {
    right: 0;
}

#carrinho h2 {
    font-family: "Fraunces",serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff6200;
}

#carrinho ul {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

#carrinho li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

#carrinho li span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

#carrinho button {
    border: none;
    background: #ff7a00;
    color: white;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 5px;
    transition: 0.2s;
}

#carrinho button:hover {
    background: #e66900;
}

#finalizar {
    font-family: 'Bebas Neue',sans-serif;
    letter-spacing: 1px;
    background: #28a745;
    padding: 14px;
    border-radius: 10px;
    font-size: 20px;
    transition: 0.2s;
    width: 100%;
}

#finalizar:hover {
    background: #218838;
}

.resumo {
    font-family: 'Oswald', sans-serif;
    margin: 10px;
    border-top: 2px solid #ccc;
    font-weight: 600;
    font-size: 18px;
}

/* contador desktop (escondido no mobile) */
#contador {
    display: none;
}


#toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
}

#toast.ativo {
    opacity: 1;
}

/*desktop*/

@media (min-width: 768px) {

    body {
        padding-top: 90px;
        padding-bottom: 0;
    }

    /* Mostra header desktop, esconde mobile e tab bar */
    header {
        display: flex;
        position: fixed;
        top: 0;
        box-sizing: border-box;
        z-index: 1001;
        width: 100%;
        transition: transform 0.3s ease-in-out;
        justify-content: space-between;
        align-items: center;
        padding: 14px 30px;
        background-color: #f5f5f5;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    header img {
        width: 100px;
        height: auto;
        display: block;
    }

    header h1 {
        margin: 0;
        line-height: 0;
    }

    .header-mobile {
        display: none;
    }

    .tab-bar {
        display: none;
    }

    /* Navbar desktop */
    .desktop-nav {
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .nav-btn {
        background: none;
        border: none;
        font-family: "fraunces", serif;
        font-size: 20px;
        font-weight: 700;
        color: #ff6200;
        cursor: pointer;
        transition: 0.3s;
        letter-spacing: -1px;
        text-transform: uppercase;
        position: relative;
    }

    .nav-btn:hover {
        color: #63301f;
    }

    #btn-carrinho {
        position: relative;
    }

    #contador {
        display: flex;
        position: absolute;
        top: -5px;
        right: -10px;
        background: red;
        color: white;
        font-size: 12px;
        width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        opacity: 0;
        transition: 0.3s;
        pointer-events: none;
    }

    #contador.ativo {
        opacity: 1;
    }

    /* Banner desktop */
    .banner {
        height: 80vh;
    }

    .banner-text {
        left: 8%;
        max-width: 450px;
    }

    .banner-text h1 {
        font-size: 4rem;
    }

    .banner-text p {
        display: block;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #421d10;
        max-width: 500px;
        margin-bottom: 20px;
    }

    .destaque-carne {
        font-size: 2rem;
        padding: 10px;
        border-radius: 15px;
    }

    .valor {
        font-size: 4.5rem;
    }

    .centavos {
        font-size: 2rem;
    }

    .cifrao {
        font-size: 1.2rem;
        margin-top: 10px;
    }

    /* Categorias desktop */
    .categorias-container {
        justify-content: center;
        margin-top: 40px;
        gap: 20px;
    }

    .categoria-item {
        min-width: 100px;
        flex-direction: column;
        font-size: 13px;
        gap: 5px;
    }

    .categorias-container .categoria-item img {
        width: 100px;
        height: 45px;
    }


    .chamada-vitrine {
        justify-content: center;
        margin-top: 60px;
        margin-bottom: 40px;
    }

    .chamada-vitrine h2 {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .chamada-vitrine h2::after {
        width: 100px;
        height: 4px;
        margin: 20px auto 0 auto;
    }

    .vitrine {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: space-around;
        gap: 20px;
        padding: 20px 40px 100px 40px;
        scroll-snap-type: none;
    }

    .card {
        min-width: 180px;
        max-width: 180px;
    }

    .card:hover {
        transform: translateY(-7px);
    }

    .img-produto {
        height: 150px;
    }

    #carrinho {
        right: -320px;
        width: 320px;
        padding: 20px;
        padding-bottom: 20px;
    }

    #toast {
        bottom: 20px;
    }
}