*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, sans-serif;
}

body{
  background:#f6f6f6;
  color:#333;
}

/* HEADER */
header{
  background:#5a2d0c;
  color:#fff;
  padding:15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

header h2{
  font-size:18px;
}

header nav a{
  color:#fff;
  margin-left:10px;
  text-decoration:none;
  font-size:14px;
}

/* CONTAINER */
.container{
  display:flex;
  gap:15px;
  padding:15px;
}

/* PRODUTOS */
#produtos{
  flex:3;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:15px;
}

/* CARD */
.card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
}

.card img{
  width:100%;
  height:150px;
  object-fit:cover;
}

.card h3{
  padding:10px;
  font-size:16px;
}

.card p{
  padding:0 10px;
  font-size:13px;
  color:#666;
}

.card strong{
  padding:0 10px;
  color:#5a2d0c;
}

.card button{
  margin:10px;
  padding:10px;
  border:none;
  border-radius:8px;
  background:#ff6600;
  color:#fff;
  cursor:pointer;
}

/* CARRINHO */
#carrinhoBox{
  flex:1;
  background:#fff;
  padding:15px;
  border-radius:12px;
  box-shadow:0 3px 10px rgba(0,0,0,0.08);
  position:sticky;
  top:10px;
  height:fit-content;
}

#carrinhoBox h3{
  margin-bottom:10px;
  color:#5a2d0c;
}

#carrinho{
  max-height:250px;
  overflow:auto;
  padding:10px;
  background:#fafafa;
  border-radius:8px;
  margin-bottom:10px;
}

#carrinho p{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  padding:5px 0;
  border-bottom:1px solid #eee;
}

input, select, textarea{
  width:100%;
  margin:5px 0;
  padding:8px;
  border:1px solid #ddd;
  border-radius:8px;
}

button.finalizar{
  width:100%;
  padding:10px;
  border:none;
  border-radius:8px;
  background:#5a2d0c;
  color:#fff;
  cursor:pointer;
  margin-top:10px;
}

/* MOBILE */
@media(max-width:768px){
  .container{
    flex-direction:column;
  }

  #carrinhoBox{
    position:relative;
  }
}