/* ═══════════════════════════════════════════════════════
   FBADSMARKET — PRODUCT CARD (fpc-*)  v3
   namespace fpc- เพื่อไม่ชนกับ .pcard ของหน้าแรก
   ═══════════════════════════════════════════════════════ */

/* ── Shop page ─────────────────────────────────────── */
.fpc-shop { min-height: 70vh; }
.fpc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.fpc-shop-hdr { text-align: center; padding: 3rem 0 2.25rem; }
.fpc-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.28);
  color: #fbbf24; font-size: .8125rem; font-weight: 700; letter-spacing: .04em;
  padding: .35rem .95rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.fpc-shop-title { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.25; color: #fff; margin: 0 0 .75rem; }
.fpc-shop-title .fpc-grad {
  background: linear-gradient(90deg, #fbbf24, #f472b6 55%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fpc-shop-sub { color: #9ca3af; font-size: .95rem; margin: 0; }
.fpc-empty { text-align: center; padding: 4rem 1rem; color: #9ca3af; }
.fpc-empty a { color: #fbbf24; }

.fpc-list { display: flex; flex-direction: column; gap: 1.75rem; }

/* ══════════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════════ */
.fpc {
  --fpc-gold: #fbbf24;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 1.375rem;
  border-radius: 22px;
  border: 2px solid transparent;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(245,158,11,.10), transparent 55%) padding-box,
    radial-gradient(80% 70% at 0% 0%, rgba(139,92,246,.08), transparent 60%) padding-box,
    linear-gradient(#0e0c13, #0b0a0f) padding-box,
    linear-gradient(120deg, #a855f7 0%, #6366f1 28%, #f59e0b 62%, #ec4899 100%) border-box;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 18px 60px rgba(0,0,0,.45), 0 0 46px rgba(168,85,247,.10);
  color: #e5e7eb;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  transition: transform .25s ease, box-shadow .25s ease;
}
.fpc:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 24px 70px rgba(0,0,0,.55), 0 0 60px rgba(245,158,11,.16);
}

/* ── Media ─────────────────────────────────────────── */
.fpc-media {
  position: relative;
  align-self: center;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0f;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.fpc-media > a { display: block; width: 100%; height: 100%; text-decoration: none; }
.fpc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.fpc:hover .fpc-media img { transform: scale(1.03); }
.fpc-media-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 85% 10%, rgba(139,92,246,.5), transparent 55%), #0a0a0f;
  color: rgba(255,255,255,.35); font-weight: 700; font-size: 1.1rem;
}
.fpc-save {
  position: absolute; right: .9rem; bottom: .9rem; z-index: 2;
  background: #22c55e; color: #04220f;
  font-size: .9rem; font-weight: 800;
  padding: .5rem 1rem; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(34,197,94,.35);
}
.fpc-stock {
  position: absolute; left: .9rem; top: .9rem; z-index: 2;
  color: #fff; font-size: .75rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px;
}
.fpc.is-soldout .fpc-media img { filter: grayscale(.85) brightness(.7); }

/* ── Badge (top-right) ─────────────────────────────── */
.fpc-badge {
  position: absolute; top: 1.375rem; right: 1.375rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  font-size: .95rem; font-weight: 800; white-space: nowrap;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #1f1300;
  box-shadow: 0 8px 24px rgba(245,158,11,.35);
}
.fpc-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.fpc-badge--silver { background: linear-gradient(135deg, #e5e7eb, #94a3b8); color: #111827; box-shadow: 0 8px 24px rgba(148,163,184,.3); }
.fpc-badge--bronze { background: linear-gradient(135deg, #f0a46a, #b8692e); color: #1f0d00; box-shadow: 0 8px 24px rgba(184,105,46,.3); }
.fpc-badge--cyan   { background: linear-gradient(135deg, #67e8f9, #06b6d4); color: #022c33; box-shadow: 0 8px 24px rgba(6,182,212,.3); }
.fpc-badge--green  { background: linear-gradient(135deg, #4ade80, #16a34a); color: #03200d; box-shadow: 0 8px 24px rgba(34,197,94,.3); }
.fpc-badge--red    { background: linear-gradient(135deg, #f87171, #dc2626); color: #fff;    box-shadow: 0 8px 24px rgba(220,38,38,.3); }

/* ── Body ──────────────────────────────────────────── */
.fpc-body { display: flex; flex-direction: column; min-width: 0; padding: .25rem .25rem .25rem 0; }
.fpc.has-badge .fpc-body { padding-top: 3.6rem; }
.fpc-sub { color: var(--fpc-gold); font-size: .875rem; font-weight: 700; margin: 0 0 .55rem; }
.fpc-title { font-size: 1.5rem; font-weight: 800; line-height: 1.4; color: #fff; margin: 0 0 .9rem; letter-spacing: -.005em; }
.fpc-title a { color: inherit; text-decoration: none; }
.fpc-title a:hover { color: #fde68a; }

.fpc-price { display: flex; align-items: baseline; gap: .85rem; margin: 0 0 1.1rem; flex-wrap: wrap; }
.fpc-price-now {
  display: inline-flex; align-items: baseline; gap: .15rem;
  font-weight: 900; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fpc-price-now small { font-size: 1.55rem; font-weight: 800; }
.fpc-price-now b { font-size: 3.1rem; font-weight: 900; }
.fpc-price-old { color: #6b7280; font-size: 1.05rem; font-weight: 600; text-decoration: line-through; }

.fpc-feats {
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem;
}
.fpc-feats li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; line-height: 1.5; color: #e5e7eb; }
.fpc-feats li svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: .3rem; color: var(--fpc-gold); }

.fpc-actions { display: flex; align-items: center; gap: 1.1rem; margin-top: auto; }
.fpc-line {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 60px; padding: .8rem 1.25rem; border-radius: 10px;
  background: #06c755; color: #04210f !important;
  font-size: 1.05rem; font-weight: 800; text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(6,199,85,.28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}
.fpc-line:hover { background: #08d65d; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(6,199,85,.4); }
.fpc-line svg { width: 20px; height: 20px; }
.fpc-more { color: #9ca3af !important; font-size: .875rem; text-decoration: none !important; white-space: nowrap; transition: color .15s; }
.fpc-more:hover { color: #fde68a !important; }

/* ── Single page ───────────────────────────────────── */
.fpc-crumb { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; padding: 1.5rem 0 1rem; font-size: .8125rem; color: #6b7280; }
.fpc-crumb a { color: #9ca3af; text-decoration: none; }
.fpc-crumb a:hover { color: #fbbf24; }
.fpc-crumb .cur { color: #d1d5db; }
.fpc-box {
  margin-top: 1.5rem; padding: 1.6rem 1.75rem; border-radius: 16px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
}
.fpc-box-h { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 1rem; }
.fpc-content { color: #cbd5e1; font-size: 1rem; line-height: 1.85; }
.fpc-content h2, .fpc-content h3 { color: #fff; margin: 1.4rem 0 .6rem; }
.fpc-content ul, .fpc-content ol { padding-left: 1.4rem; }
.fpc-content a { color: #fbbf24; }
.fpc-content img { max-width: 100%; height: auto; border-radius: 10px; }
.fpc-cta {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; border-radius: 16px;
  background: linear-gradient(135deg, rgba(6,199,85,.10), rgba(251,191,36,.05));
  border: 1px solid rgba(6,199,85,.25);
}
.fpc-cta-h { font-weight: 800; color: #fff; font-size: 1.1rem; }
.fpc-cta-s { color: #9ca3af; font-size: .9rem; margin-top: .15rem; }
.fpc-cta .fpc-line { flex: 0 0 auto; min-width: 240px; }
.fpc-related { margin-top: 2.5rem; }
.fpc-related > h2 { font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0 0 1rem; }

/* ── Pagination ────────────────────────────────────── */
.fpc-pages { display: flex; justify-content: center; gap: .4rem; padding: 2rem 0 0; flex-wrap: wrap; }
.fpc-pages a, .fpc-pages span {
  min-width: 40px; height: 40px; padding: 0 .7rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 700; font-size: .9rem; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #9ca3af;
}
.fpc-pages a:hover { color: #fbbf24; border-color: rgba(251,191,36,.35); }
.fpc-pages .current { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #1f1300; border-color: transparent; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 960px) {
  .fpc { grid-template-columns: 1fr; gap: 1.25rem; padding: 1rem; }
  .fpc.has-badge .fpc-body { padding-top: 0; }
  .fpc-media { order: 1; }
  .fpc-badge { order: 2; position: static; justify-self: start; margin-bottom: -.4rem; font-size: .8125rem; padding: .45rem .95rem; }
  .fpc-body { order: 3; }
  .fpc-title { font-size: 1.3rem; }
  .fpc-price-now b { font-size: 2.6rem; }
}
@media (max-width: 560px) {
  .fpc-feats { grid-template-columns: 1fr; gap: .5rem; }
  .fpc-actions { flex-direction: column; align-items: stretch; gap: .6rem; }
  .fpc-more { text-align: center; padding: .25rem; }
  .fpc-save { font-size: .78rem; padding: .35rem .75rem; right: .6rem; bottom: .6rem; }
  .fpc-cta .fpc-line { width: 100%; min-width: 0; }
  .fpc-box { padding: 1.25rem; }
}
