:root{
--bg:#0f0b07;
--panel:#1a140f;
--panel-2:#17120d;
--gold:#c98d2d;
--gold-2:#e0b15a;
--text:#e8d9c0;
--muted:#bfa47b;
--chip:#2a1f16;
--radius:14px;
--shadow:0 0 0 1px rgba(201,141,45,.25), 0 6px 18px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
margin:0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
background:
linear-gradient(to bottom, rgba(15,11,7,0) 0%, var(--bg) 100%) center bottom / 100% 22vh no-repeat,
url("imgs/bg.jpg") center top / 100% auto no-repeat;
background-attachment: fixed, fixed;
background-color: var(--bg);
color: var(--text);
}

.wrap.layout { background-color: var(--bg); }

a{color:inherit;text-decoration:none}

/* ===== Container ===== */
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}

/* ===== Header ===== */
header{position:sticky;top:0;z-index:20;background:linear-gradient(180deg, rgba(26,20,15,.98), rgba(26,20,15,.92));backdrop-filter: blur(6px);border-bottom:1px solid rgba(201,141,45,.25)}
.topbar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:16px}
.logo.img-ph{width:160px;height:90px;border-radius:10px}
.logo.img-ph{ background-image:url('imgs/logo.png'); background-size:cover; border-style:none }

.search{flex:1;display:flex;align-items:center;gap:10px;background:var(--panel);border:1px solid rgba(201,141,45,.35);padding:10px 12px;border-radius:999px;box-shadow:var(--shadow)}
.search input{flex:1;background:transparent;border:0;outline:0;color:var(--text);font-size:15px}

/* Ícone redondo genérico (LUPA na busca usa este, com conteúdo interno) */
.icon-ghost{
  width:34px;height:34px;border-radius:999px;
  border:1px solid rgba(201,141,45,.35);
  background:var(--chip);
  display:grid;place-items:center;
  box-shadow:var(--shadow);
}

/* ===== Minicart (separado do .icon-ghost para não afetar a lupa) ===== */
.minicart{
  width:34px;height:34px;border-radius:999px;
  border:1px solid rgba(201,141,45,.35);
  background:var(--chip);
  display:grid;place-items:center;
  box-shadow:var(--shadow);
  position:relative; line-height:0;
}
.minicart::before{
  content:'🛒'; font-size:16px; line-height:1;
}
.minicart[data-cart-count]:not([data-cart-count="0"])::after{
  content: attr(data-cart-count);
  position:absolute; right:-6px; top:-6px;
  min-width:18px; height:18px; padding:0 5px;
  border-radius:999px; background:var(--gold-2);
  color:#220; font-weight:700; font-size:11px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.25);
}
@keyframes cart-pop{ 0%{transform:scale(.9)} 60%{transform:scale(1.08)} 100%{transform:scale(1)} }
.minicart.pop{ animation: cart-pop .28s ease-out; }
@keyframes badge-ping{ 0%{transform:scale(.8)} 60%{transform:scale(1.15)} 100%{transform:scale(1)} }
.minicart.badge-pop::after{ animation: badge-ping .28s ease-out; }

.userbox{display:flex;align-items:center;gap:10px; position:relative; }
.userbox-link{display:flex;align-items:center;gap:10px}
.avatar.img-ph{width:36px;height:36px;border-radius:999px}
.coins{font-size:12px;color:var(--muted)}

/* ===== Layout principal ===== */
.layout{display:grid;grid-template-columns:220px 1fr;gap:18px;padding:18px 0 28px}

/* ===== Sidebar categorias ===== */
.sidebar{background:var(--panel-2);border:1px solid rgba(201,141,45,.28);border-radius:var(--radius);padding:10px 10px;box-shadow:var(--shadow);height:fit-content}
.cat{display:flex;align-items:center;gap:10px;padding:12px 12px;border-radius:12px;color:var(--text);border:1px solid transparent}
.cat + .cat{margin-top:8px}
.cat:hover{background:#21180f;border-color:rgba(201,141,45,.35)}
.cat.active{background:#2b1f13;border-color:var(--gold)}
.cat .ico.img-ph_armadura{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/armaduras_ico.png');}
.cat .ico.img-ph_arma{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/armas_ico.png');}
.cat .ico.img-ph_escudo{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/escudos_ico.png');}
.cat .ico.img-ph_luva{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/luvas_ico.png');}
.cat .ico.img-ph_bota{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/botas_ico.png');}
.cat .ico.img-ph_bracelete{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/braceletes_ico.png');}
.cat .ico.img-ph_anel{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/aneis_ico.png');}
.cat .ico.img-ph_amuleto{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/amuletos_ico.png');}
.cat .ico.img-ph_sheltom{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/sheltoms_ico.png');}
.cat .ico.img-ph_premium{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/premium_ico.png');}
.cat .ico.img-ph_outros{width:26px;height:26px;border-radius:6px;min-width:26px;background-image:url('imgs/icones/outros_ico.png');}

/* ===== Conteúdo principal ===== */
.content{display:flex;flex-direction:column;gap:16px}
.section-head{display:flex;align-items:center;justify-content:space-between}
.section-title{font-weight:700;letter-spacing:.3px}
.order{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.order .chip{padding:8px 10px;border-radius:10px;background:var(--chip);border:1px solid rgba(201,141,45,.3); color:var(--muted)}

/* ===== Cards de destaque ===== */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:var(--panel);border:1px solid rgba(201,141,45,.35);border-radius:16px;padding:12px;box-shadow:var(--shadow)}
.name_item{vertical-align: 35%;}
.card h3{margin:2px 0 15px 0;font-size:16px;text-align:center}

.img-card{
	padding:20px;
	margin:10px;
	border-radius:8px;
	background-color:#000;
}

.ph-item.img-ph{
  display:block;
  height:88px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  border-style:none;
  margin:auto;
}
.ph-box{height:88px;width:100%;display:flex;align-items:center;justify-content:center;border:2px dashed rgba(255,255,255,.18);border-radius:10px;margin:8px auto;padding:0 8px;background:transparent}
.ph-img{display:block;max-height:88px;width:auto;max-width:100%;image-rendering:pixelated}
.meta{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.divider{height:1px;background:linear-gradient(90deg, transparent, rgba(201,141,45,.35), transparent);margin:10px 0}
.price{font-size:13px;color:var(--muted)}
.tag{display:inline-block;font-size:12px;padding:4px 8px;border:1px solid rgba(201,141,45,.35);border-radius:999px;background:var(--chip);color:var(--text)}

/* ===== BADGES DE AGING ===== */
.aging-wrap{ text-align:center; margin:-2px 0 8px 0; }
.aging-badge{
  display:inline-block; padding:3px 8px;
  border:1px solid rgba(201,141,45,.35);
  border-radius:8px; background:var(--chip);
  color:var(--gold-2); font-weight:700; line-height:1;
}
.aging-inline{
  display:inline-block; margin-left:6px; padding:2px 6px;
  border:1px solid rgba(201,141,45,.35);
  border-radius:6px; background:var(--chip);
  color:var(--gold-2); font-size:12px; line-height:1;
}

/* ===== Tabela inferior ===== */
.table-wrap{background:var(--panel);border:1px solid rgba(201,141,45,.35);border-radius:16px;box-shadow:var(--shadow);overflow:auto}
.table-wrap table{width:100%;border-collapse:collapse;min-width:720px}
.table-wrap th,.table-wrap td{padding:14px 16px;text-align:left;border-bottom:1px solid rgba(201,141,45,.18)}
.table-wrap th{color:var(--gold-2);font-weight:700;background:#1d1610;position:sticky;top:0}

/* ===== Placeholders genéricos ===== */
.img-ph{display:inline-block;background:repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 10px, transparent 10px 20px);border:2px dashed rgba(255,255,255,.18)}
.tiny.img-ph{width:28px;height:28px;border-radius:6px;min-width:28px}

/* ===== Responsividade ===== */
@media (max-width: 1100px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .side-art{display:none}
}

/* ===== Botão de menu (mobile) ===== */
.menu-btn{display:none;align-items:center;gap:8px;background:var(--chip);border:1px solid rgba(201,141,45,.35);color:var(--text);padding:8px 12px;border-radius:12px;box-shadow:var(--shadow);cursor:pointer}

/* garante que os botões de cart apareçam mesmo no desktop */
.menu-btn.btn-cart{ display:inline-flex; }

/* ===== Drawer Mobile ===== */
.backdrop{display:none}
@media (max_width: 900px){ }
@media (max-width: 900px){
  .menu-btn{display:inline-flex}
  .layout{grid-template-columns:1fr}
  .sidebar{position:fixed;left:-280px;top:70px;bottom:16px;width:260px;overflow:auto;z-index:30}
  .sidebar.open{left:16px}
  .backdrop.active{display:block;position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:25}
  .sidebar{border-radius:16px}
}

@media (max-width: 720px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .search{border-radius:14px}
  .brand .logo.img-ph{width:132px;height:50px}
}
@media (max-width: 640px){
  .table-wrap{border:0;background:transparent;box-shadow:none}
  .table-wrap table{min-width:0}
  .table-wrap thead{display:none}
  .table-wrap table,.table-wrap tbody,.table-wrap tr,.table-wrap td{display:block;width:100%}
  .table-wrap tr{background:var(--panel);border:1px solid rgba(201,141,45,.25);border-radius:12px;padding:4px 0;margin:10px 0}
  .table-wrap td{border:0;display:flex;justify-content:space-between;gap:8px;padding:10px 14px}
  .table-wrap td::before{content:attr(data-label);font-weight:700;color:var(--muted)}
}
@media (max-width: 480px){
  .topbar{gap:10px}
  .grid{grid-template-columns:1fr}
  .cat{min-width:150px}
  .order{display:none}
}

/* === Background IMG fixed (height=100vh, max-width=1536px) === */
.bg-img{position:fixed;top:0;left:50%;transform:translateX(-50%);height:100vh;width:auto;max-width:1536px;pointer-events:none;z-index:0;image-rendering:auto}

/* === Main side padding (margens laterais na main) === */
main.wrap{padding-left:32px;padding-right:32px}
@media (max-width:900px){main.wrap{padding-left:22px;padding-right:22px}}
@media (max-width:640px){main.wrap{padding-left:18px;padding-right:18px}}

/* === Mini menu do usuário / dropdown === */
.btn-user-menu{ display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border-radius:10px; border:1px solid transparent; }
.btn-user-menu:hover{ background:var(--chip); border-color:rgba(201,141,45,.35) }
.btn-user-menu .caret{ font-size:12px; opacity:.8 }

.user-dropdown{
  position:absolute; right:0; top:calc(100% + 8px);
  background:var(--panel); border:1px solid rgba(201,141,45,.35);
  border-radius:12px; min-width:200px; box-shadow:var(--shadow);
  display:none; z-index:40; overflow:hidden;
}
.userbox.open .user-dropdown{ display:block }
.dropdown-item{ display:block; padding:10px 12px; border-bottom:1px solid rgba(201,141,45,.18) }
.dropdown-item:last-child{ border-bottom:0 }
.dropdown-item:hover{ background:#21180f }

/* Botão caret do menu */
.user-caret{
  background:var(--chip);
  border:1px solid rgba(201,141,45,.35);
  color:var(--text);
  border-radius:10px;
  height:34px; min-width:34px; padding:0 8px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow);
  cursor:pointer;
}

/* “holds”/hover para itens clicáveis */
.is-clickable{ cursor:pointer; transition:transform .08s ease, box-shadow .08s ease, filter .08s ease }
.is-clickable:hover{ transform:translateY(-1px); filter:brightness(1.03) }
/* Hold (pressionado) */
.is-clickable:active{ transform:translateY(1px) scale(.98); filter:brightness(.98) }

a:hover, button:hover, .cat:hover, .chip:hover{ filter:brightness(1.03) }

/* Perfil */
.profile-card{ display:flex; align-items:center; gap:14px; background:var(--panel); border:1px solid rgba(201,141,45,.35); border-radius:16px; padding:14px; box-shadow:var(--shadow); }
.profile-avatar{ width:76px; height:76px; border-radius:999px; background:#2a1f16; background-size:cover; background-position:center; }
.profile-info{ display:flex; flex-direction:column; align-items:flex-start; }
.profile-info .name{ font-weight:700; line-height:1.2 }
.profile-info .saldo{ margin-top:4px; color:var(--muted); font-size:14px }
.profile-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px }
@media (max-width: 720px){ .profile-grid{ grid-template-columns:1fr } }

/* Profile actions (upload e senha) */
.profile-action{ margin-top:10px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.file-input{
  background:var(--chip);
  border:1px solid rgba(201,141,45,.35);
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}
.file-input input[type=file]{
  position:absolute; inset:0; opacity:0; cursor:pointer;
}
.text-input{
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(201,141,45,.35);
  background:var(--panel);
  color:var(--text);
  margin-bottom:8px;
}
.form-vertical{ display:flex; flex-direction:column; }

/* utilitários usados no index */
.tag.tag--mini{ font-size:11px; padding:2px 6px; }
.pill{ display:inline-block; padding:4px 8px; border:1px solid rgba(201,141,45,.35); background:var(--chip); color:var(--text); border-radius:999px; font-size:12px; line-height:1; }

/* Toast */
.toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px);
  background:var(--panel); color:var(--text); border:1px solid rgba(201,141,45,.35);
  padding:10px 14px; border-radius:12px; box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease; z-index:60;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
.toast.success{ border-color:rgba(70,180,70,.55); }
.toast.error{ border-color:rgba(200,70,70,.55); }

/* Botão "Ações" (Remover) na tabela do carrinho */
.table-wrap td[data-label="Ações"] .menu-btn{
  display:inline-flex;            /* sobrescreve o display:none do .menu-btn base */
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  background:var(--chip);
  border:1px solid rgba(201,141,45,.35);
  color:var(--text);
  box-shadow:var(--shadow);
  font-size:13px;
  line-height:1;
  cursor:pointer;
  transition:transform .08s ease, filter .12s ease, box-shadow .12s ease;
}

/* Ícone de lixeira antes do texto */
.table-wrap td[data-label="Ações"] .menu-btn::before{
  font-size:14px;
  line-height:1;
}

/* Estados */
.table-wrap td[data-label="Ações"] .menu-btn:hover{
  filter:brightness(1.05);
}
.table-wrap td[data-label="Ações"] .menu-btn:active{
  transform:translateY(1px) scale(.98);
  filter:brightness(.98);
}
.table-wrap td[data-label="Ações"] .menu-btn:focus{
  outline:0;
  box-shadow:0 0 0 2px rgba(224,177,90,.35), 0 6px 18px rgba(0,0,0,.35);
}

/* Mobile: ocupa toda a largura da célula e centraliza */
@media (max-width: 640px){
  .table-wrap td[data-label="Ações"] .menu-btn{
    width:100%;
    justify-content:center;
  }
}


/* ===== SLIDESHOW DE IMAGENS ===== */

/* ===== Container ===== */
.wrapslide{max-width:1200px;margin:0 auto;}

.img-slider{
  position: relative;
  margin: auto 0;
  overflow: hidden;
  background: #0f0f0f;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.img-slider .img-track{
  display: flex;
  width: 100%;
  height: 500px;              /* altura solicitada */
  transition: transform .45s ease;
  will-change: transform;
}
.img-slider .img-slide{
  flex: 0 0 100%;
  height: 500px;              /* altura solicitada */
}
.img-slider .img-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;          /* cobre toda a área mantendo proporção */
  display: block;
}


/* Responsivo (opcional: reduz altura em telas menores) */
@media (max-width: 740px){
  .img-slider .img-track,
  .img-slider .img-slide{ height: 420px; }
}
@media (max-width: 420px){
  .img-slider .img-track,
  .img-slider .img-slide{ height: 320px; }
}
