/* CONFIGURAÇÕES GERAIS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fffaf3;
    color: #422719;
}

/* CABEÇALHO */

header {
    background-color: #4b2e20;
    color: #fffaf3;
    padding: 22px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
}

nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: #fffaf3;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: 0.3s;
}

nav a:hover {
    color: #e8b878;
}

/* INÍCIO */

.inicio {
    min-height: 550px;
    background: radial-gradient(ellipse at 75% 45%, #8b5133 0%, #542b1b 48%, #32170f 100%);
    display: flex;
    align-items: center;
    padding: 70px 10%;
    color: #fff5e9;
    position: relative;
    overflow: hidden;
}

.conteudo {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.conteudo h1 {
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 22px;
    color: #fff0dc;
}

.conteudo p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #f5dfc8;
}


  

.conteudo h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.conteudo p {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.botao {
    display: inline-block;
    background-color: #c58b55;
    color: white;
    padding: 15px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.botao:hover {
    background-color: #a96e3d;
    transform: translateY(-3px);
}

/* SEÇÕES */

section:not(.inicio) {
    padding: 80px 10%;
    text-align: center;
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #68432d;
}

section p {
    font-size: 17px;
    line-height: 1.8;
}

/* RODAPÉ */

footer {
    background-color: #4b2e20;
    color: white;
    text-align: center;
    padding: 25px;
}

/* RESPONSIVIDADE */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 15px;
    }

    .conteudo h1 {
        font-size: 34px;
    }

    .conteudo p {
        font-size: 16px;
    }

    .inicio {
        min-height: 450px;
        padding: 50px 7%;
    }

    section:not(.inicio) {
        padding: 55px 7%;
    }
}

/* CARDAPIO */

.cardapio {
    padding: 60px 8%;
    text-align: center;
}

.cardapio h2 {
    font-size: 32px;
    color: #4a2b1d;
    margin-bottom: 10px;
}

.subtitulo {
    color: #795b49;
    margin-bottom: 40px;
}

.titulo-categoria {
    font-size: 25px;
    color: #6b4029;
    margin: 40px 0 25px;
}

/* ORGANIZACAO DOS PRODUTOS */

.produtos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* CARTOES */

.produto {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    background: #fffaf4;
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.produto:hover {
    transform: translateY(-5px);
}

/* FOTOS */

.produto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #fffaf4;
}

/* NOMES */

.produto h4 {
    color: #4a2b1d;
    font-size: 18px;
    text-align: center;
    margin: 15px 10px 8px;
}

/* DESCRICOES */

.produto .descricao {
    padding: 0 15px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
}

/* PRECOS */

.produto .preco {
    font-size: 21px;
    font-weight: bold;
    color: #8b573b;
    text-align: center;
    margin: 12px;
}

/* BOTOES */

.produto button {
    margin: 0 15px;
    padding: 12px;
    background: #6b4029;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* CELULARES E TABLETS */

@media (max-width: 768px) {
    .produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .produto img {
        height: 150px;
    }

    .produto h4 {
        font-size: 15px;
    }

    .cardapio {
        padding: 40px 5%;
    }
}

.produtos-centralizados {
    grid-template-columns: repeat(2, minmax(230px, 260px));
    justify-content: center;
    gap: 25px;
}

@media (max-width: 600px) {
    .produtos-centralizados {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* JANELA DE ADICAO AO CARRINHO */

.modal-compra {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-compra.ativo {
    display: flex;
}

.modal-conteudo {
    background: #fffaf3;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.modal-conteudo img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    margin-bottom: 15px;
}

.modal-conteudo h3 {
    color: #4b2e20;
    font-size: 23px;
    margin-bottom: 10px;
}

.modal-conteudo p {
    color: #795b49;
    margin: 12px 0;
}

.fechar-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #4b2e20;
    cursor: pointer;
}

.seletor-quantidade {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 20px 0;
}

.seletor-quantidade button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #6b4029;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.seletor-quantidade span {
    font-size: 20px;
    font-weight: bold;
    color: #4b2e20;
}

#confirmar-adicao {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 25px;
    background: #6b4029;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#confirmar-adicao:hover {
    background: #a96e3d;
}

/* CARRINHO NO CABECALHO */

.botao-carrinho {
position: relative;
background: transparent;
border: none;
color: white;
font-size: 27px;
cursor: pointer;
}

#contador-carrinho {
position: absolute;
top: -8px;
right: -10px;
background: #c58b55;
color: white;
font-size: 11px;
font-weight: bold;
border-radius: 50%;
min-width: 19px;
height: 19px;
display: flex;
justify-content: center;
align-items: center;
}

/* PAINEL DO CARRINHO */

section#carrinho {
    position: fixed;
    top: 0;
    right: -500px;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: #fffaf3;
    padding: 30px 25px;
    z-index: 10001;
    text-align: left;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}

section#carrinho.aberto {
    right: 0;
}

.cabecalho-carrinho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.carrinho h2 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 10px;
}

.fechar-carrinho {
    border: none;
    background: none;
    font-size: 35px;
    color: #4b2e20;
    cursor: pointer;
}

.carrinho .subtitulo {
    text-align: left;
    margin-bottom: 25px;
}

#itens-carrinho {
    width: 100%;
}

.item-carrinho {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #e7d8c8;
}

.item-carrinho img {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.item-carrinho-info {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.item-carrinho-info h4 {
    font-size: 17px;
    line-height: 1.35;
    color: #4b2e20;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    margin-bottom: 8px;
}

.item-carrinho-info p {
    font-size: 14px;
    line-height: 1.5;
    margin: 7px 0;
}

.controles-quantidade {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.controles-quantidade button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #6b4029;
    color: white;
    cursor: pointer;
}

.controles-quantidade span {
    font-size: 15px;
}

.remover-item {
    background: none;
    border: none;
    color: #9b5943;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
}

.resumo-carrinho {
    padding: 22px 0;
    border-top: 1px solid #e7d8c8;
    margin-top: 15px;
}

.resumo-carrinho h3 {
    color: #6b4029;
    margin-bottom: 18px;
}

#ir-para-dados,
#finalizar-pedido {
    width: 100%;
    padding: 15px;
    background: #6b4029;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.dados-cliente {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
}

.dados-cliente.visivel {
    display: flex;
}

.dados-cliente input,
.dados-cliente textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #d8c4ae;
    border-radius: 8px;
    background: white;
    font-family: Arial, sans-serif;
}

.fundo-carrinho {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
}

.fundo-carrinho.ativo {
    display: block;
}

@media (max-width: 600px) {
    section#carrinho {
        width: 100%;
        max-width: 100%;
        padding: 22px;
    }

    .item-carrinho {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 13px;
    }

    .item-carrinho img {
        width: 90px;
        height: 90px;
    }
}

/* AJUSTE VISUAL DO CARRINHO */

.carrinho {
text-align: left;
width: 100%;
max-width: 480px;
padding: 30px 25px;
}

.carrinho h2 {
text-align: left;
}

.carrinho .subtitulo {
text-align: left;
}

.item-carrinho {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e7d8c8;
    width: 100%;
    box-sizing: border-box;
}

.item-carrinho img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.item-carrinho-info {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.item-carrinho-info h4 {
    font-size: 17px;
    color: #4b2e20;
    white-space: normal;
    overflow-wrap: break-word;
    margin-bottom: 8px;
}

.item-carrinho-info h4 {
font-size: 17px;
color: #4b2e20;
text-align: left;
white-space: normal;
overflow-wrap: normal;
word-break: normal;
margin-bottom: 8px;
}

/* NOVA CAPA 3D - MOM'S COOKIES */

.inicio {
    min-height: 620px;
    background:
        radial-gradient(
            circle at 75% 45%,
            #814326,
            #542719 48%,
            #32170f 100%
        );

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 65px 8%;
    overflow: hidden;
    position: relative;
}

.conteudo {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

.selo-hero {
    display: inline-block;
    color: #e8b878;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 22px;
}

.conteudo h1 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.12;
    color: #fff0dc;
    margin-bottom: 25px;
}

.conteudo p {
    color: #f5dfc8;
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.botao {
    background: linear-gradient(
        135deg,
        #e5a04f,
        #bd7836
    );

    padding: 17px 30px;
    border-radius: 40px;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* AREA DO COOKIE */

.hero-visual {
    flex: 1;
    max-width: 570px;
    height: 480px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    perspective: 1200px;
    transform-style: preserve-3d;
    --rx: 0deg;
    --ry: 0deg;
}

.brilho-cookie {
    position: absolute;
    width: 380px;
    height: 380px;

    background: #d47b35;
    border-radius: 50%;

    filter: blur(100px);
    opacity: 0.35;
}

.hero-cookie-img {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 500px;
    height: 430px;

    object-fit: contain;

    filter: drop-shadow(
        0 35px 25px rgba(0,0,0,0.45)
    );

    transform:
        perspective(1000px)
        rotateX(var(--rx))
        rotateY(var(--ry))
        rotateZ(-7deg);

    animation: flutuarCookie 4s ease-in-out infinite;

    transition: transform 0.25s ease-out;
}

/* ANIMACAO DE FLUTUACAO */

@keyframes flutuarCookie {
    0%, 100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(-5deg) rotateZ(-7deg) translateY(0);
    }

    50% {
        transform: perspective(1000px) rotateX(3deg) rotateY(5deg) rotateZ(-5deg) translateY(-25px);
    }
}

/* PEDACOS DE CHOCOLATE */

.chocolate {
    position: absolute;
    z-index: 3;

    width: 25px;
    height: 25px;

    background: linear-gradient(
        135deg,
        #87401f,
        #32140c
    );

    border-radius: 5px;

    box-shadow: 0 8px 15px rgba(0,0,0,0.3);

    animation: chocolateFlutuar 5s ease-in-out infinite;
}

.chocolate-1 {
    top: 15%;
    left: 12%;
}

.chocolate-2 {
    top: 25%;
    right: 10%;
    width: 18px;
    height: 18px;
    animation-delay: 1s;
}

.chocolate-3 {
    bottom: 20%;
    left: 15%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
}

.chocolate-4 {
    bottom: 15%;
    right: 18%;
    animation-delay: 1.5s;
}

@keyframes flutuarCookie {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -22px;
    }
}

/* RESPONSIVIDADE */

@media (max-width: 768px) {

    .inicio {
        flex-direction: column;
        text-align: center;
        padding: 55px 7%;
        gap: 10px;
    }

    .conteudo {
        max-width: 100%;
    }

    .conteudo h1 {
        font-size: 38px;
    }

    .hero-visual {
        width: 100%;
        height: 330px;
    }

    .hero-cookie-img {
        height: 320px;
        max-width: 100%;
    }

    .brilho-cookie {
        width: 230px;
        height: 230px;
    }

}

/* SEÇÃO DE CONTATO */

.contato {
    background: #f5e9dc;
    padding: 75px 10%;
    text-align: center;
}

.contato h2 {
    color: #4b2e20;
    font-family: Georgia, serif;
    font-size: 36px;
}

.contato-descricao {
    color: #795b49;
    margin: 15px auto 35px;
}

.cartao-contato {
    max-width: 420px;
    margin: 0 auto;
    padding: 35px 25px;
    background: #fffaf3;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.icone-contato {
    font-size: 42px;
    margin-bottom: 15px;
}

.cartao-contato h3 {
    color: #4b2e20;
    margin-bottom: 12px;
}

.cartao-contato p {
    color: #795b49;
    margin-bottom: 25px;
}

.botao-whatsapp {
    display: block;
    background: #6b4029;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.botao-whatsapp:hover {
    background: #a96e3d;
    transform: translateY(-3px);
}

.telefone-contato {
    display: block;
    margin-top: 18px;
    color: #795b49;
    font-size: 15px;
}

/* AJUSTE DO CABECALHO NO CELULAR */

@media (max-width: 768px) {

    header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 15px;
        padding: 15px 5%;
    }

    .logo img {
        width: 65px;
        height: 65px;
    }

    nav {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

nav a {
        font-size: 14px;
        font-weight: 600;
    }

    .botao-carrinho {
        font-size: 25px;
    }

}

/* CABECALHO PROFISSIONAL - MOM'S COOKIES */

header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 15px 6%;
}

.logo {
    grid-column: 1;
    grid-row: 1;
}

.logo img {
    width: 70px;
    height: 70px;
    display: block;
}

header nav a {
    font-size: 16px;
    white-space: nowrap;
}

header .botao-carrinho {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
}

/* VERSAO PARA CELULAR */

@media (max-width: 768px) {

    header {
        grid-template-columns: 48px minmax(0, 1fr) 35px;
        gap: 8px;
        padding: 12px 4%;
    }

    .logo img {
        width: 48px;
        height: 48px;
    }

header nav {
        gap: 8px;
        justify-content: center;
    }

    header nav a {
        font-size: 12px;
        letter-spacing: 0;
    }

    header .botao-carrinho {
        font-size: 23px;
    }

}