/** Shop Page **/

.shop-layout {
  display: grid;
  gap: 14px;
}

/** Shop Headline **/

.shop-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.shop-headline h1 {
  margin: 0;
  color: #eee1bd;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-stats { color: var(--muted); font-size: 13px; }

/** Article Card **/

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  border: 1px solid #252525;
  background: linear-gradient(180deg, #191919, #0e0e0e);
  min-height: 255px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: .2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--red-soft);
  box-shadow: 0 0 18px rgba(160, 0, 0, .22);
}

.article-card.active {
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(201, 22, 22, .45), 0 0 20px rgba(201, 22, 22, .2);
}

.quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 2px 8px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.18);
  text-shadow: 0 1px 2px #000;
}

.quality-0 { background: linear-gradient(#4d4d4d, #1b1b1b); }
.quality-1 { background: linear-gradient(#b98b42, #7e531c); }
.quality-2 { background: linear-gradient(#d8d8d8, #858585); }
.quality-3 { background: linear-gradient(#cfa84d, #86701f); }
.quality-4 { background: linear-gradient(#49bf43, #197a25); }
.quality-5 { background: linear-gradient(#395de0, #1f3194); }
.quality-6 { background: linear-gradient(#b53bd6, #702187); }

.quality-text-0 { color: #9b9b9b; }
.quality-text-1 { color: #c99042; }
.quality-text-2 { color: #cfcfcf; }
.quality-text-3 { color: #e0bd55; }
.quality-text-4 { color: #62d35c; }
.quality-text-5 { color: #5f7cff; }
.quality-text-6 { color: #cb5bea; }

.item-img {
  height: 120px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(138,20,20,.28), rgba(0,0,0,.2) 48%, rgba(0,0,0,.62));
  border-bottom: 1px solid #282828;
  font-size: 58px;
}

.item-img img,
.big-icon img { max-width: 86px; max-height: 86px; object-fit: contain; }
.item-fallback { display: none; place-items: center; font-size: 54px; }
.item-info { padding: 12px; }

.item-title {
  color: #eee1bd;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.item-desc {
  color: #9b9b9b;
  font-size: 12px;
  line-height: 1.45;
  min-height: 52px;
  margin-bottom: 10px;
}

.item-details {
  color: #a7a7a7;
  font-size: 12px;
  line-height: 1.55;
  min-height: 94px;
}

.item-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dotted rgba(255,255,255,.07);
  padding: 1px 0;
}

.item-details span:first-child { color: #777; }
.item-details span:last-child { color: #c2c2c2; text-align: right; }

.item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #2d2d2d;
  font-size: 13px;
}

.price {
  color: var(--gold);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.price .diamond { font-size: 14px; }
.card-level { font-weight: 900; }

.diamond {
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 8px currentColor;
}

.diamond-blue, .article-cost.blue, .detail-price.blue { color: #1676ff; }
.diamond-red, .article-cost.red, .detail-price.red { color: #e01414; }

/** Pagination **/

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.page-btn {
  border: 1px solid #2f2f2f;
  background: #111;
  color: #aaa;
  min-width: 34px;
  height: 34px;
  cursor: pointer;
}

.page-btn.active,
.page-btn:hover {
  color: #fff;
  border-color: var(--red);
  background: #2a0d0d;
}

.popular-card,
.selected-card { text-align: center; }

.popular-ribbon {
  display: inline-block;
  margin-bottom: 9px;
  color: #111;
  background: var(--gold);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.big-icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 58px;
  border: 1px solid #3a3a3a;
  background: radial-gradient(circle, rgba(130,16,16,.24), #090909 72%);
  position: relative;
}

.quantity-box { margin-top: 12px; text-align: left; }
.quantity-box label { display: block; margin-bottom: 6px; color: #aaa; font-size: 12px; text-transform: uppercase; font-weight: 700; }

.buy-btn,
.shop-button {
  width: 100%;
  margin-top: 13px;
  height: 42px;
  border: 1px solid #9a1515;
  background: linear-gradient(#c51616, #620b0b);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.buy-btn:hover,
.shop-button:hover { filter: brightness(1.15); }

.shop-selected-empty,
.no-results {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 0;
}

.no-results {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  border: 1px dashed #333;
  background: rgba(0,0,0,.22);
}

.popular-card,
.selected-card { text-align: center; }

.popular-ribbon {
  display: inline-block;
  margin-bottom: 9px;
  color: #111;
  background: var(--gold);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quantity-box select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #0c0c0c;
  color: var(--text);
  border: 1px solid #333;
  outline: none;
}

.quantity-box select:focus { border-color: var(--red); }