*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:"Poppins",sans-serif;
}

.container{
max-width:1200px;
}

.card img{
height:260px;
}

.card h2{
font-size:22px;
}

.card p{
font-size:16px;
}

.price{
font-size:20px;
}

.card button{
font-size:16px;
padding:10px 16px;
}

html{
scroll-behavior:auto;
}

body{
background:#f4f8fb;
padding-bottom:180px;
}

/* HEADER */

header{
background:linear-gradient(135deg,#4facfe,#00c6ff);
color:white;
text-align:center;
padding:30px 15px;
}

header h1{
font-size:26px;
font-weight:600;
}

header p{
font-size:14px;
opacity:.9;
}

/* GRID PRODUTOS */

.container{
max-width:1100px;
margin:auto;
padding:20px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

/* CARD */

.card{
background:white;
border-radius:14px;
overflow:hidden;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
transition:.25s;
display:flex;
flex-direction:column;
}

.card:hover{
transform:translateY(-5px);
}

.card img{
width:100%;
height:200px;
object-fit:cover;
}

.card-content{
padding:16px;
display:flex;
flex-direction:column;
justify-content:space-between;
flex:1;
}

.card h2{
font-size:18px;
color:#1b6ca8;
margin-bottom:6px;
}

.card p{
font-size:14px;
margin-bottom:12px;
}

.price{
font-size:18px;
font-weight:600;
margin-bottom:10px;
}

/* ===== BOTÕES BASE ===== */

button{
border:none;
background:#1b9cfc;
color:white;
padding:8px 14px;
border-radius:8px;
cursor:pointer;
font-weight:600;
transition:.25s ease;
width:auto;
display:inline-block;
}

button:hover{
background:#0984e3;
transform:translateY(-1px);
}

/* BOTÃO DOS CARDS */

.card button{
margin-top:8px;
font-size:14px;
padding:8px 12px;
border-radius:10px;
}

/* BOTÃO FINALIZAR */

.finalizar{
width:100%;
padding:12px;
border-radius:12px;
background:linear-gradient(135deg,#2f9cf4,#6bc5ff);
box-shadow:0 6px 15px rgba(0,0,0,.15);
}

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

/* BOTÕES PAGAMENTO */

.pagamento-area{
display:none;
margin-top:10px;
text-align:center;
}

.pagamento-area button{
width:100%;
margin-top:8px;
padding:12px;
background:#ecf0f1;
color:#333;
}

/* PIX */

.pix-area{
display:none; /* começa escondido */

flex-direction:column;
align-items:center;
justify-content:center;

gap:12px;
margin-top:15px;
}

.pix-area img{
width:200px;
max-width:80%;
display:block;
margin:auto;
}

.pix-area button{
width:auto;
padding:10px 18px;
border-radius:10px;
}


/* ===== BOTÃO SACOLA ===== */

.btn-sacola{
position:fixed;
bottom:20px;
left:5%;
background:#2f9cf4;
color:white;
border-radius:50px;
padding:18px 22px;
font-weight:600;
box-shadow:0 6px 18px rgba(0,0,0,.2);
z-index:999;
}

.btn-sacola:hover{
transform:scale(1.05);
}

/* ===== MODAL SACOLA ===== */

.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.5);
z-index:2000;
}

.modal-content{
background:white;
position:absolute;
bottom:0;
width:100%;
max-height:80%;
border-radius:20px 20px 0 0;
padding:20px;
overflow-y:auto;
animation:subir .3s ease;
}

@keyframes subir{
from{transform:translateY(100%);}
to{transform:translateY(0);}
}

/* ITEM DO CARRINHO */

.item-carrinho{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
font-size:14px;
}

/* BOTÃO EXCLUIR */

.remover{
background:#ffe5e5;
color:#d64545;
padding:4px 8px;
border-radius:6px;
font-size:12px;
font-weight:600;
}

.remover:hover{
background:#ffd1d1;
transform:scale(1.05);
}

/* BOTÃO FECHAR */

.fechar{
margin-top:12px;
width:100%;
background:#db4e4e;
color:#d4d4d4;
padding:10px;
border-radius:10px;
}
