:root{
  --bg:#000;
  --panel:#0b0f16;
  --stroke:rgba(255,255,255,.08);
  --stroke2:rgba(255,255,255,.12);
  --text:#e5e7eb;
  --muted:#9ca3af;
  --brand:#2563eb;
  --shadow: 0 18px 40px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  background: radial-gradient(1200px 600px at 50% 0%, rgba(37,99,235,.10), transparent 60%) , var(--bg);
  color:var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== Header ===== */
.main-header{
  position:sticky;
  top:0;
  z-index:50;
  background: linear-gradient(180deg, rgba(0,0,0,.95), rgba(0,0,0,.70));
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.menu{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:260px;
}
.menu.left{justify-content:flex-start}
.menu.right{justify-content:flex-end}

/* Ícone sem borda (apenas hover) */
.menu-item{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  text-decoration:none;
  transform: translateZ(0);
}

.menu-item img{
  height:150px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.6));
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
  opacity:.95;
}

.menu-item:hover img{
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.72));
  opacity:1;
}

.menu-item:active img{
  transform: translateY(0) scale(.99);
}

/* Active highlight (glow discreto) */
.menu-item.active img{
  filter: drop-shadow(0 0 26px rgba(37,99,235,.35)) drop-shadow(0 14px 26px rgba(0,0,0,.72));
  opacity:1;
}

/* Tooltip */
.menu-item[data-tip]:hover::after{
  content: attr(data-tip);
  position:absolute;
  bottom:-38px;
  left:50%;
  transform:translateX(-50%);
  background: rgba(17,24,39,.95);
  color:#fff;
  font-size:12px;
  padding:7px 10px;
  border-radius:12px;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 35px rgba(0,0,0,.55);
  pointer-events:none;
}

/* Badges */
.badge{
  position:absolute;
  top:10px;
  right:10px;
  min-width:26px;
  height:26px;
  padding:0 8px;
  border-radius:999px;
  background: rgba(37,99,235,.95);
  color:#fff;
  font-weight:900;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 12px 22px rgba(0,0,0,.55);
}

/* Logo */
.logo{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  position:relative;
}

.logo img{
  height:300px;
  max-width:100%;
  display:block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.75));
  transform-origin:center;
  animation: logoFloat 3.4s ease-in-out infinite;
}

@keyframes logoFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}

/* ===== Main ===== */
main{
  max-width:1200px;
  margin:0 auto;
  padding:22px 18px 26px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  margin-bottom:18px;
}

h2{margin:0 0 6px; font-size:28px}
.muted{color:var(--muted); font-size:13px}

.toolbar{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}

input, select{
  background: rgba(255,255,255,.04);
  color: var(--text);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  padding:12px 14px;
  outline:none;
}

input{
  flex:1;
  min-width:280px;
}

select{min-width:160px}

.btn{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}

.btn:hover{background: rgba(255,255,255,.10); transform: translateY(-1px)}
.btn:active{transform: translateY(0)}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top:14px;
}

.item{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border:1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding:14px;
  box-shadow: 0 20px 44px rgba(0,0,0,.55);
  display:flex;
  flex-direction:column;
  gap:10px;
  position:relative;
  overflow:hidden;
}

.topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(37,99,235,.14);
  border:1px solid rgba(37,99,235,.25);
  color:#c7d2fe;
  font-weight:900;
  font-size:12px;
  letter-spacing:.5px;
}

/* Favorito */
.favWrap{position:relative; display:inline-block;}
.favBtn{
  border:none;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  font-size:22px;
  line-height:1;
  padding:8px 10px;
  border-radius:999px;
  color:#9ca3af;
  transition: transform .12s ease, background .12s ease;
}
.favBtn:hover{background: rgba(255,255,255,.08); transform: translateY(-1px)}
.favOn{color:#ef4444}

.favWrap[data-tip]:hover::after{
  content: attr(data-tip);
  position:absolute;
  right:0;
  top:-38px;
  background: rgba(17,24,39,.95);
  color:#fff;
  font-size:12px;
  padding:7px 10px;
  border-radius:12px;
  white-space:nowrap;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 35px rgba(0,0,0,.55);
  pointer-events:none;
}

/* Thumb */
.thumb{
  width:100%;
  aspect-ratio: 16/9;
  border-radius:18px;
  overflow:hidden;
  background: radial-gradient(120% 120% at 50% 30%, rgba(255,255,255,.09) 0%, rgba(255,255,255,.03) 55%, rgba(255,255,255,.02) 100%);
  border:1px solid rgba(255,255,255,.07);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:12px;
  image-rendering: pixelated;
  display:block;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.55));
}
.ph{
  color: rgba(255,255,255,.35);
  font-weight:900;
  font-size:12px;
  letter-spacing:.8px;
}

.title{
  font-size:18px;
  font-weight:900;
  margin:0;
}
.desc{
  color: rgba(229,231,235,.80);
  font-size:13px;
  line-height:1.3;
  min-height: 34px;
}
.price{
  font-weight:900;
  font-size:18px;
  margin-top:2px;
}

.buy{
  border:none;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
  background: var(--brand);
  color:#fff;
  width:100%;
  transition: transform .12s ease, filter .12s ease;
}
.buy:hover{transform:translateY(-1px); filter:brightness(1.05)}
.buy:active{transform:translateY(0)}

.err,.ok{
  display:none;
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  font-size:13px;
}
.err{background: rgba(239,68,68,.14); color:#fecaca; border-color: rgba(239,68,68,.25)}
.ok{background: rgba(34,197,94,.12); color:#bbf7d0; border-color: rgba(34,197,94,.22)}

/* Footer */
footer{
  margin-top:20px;
  border-top:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.55);
}

.footer-inner{
  max-width:1200px;
  margin:0 auto;
  padding:22px 18px;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
}

footer h4{margin:0 0 8px}
footer a{color:#c7d2fe; text-decoration:none}
footer a:hover{text-decoration:underline}
.small{color:rgba(229,231,235,.65); font-size:12px; line-height:1.4}

@media (max-width:1000px){
  .grid{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width:900px){
  .footer-inner{grid-template-columns:1fr}
}
@media (max-width:640px){
  .grid{grid-template-columns:1fr}
  .menu{min-width:auto}
  .menu-item img{height:110px}
  .logo img{height:200px}
}

/* card central de auth (login/register) */
.auth-card{
  max-width:520px;
  margin: 20px auto;
}

.field{margin-top:12px}
.field label{
  display:block;
  font-weight:900;
  margin-bottom:6px;
  color: rgba(229,231,235,.9);
}

/* Botão indisponível */
.buy:disabled,
.buy[disabled]{
  cursor: not-allowed;
  opacity: .55;
  filter: none !important;
  transform: none !important;
  background: rgba(255,255,255,.14);
  color: rgba(229,231,235,.75);
  border: 1px solid rgba(255,255,255,.10);
}

.buy:disabled:hover{
  transform: none;
  filter: none;
}
