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

header {
    background-color: #3B2723;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

#logo{
    color: #CFA838;
    font-size: 1.2rem;
    text-decoration: none;
}

#menu-mobile {
    display: none;
    background-color: #3B2723;
    padding: 16px 20px;
}

#menu-mobile ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0;
}

#menu-mobile a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

#menu-mobile.aberto {
    display: block;
}

.nav-links { /* Esconde os links no mobile */
    display: none;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: #c9a84c;
}

.nav-icons {
    display: flex;
    gap: 16px;
}

#btn-carrinho, #btn-menu {
    color: white;
    cursor: pointer;
    padding: 7px;
}

#btn-carrinho:hover, #btn-menu:hover{
    background-color:#c9a84c3d;
    border-radius: 10px;
}
/*------------------ section hero ------------------------*/
#hero {
    background: 
    radial-gradient(
        circle at 25% 40%,
        rgba(92, 70, 55, 0.35) 0%,
        rgba(92, 70, 55, 0.15) 30%,
        transparent 60%
    ),
    linear-gradient(
        to right,
        #4A332B 30%,
        #3B2723 65%,
        #2B1C18 100%
    );
    min-height: calc(100vh - 70px); /* desconta o header */
    display: flex;
    flex-direction: column;
    padding: 35px 20px 15px;
    gap: 32px; /* espaço entre os elementos */
    align-items: center;
}

#hero img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-texto {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;  
}

#titulo {
    color: #CFA838;
    font-weight: lighter;
}

#sub-titulo {
    color: #DDD7C6;
}

#btn-pedir {
    text-decoration: none;
    color: #4A332B;
    background-color: #CFA838;;
    width: 80%;
    padding: 10px;
    border-radius: 10px;
    text-align: center;

}
/*---------------- Categorias -----------------*/
#categorias {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#titulo-categorias {
    color: #3B2723;
    font-weight: 400;
    font-size: 1.5rem;
    padding: 20px 0px;
    text-align: center;
}

#grade-categorias {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.card-categoria {
    background-color: #4A332B;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.card-categoria:hover {
    background-color: #3B2723;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.card-categoria.ativo {
    border: 3px solid #CFA838;
}

/*-----------------------Produtos----------------*/
#produtos {
   display: flex;
    flex-direction: column;
    align-items:flex-start;
    padding: 20px;
}

#produtos-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

#titulo-produtos {
    color: #3B2723;
    font-weight: 400;
    font-size: 1.5rem;
    padding: 20px 0px;
}

#ver-todos {
    color: #CFA838;
    text-decoration: none;
}

#grade-produtos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    margin-top: 16px;
}

.card-produto {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-produto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.card-produto img:hover{
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-info h3 {
    color: #3B2723;
    font-size: 1.1rem;
}

.card-estrelas {
    color: #CFA838;
    font-size: 0.9rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

.card-estrelas span:last-child {
    color: #888;
}

.card-rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.card-preco {
    color: #3B2723;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-adicionar {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #CFA838;
    color: #4A332B;
    padding: 8px;
    border-radius: 50%;
    border: none;
}

.btn-adicionar:hover{
    background-color: #b08b1b;
}

/*------------ Promessa ----------*/
#promessa {
    background-color:  #F5ECD7;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

#grade-promessa {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

#titulo-promessa {
    color: #3B2723;
    font-weight: 500;
    font-size: 1.5rem;
    padding: 20px 0px;
    gap: 10px;

}

.card-promessa {
    background-color:white;
    padding: 15px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    gap: 8px;
    padding: 30px 20px;
}

.icone-promessa {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #CFA838;
    padding: 8px;
    border-radius: 50%;
    border: none;
}

.card-promessa h3 {
    color: #3B2723;
    font-weight: 200;
}

.card-promessa p {
    color: #716a69;
    font-weight: 200;
}

/*------------ Sobre Nós ----------*/
#sobre {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

#titulo-sobre {
    color: #3B2723;
    font-size: 1.8rem;
    font-weight: 500;
}

#texto-sobre {
    color: #555;
    line-height: 1.8;
    max-width: 800px;
}

/*------------ Rodapé ----------*/
footer {
    background-color: #3B2723;
    color: white;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

#footer-colunas {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#footer-marca {
    color: #CFA838;
    font-size: 1.3rem;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

#footer-logo p,
#footer-contato p,
#footer-horario p {
    color: #DDD7C6;
    line-height: 1.8;
    font-size: 0.95rem;
}

#footer-contato h3,
#footer-horario h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

#footer-copyright {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    color: #DDD7C6;
    font-size: 0.85rem;
    width: 100%;
}

#footer-copyright p a {
    text-decoration: none;
    padding-top: 20px;
    text-align: center;
    color: #DDD7C6;
    font-size: 0.85rem;
}

#footer-copyright p a:hover {
    color: #b08b1b;
}

/*------------ Carrinho ----------*/
#icone-carrinho {
    position: relative;
}

#badge-carrinho {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #CFA838;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
}

#overlay.ativo {
    display: block;
}

#drawer-carrinho {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

#drawer-carrinho.aberto {
    transform: translateX(0);
}

#carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#carrinho-header h2 {
    color: #3B2723;
    font-size: 1.3rem;
}

#fechar-carrinho {
    cursor: pointer;
    color: #3B2723;
}

#carrinho-itens {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#carrinho-vazio {
    text-align: center;
    color: #888;
    margin-top: 40px;
}

.item-carrinho {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.item-carrinho img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info p {
    color: #3B2723;
    font-size: 0.95rem;
    font-weight: 500;
}

.item-preco {
    color: #555;
    font-size: 0.9rem;
    margin: 4px 0;
}

.item-controles {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.btn-quantidade {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-quantidade {
    font-size: 0.95rem;
    min-width: 20px;
    text-align: center;
}

.btn-remover {
    background: none;
    border: none;
    cursor: pointer;
    color: #e53935;
    margin-left: auto;
}

#carrinho-rodape {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#carrinho-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    color: #3B2723;
}

#btn-finalizar {
    background-color: #CFA838;
    color: #3B2723;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

#btn-finalizar:hover {
    background-color: #b08b1b;
}

/*------------ Modal Finalizar ----------*/
#modal-finalizar,
#modal-confirmado {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
}

#modal-finalizar.ativo,
#modal-confirmado.ativo {
    display: flex;
}

#modal-conteudo,
#confirmado-conteudo {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#modal-header h2 {
    color: #3B2723;
    font-size: 1.4rem;
}

#fechar-modal {
    cursor: pointer;
    color: #3B2723;
}

.modal-secao h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3B2723;
    font-size: 1rem;
    margin-bottom: 12px;
}

#opcoes-entrega {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.opcao-entrega {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opcao-entrega p {
    font-weight: 500;
    color: #3B2723;
    font-size: 0.95rem;
}

.opcao-entrega small {
    color: #888;
    font-size: 0.8rem;
}

.opcao-entrega.ativo {
    border: 2px solid #CFA838;
    background-color: #fdf6e3;
}

#opcoes-pagamento {
    display: flex;
    gap: 10px;
}

.btn-pagamento {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    color: #3B2723;
}

.btn-pagamento.ativo {
    border: 2px solid #CFA838;
    background-color: #fdf6e3;
}

#campos-cartao {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.campo label {
    display: block;
    font-size: 0.9rem;
    color: #3B2723;
    margin-bottom: 6px;
}

.campo input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.campo input:focus {
    border-color: #CFA838;
}

#campos-linha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#aviso-teste {
    background-color: #fdf6e3;
    border: 1px solid #CFA838;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #3B2723;
}

#modal-rodape {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

#modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 500;
    color: #3B2723;
}

#btn-confirmar {
    background-color: #CFA838;
    color: #3B2723;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

#btn-confirmar:hover {
    background-color: #b08b1b;
}

/*------------ Modal Confirmado ----------*/
#confirmado-conteudo {
    text-align: center;
    align-items: center;
}

#confirmado-icone {
    width: 70px;
    height: 70px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #43a047;
    border: 2px solid #43a047;
}

#confirmado-conteudo h2 {
    color: #3B2723;
    font-size: 1.5rem;
}

#confirmado-conteudo > p {
    color: #555;
}

#confirmado-info {
    background-color: #fdf6e3;
    border-radius: 12px;
    padding: 16px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.info-linha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-linha small {
    color: #888;
    font-size: 0.8rem;
}

.info-linha p {
    color: #3B2723;
    font-weight: 500;
}

#btn-novo-pedido {
    background-color: #CFA838;
    color: #3B2723;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

#btn-novo-pedido:hover {
    background-color: #b08b1b;
}



/*=========== Desktop (a partir de 768px) ============== */
@media (min-width: 768px) {
    nav{
        padding: 30px 32px;
    }

    #logo {
        font-size: 2rem;
    }

    /* Esconde o hambúrguer no desktop */
    #btn-menu {
        display: none;
    }

    /* Mostra os links no desktop */
    .nav-links {
        display: flex;
        gap: 32px;
    }

    .nav-links a{
        font-size: 1.2rem;
    }

    .nav-icons {
        padding: 0 20px;
        font-weight: 500;
    }
    /*--------- section hero -----------*/
    #hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 60px 80px;
        min-height: calc(100vh - 98px); 
    }

    #hero img {
        width: 45%;
        height: auto;
        object-fit: unset; 
        max-height: 500px;
    }

    #hero .hero-texto {
        width: 50%;
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        text-align: left;
    }

    #titulo {
        font-size: 4rem;
    }

    #sub-titulo{
        font-size: 1.8rem;
    }

    #btn-pedir {
        width: auto;
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    #btn-pedir:hover {
        background-color: #b08b1b;
    }

    /*---categoria---*/
    #grade-categorias {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }

    #titulo-categorias {
        font-size: 2rem;
    }

    .card-categoria {
    font-size: 1rem;
    }

    .card-categoria .material-symbols-outlined {
        font-size: 2rem;
    }

    .card-categoria.ativo {
    border: 5px solid #CFA838;
    }

    /*-------produtos-----*/
    #grade-produtos {
    grid-template-columns: repeat(3, 1fr);
    }

    #produtos {
        padding: 40px 80px;
    }

    /*------Promessa -----*/
    #grade-promessa {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    #titulo-promessa {
        font-size: 2rem;
    }

    .card-promessa h3 {
    font-size: 1.3rem;
    }

    .card-promessa p {
        font-size: 1rem;
    }

    .icone-promessa {
        font-size: 2rem;
        width: 65px;
        height: 65px;
    }
    /*----sobre----*/
    #sobre {
        padding: 60px 80px;
    }

    #titulo-sobre {
        font-size: 2.5rem;
    }

    #texto-sobre {
        font-size: 1.1rem
    }

     /*----rodapé----*/
    footer {
        padding: 60px 80px;
        flex-direction: column; /* mantém coluna */
    }

    #footer-colunas {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #footer-colunas > div {
        width: 30%;
    }

    #footer-copyright {
        font-size: 1rem;
    }

    #footer-copyright p a {
        font-size: 1rem;
    }

    /*----carrinho---*/
    #drawer-carrinho {
        width: 420px;
    }
}