/* itens.css — depende de codex.css e pals-list.css (barra de filtros compartilhada) */

/* ---------- Grid de itens ---------- */
.item-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.item-card{
  --rarity-color: #8b93a7;
  background: var(--panel);
  border:1px solid var(--hairline);
  border-top: 3px solid var(--rarity-color);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.item-card:hover{
  border-color: var(--rarity-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.5);
  color: inherit;
}

.item-card-head{
  display:flex;
  align-items:flex-start;
  gap:.8rem;
  margin-bottom:.6rem;
}
.item-card-icon-wrap{
  width:48px; height:48px;
  border-radius:10px;
  background: var(--panel-2);
  border:1px solid var(--hairline);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}
.item-card-icon{
  width:100%; height:100%;
  object-fit:contain;
  padding:4px;
}
.item-card-title{ flex:1; min-width:0; }
.item-card-name{
  font-family: var(--font-display);
  font-weight:700;
  font-size:1.1rem;
  color: var(--text-bright);
  margin:0 0 .15rem;
  line-height:1.25;
}
.item-card-type{
  display:flex;
  align-items:center;
  gap:.35rem;
  font-size:.78rem;
  color: var(--text-dim);
}
.item-card-type i{ color: var(--accent); }

.item-card-badges{
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
  margin-bottom:.75rem;
}

.item-card-desc{
  font-size:.85rem;
  color: var(--text);
  line-height:1.5;
  margin-bottom:.9rem;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.item-card-price{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.82rem;
  color: var(--text-dim);
  border-top:1px solid var(--hairline);
  padding-top:.7rem;
  margin-top:auto;
}
.item-card-price b{
  font-family: var(--font-mono);
  color: var(--gold);
  font-size:.95rem;
}

.item-card-recipe{
  margin-top:.75rem;
  padding-top:.75rem;
  border-top:1px solid var(--hairline);
}
.item-card-recipe-label{
  font-family: var(--font-mono);
  font-size:.66rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: var(--text-dim);
  margin-bottom:.5rem;
}
.item-recipe-row{
  display:flex;
  align-items:center;
  gap:.5rem;
  font-size:.82rem;
  color: var(--text);
  margin-bottom:.4rem;
}
.item-recipe-row:last-child{ margin-bottom:0; }
.item-recipe-icon{
  width:22px; height:22px;
  border-radius:5px;
  object-fit:contain;
  background: var(--panel-2);
  border:1px solid var(--hairline);
  flex-shrink:0;
}
.item-recipe-qty{
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight:600;
}
.item-card-worktime{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  font-family: var(--font-mono);
  font-size:.72rem;
  color: var(--text-dim);
}