body{
  margin:0;
  font-family:Arial,sans-serif;
  background:radial-gradient(circle at top,#f4d6f2,#ececec);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
}

*{
  box-sizing:border-box;
}

.header{
  background:#d87bd3;
  color:white;
  padding:20px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.titulo h1{
  margin:0;
  font-size:32px;
  font-weight:700;
  letter-spacing:.5px;
}

.titulo p{
  margin:6px 0 0;
  font-size:15px;
}

.acoes-header{
  display:flex;
  align-items:center;
  gap:15px;
}

#modoNoturno{
  background:white;
  border:none;
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
}

.filtros{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.filtros button{
  background:white;
  border:none;
  padding:8px 14px;
  border-radius:20px;
  cursor:pointer;
  font-weight:bold;
  transition:.25s;
}

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

.filtros button.ativo{
  background:#25D366;
  color:white;
}

.titulo-secao{
  text-align:center;
  margin-top:40px;
  color:#b56fc1;
  font-size:28px;
  font-weight:700;
}

.container{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding:20px;
  max-width:1200px;
  width:100%;
  margin:auto;
}

.produto{
  background:#d87bd3;
  border-radius:14px;
  padding:15px;
  text-align:center;
  color:white;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  transition:transform .25s ease, box-shadow .25s ease;
  overflow:hidden;
}

.produto:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 28px rgba(0,0,0,.16);
}

.produto img{
  width:100%;
  height:250px;
  object-fit:cover;
  border-radius:10px;
  cursor:zoom-in;
  transition:transform .35s ease;
}

.produto:hover img{
  transform:scale(1.05);
}

.produto h3{
  font-size:17px;
  margin:12px 0 8px;
  min-height:42px;
  line-height:1.3;
}

.produto p{
  margin:0 0 14px;
  font-size:15px;
  font-weight:bold;
}

.botao{
  width:100%;
  background:#25D366;
  color:white;
  border:none;
  padding:11px;
  border-radius:10px;
  cursor:pointer;
  font-weight:bold;
  font-size:14px;
  transition:.25s ease;
}

.botao:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(37,211,102,.35);
}

.carrinho-icone{
  cursor:pointer;
  position:relative;
  font-size:22px;
}

#contadorCarrinho{
  position:absolute;
  top:-8px;
  right:-10px;
  background:red;
  color:white;
  font-size:12px;
  padding:2px 6px;
  border-radius:50%;
}

#carrinhoPreview{
  position:fixed;
  top:80px;
  right:-340px;
  width:320px;
  background:white;
  padding:20px;
  border-radius:18px;
  transition:.4s;
  z-index:1000;
  box-shadow:0 18px 40px rgba(0,0,0,0.18);
  border:1px solid rgba(0,0,0,.05);
}

#carrinhoPreview.ativo{
  right:20px;
}

#fecharCarrinho{
  background:transparent;
  border:none;
  font-size:20px;
  cursor:pointer;
  display:block;
  margin-left:auto;
  margin-bottom:10px;
}

.item-carrinho{
  display:grid;
  grid-template-columns:1fr 34px;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  padding:8px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
}

.item-carrinho span{
  font-size:15px;
  line-height:1.4;
  word-break:break-word;
}

.item-carrinho button{
  width:30px;
  height:30px;
  border:none;
  border-radius:8px;
  background:#fff;
  color:#ff3b5c;
  font-size:18px;
  font-weight:bold;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.botao-finalizar{
  width:100%;
  margin-top:18px;
  background:linear-gradient(135deg,#25D366,#1ebe5d);
  color:white;
  border:none;
  padding:14px 18px;
  border-radius:14px;
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 8px 18px rgba(37,211,102,0.35);
}

.botao-finalizar::before{
  content:"\f232";
  font-family:"Font Awesome 6 Brands";
  font-weight:400;
  font-size:18px;
}

.footer{
  background:linear-gradient(135deg,#b56fc1,#d87bd3);
  color:white;
  text-align:center;
  padding:28px 20px;
  margin-top:auto;
}

.footer p{
  margin:0;
  font-size:15px;
}

.redes{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:20px;
}

.redes a{
  color:white;
  font-size:22px;
  transition:.3s ease;
}

.redes a:hover{
  transform:translateY(-4px) scale(1.08);
}

/* ZOOM IMAGEM */
.img-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.88);
  justify-content:center;
  align-items:center;
  padding:20px;
}

.img-modal.ativo{
  display:flex;
}

.img-modal-conteudo{
  max-width:90%;
  max-height:90%;
  border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  animation:zoomImg .25s ease;
}

.fechar-img{
  position:absolute;
  top:20px;
  right:25px;
  color:white;
  font-size:30px;
  font-weight:bold;
  cursor:pointer;
}

@keyframes zoomImg{
  from{transform:scale(.85);opacity:0;}
  to{transform:scale(1);opacity:1;}
}

/* DARK MODE */
body.dark{
  background:#1c1c1c;
  color:white;
}

body.dark .produto{
  background:#2a2a2a;
}

body.dark .header{
  background:#111;
}

body.dark #carrinhoPreview{
  background:#2a2a2a;
  color:white;
}

body.dark .item-carrinho{
  border-bottom:1px solid rgba(255,255,255,.08);
}

body.dark .footer{
  background:linear-gradient(135deg,#111,#1a1a1a);
  color:#f5f5f5;
  border-top:1px solid rgba(255,255,255,0.08);
}

body.dark .footer strong{
  color:#25D366;
}

body.dark .redes a{
  color:#f5f5f5;
}

body.dark .redes a:nth-child(1):hover{
  color:#25D366;
}

body.dark .redes a:nth-child(2):hover{
  color:#E4405F;
}

/* MOBILE */
@media (max-width:768px){
  .header{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:14px;
    padding:18px 14px;
  }

  .titulo h1{
    font-size:28px;
  }

  .titulo p{
    font-size:14px;
  }

  .acoes-header{
    width:100%;
    flex-direction:column;
    gap:12px;
  }

  #modoNoturno{
    width:40px;
    min-width:40px;
    height:40px;
    padding:0;
    font-size:14px;
    border-radius:10px;
  }

  .filtros{
    width:100%;
    justify-content:center;
    gap:8px;
  }

  .filtros button{
    flex:1 1 calc(50% - 8px);
    min-width:130px;
    padding:10px 12px;
    font-size:14px;
    border-radius:14px;
  }

  .container{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    padding:12px;
  }

  .produto{
    padding:10px;
  }

  .produto:hover{
    transform:none;
  }

  .produto img{
    height:165px;
  }

  .produto:hover img{
    transform:none;
  }

  .produto h3{
    font-size:15px;
    min-height:38px;
  }

  .produto p{
    font-size:14px;
  }

  .botao{
    padding:10px;
    font-size:14px;
  }

  .botao:hover{
    transform:none;
    box-shadow:none;
  }

  #carrinhoPreview{
    top:auto;
    bottom:0;
    right:0;
    width:100%;
    height:78vh;
    border-radius:18px 18px 0 0;
    transform:translateY(100%);
    transition:transform .35s ease;
    overflow-y:auto;
  }

  #carrinhoPreview.ativo{
    right:0;
    transform:translateY(0);
  }

  #fecharCarrinho{
    position:sticky;
    top:0;
    background:inherit;
    z-index:5;
    padding-bottom:10px;
  }

  .botao-finalizar{
    position:sticky;
    bottom:0;
  }

  .img-modal-conteudo{
    max-width:95%;
    max-height:80%;
  }

  .footer{
    padding:22px 14px;
  }

  .redes a{
    font-size:20px;
  }
}

.secao{
  display:block;
}