.loja-layout {
  align-items: flex-start;
}

.hf-content-area {
  display: flex;
  flex-direction: column;
}

.hf-panel-hero {
  padding: 0;
  overflow: hidden;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
}

.loja-title-wrap {
  padding: 14px 18px 0;
}

.loja-title-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(180deg, #f1dba5 0%, #d2b77a 100%);
  border: 2px solid #6a4a18;
  color: #2b1807;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.loja-section-content {
  padding: 18px;
}

.loja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
  gap: 16px;
  justify-content: start;
  align-content: start;
}

.loja-empty {
  grid-column: 1 / -1;
  opacity: 0.75;
  padding: 20px;
  text-align: center;
  color: #d9d1a9;
  background: rgba(13, 33, 13, 0.2);
  border: 2px dashed rgba(241, 219, 165, 0.25);
}

/* item em bloco pequeno */

.loja-card {
  background: linear-gradient(
    180deg,
    rgba(18, 34, 61, 0.92) 0%,
    rgba(9, 18, 34, 0.96) 100%
  );
  border: 2px solid rgba(120, 170, 255, 0.25);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  transition: 0.2s;
}

.loja-card:hover {
  border-color: #5aa2ff;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(90, 162, 255, 0.2);
}

.loja-card.rarity-common {
  border-color: rgba(185, 185, 185, 0.45);
}

.loja-card.rarity-rare {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.16);
}

.loja-card.rarity-epic {
  border-color: rgba(168, 85, 247, 0.78);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.18);
}

.loja-card.rarity-legendary {
  border-color: rgba(245, 158, 11, 0.82);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.2);
}

.loja-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.loja-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.loja-card-rarity {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f1dba5;
  white-space: nowrap;
}

.loja-card-icon {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loja-card-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(120, 170, 255, 0.25));
}

.loja-card-description {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #d9d1a9;
  min-height: 48px;
}

.loja-card-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loja-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: #f1dba5;
}

.loja-buy-btn {
  width: 100%;
  background: linear-gradient(180deg, #4c7fff, #2957d8);
  border: none;
  padding: 10px 12px;
  color: white;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 800;
}

.loja-buy-btn:hover {
  background: linear-gradient(180deg, #6ea0ff, #3b6bff);
}

.loja-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* sidebar padrão */

.loja-side-stats {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loja-side-stat {
  padding: 14px;
  background: rgba(13, 33, 13, 0.35);
  border: 2px solid rgba(241, 219, 165, 0.35);
}

.loja-side-label {
  display: block;
  font-size: 0.82rem;
  color: #e4d7ac;
}

.loja-side-value {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.hf-modal-overlay[hidden] {
  display: none !important;
}

.hf-modal-box {
  background: #0b1420;
  border: 2px solid #4c7fff;
  width: 520px;
  max-width: 92%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-buy-modal-box {
  box-shadow: 0 0 24px rgba(76, 127, 255, 0.25);
}

.hf-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.hf-modal-description {
  font-size: 0.95rem;
  color: #d9d1a9;
  line-height: 1.6;
}

.hf-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.hf-modal-btn {
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.hf-modal-btn-primary {
  background: #2957d8;
  color: white;
}

.hf-modal-btn-secondary {
  background: #374151;
  color: white;
}

.hf-modal-btn:hover {
  filter: brightness(1.12);
}

.shop-quantity-container {
  margin: 15px 0;
  text-align: center;
}

.shop-quantity-container label {
  display: block;
  margin-bottom: 8px;
  color: #d9d1a9;
  font-weight: 600;
}

.quantity-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background: #374151;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  cursor: pointer;
}

#buyQuantity {
  width: 80px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  background: #0b1420;
  border: 2px solid #4c7fff;
  color: #fff;
  border-radius: 6px;
  padding: 8px;
}

.hf-modal-total {
  text-align: center;
  font-size: 1.1rem;
  margin: 10px 0;
  color: #f1dba5;
}

@media (max-width: 900px) {
  .loja-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
