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

body{

    font-family:Arial, Helvetica, sans-serif;

    background:#f8f3ee;

    color:#333;

}

.cabecalho{

    background:white;

    padding:30px 20px;

    text-align:center;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

}

.logo{

    max-width:900px;

    margin:auto;

}

.logo img{

    width:154px;

    max-width:90%;

    display:block;

    margin:0 auto 20px;

}

.logo h1{

    color:#bb6f97;

    font-size:42px;

    margin-bottom:10px;

}

.logo p{

    font-size:20px;

    color:#555;

}

main{

    width:min(1400px,95%);

    margin:40px auto;

}

.pesquisa{

    text-align:center;

    margin-bottom:25px;

}

#pesquisa{

    width:420px;

    max-width:95%;

    padding:15px;

    border-radius:30px;

    border:2px solid #bb6f97;

    font-size:18px;

}

.filtros{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

    margin-bottom:35px;

}

.filtros select{

    padding:12px 16px;

    border-radius:8px;

    border:1px solid #ccc;

    font-size:16px;

}

.lista-produtos{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-right:340px;
}

.carrinho{
    display:block;
    position:fixed;
    top:120px;
    right:20px;
    width:320px;
    max-height:75vh;
    overflow-y:auto;
    background:white;
    padding:20px;
    border-radius:12px;
    box-shadow:0 4px 20px rgba(0,0,0,.20);
    z-index:1000;
}

footer{

    margin-top:60px;

    padding:25px;

    background:#bb6f97;

    color:white;

    text-align:center;

}
.card-produto{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.12);
    padding:15px;
    text-align:center;
}

.card-produto img{
    width:100%;
    height:170px;
    object-fit:cover;
    border-radius:10px;
}

.card-produto h3{
    margin:15px 0 10px;
    font-size:20px;
}

.card-produto p{
    font-size:22px;
    color:#bb6f97;
    font-weight:bold;
    margin-bottom:15px;
}

.card-produto button{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#25D366;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.card-produto button:hover{
    background:#1DA851;
}
.card-produto img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
}

.descricao{
    margin:10px 0;
    color:#666;
    font-size:14px;
    line-height:1.4;
    height:60px;
    overflow:hidden;
}

.preco{
    font-size:24px;
    font-weight:bold;
    color:#bb6f97;
    margin:10px 0;
}

.btn-whatsapp{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#25D366;
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.3s;
}

.btn-whatsapp:hover{
    background:#1da851;
}
.foto-carrinho {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.btn-finalizar-whatsapp {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #25D366;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.btn-calcular-frete {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #FFD700;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 8px;
}

.btn-retirada {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #007BFF;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
/* ======================================================
   BOTÃO MAIS DETALHES
   ====================================================== */

.btn-detalhes {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: #D98B45 !important;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-detalhes:hover {
    opacity: 0.85;
}


/* ======================================================
   JANELA DE DETALHES
   ====================================================== */

.janela-detalhes {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 5000;
}


/* ======================================================
   CONTEÚDO
   ====================================================== */

.conteudo-detalhes {
    position: relative;

    width: min(700px, 95vw);
    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 15px;

    padding: 25px;

    text-align: center;
}


/* ======================================================
   BOTÃO FECHAR
   ====================================================== */

.fechar-detalhes {
    position: absolute;

    top: 10px;
    right: 15px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: #bb6f97;
    color: white;

    font-size: 28px;

    cursor: pointer;
}


/* ======================================================
   FOTO GRANDE
   ====================================================== */

.foto-grande-container {
    width: 100%;
    margin: 15px auto;
}

.foto-grande-detalhes {
    width: 100%;
    max-width: 600px;
    max-height: 500px;

    object-fit: contain;

    border-radius: 10px;

    cursor: zoom-in;
}


/* ======================================================
   MINIATURAS
   ====================================================== */

.miniaturas-detalhes {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    margin: 15px 0;
}

.miniatura-detalhes {
    width: 75px;
    height: 75px;

    object-fit: cover;

    border-radius: 8px;

    border: 2px solid #ddd;

    cursor: pointer;
}

.miniatura-detalhes:hover {
    border-color: #bb6f97;
}


/* ======================================================
   DESCRIÇÃO
   ====================================================== */

.descricao-detalhes {
    color: #666;

    font-size: 16px;

    line-height: 1.5;

    margin: 15px 0;
}


/* ======================================================
   PREÇO
   ====================================================== */

.preco-detalhes {
    color: #bb6f97;

    font-size: 26px;

    font-weight: bold;

    margin-top: 10px;
}
/* =========================================
   RESPONSIVIDADE PARA CELULAR
   ========================================= */

@media (max-width: 600px) {

    main {
        width: 100%;
        margin: 20px auto;
        padding: 0 10px;
    }

    .lista-produtos {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-right: 0;
        width: 100%;
    }

    .card-produto {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .card-produto img {
        width: 100%;
        height: 280px;
        object-fit: contain;
    }

    .card-produto h3 {
        font-size: 22px;
    }

    .card-produto p {
        font-size: 18px;
    }

    .preco {
        font-size: 24px;
    }

    .card-produto button {
        width: 100%;
        min-height: 45px;
        font-size: 16px;
    }

    .carrinho {
        width: 92%;
        max-width: 400px;
        right: 4%;
        top: 80px;
        max-height: 80vh;
        padding: 15px;
    }
}