/* ═══════════════════════════════════════════════════════════════
 *  RIP RUST Store — 商店专有样式
 *  Version: 1.3.1 | Author: Joker
 * ═══════════════════════════════════════════════════════════════
 *
 *  外壳（Reset、设计令牌、背景动画、导航、Hero、页脚、公共按钮
 *  与滚动行为）全部由主站的 core.css / elements.css / theme-*.css
 *  提供。本文件只补充"电商所需的组件"：筛选器、商品卡、购物车侧
 *  边栏、商品详情弹窗、赠礼弹窗、Steam 登录条、通知条、分页器、
 *  自定义响应式微调。
 *
 *  颜色一律通过 var(--*) 引用主站令牌；本文件不得写入品牌硬编码色，
 *  因为一旦主站换主题（a-street / b-blaze / c-venom），本页要自动跟随。
 *  半透明色以 rgba(var(--*-rgb), 透明度) 形式表达，避免绑死具体色号。
 *
 *  版本说明：任何一次样式变更都必须同步 bump wrangler.toml 的
 *  ASSET_VERSION，否则边缘/浏览器会长期持旧文件。
 * ═══════════════════════════════════════════════════════════════ */

/* ─── Filters ──────────────────────────────────────────────── */
.filters {
  position: relative; z-index: 1;
  padding: 0 2rem 2rem;
}
.filters__container {
  max-width: var(--max-w); margin: 0 auto;
}
.filters__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  align-items: center;
}
.filter-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-tag:hover {
  color: var(--neon);
  border-color: var(--border-hover);
}
.filter-tag--active {
  color: #fff;
  background: var(--grad-neon);
  border-color: transparent;
  box-shadow: 0 0 14px var(--neon-glow);
}
.filter-tag svg { flex-shrink: 0; }

/* ─── Store Main ──────────────────────────────────────────── */
.store {
  position: relative; z-index: 1;
  padding: 0 2rem 4rem;
}
.store__container {
  max-width: var(--max-w); margin: 0 auto;
}

/* ─── Products Grid ────────────────────────────────────────── */
.products {
  position: relative; z-index: 1;
  padding: 0 2rem 4rem;
}
.products__container {
  max-width: var(--max-w); margin: 0 auto;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ─── Empty State ─────────────────────────────────────────── */
.products__empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem;
  min-height: 300px;
  text-align: center;
  gap: 1rem;
}
.empty-state__icon {
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--neon-subtle);
  border: 1px solid var(--border);
  color: var(--neon-dim);
  animation: emptyPulse 3s ease-in-out infinite;
}
@keyframes emptyPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}
.empty-state__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-2);
  margin: 0;
  letter-spacing: 0.05em;
}
.empty-state__desc {
  font-size: 0.9rem;
  color: var(--text-3);
  max-width: 360px;
  line-height: 1.5;
  margin: 0;
}
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 1rem; gap: 1rem;
  color: var(--text-3);
}
.empty-state svg { opacity: 0.3; }
.empty-state p { font-size: 0.92rem; font-weight: 600; }

/* ─── Product Card ─────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-neon);
  opacity: 0; transition: opacity 0.4s ease;
}
.product-card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-card);
  pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow:
    0 20px 60px rgba(var(--void-rgb), 0.6),
    0 0 40px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(var(--accent-rgb), 0.12);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover::after  { opacity: 1; }

/* Sold out card */
.product-card--soldout,
.product-card--sold-out {
  opacity: 0.55;
  pointer-events: none;
}
.product-card--soldout::before,
.product-card--sold-out::before { display: none; }
.product-card--sold-out:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}

.product-card__image {
  position: relative;
  width: 100%; height: 220px;
  background: var(--bg-deep);
  overflow: hidden;
}
.product-card__image img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-elevated) 100%);
  color: var(--neon-dim); opacity: 0.4;
}

/* Tag label */
.product-card__label {
  position: absolute; top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--grad-neon);
  border-radius: 100px;
  text-transform: uppercase;
  z-index: 2;
}

/* Sale badge */
.product-card__sale-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  padding: 0.3rem 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: #fff;
  background: var(--red);
  border-radius: 100px;
  z-index: 2;
  box-shadow: 0 0 12px rgba(var(--red-rgb), 0.35);
  animation: salePulse 2s ease-in-out infinite;
}
@keyframes salePulse {
  0%, 100% { box-shadow: 0 0 12px rgba(var(--red-rgb), 0.35); }
  50%      { box-shadow: 0 0 20px rgba(var(--red-rgb), 0.55),
                          0 0 40px rgba(var(--red-rgb), 0.18); }
}

/* Sold out overlay */
.product-card__soldout {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--void-rgb), 0.7);
  z-index: 3;
}
.product-card__soldout-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(var(--red-rgb), 0.5);
}

.product-card__body {
  padding: 1.4rem 1.6rem 1.6rem;
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column;
  min-height: 0;
}
.product-card__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.35; color: var(--text-1);
  margin-bottom: 0.6rem;
}
.product-card__desc {
  font-size: 0.92rem; color: var(--text-2);
  line-height: 1.6; margin-bottom: 0.8rem;
  height: 2.95em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
  height: 3.8rem;
}

/* Price area */
.product-card__pricing {
  display: flex; flex-direction: column; gap: 0;
  justify-content: center;
}
.product-card__pricing-row {
  display: flex; align-items: baseline; gap: 0.4rem;
}
.product-card__price-wrap {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.product-card__price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}
.product-card__price--sale {
  color: var(--red);
  text-shadow: 0 0 20px rgba(var(--red-rgb), 0.4);
}
.product-card__price-original {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card__price-sub {
  font-size: 0.7rem; font-weight: 500;
  color: var(--text-3);
  display: inline;
  line-height: 1;
}
.product-card__buy {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--grad-neon);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem; font-weight: 700;
  border: none; border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card__buy:hover {
  box-shadow: 0 0 25px var(--neon-glow);
  transform: translateY(-1px);
}
.product-card__unavailable {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card__stock-badge {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  padding: 0.25rem 0.7rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  color: var(--amber);
  background: rgba(var(--amber-rgb), 0.15);
  border: 1px solid rgba(var(--amber-rgb), 0.35);
  border-radius: 100px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.product-card__sold-out-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.5rem 1.4rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem; font-weight: 800;
  color: var(--red);
  background: rgba(var(--void-rgb), 0.85);
  border: 2px solid var(--red);
  border-radius: var(--r-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
  backdrop-filter: blur(4px);
}

/* ─── Loading ──────────────────────────────────────────────── */
.loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 1rem; gap: 1.2rem;
  width: 100%;
}
.loading__ring {
  width: 56px; height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--neon);
  border-right-color: var(--neon-dim);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  filter: drop-shadow(0 0 8px var(--neon-glow));
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading__text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  color: var(--neon-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: loadPulse 2s ease-in-out infinite;
}
@keyframes loadPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.loading__dots {
  display: flex; gap: 6px;
}
.loading__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: dotBounce 1.4s ease-in-out infinite;
}
.loading__dots span:nth-child(2) { animation-delay: 0.2s; }
.loading__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ─── Cart Sidebar ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(var(--void-rgb), 0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.cart-overlay--open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 90vw;
  z-index: 201;
  background: var(--bg-deep);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -10px 0 60px rgba(0, 0, 0, 0.5);
}
.cart-sidebar--open { transform: translateX(0); }
.cart-sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-sidebar__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-1);
}
.cart-sidebar__title svg { color: var(--neon); }
.cart-sidebar__close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--neon-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.cart-sidebar__close:hover {
  color: var(--neon);
  border-color: var(--border-hover);
}
.cart-sidebar__body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-sidebar__items {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-dim) var(--bg-deep);
}
.cart-sidebar__items::-webkit-scrollbar { width: 5px; }
.cart-sidebar__items::-webkit-scrollbar-track { background: var(--bg-deep); }
.cart-sidebar__items::-webkit-scrollbar-thumb { background: var(--neon-dim); border-radius: 3px; }
.cart-sidebar__empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  color: var(--text-3);
  font-size: 0.9rem;
  text-align: center;
}
.cart-sidebar__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.cart-sidebar__total {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
}
.cart-sidebar__total span:first-child {
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
}
.cart-sidebar__total span:last-child {
  font-size: 1.3rem; font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}
.cart-sidebar__checkout {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  width: 100%; padding: 0.9rem;
  background: var(--grad-neon);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.cart-sidebar__checkout:hover {
  box-shadow: 0 0 30px var(--neon-glow);
  transform: translateY(-1px);
}
.cart-sidebar__clear {
  display: block; width: 100%;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cart-sidebar__clear:hover {
  color: var(--red);
  background: rgba(var(--red-rgb), 0.08);
  border-color: rgba(var(--red-rgb), 0.4);
}

/* Cart Empty */
.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 1rem; gap: 1rem;
  color: var(--text-3);
}
.cart-empty p { font-size: 0.9rem; font-weight: 600; }

/* Cart Item */
.cart-item {
  display: flex; gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}
.cart-item:hover { border-color: var(--border-hover); }
.cart-item__image {
  width: 72px; height: 72px; min-width: 72px;
  border-radius: var(--r-md);
  background: var(--bg-deep);
  overflow: hidden;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-dim); opacity: 0.3;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}
.cart-item__price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem; font-weight: 600;
  color: var(--neon);
}
.cart-item__price-original {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-2);
  text-decoration: line-through;
  opacity: 0.6;
  margin-left: 0.3rem;
}
.cart-item__qty {
  display: flex; align-items: center; gap: 0.4rem;
  margin-top: 0.4rem;
}
.cart-item__qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-2);
  font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-item__qty-btn:hover {
  color: var(--neon);
  border-color: var(--border-hover);
}
.cart-item__qty-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-1);
  min-width: 20px; text-align: center;
}
.cart-item__remove {
  display: flex; align-items: flex-start;
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s ease;
}
.cart-item__remove:hover { color: var(--red); }

/* Cart Total */
.cart-total {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 1rem;
}
.cart-total__label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
}
.cart-total__value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}

/* Checkout button (alternate class from cart-sidebar__checkout) */
.checkout-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  width: 100%; padding: 0.9rem;
  background: var(--grad-neon);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.checkout-btn:hover {
  box-shadow: 0 0 30px var(--neon-glow);
  transform: translateY(-1px);
}
.clear-cart-btn {
  display: block; width: 100%;
  padding: 0.6rem;
  background: transparent;
  color: var(--text-3);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
}
.clear-cart-btn:hover {
  color: var(--red);
  border-color: rgba(var(--red-rgb), 0.35);
}

/* ─── Product Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(var(--void-rgb), 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay--open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  max-width: 800px; width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65),
              0 0 60px rgba(var(--accent-rgb), 0.08);
  overflow: hidden;
}
.modal-overlay--open .modal { transform: scale(1) translateY(0); }
.modal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--void-rgb), 0.8);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.25s ease;
}
.modal__close:hover {
  color: var(--neon);
  border-color: var(--border-hover);
}
.modal__content {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; overflow: hidden;
}
.modal__header {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.6rem;
  text-align: center;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
  position: relative;
}
.modal__header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 2px;
  background: var(--grad-neon);
  border-radius: 2px;
}
.modal__badges {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.modal__badge {
  padding: 0.3rem 0.9rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--amber);
  background: rgba(var(--amber-rgb), 0.12);
  border: 1px solid rgba(var(--amber-rgb), 0.32);
  border-radius: 20px;
  text-transform: uppercase;
}
.modal__badge--sold-out {
  color: var(--red);
  background: rgba(var(--red-rgb), 0.12);
  border-color: rgba(var(--red-rgb), 0.32);
}
.modal__badge--stock {
  color: var(--amber);
  background: rgba(var(--amber-rgb), 0.12);
  border-color: rgba(var(--amber-rgb), 0.32);
}
.modal__badge--label {
  color: var(--green);
  background: rgba(var(--green-rgb), 0.12);
  border-color: rgba(var(--green-rgb), 0.32);
}
.modal__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  width: 100%;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.modal__server-tabs {
  display: flex; gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.modal__server-tab {
  padding: 0.4rem 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  color: var(--text-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal__server-tab:hover {
  color: var(--text-2);
  border-color: var(--border-hover);
}
.modal__server-tab--active {
  color: #fff;
  background: var(--grad-neon);
  border-color: transparent;
  box-shadow: 0 0 12px var(--neon-glow);
}
.modal__body-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-dim) var(--bg-deep);
}
.modal__body-scroll::-webkit-scrollbar { width: 6px; }
.modal__body-scroll::-webkit-scrollbar-track { background: var(--bg-deep); }
.modal__body-scroll::-webkit-scrollbar-thumb { background: var(--neon-dim); border-radius: 3px; }
.modal__desc {
  font-size: 0.92rem; color: var(--text-2);
  line-height: 1.7; margin-bottom: 1.25rem;
  margin-top: 0;
}
.modal__desc img {
  max-width: 100%;
  border-radius: var(--r-md);
  margin: 0.75rem 0;
}
.modal__desc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}
.modal__desc table td,
.modal__desc table th {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.modal__desc h2, .modal__desc h3, .modal__desc h4 {
  color: var(--text-1);
  margin: 1rem 0 0.5rem;
}
.modal__desc ul, .modal__desc ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}
.modal__desc li { margin-bottom: 0.25rem; }

.modal__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.modal__meta-tag {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-2);
  background: var(--neon-subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal__image {
  width: 100%;
  background: var(--bg-surface);
  overflow: hidden;
  flex-shrink: 0;
}
.modal__image img { width: 100%; height: auto; display: block; object-fit: cover; }
.modal__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--neon-dim); opacity: 0.3;
}
.modal__sale-ribbon {
  position: absolute;
  top: 16px; left: -8px;
  z-index: 5;
  padding: 0.35rem 1.2rem 0.35rem 1rem;
  background: var(--red);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(var(--red-rgb), 0.35);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.modal__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex; align-items: center; gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.modal__pricing {
  display: flex; flex-direction: column; gap: 0;
  margin-right: auto;
}
.modal__pricing-row {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
}
.modal__actions {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap;
}
.modal__price-sub { font-size: 0.75rem; color: var(--text-3); }
.modal__price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow);
}
.modal__price--sale {
  color: var(--red);
  text-shadow: 0 0 20px rgba(var(--red-rgb), 0.4);
}
.modal__price-original {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-3);
  text-decoration: line-through;
}
.add-to-cart-btn--disabled {
  background: var(--bg-elevated);
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.6;
}
.add-to-cart-btn--disabled:hover {
  box-shadow: none;
  transform: none;
}

/* Quantity Control */
.qty-control {
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--neon-subtle);
  border: none;
  color: var(--text-2);
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.qty-btn:hover {
  color: var(--neon);
  background: rgba(var(--accent-rgb), 0.14);
}
.qty-value {
  width: 40px; text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-1);
}

.add-to-cart-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--grad-neon);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.add-to-cart-btn:hover {
  box-shadow: 0 0 30px var(--neon-glow);
  transform: translateY(-1px);
}

/* Gift button — the only place a fixed accent color is intentional
 * because "gift" carries a stable secondary meaning across themes. */
.gift-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem; font-weight: 700;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gift-btn:hover {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

/* ─── Gift Modal ──────────────────────────────────────────── */
.gift-modal {
  max-width: 500px;
  text-align: center;
  padding: 2.5rem 2.5rem 2.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem;
}
.gift-modal__icon { color: var(--neon); margin-bottom: 1rem; }
.gift-modal__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.75rem;
}
.gift-modal__product {
  font-size: 0.95rem;
  color: var(--neon);
  font-weight: 600;
  margin-bottom: 1rem;
}
.gift-modal__desc,
.gift-modal__hint {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}
.gift-modal__recent {
  display: flex; gap: 0.6rem; width: 100%; margin-bottom: 1rem;
}
.gift-modal__recent-btn {
  flex: 1;
  padding: 0.55rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--neon-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gift-modal__recent-btn:hover {
  border-color: var(--border-strong);
  color: var(--neon);
  background: var(--neon-subtle);
  box-shadow: 0 0 10px var(--neon-glow);
}
.gift-modal__input {
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
  margin-bottom: 1.75rem;
  text-align: center;
}
.gift-modal__input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px var(--neon-glow);
}
.gift-modal__input::placeholder {
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.gift-modal__actions { display: flex; gap: 1rem; width: 100%; }
.gift-modal__btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  border: none; border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gift-modal__btn--confirm {
  background: var(--grad-neon);
  color: #fff;
}
.gift-modal__btn--confirm:hover {
  box-shadow: 0 0 25px var(--neon-glow);
  transform: translateY(-1px);
}
.gift-modal__btn--cancel {
  background: var(--bg-elevated);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.gift-modal__btn--cancel:hover {
  color: var(--text-1);
  border-color: var(--border-hover);
}

/* ─── Cart Auth (Steam login/user inside cart sidebar) ─── */
.cart-sidebar__auth {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-auth {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-auth--logged-in { padding-left: 1.5rem; }
.cart-auth__user {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%;
}
.cart-auth__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--neon-dim);
  flex-shrink: 0;
  object-fit: cover;
}
.cart-auth__avatar-placeholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  color: var(--text-3);
  flex-shrink: 0;
}
.cart-auth__info {
  display: flex; flex-direction: column;
  min-width: 0; flex: 1;
}
.cart-auth__name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-auth__id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--neon-dim);
  opacity: 0.8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-auth__logout {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  text-decoration: none;
}
.cart-auth__logout:hover {
  color: var(--red);
  border-color: rgba(var(--red-rgb), 0.35);
  background: rgba(var(--red-rgb), 0.06);
}
/* Steam brand color kept intentionally — Steam login CTA is a fixed
 * platform-brand affordance and must remain recognizable across themes. */
.cart-auth__login {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem;
  background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
  border: 1px solid rgba(102, 192, 244, 0.2);
  border-radius: var(--r-md);
  color: #66c0f4;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  cursor: pointer;
}
.cart-auth__login:hover {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border-color: rgba(102, 192, 244, 0.4);
  box-shadow: 0 0 20px rgba(102, 192, 244, 0.15);
}
.cart-auth__login svg { stroke: #66c0f4; }

/* ─── Cart Item Gift Tag ─────────────────────────────────── */
.cart-item--gift { border-color: rgba(124, 58, 237, 0.32); }
.cart-item--gift:hover { border-color: rgba(124, 58, 237, 0.5); }
.cart-item__gift-tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.32);
  border-radius: 4px;
  color: #a855f7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 600;
  margin-bottom: 0.3rem;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item__gift-tag svg { flex-shrink: 0; color: #a855f7; }

/* ─── Notifications (bottom-right stacking) ─────────────── */
.notification-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column-reverse;
  gap: 0.5rem;
  z-index: 500;
  pointer-events: none;
}
.notif {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1rem;
  min-width: 260px; max-width: 380px;
  background: rgba(var(--surface-rgb), 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(1rem) scale(0.95);
  transition: all 0.35s var(--ease);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255,255,255,0.03);
  overflow: hidden;
  position: relative;
  pointer-events: auto;
}
.notif--visible { opacity: 1; transform: translateY(0) scale(1); }
.notif__icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 6px;
}
.notif--success .notif__icon { background: rgba(var(--green-rgb), 0.14); color: var(--green); }
.notif--success              { border-color: rgba(var(--green-rgb), 0.18); }
.notif--error   .notif__icon { background: rgba(var(--red-rgb), 0.14);   color: var(--red); }
.notif--error                { border-color: rgba(var(--red-rgb), 0.18); }
.notif--info    .notif__icon { background: rgba(var(--accent-rgb), 0.14); color: var(--neon); }
.notif--info                 { border-color: rgba(var(--accent-rgb), 0.18); }
.notif__text {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
  min-width: 0;
}
.notif__close {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.notif__close:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
}
.notif__progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 100%;
  animation: notif-progress 3.5s linear forwards;
}
.notif--success .notif__progress { background: var(--green); }
.notif--error   .notif__progress { background: var(--red); }
.notif--info    .notif__progress { background: var(--neon); }
@keyframes notif-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ─── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding: 1rem 0;
}
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.page-btn:hover:not(.page-btn--disabled):not(.page-btn--active) {
  color: var(--neon);
  border-color: var(--border-hover);
  background: var(--neon-subtle);
}
.page-btn--active {
  background: var(--grad-neon);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px var(--neon-glow);
  cursor: default;
}
.page-btn--arrow { background: transparent; }
.page-btn--disabled { opacity: 0.3; cursor: not-allowed; }
.page-dots {
  display: flex; align-items: center; justify-content: center;
  min-width: 28px; height: 38px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ─── Responsive tweaks (store-specific only) ─────────────
 * 主站的导航/hero/footer 响应式由 core.css 负责，不在此重复。
 * 这里只保留商品栅格、模态框、购物车侧栏、通知条等商店专有元素的断点。 */

/* Large desktop */
@media (min-width: 1400px) {
  .products__grid { grid-template-columns: repeat(4, 1fr); }
}
/* Tablet landscape */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .modal { max-width: 90vw; }
}
/* Tablet portrait */
@media (max-width: 768px) {
  .filters__container { padding: 0 1rem; }
  .filters__tags { gap: 0.4rem; }
  .filter-tag { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card__body { padding: 1rem 1.2rem 1.2rem; }
  .product-card__name { font-size: 1rem; margin-bottom: 0.4rem; }
  .product-card__desc { height: auto; min-height: 0; margin-bottom: 0.5rem; font-size: 0.85rem; }
  .product-card__footer { height: auto; padding: 0.8rem 0 0; }
  .modal { margin: 0.75rem; max-height: calc(100vh - 1.5rem); max-width: calc(100vw - 1.5rem); }
  .modal__image { height: auto; }
  .modal__footer { flex-direction: column; gap: 0.75rem; }
  .modal__pricing { margin-right: 0; }
  .modal__actions { width: 100%; }
  .qty-control { width: auto; }
  .cart-sidebar { width: 100%; max-width: 100vw; }
  .gift-modal { margin: 1rem; max-width: calc(100vw - 2rem); }
  .gift-modal__input { font-size: 0.85rem; }
  .notification-container { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; }
  .notif { min-width: auto; max-width: 100%; }
}
/* Description content responsive fixes */
@media (max-width: 768px) {
  .modal__desc table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .modal__desc table tbody,
  .modal__desc table tr { display: table !important; width: 100% !important; }
  .modal__desc div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .modal__title { font-size: 1.6rem; }
}
/* Mobile */
@media (max-width: 480px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .product-card__image { height: 150px; }
  .product-card__body { padding: 0.8rem 0.8rem 1rem; }
  .product-card__name { font-size: 0.9rem; margin-bottom: 0.3rem; }
  .product-card__desc { font-size: 0.78rem; -webkit-line-clamp: 2; height: auto; min-height: 0; margin-bottom: 0.4rem; }
  .product-card__desc:empty,
  .product-card__desc--empty { height: 0; margin-bottom: 0; }
  .product-card__footer { flex-direction: column; align-items: flex-start; gap: 0.4rem; height: auto; padding: 0.7rem 0 0; }
  .product-card__price { font-size: 1rem; }
  .product-card__price-original { font-size: 0.78rem; }
  .product-card__buy { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
  .modal { margin: 0.5rem; max-height: calc(100vh - 1rem); max-width: calc(100vw - 1rem); }
  .modal__image { height: auto; }
  .modal__footer { gap: 0.6rem; }
  .modal__actions { flex-direction: column; width: 100%; }
  .qty-control { width: 100%; justify-content: center; }
  .add-to-cart-btn { width: 100%; }
  .gift-btn { width: 100%; }
  .gift-modal { margin: 0.75rem; max-width: calc(100vw - 1.5rem); padding: 1.5rem 1.25rem; }
  .gift-modal__title { font-size: 1rem; }
  .gift-modal__input { font-size: 0.8rem; padding: 0.7rem 0.8rem; }
  .gift-modal__btn { padding: 0.65rem 0.75rem; font-size: 0.82rem; }
  .cart-auth__avatar { width: 30px; height: 30px; }
  .cart-auth__name { font-size: 0.78rem; }
  .cart-auth__id { font-size: 0.6rem; }
  .pagination { gap: 0.25rem; }
  .page-btn { min-width: 32px; height: 32px; font-size: 0.75rem; }
  .store { padding: 0 1rem 3rem; }
  .modal__desc table { font-size: 0.75rem !important; }
  .modal__desc table td { padding: 4px 6px !important; white-space: normal !important; }
  .modal__title { font-size: 1.3rem; }
  .modal__header { padding-top: 1rem; gap: 0.4rem; }
  .modal__badge { font-size: 0.55rem; padding: 0.2rem 0.6rem; }
  .modal__body-scroll { padding: 1rem; }
}
/* Very small phones */
@media (max-width: 360px) {
  .products__grid { grid-template-columns: 1fr; }
  .product-card__image { height: 180px; }
}

/* ─── Image Protection ───────────────────────────────────── */
/* 商店独有的图像保护策略：禁止拖拽与选择商品图，避免被简单地保存下来。
 * 主站不需要这个行为，所以留在本文件里。 */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
a img, button img { pointer-events: none; }
.product-card__img-wrap,
.modal__img-wrap { position: relative; }
.product-card__img-wrap::after,
.modal__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
body.no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ─── Cart button (nav) ────────────────────────────────── */
/* 圆形描边按钮，与主题 nav 链接使用同一套颜色与内阴影风格。
   任何色号一律取自主题 token，避免硬编码。 */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 0.5rem;
  /* 方形小圆角，与 SoloKing 旧版一致的视觉形式（色号已换成 riprust 主题 token） */
  border-radius: var(--r-md, 10px);
  color: var(--text-1);
  background: rgba(var(--surface-rgb), 0.4);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 180ms var(--ease),
              border-color 180ms var(--ease),
              background-color 180ms var(--ease),
              box-shadow 180ms var(--ease),
              transform 180ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cart-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  pointer-events: none;
}
.cart-btn:hover,
.cart-btn:focus-visible {
  color: var(--neon2);
  border-color: var(--border-hover);
  background: rgba(var(--accent2-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--accent2-rgb), 0.14),
              0 0 18px var(--neon-glow);
  outline: none;
}
.cart-btn:active {
  transform: scale(0.94);
}

/* 右上角数量徐标，count=0 时隐藏（由 store.js 切换 --visible 修饰类） */
.cart-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bg-void);
  background: var(--neon);
  border: 1px solid var(--bg-void);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--neon-glow);
  pointer-events: none;
}
.cart-btn__count--visible {
  display: inline-flex;
}

/* 移动端：在折叠菜单里作为最后一项时与链接对齐 */
@media (max-width: 900px) {
  .cart-btn {
    width: 44px;
    height: 44px;
    margin: 0.5rem 0 0;
  }
}
