﻿.cardapio-header {
    margin: 0px 0;
    width:100%;
}

.banner-imagem img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color:var(--cor_principal);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    width: 95%;
    margin: 12px auto 0px auto;
    flex-wrap: wrap;
    padding:1em 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f8f8f8;
    color: #b22222;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

    .action-btn i {
        font-size: 1.1rem;
    }

    .action-btn:hover {
        background-color: #f0f0f0;
        transform: translateY(-1px);
    }











.cardapio-container {
    width: 90%;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    overflow-x: auto;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    border-bottom: 1px solid #b22222;
    width: 100%;
    margin: 0 auto;
    top: 0;
    position: sticky;
    z-index: 1000;
}



    .nav-menu button {
        padding: 12px 20px;
        border: none;
        background: none;
        font-weight: 600;
        cursor: pointer;
        color: #555;
        flex-shrink: 0;
        white-space: nowrap;
        transition: color 0.3s;
    }

        .nav-menu button:hover {
            color: #b22222;
        }

        .nav-menu button.active {
            color: #b22222;
            border-bottom: 2px solid #b22222;
        }

.section-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 24px 16px 12px;
}

.item-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 0 16px 32px;
}

.item {
    display: flex;
    height: 150px; /* ← nova altura do card */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
}

    .item:hover {
        transform: translateY(-2px);
    }

    .item img {
        width: 140px;
        height: 100%; /* ← imagem ocupa toda altura do card */
        object-fit: cover;
        flex-shrink: 0;
        border-bottom-left-radius: 10px;
    }

.item-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    height: 100%; /* ← garante que a descrição também ocupe toda a altura */
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
}

.item-price {
    font-size: 0.95rem;
    font-weight: bold;
    color: #b22222;
}

.item-desc {
    font-size: 0.85rem;
    color: #555;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.btn-fechar-modal {
    position: absolute;
    top: -2px;
    right: -2px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #b22222;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}




/********************************************************************* Modal de abrir item */

.modal-item-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

/* Modal principal */
.modal-item {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 24px;
}

    .modal-item.ativo {
        bottom: 0;
    }

.modal-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.modal-item-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
}

.modal-item-nome {
    font-size: 1.5rem;
    color: #b22222;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.modal-item-preco {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

.modal-item-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    text-align: justify;
    padding: 0 8px;
}



.ajuste_completo {
    display: flex;
    align-items: center;
    justify-content:center;
    gap: 6px;
    background-color: #f8f8f8;
    color: #b22222;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}



.limite-alerta {
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: #fff8e1;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #6b5b00;
    border: 1px solid #ffe082;
}



/* Melhor adaptação para telas grandes */
@media screen and (min-width: 1024px) {
    .banner-imagem img {
        max-height: 200px;
    }
    .item-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablets */
@media only screen and (max-width: 768px) {
    .banner-imagem img {
        max-height: 200px;
    }
    .item-container {
        grid-template-columns: repeat(1, 1fr);
    }
    .modal-item-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Celulares */
@media only screen and (max-width: 480px) {
    .banner-imagem img {
        max-height: 200px;
    }
    .cardapio-container {
        width: 100%;
    }
    .item-container {
        grid-template-columns: 1fr;
    }

    .item img {
        width: 130px;
        height: 130px;
    }

    .item-title {
        font-size: 0.95rem;
    }

    .item-price {
        font-size: 0.9rem;
    }

    .item-desc {
        font-size: 0.8rem;
    }
}
