*{margin:0;padding:0;box-sizing:border-box;font-family:"Segoe UI",Roboto,Arial,sans-serif}
body{background:#000000;color:#ffffff;}

/* TOPO */
.topbar{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:8px 12px;
  background:#000000;
  color:#fff
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  margin-bottom:8px
}

.brand-logo{
  height:42px;
  width:42px;
  border-radius:8px
}

.brand-name{
  font-size:20px;
  font-weight:700
}

/* ===== ÍCONES SUPERIORES (CORRIGIDO 100%) ===== */
.quick-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  width:100%
}

.quick-links .link-btn{
  padding:0;
  border-radius:18px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  width:60px;
  height:60px;
  overflow:hidden;
  transition:transform .2s;
}

.quick-links .link-btn:hover{
  transform:scale(1.05)
}

.quick-links .link-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* HERO */
.hero{
  text-align:center;
  padding:16px 12px;
  background:#000000
}

.hero-title{
  font-size:22px;
  margin-bottom:10px;
  color:#ffffff;
  transition:opacity 1s,max-height 1s
}

.hero-title.fade-out{
  opacity:0;
  max-height:0;
  overflow:hidden
}

/* BUSCA */
.search-wrap{
  display:flex;
  justify-content:center;
  gap:6px;
  max-width:600px;
  margin:0 auto 12px
}

.search-wrap input{
  flex:1;
  padding:10px 12px;
  border:1px solid #444444;
  border-radius:18px;
  font-size:14px;
  background:#111111;
  color:#ffffff
}

.search-wrap .btn-clear{
  padding:10px 12px;
  border:1px solid #444444;
  border-radius:18px;
  background:#111111;
  color:#ffffff;
  cursor:pointer;
  transition:background .2s
}

.search-wrap .btn-clear:hover{
  background:#222222
}

/* BANNER */
.aviso{
  background:#111111;
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
  max-width:600px;
  margin:0 auto;
  transition:opacity .5s,max-height .5s,margin .5s,padding .5s
}

.aviso.hidden{
  opacity:0;
  max-height:0;
  padding:0;
  margin:0;
  overflow:hidden;
  display:none
}

/* CATEGORIAS */
.cat-bar{
  background:#000000;
  border-bottom:1px solid #222222;
  position:sticky;
  top:0;
  z-index:1000
}

.cat-grid{
  display:flex;
  gap:10px;
  padding:8px 10px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
}

.cat-chip{
  flex:0 0 auto;
  padding:10px 16px;
  border-radius:999px;
  background:#111111;
  border:2px solid #666666;
  font-size:14px;
  cursor:pointer;
  white-space:nowrap;
  font-weight:600;
  color:#ffffff;
  transition:all .25s
}

.cat-chip.active{
  background:#ffffff;
  color:#000000;
  border-color:#ffffff
}

/* LAYOUT */
.main{
  max-width:1200px;
  margin:0 auto;
  padding:16px 12px
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}

/* CARD */
.card{
  background:#111111;
  border-radius:18px;
  border:1px solid #222222;
  box-shadow:0 6px 18px rgba(0,0,0,.7);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .2s;
  color:#ffffff
}

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

/* FOTO */
.card .thumb{
  display:block;
  width:100%;
  height:220px;
  background:#111111;
  overflow:hidden
}

.card .thumb img{
  width:100%;
  height:100%;
  object-fit:contain
}

/* RODAPÉ */
.footer{
  text-align:center;
  padding:16px;
  background:#000000;
  color:#fff;
  font-size:13px
}

/* RESPONSIVO */
@media (max-width:600px){

  .quick-links .link-btn{
    width:52px;
    height:52px;
  }

  .quick-links .link-btn img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .cards-grid{
    grid-template-columns:repeat(2,1fr)
  }

  .card .thumb{
    height:180px
  }
}

/* BOTÃO TOPO */
#btnTopo{
  position:fixed;
  bottom:20px;
  right:20px;
  display:none;
  background:#ffffff;
  color:#000000;
  border:none;
  border-radius:50%;
  width:48px;
  height:48px;
  font-size:22px;
  cursor:pointer;
}

#btnTopo.show{
  display:block
}