/* หน้า /fire-market แบบการ์ด (fpm-cards-1203 · เจ้าของ 3 ธ.ค. 2569 ส่งภาพตัวอย่าง) — โหลดเฉพาะหน้ารายการ (fire-market.ejs)
   ภาพไอเทม = ภาพ collection จริงจาก client (public/img/items-col) · ไม่มีภาพ = ไอคอนเล็กขยายแบบพิกเซล · หน้าอื่นของตลาดไม่ได้ใช้ไฟล์นี้ */

/* ไอคอนหน้าแท็บ (partials/fire-market-top.ejs ส่ง navIcons: true) */
.fpm-nav a { display: inline-flex; align-items: center; gap: 7px; }
.fpm-nav a > svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ช่องกรอง: ค้นหา · หมวด · อาวุธ · อาชีพ · เรียง */
.fpm-filter select[name="job"] { min-width: 150px; }

.fpc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fpc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid #f3d9c3; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(122, 61, 12, .05); transition: border-color .12s, box-shadow .12s; }
.fpc:hover, .fpc:focus-within { z-index: 3; border-color: #f0a873; box-shadow: 0 8px 22px rgba(122, 61, 12, .10); }

.fpc-top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 auto; }
.fpc-art { flex: none; display: grid; place-items: center; width: 96px; height: 116px; border-radius: 12px; background: linear-gradient(160deg, #fff8ee, #fdebd6); border: 1px solid #f8e2cb; overflow: hidden; }
.fpc-art img { display: block; max-width: 84px; max-height: 106px; width: auto; height: auto; }
/* ไม่มีภาพใหญ่: ไอคอน 24px ในเกม → ขยาย 2.5 เท่าแบบพิกเซล (ไม่ให้เบลอ) */
.fpc-art.is-icon img, .fpc-art.is-zeny img { image-rendering: pixelated; image-rendering: crisp-edges; }
.fpc-art.is-icon img { width: 60px; height: 60px; max-width: none; max-height: none; object-fit: contain; }
.fpc-art.is-zeny img { width: 69px; height: 63px; max-width: none; max-height: none; }
.fpc-art.is-none b { color: #d9925a; font-size: 34px; font-weight: 800; }

.fpc-body { min-width: 0; flex: 1 1 auto; }
.fpc-name { margin: 2px 0 0; color: #3a1c10; font-size: 16.5px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.fpc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.fpc-chips li { max-width: 100%; padding: 2px 9px; border: 1px solid #f8d2b0; border-radius: 999px; background: #fff3e8; color: #b04d0c; font-size: 12px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.fpc-chips li.is-card { background: #ffe9d6; border-color: #f4b98a; color: #9a3f06; }
.fpc-chips li.is-deal { background: #fff7e0; border-color: #f3d28a; color: #8a5a00; }
.fpc-chips li.is-empty { background: #fff; border-style: dashed; border-color: #efb98d; color: #b06a33; }
.fpc-chips li.is-nodata { background: #f6f2ee; border-color: #e2d6cb; color: #7a6656; }
.fpc-meta { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: #7a5a47; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.fpc-meta + .fpc-meta { margin-top: 4px; }
.fpc-meta svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: #d0732c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fpc-meta b { color: #4a2716; font-weight: 700; }
.fpc-meta[title] { cursor: help; }

.fpc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f6e4d4; }
.fpc-price { min-width: 0; font-variant-numeric: tabular-nums; }
.fpc-price small { display: block; font-size: 12px; color: #85634f; line-height: 1.3; }
.fpc-price b { display: block; color: #e2560a; font-size: 21px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.fpc-price em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: #7a4a33; }
.fpc-price span { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; font-weight: 700; color: #7a4a33; }
.fpc-price span img { width: 18px; height: 18px; }
.fpc-go { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #e8650a; border-radius: 10px; background: #fff; color: #d3570a; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.fpc-go:hover { background: #e8650a; color: #fff; }
.fpc-go span { font-size: 17px; line-height: 1; }

@media (max-width: 1080px) { .fpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .fpc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .fpc { padding: 12px; }
  .fpc-top { gap: 12px; }
  .fpc-art { width: 84px; height: 104px; }
  .fpc-art img { max-width: 74px; max-height: 96px; }
  .fpm-filter select[name="job"] { min-width: 0; }
}
