/* Modern shop item catalog, beta 2026.10.24.17. */
.shop-page[data-shop-view="items"] .shop-section-title {
  display: none !important;
}

.shop-page[data-shop-view="items"] .shop-top {
  margin-bottom: 8px;
}

.shop-page[data-shop-view="items"] .shop-top h2 {
  overflow: hidden;
  color: #fff0bf;
  font-size: clamp(18px, 5.1vw, 24px);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-page[data-shop-view="items"] .shop-scroll-view {
  box-sizing: border-box;
  flex: 1 1 auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0;
  padding: 8px 5px 8px 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid rgba(255, 220, 139, 0.43) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 230, 164, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(7, 30, 27, 0.8), rgba(9, 28, 24, 0.72)) !important;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.5), 0 3px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(2px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin !important;
  scrollbar-color: #cda64f rgba(5, 22, 19, 0.88) !important;
}

.shop-page[data-shop-view="items"] .shop-scroll-view::-webkit-scrollbar {
  display: block !important;
  width: 8px;
}

.shop-page[data-shop-view="items"] .shop-scroll-view::-webkit-scrollbar-track {
  border-left: 1px solid rgba(255, 226, 159, 0.12);
  background: rgba(5, 22, 19, 0.88);
}

.shop-page[data-shop-view="items"] .shop-scroll-view::-webkit-scrollbar-thumb {
  border: 1px solid rgba(255, 235, 186, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, #e4c36b, #a8792e);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
}

.shop-page[data-shop-view="items"] .shop-scroll-view::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f2d681, #bd8d36);
}

.shop-page[data-shop-view="items"] .shop-list {
  gap: 8px !important;
  width: 100%;
  padding: 0 2px 1px 0;
}

.shop-page[data-shop-view="items"] .shop-card {
  --quality: #b78a51;
  --quality-soft: rgba(183, 138, 81, 0.2);
  --quality-glow: rgba(183, 138, 81, 0.24);
  box-sizing: border-box;
  position: relative;
  display: grid !important;
  grid-template-columns: 100px minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100%;
  min-height: 138px !important;
  padding: 9px !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--quality) 72%, #ffe6a3 28%) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 10% 30%, var(--quality-soft), transparent 34%),
    linear-gradient(145deg, rgba(35, 79, 62, 0.97), rgba(7, 31, 31, 0.98)) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.13),
    inset 4px 0 var(--quality),
    0 3px 7px rgba(0, 0, 0, 0.38) !important;
  transition: filter 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.shop-page[data-shop-view="items"] .shop-card[data-quality="rustic"] {
  --quality: #a87643;
  --quality-soft: rgba(168, 118, 67, 0.18);
  --quality-glow: rgba(168, 118, 67, 0.24);
}

.shop-page[data-shop-view="items"] .shop-card[data-quality="crafted"] {
  --quality: #cf9b4d;
  --quality-soft: rgba(207, 155, 77, 0.19);
  --quality-glow: rgba(207, 155, 77, 0.28);
}

.shop-page[data-shop-view="items"] .shop-card[data-quality="forged"] {
  --quality: #b9cad3;
  --quality-soft: rgba(185, 202, 211, 0.16);
  --quality-glow: rgba(185, 202, 211, 0.25);
}

.shop-page[data-shop-view="items"] .shop-card[data-quality="runic"] {
  --quality: #4fd39b;
  --quality-soft: rgba(79, 211, 155, 0.18);
  --quality-glow: rgba(43, 232, 151, 0.3);
}

.shop-page[data-shop-view="items"] .shop-card[data-quality="legendary"] {
  --quality: #f0c85d;
  --quality-soft: rgba(240, 200, 93, 0.2);
  --quality-glow: rgba(255, 211, 81, 0.36);
}

.shop-page[data-shop-view="items"] .shop-card:hover {
  transform: none;
  border-color: var(--quality) !important;
  filter: brightness(1.05);
}

.shop-page[data-shop-view="items"] .shop-card.locked {
  opacity: 0.78;
  filter: saturate(0.58);
}

.shop-page[data-shop-view="items"] .shop-card-left {
  box-sizing: border-box;
  justify-content: center !important;
  gap: 5px !important;
  padding: 2px !important;
}

.shop-page[data-shop-view="items"] .shop-item-frame {
  box-sizing: border-box;
  width: 88px !important;
  max-width: 88px !important;
  height: 88px !important;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--quality) 72%, transparent) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.13), transparent 37%),
    radial-gradient(circle, var(--quality-soft), rgba(3, 18, 16, 0.72) 70%) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 0 13px var(--quality-glow),
    0 3px 6px rgba(0, 0, 0, 0.38);
}

.shop-page[data-shop-view="items"] .shop-item-frame-bg {
  display: none !important;
}

.shop-page[data-shop-view="items"] .shop-item-icon {
  width: 98% !important;
  height: 98% !important;
  max-width: none !important;
  max-height: none !important;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.52));
}

.shop-page[data-shop-view="items"] .shop-price {
  box-sizing: border-box;
  width: 92px;
  min-width: 0 !important;
  min-height: 25px !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(255, 222, 146, 0.28) !important;
  border-radius: 9px !important;
  color: #f0ffd9 !important;
  background: rgba(4, 20, 17, 0.78) !important;
  font-size: 12px !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.shop-page[data-shop-view="items"] .shop-price img {
  width: 17px !important;
  height: 17px !important;
}

.shop-page[data-shop-view="items"] .shop-card-body {
  box-sizing: border-box;
  justify-content: center !important;
  min-width: 0;
  padding: 4px 5px 4px 2px !important;
}

.shop-page[data-shop-view="items"] .shop-card-title-row {
  min-width: 0;
  padding-right: 2px;
}

.shop-page[data-shop-view="items"] .shop-card-title-row h3 {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #fff0bf !important;
  font-size: 15px !important;
  line-height: 1.16 !important;
  text-wrap: balance;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.92) !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-page[data-shop-view="items"] .shop-owned {
  top: 7px !important;
  right: 7px !important;
  padding: 2px 6px !important;
  border: 1px solid rgba(255, 231, 168, 0.22);
  background: rgba(3, 18, 15, 0.86) !important;
  font-size: 11px !important;
}

.shop-page[data-shop-view="items"] .shop-card:has(.shop-owned) .shop-card-title-row {
  padding-right: 43px;
}

.shop-page[data-shop-view="items"] .shop-desc {
  gap: 2px !important;
  margin-top: 5px !important;
  color: #e7f4e4 !important;
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}

.shop-page[data-shop-view="items"] .shop-desc b {
  color: #ffe39a !important;
}

.shop-page[data-shop-view="items"] .shop-card-actions {
  justify-content: flex-start !important;
  gap: 6px !important;
  margin-top: 7px !important;
}

.shop-page[data-shop-view="items"] .shop-card-actions button {
  min-width: 72px;
  min-height: 31px;
  padding: 6px 11px !important;
  border: 1px solid rgba(255, 238, 190, 0.24) !important;
  border-radius: 10px !important;
  font-size: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 2px rgba(0, 0, 0, 0.42) !important;
}

.shop-page[data-shop-view="items"] .shop-card-actions button:not(.sell) {
  background: linear-gradient(180deg, #58bd62, #267744) !important;
}

.shop-page[data-shop-view="items"] .shop-card-actions button.sell {
  background: linear-gradient(180deg, #c98943, #7b461c) !important;
}

.shop-page[data-shop-view="items"] .shop-lock {
  margin-top: 7px;
  color: #ffd891 !important;
  font-size: 12px !important;
  line-height: 1.2;
}

.shop-page .shop-modal {
  box-sizing: border-box;
  max-width: 360px;
  border: 2px solid rgba(238, 198, 103, 0.78) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 227, 157, 0.12), transparent 34%),
    linear-gradient(155deg, #245241, #092925) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 12px 35px rgba(0, 0, 0, 0.72) !important;
}

.shop-page .shop-modal-frame {
  border: 1px solid rgba(238, 198, 103, 0.48);
  background: radial-gradient(circle, rgba(69, 136, 99, 0.34), rgba(4, 23, 20, 0.78));
  box-shadow: 0 0 15px rgba(224, 184, 84, 0.22);
}

.shop-page .shop-modal-frame-bg {
  display: none !important;
}

.shop-page .shop-modal-item-icon {
  width: 94% !important;
  height: 94% !important;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

@media (max-width: 360px) {
  .shop-page[data-shop-view="items"] .shop-card {
    grid-template-columns: 90px minmax(0, 1fr) !important;
    gap: 5px !important;
    min-height: 128px !important;
    padding: 7px !important;
  }

  .shop-page[data-shop-view="items"] .shop-item-frame {
    width: 80px !important;
    max-width: 80px !important;
    height: 80px !important;
    border-radius: 17px !important;
  }

  .shop-page[data-shop-view="items"] .shop-price {
    width: 84px;
    font-size: 11px !important;
  }

  .shop-page[data-shop-view="items"] .shop-card-title-row h3 {
    font-size: 14px !important;
  }
}

@media (max-height: 650px) {
  .shop-page[data-shop-view="items"] .shop-card {
    min-height: 119px !important;
  }

  .shop-page[data-shop-view="items"] .shop-item-frame {
    width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
  }

  .shop-page[data-shop-view="items"] .shop-price {
    width: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-page[data-shop-view="items"] .shop-card {
    transition: none;
  }
}

