*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #111111;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
}

header {
    padding: 10px 32px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #1f1e1e;
    border-bottom: 3px solid #f0a500;
}

.marca {
    display: block;
    height: 88px;
}

.marca img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
}

nav {
    display: flex;
    justify-content: center;
    gap: clamp(22px, 3vw, 42px);
}

nav a {
    color: #fafafa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #f0a500;
}

/*Hero*/
#inicio {
    min-height: 620px;
    padding: 80px 24px;
    display: grid;
    place-items: center;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    background-image:
        linear-gradient(rgba(8, 8, 8, 0.68), rgba(8, 8, 8, 0.78)),
        url("imagens/otimizadas/imagem-principal.jpg");
    background-size: cover;
    background-position: center;
}

#inicio h1 {
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.75);
}

#inicio p {
    max-width: 660px;
    margin-right: auto;
    margin-left: auto;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/*Botões*/
#inicio button,
#inicio a {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 6px;
    font-size:16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

#inicio button {
    background-color: #f0a500;
    color: #111111;
    border: none;
}

#inicio a {
    border: 1px solid #f0a500;
    color: #f0a500;
    margin-left: 10px;
}

#inicio button:hover {
    background-color: #ffb900;
}

#inicio a:hover {
    background-color: #f0a500;
    color: #111111;
}

/*Botões Hero*/
.hero-botões {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.hero-conteudo {
    width: min(100%, 820px);
    position: relative;
    z-index: 1;
}

/*Cardápio*/
#cardapio {
    padding: 80px 60px;
    text-align: center;
}

#cardapio h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

#cardapio > p {
    color:#cccccc;
    margin-bottom:30px;
}

#busca {
    width: 100%;
    max-width: 500px;
    padding: 14px 18px;
    margin-bottom: 40px;
    background-color: #1c1c1c;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
}

.produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.produto {
    background-color: #1c1c1c;
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 20px;
    text-align: left;
}

.produto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.produto h3 {
    font-size: 22px;
    margin: 20px 20px 10px;
}

.produto p {
    color: #bbbbbb;
    margin: 0 20px 15px;
    line-height: 1.5;
}

.produto strong {
    display: block;
    color: #f0a500;
    margin: 0 20px 15px;
}

.produto button {
    margin: 20px;
    padding: 10px 18px;
    background-color: #f0a500;
    color: #111111;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/*Cardápio*/
#cardapio {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 30px;
    text-align: center;
}

#cardapio h2 {
    font-size: 36px;
    margin-bottom: 8px;
}

#cardapio > p {
    color: #cccccc;
    margin-bottom: 20px;
}

/*Campo de busca*/
#busca {
    width: 100%;
    max-width: 500px;
    padding: 14px;
    margin-bottom: 30px;
    background-color: #1b1b1b;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 15px;
}

#busca:focus {
    outline: none;
    border-color: #f0a500;
}

/* Grade dos produtos*/
.produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: left;
}

.departamento-cardapio {
    margin-top: 42px;
}

#busca + .departamento-cardapio {
    margin-top: 0;
}

.departamento-cardapio > h3 {
    margin-bottom: 18px;
    color: #f0a500;
    font-size: 26px;
    text-align: left;
}

/* Card*/
.card {
    background-color: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;

    width: 100%;
    max-width: 100%;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Imagem do card */

.card > img {
    width: 100%;
    height: 190px;

    object-fit: cover;
    display: block;
}

/* Conteúdo */

.card-conteudo {
    padding: 15px;
}

.card-conteudo h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.card-conteudo p {
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
    min-height: 42px;
    margin-bottom: 10px;
}

.card-conteudo strong {
    display: block;
    color: #f0a500;
    margin-bottom: 12px;
}

/* Botão */

.card button {
    background-color: #f0a500;
    color: #111111;

    border: none;
    border-radius: 5px;

    padding: 9px 15px;

    font-weight: bold;
    cursor: pointer;
}

.card button:hover {
    background-color: #ffb900;
}

/* RESPONSIVO */

@media (max-width: 800px) {

    .produtos {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {
    #cardapio {
        padding: 60px 20px;
    }

    .produtos {
        grid-template-columns: 1fr;
    }

}

.quantidade {
    display:block;
    margin-top: 10px;
    color:#f0a500;
    font-size: 14px;
    font-weight: bold;
}

#carrinho {
    max-width: 1000px;
    margin: 80px auto;
    padding: 40px;
    background-color: #1b1b1b;
    border-radius: 12px;
}

#carrinho h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

#lista-carrinho {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-carrinho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: #242424;
    border-radius: 8px;
}

.item-carrinho p {
    margin: 5px 0 0;
    color: #aaa;
}

.quantidade {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantidade button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background-color: #f0a500;
    color: #111;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.quantidade span {
    min-width: 25px;
    text-align: center;
    font-weight: bold;
}

.item-carrinho > button {
    padding: 8px 12px;
    border: 1px solid #f0a500;
    border-radius: 5px;
    background: transparent;
    color: #f0a500;
    cursor: pointer; 
}

.carrinho-total {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: right;
    font-size: 24px;
    color: #f0a500;
}

#finalizar-pedido {
    margin-top: 25px;
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    background-color: #f0a500;
    color: #111;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

#finalizar-pedido:hover {
    background-color: #ffb900;
}

#finalizar-pedido:disabled {
    background-color: #777;
    color: #d8d8d8;
    cursor: not-allowed;
}

/*Dados do Cliente*/
#dados-cliente {
    max-width: 1060px;
    margin:40px auto;
    padding: 30px;
    background: #1c1c1c;
    border-radius: 12px;
    box-sizing: border-box;
}

#dados-cliente h2 {
    margin-top: 0;
    margin-bottom: 25px;
}

#dados-cliente input,
#dados-cliente textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
    background: #252525;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 16px;
}

#dados-cliente textarea {
    min-height: 100px;
    resize: vertical;
}

#dados-cliente input:focus,
#dados-cliente textarea:focus {
    outline: none;
    border-color: #f5a900;
}

#observacao-pedido::placeholder {
    color: #777;
    opacity: 1;
}

.mensagem-erro {
    display: block;
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* CARDÁPIO E PEDIDO EM TELAS MENORES */
@media (max-width: 700px) {
    header {
        padding: 10px 24px 14px;
        gap: 6px;
    }

    .marca,
    .marca img {
        width: 76px;
        height: 76px;
    }

    #cardapio {
        margin: 48px auto;
        padding: 0 16px;
    }

    #cardapio h2 {
        font-size: 30px;
    }

    #busca {
        margin-bottom: 24px;
    }

    #dados-cliente,
    #carrinho {
        margin: 32px 16px;
        padding: 20px;
        border-radius: 10px;
    }

    #carrinho h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .item-carrinho {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .item-carrinho > div:first-child {
        flex: 1 1 100%;
    }

    .item-carrinho > button {
        margin-left: auto;
    }

    .carrinho-total {
        font-size: 20px;
    }

    #finalizar-pedido {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 16px 12px;
        flex-direction: column;
        gap: 4px;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 20px;
    }

    #inicio {
        min-height: 560px;
        padding: 64px 20px;
        background-position: center;
    }

    .hero-conteudo {
        width: 100%;
    }

    #inicio h1 {
        font-size: 36px;
    }

    .hero-botões {
        flex-wrap: wrap;
    }
}

/* RODAPÉ */
.rodape {
    margin-top: 72px;
    background: #0a0a0a;
    border-top: 1px solid #3a2b17;
}

.rodape-conteudo {
    max-width: 1060px;
    margin: 0 auto;
    padding: 48px 30px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.rodape-sobre {
    max-width: 480px;
    color: #c9c9c9;
    line-height: 1.6;
}

.rodape-marca {
    margin-bottom: 10px;
    color: #f0a500;
    font-size: 24px;
    font-weight: 700;
}

.rodape-contato {
    min-width: 240px;
}

.rodape-contato h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.rodape-contato p {
    margin-bottom: 12px;
    color: #c9c9c9;
}

.rodape-contato a {
    color: #f0a500;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.rodape-contato a:hover {
    color: #ffb900;
}

.rodape-direitos {
    padding: 18px 30px;
    border-top: 1px solid #252525;
    color: #888;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 600px) {
    .rodape {
        margin-top: 48px;
    }

    .rodape-conteudo {
        padding: 36px 24px;
        flex-direction: column;
        gap: 30px;
    }

    .rodape-direitos {
        padding: 16px 24px;
        line-height: 1.5;
    }
}

/* MODALIDADE DE ENTREGA */

.tipo-entrega {
    margin: 20px 0;
}

.tipo-entrega p {
    margin-bottom: 12px;
    font-weight: 600;
}

.opcoes-entrega {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opcao-entrega {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    width: fit-content;
    line-height: 1.4;
}

.opcao-entrega input[type="radio"] {
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 0;
    /* Compensa a diferença entre a altura do radio e a linha de texto. */
    margin-top: 3px;
    flex: 0 0 18px;
    accent-color: #ff9800;
}

.opcao-entrega span {
    flex: 1;
}
