*{margin:0;padding:0;box-sizing:border-box;font-family:'Inter',sans-serif}
body{background:#fafaf9;color:#292524}
.container{max-width:1400px;  margin:80px auto 10px;padding: 0 20px}

 .navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0 20px; 
  text-align: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75); /* transparência */
  backdrop-filter: blur(10px);           /* efeito vidro */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 1000;
}
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; 
  align-items: center;
}
.logo{
font-size: 18px;
font-weight: 700;
display: flex;
align-items: center;
gap: 8px;
letter-spacing: 0.5px;
color: #3b2f2f;
}
.logo img { margin-top: 0;}
.menu {
    gap: 40px;
    margin-left: 20px;}
.menu a,
.dropbtn {
  text-decoration: none;
  font-weight: 700;
  color: #7b717a;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: .3s;
}
.btn-depo {
  padding: 8px 16px;
  background: #CBDCCD;
  color: black !important;
  border-radius: 20px;
  font-size: 14px;
  transition: .3s;
  text-decoration: none;
}
.btn-depo:hover {
  background: #6d28d9;
    color: white !important;
}

.btn-abrir-filtros{
  display:none;
  width:fit-content;
  padding:12px;
  background:#292524;
  color:white;
  border:none;
  border-radius:12px;
  font-weight:600;
  margin-top:15px;
}
form.filtros{display:flex;gap:15px;flex-wrap:wrap;margin-top:20px}
form.filtros input, form.filtros select{
  padding:8px;
  border:1px solid #ddd;
  border-radius:8px;
}

/* painel lateral */
.filtros-mobile{
  position:fixed;
  top:0;
  right:-100%;
  width:85%;
  height:100%;
  background:white;
  box-shadow:-10px 0 25px rgba(0,0,0,.15);
  padding:20px;
  transition:.3s;
  z-index:2000;
  overflow-y:auto;
}

.filtros-mobile.active{
  right:0;
}

.filtros-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.filtros-header span{
  font-size:22px;
  cursor:pointer;
}
.filtro-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
/* MOSTRAR AO PASSAR O MOUSE */
.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}
.layout{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:40px;
  margin-top:40px;
}
.filtro-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.filtro-esquerda {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filtro-esquerda h3 {
  margin: 0;
}
.limpar-filtro {
  font-size: 13px;
  text-decoration: none;
  color: #7c3aed;
  font-weight: 600;
  transition: .3s;
  display: none;
}
.limpar-filtro:hover {
  opacity: 0.7;
}
.sidebar{
  background:white;
  padding:20px;
  border-radius:20px;
  border:1px solid #eee;
  height:fit-content;
}
.sidebar h3{
margin-bottom:0;
font-size:18px;
}
.sidebar ul{
  list-style:none;
}
.sidebar li{
  margin-bottom:0;
}

.sidebar a{
  text-decoration:none;
  color:#444;
  font-size:14px;
  display:block;
  padding:3px 6px;
  border-radius:8px;
  transition:.2s;
}
.sidebar .limpar-filtro{
  display: none;
}
.sidebar a:hover{background:#f3f4f6}
.sidebar a.active{background:#292524;color:white}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:25px;
  
}

.card{
  background:#fafaf9;;
  border-radius:10px;
  overflow:hidden;
  border: none;
  display:flex;
  flex-direction:column;
  transition: all .3s ease;
  padding-bottom: 15px;
  
}
.card:hover{
border: 1px solid #dcdcdc;
  box-shadow: 0 8px 20px rgba(0,0,
  0,0.06);
  transform: translateY(-4px);
}
.img-wrapper{
  position:relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 10px 10px 0 0;}

.img-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: center;
  transition:.4s ease;
  display: block;
}
.card:hover .img-wrapper img{
  transform:scale(1.05);
}

.codigo-badge{
  position:absolute;
  top:12px;
  left:12px;
  background:#ffffffee;
  padding:6px 10px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
}

.hover-detalhes{
  position:absolute;
  bottom:15px;
  left:50%;
  transform:translateX(-50%) translateY(20px);
  background:#292524;
  color:white;
  padding:8px 15px;
  border-radius:8px;
  text-decoration:none;
  font-size:14px;
  opacity:0;
  transition:.3s;
}

.card:hover .hover-detalhes{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.card-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.price{
  font-size:22px;
  font-weight:700;
}

.badge{
  display:inline-block;
  padding:5px 12px;
  border-radius:20px;
  font-size:12px;
   background: #efe3b3;
  color: #a66300;
  margin-bottom: 8px;
}

.disponivel{background:#dcfce7;color:#166534}
.encomenda{background:#fef3c7;color:#92400e}

.btn{
  margin-top:auto;
  padding:12px;
  background:#25D366;
  color:white;
  border-radius:10px;
  text-align:center;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
}
.btn:hover{background:#1ebe5d}

.btn-limpar {
  background: #e6e0f8;
  color: #5e4b8b;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: fit-content;
  text-decoration: none;
}

.btn-limpar:hover {
  background: #d1c4e9;
}
/* BOTÃO VOLTAR AO TOPO */
#btnTopo{
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #292524;
  color: white;
  border: none;
  padding: 12px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: none;
  box-shadow: 0 6px 15px rgba(0,0,0,.2);
  transition: .3s;
  z-index: 3000;
}

#btnTopo:hover{
  background:#6d28d9;
  transform: translateY(-3px);
}


/* BOTÃO COMPRAR (ESCONDIDO) */
.btn-comprar {
  display: none;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 25px;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: .3s;
}

/* APARECE SOMENTE NO HOVER */
.card:hover .btn-comprar {
  display: block;
}

.btn-comprar:hover {
  background: #16a34a;
}
/* INFORMAÇÕES */
.info {
  padding: 12px 15px 0;
}

.artesao {
  font-size: 13px;
  color: #777;
  display: block;
  margin-bottom: 4px;
}

.info h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.preco {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.promo-badge {
  position: absolute;
  top: 10px;
  left: 35%;
  background: #28a745;
  color: #fff;
  padding: 0.4em  0.7em;
  border-radius: 30px;
  font-size: 0.95em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 5;
  text-decoration: none;
}
.promo-tag i {
  font-size: 14px;
}
/* MOBILE: telas até 768px */
@media (max-width: 768px) {

  /* Grid: 1 card por linha */
  .grid {
    grid-template-columns: 1fr; 
    gap: 20px;
  }

  /* Cards sem hover e sem sombra */
  .card {
    border: 1px solid #eee;   
    box-shadow: none;
    transform: none;
  }

  .card:hover {
    border: 1px solid #eee;
    box-shadow: none;
    transform: none;
  }

  /* Botões "Comprar" e "Ver detalhes" sempre visíveis */
  .btn-comprar,
  .hover-detalhes {
    display: block !important;   /* garante que não fique escondido */
    text-align: center;
    margin: 10px 0 0 0;
    opacity: 1 !important;
    position: relative !important; /* remove absolute do desktop */
    transform: none !important;
  }

  /* Estilo do botão "Comprar" */
  .btn-comprar {
    background-color: #22c55e;
    color: #fff;
    padding: 10px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.3s;
  }

  .btn-comprar:hover {
    background-color: #16a34a;
  }

  /* Imagem do card mantém proporção */
  .img-wrapper {
    aspect-ratio: 3/4;
  }

  /* Remove transform do hover da imagem */
  .card:hover .img-wrapper img {
    transform: none;
  }
}
/* MOBILE */
@media(max-width:900px){
body{
  padding-top: 0;
}
  .layout{
    grid-template-columns:1fr;
  }

  /* Estilo do botão "Ver detalhes" */
  .hover-detalhes {
    background-color: #292524;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition:  0.3s;
    bottom: 55px;
    left:20%;
    width: 50%;
  }

  .hover-detalhes:hover {
    background-color: #444;
  }

  .grid{
    order:1;
  }
 .sidebar ul{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
  }

  .sidebar li{
    margin:0;
  }

  .sidebar a{
    font-size:13px;
    padding:6px 12px;
    background:#f3f4f6;
    border-radius:20px;
  }

  .sidebar a.active{
    background:#292524;
    color:white;
  }
  /* esconder filtros desktop */
 form.filtros.filtros-desktop{
  display:none;
}
  /* botão abrir visível */
  .btn-abrir-filtros{
    display:block;
  }
  .sidebar .limpar-filtro{
  display: block;
}

}

/* DESKTOP */
@media(min-width:901px){

  .btn-abrir-filtros,
  .filtros-mobile{
    display:none;
  }

}