/* ═══════════════════════════════════════════════════════════════════════
   Fastitem 7.2 — کارت آیتم مشترک (طرح Home 1a / Dota2 Listing) — روی همهٔ صفحات لود می‌شود
   ═══════════════════════════════════════════════════════════════════════ */
/* ───────────────────────── کارت آیتم ───────────────────────── */
body .fh-card {
  background: var(--fh-card); border: 1px solid var(--fh-line); border-radius: var(--fh-radius); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s; direction: rtl; min-width: 0;
}
body .fh-card:hover { border-color: var(--fh-line2); transform: translateY(-2px); }
body .fh-img {
  position: relative; aspect-ratio: 232 / 150; background: radial-gradient(ellipse 55% 45% at 50% 55%, color-mix(in srgb, var(--rc, #6b7280) 55%, transparent), transparent 70%), var(--fh-card2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
body .fh-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,26,33,.85), transparent 40%); pointer-events: none; }
body .fh-img > img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); transition: transform .3s; }
body .fh-card:hover .fh-img > img { transform: scale(1.05); }
/* دوتا: عکس استیم پس‌زمینهٔ خودش را دارد → کل کادر را پر کند */
body .fh-img.fh-cover { background: var(--fh-card2); }
body .fh-img.fh-cover > img { width: 100%; height: 100%; object-fit: cover; filter: none; }
body .fh-img.fh-cover::after { background: linear-gradient(to top, rgba(24,26,33,.9), transparent 45%); }
body .fh-expand {
  position: absolute; z-index: 2; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.28);
  background: rgba(15,17,22,.35); color: #cfd3dc; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; opacity: .7; transition: opacity .2s;
}
body .fh-expand:hover { opacity: 1; color: #fff; }
body .fh-tag {
  position: absolute; z-index: 2; bottom: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 4px;
  border-radius: 20px; background: rgba(10,11,15,.8); border: 1px solid rgba(255,255,255,.08); color: #e8eaf0; font-size: 11px; font-weight: 600; text-decoration: none; max-width: calc(100% - 20px); direction: ltr;
}
body .fh-tag:hover { color: #fff; background: rgba(10,11,15,.95); }
body .fh-tag img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; background: #6d4bd3; }
body .fh-tag span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .fh-tag.fh-tag-plain { padding: 0 8px; font-family: 'Rajdhani', sans-serif; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; font-size: 11px; }
body .fh-body { padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
body .fh-name {
  margin: 0; font-size: 13px; font-weight: 700; color: var(--fh-text); direction: ltr; text-align: right; line-height: 1.5; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body .fh-name b { color: #fbbf24; }
body .fh-chips { display: flex; gap: 6px; flex-wrap: wrap; direction: rtl; }
body .fh-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--fh-card2); border: 1px solid var(--fh-line);
  font-size: 11px; font-weight: 700; color: var(--fh-muted); direction: ltr;
}
body .fh-chip.mono { font-family: 'Rajdhani', monospace; font-size: 12px; letter-spacing: .03em; color: #c3c8d1; }
body .fh-pricerow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
body .fh-price { display: flex; align-items: baseline; gap: 5px; direction: rtl; }
body .fh-price b { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: .01em; }
body .fh-price small { font-size: 11px; color: var(--fh-muted); }
body .fh-price del { font-size: 10px; color: var(--fh-muted2); margin-right: 6px; order: 3; }
body .fh-fast { font-size: 11px; font-weight: 600; color: #7fe39c; opacity: .85; }
body .fh-lock { font-size: 11px; font-weight: 600; color: var(--fh-muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
body .fh-lock i { font-size: 11px; }
body .fh-btns { display: flex; gap: 6px; }
body .fh-buy {
  flex: 1; height: 36px; border: 0; border-radius: 9px; background: var(--fh-blue); color: #fff; font-family: iransansx; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; transition: background .2s; text-decoration: none; padding: 0 8px; min-width: 0;
}
body .fh-buy:hover { background: var(--fh-blue2); color: #fff; }
body .fh-buy svg { width: 15px; height: 15px; flex: 0 0 auto; }
body .fh-buy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .fh-ghost {
  flex: 0 0 auto; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--fh-line2); background: transparent; color: var(--fh-text);
  font-family: iransansx; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s; cursor: pointer;
}
body .fh-ghost:hover { background: var(--fh-card2); color: #fff; }
body .fh-empty { padding: 30px; text-align: center; color: var(--fh-muted); background: var(--fh-card); border: 1px dashed var(--fh-line2); border-radius: var(--fh-radius); font-size: 13px; }


/* دوتا: ردیف متا (کمیابی · مدل) و دکمهٔ پیش‌نمایش سبز (طرح Dota2 Listing) */
body .fh-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fh-muted); direction: rtl; }
body .fh-meta b { font-weight: 700; }
body .fh-meta em { font-style: normal; opacity: .6; }
body .fh-meta span { opacity: .85; }
body .fh-prev {
  position: absolute; z-index: 2; bottom: 10px; left: 10px; width: 24px; height: 24px; border-radius: 50%; background: #22c55e; color: #052e16;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .15s, background .15s;
}
body .fh-prev svg { width: 12px; height: 12px; margin-left: -1px; }
body .fh-prev:hover { transform: scale(1.1); background: #4ade80; color: #052e16; }
/* خط رنگی کمیابی زیر تصویر */
body .fh-img.fh-cover { border-bottom: 3px solid var(--rc, transparent); }

/* ═══════ کارت دوتا (طرح ۲۰۲۶-۰۹-۰۶): خط کمیابی بالا، لایه‌ها/تخفیف گوشه، کمیابی | هیرو، خرید مستقیم + پیش‌نمایش ═══════ */
body .fh-card.fh-dota { border-top: 3px solid var(--rc, var(--fh-line2)); border-radius: 16px; }
body .fh-dota .fh-img.fh-cover { aspect-ratio: 320 / 220; border-bottom: 0; background: #2b2d33; }
body .fh-dota .fh-img.fh-cover::after { content: none; }
body .fh-dota .fh-img.fh-cover > img { width: 100%; height: 100%; object-fit: cover; }
body .fh-dota .fh-corner { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; direction: ltr; }
body .fh-dota .fh-expand { position: static; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(15,17,22,.72); color: #cfd3dc; opacity: 1; display: inline-flex; align-items: center; justify-content: center; }
body .fh-dota .fh-expand svg { width: 15px; height: 15px; }
body .fh-dota .fh-expand:hover { background: rgba(15,17,22,.9); color: #fff; }
body .fh-dota .fh-off { height: 26px; padding: 0 8px; border-radius: 7px; background: #e5484d; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; direction: ltr; }
body .fh-dota .fh-body { padding: 10px 12px 12px; gap: 8px; }
body .fh-dota .fh-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
body .fh-dota .fh-tag { position: static; max-width: 70%; background: var(--fh-card2); border-color: var(--fh-line); height: 24px; }
body .fh-dota .fh-rar { font-size: 12px; font-weight: 700; white-space: nowrap; }
/* نام همیشه جای ۲ خط دارد تا قیمت و دکمه‌ها در همهٔ کارت‌ها هم‌تراز بمانند */
body .fh-dota .fh-name { font-size: 15px; line-height: 1.45; min-height: calc(2 * 1.45em); margin-top: 2px; -webkit-line-clamp: 2; }
body .fh-dota .fh-pricerow { margin-top: auto; }
body .fh-dota .fh-pricerow { padding-top: 8px; align-items: flex-end; }
body .fh-dota .fh-price { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; }
body .fh-dota .fh-price del { order: 0; margin: 0; font-size: 10.5px; color: var(--fh-muted2); }
body .fh-dota .fh-price span { display: flex; align-items: baseline; gap: 5px; }
body .fh-dota .fh-price b { font-size: 17px; }
body .fh-dota .fh-lock { color: var(--fh-muted); font-weight: 500; }
body .fh-dota .fh-btns { gap: 8px; }
body .fh-dota .fh-buy { height: 40px; border-radius: 10px; font-size: 13px; }
body .fh-dota .fh-play { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #22c55e; color: #052e16; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
body .fh-dota .fh-play svg { width: 16px; height: 16px; margin-left: -1px; }
body .fh-dota .fh-play:hover { background: #4ade80; color: #052e16; }
body.fsi-dl .fh-dota .fh-expand { display: inline-flex !important; }

/* ─── کارت کانتر (طرح CS2 Listing، ۲۰۲۶-۰۹-۰۶) ─── */
body .fh-card.fh-cs { border-top: 3px solid var(--rc, var(--fh-line2)); border-radius: 16px; }
body .fh-cs .fh-img.fh-csimg { aspect-ratio: 320 / 220; background: #16181f; display: flex; align-items: center; justify-content: center; }
body .fh-cs .fh-img.fh-csimg::after { content: none; }
body .fh-cs .fh-img.fh-csimg > img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
body .fh-cs .fh-corner { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; direction: ltr; }
body .fh-cs .fh-expand { position: static; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(15,17,22,.72); color: #cfd3dc; opacity: 1; display: inline-flex !important; align-items: center; justify-content: center; }
body .fh-cs .fh-expand svg { width: 15px; height: 15px; }
body .fh-cs .fh-expand:hover { background: rgba(15,17,22,.9); color: #fff; }
body .fh-cs .fh-off { height: 26px; padding: 0 8px; border-radius: 7px; background: #e5484d; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; }
body .fh-cs .fh-stk { position: absolute; z-index: 2; bottom: 8px; right: 8px; display: flex; gap: 3px; padding: 3px 5px; border-radius: 8px; background: rgba(15,17,22,.6); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); direction: ltr; }
body .fh-cs .fh-stk img { width: 22px; height: 18px; object-fit: contain; }
body .fh-cs .fh-body { padding: 10px 12px 12px; gap: 8px; }
body .fh-cs .fh-toprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
body .fh-cs .fh-wtag { position: static; height: 24px; max-width: 70%; background: var(--fh-card2); border-color: var(--fh-line); text-transform: none; letter-spacing: 0; font-family: iransansx; gap: 6px; padding: 0 8px; }
body .fh-cs .fh-wtag b { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px; color: #fff; direction: ltr; }
body .fh-cs .fh-wtag small { font-size: 10.5px; color: var(--fh-muted); }
body .fh-cs .fh-rar { font-size: 12px; font-weight: 700; white-space: nowrap; }
body .fh-cs .fh-name { font-size: 14px; min-height: calc(2 * 1.5em); }
body .fh-cs .fh-name .fh-pre-st { color: #cf6a32; font-weight: 800; }
body .fh-cs .fh-name .fh-pre-star { color: #e4ae39; font-weight: 800; }
body .fh-cs .fh-name .fh-pre-sv { color: #ffd700; font-weight: 800; }
body .fh-cs .fh-wear { min-height: 30px; }
body .fh-cs .fh-wearrow { display: flex; align-items: center; justify-content: space-between; direction: ltr; font-size: 11.5px; }
body .fh-cs .fh-wearrow b { font-weight: 700; }
body .fh-cs .fh-float { font-family: 'Rajdhani', monospace; font-size: 12px; color: #c3c8d1; letter-spacing: .03em; }
body .fh-cs .fh-wearbar { position: relative; height: 4px; border-radius: 4px; margin-top: 6px; background: linear-gradient(to right, #4fc06a 0 7%, #9dc34e 7% 15%, #f1c40f 15% 38%, #e67e22 38% 45%, #e74c3c 45% 100%); }
body .fh-cs .fh-wearbar i { position: absolute; top: -3px; width: 2px; height: 10px; background: #fff; border-radius: 1px; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
body .fh-cs .fh-pricerow { margin-top: 4px; align-items: flex-end; }
body .fh-cs .fh-price { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; }
body .fh-cs .fh-price del { order: 0; margin: 0; font-size: 10.5px; color: var(--fh-muted2); }
body .fh-cs .fh-price span { display: flex; align-items: baseline; gap: 5px; }
body .fh-cs .fh-price b { font-size: 17px; }
body .fh-cs .fh-lock { color: var(--fh-muted); font-weight: 500; }
body .fh-cs .fh-btns { gap: 8px; }
body .fh-cs .fh-buy { height: 40px; border-radius: 10px; font-size: 13px; }
body .fh-cs .fh-play { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #22c55e; color: #052e16; display: inline-flex; align-items: center; justify-content: center; }
body .fh-cs .fh-play svg { width: 17px; height: 17px; }
body .fh-cs .fh-play:hover { background: #4ade80; color: #052e16; }
