/* ═══════════════════════════════════════════════════════════
   Product Renderer — Public Display Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Card ── */
.pr-card {
  border: 1px solid var(--border, #e2e8f0); border-radius: 14px;
  overflow: hidden; background: var(--card, #fff);
  transition: box-shadow .2s, transform .15s; cursor: pointer;
}
.pr-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pr-card-img { width: 100%; height: clamp(140px, 25vw, 180px); object-fit: cover; }
.pr-card-noimg {
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--bg, #f8fafc); color: var(--text2, #94a3b8);
}
.pr-card-body { padding: 14px 16px; }
.pr-card-featured {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700;
  background: #fbbf24; color: #78350f; padding: 2px 10px; border-radius: 12px;
}
.pr-card-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.pr-card-price { font-size: 17px; font-weight: 800; color: var(--primary, #2563eb); margin-bottom: 4px; }
.pr-card-price small { font-size: 12px; font-weight: 400; color: var(--text2, #64748b); }
.pr-card-loc { font-size: 12px; color: var(--text2, #64748b); margin-bottom: 8px; }
.pr-card-badges { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── Badges ── */
.pr-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(37,99,235,0.08); color: var(--primary, #2563eb);
  padding: 3px 10px; border-radius: 14px; font-size: 11px; font-weight: 600;
}
.pr-stat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 700; color: var(--text, #1e293b);
}
.pr-feature { padding: 3px 10px; border-radius: 14px; font-size: 12px; font-weight: 600; display: inline-flex; }
.pr-on { background: rgba(16,185,129,0.1); color: #059669; }
.pr-off { background: rgba(239,68,68,0.08); color: #dc2626; }
.pr-price-hl { font-size: 20px; font-weight: 800; color: var(--primary, #2563eb); }
.pr-rating { font-size: 16px; letter-spacing: 2px; }
.pr-countdown { font-size: 14px; color: #d97706; font-weight: 600; }
.pr-map { font-size: 14px; color: var(--text2, #64748b); }

/* ── Detail ── */
.pr-detail { max-width: 780px; margin: 0 auto; }
.pr-detail-hero {
  width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px;
  margin-bottom: 16px;
}
.pr-detail-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.pr-detail-price { font-size: 22px; font-weight: 800; color: var(--primary, #2563eb); margin-bottom: 12px; }
.pr-unit { font-size: 14px; font-weight: 400; color: var(--text2, #64748b); }
.pr-nego {
  font-size: 11px; background: rgba(245,158,11,0.12); color: #b45309;
  padding: 3px 10px; border-radius: 12px; margin-left: 8px; vertical-align: middle;
}
.pr-detail-desc { font-size: 14px; color: var(--text2, #475569); line-height: 1.7; margin-bottom: 20px; }

/* ── Sections ── */
.pr-section { margin-bottom: 20px; }
.pr-section-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }

.pr-spec {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border, #f1f5f9); font-size: 13px;
}
.pr-spec-k { color: var(--text2, #64748b); }
.pr-spec-v { font-weight: 600; color: var(--text, #1e293b); }

.pr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-tag {
  background: var(--border, #f1f5f9); color: var(--text, #334155);
  padding: 5px 14px; border-radius: 16px; font-size: 12px; font-weight: 500;
}

.pr-list { list-style: none; padding: 0; }
.pr-list li { padding: 4px 0; font-size: 13px; line-height: 1.5; }
.pr-list-good { color: #059669; }
.pr-list-warn { color: #d97706; }

.pr-para { font-size: 14px; color: var(--text2, #475569); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   Marketplace Card — Shared across discover/search/shop
   ═══════════════════════════════════════════════════════════ */
.mpc-card {
  border: 1px solid var(--border, #e2e8f0); border-radius: 14px;
  overflow: hidden; background: var(--card, #fff); cursor: pointer;
  transition: box-shadow .2s, transform .15s;
}
.mpc-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }

.mpc-img-wrap { position: relative; }
.mpc-img { width: 100%; height: clamp(130px, 22vw, 170px); object-fit: cover; display: block; }
.mpc-placeholder {
  width: 100%; height: clamp(130px, 22vw, 170px);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg, #f8fafc); font-size: 42px; opacity: .6;
}
.mpc-badges { position: absolute; top: 6px; left: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.mpc-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mpc-badge-featured { background: rgba(251,191,36,.9); color: #78350f; }
.mpc-badge-rent { background: rgba(99,102,241,.85); color: #fff; }
.mpc-badge-service { background: rgba(16,185,129,.85); color: #fff; }

.mpc-compare-btn {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.85);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: transform .15s;
}
.mpc-compare-btn:hover { transform: scale(1.15); }

.mpc-body { padding: 10px 12px 12px; }
.mpc-name { font-weight: 600; font-size: 13px; line-height: 1.3; margin-bottom: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mpc-desc { font-size: 11px; color: var(--text2, #94a3b8); margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mpc-price-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.mpc-price { font-weight: 700; font-size: 14px; color: var(--primary, #2563eb); }
.mpc-compare-price { font-size: 11px; color: var(--text2); text-decoration: line-through; }
.mpc-rating { font-size: 11px; color: #f59e0b; }
.mpc-shop { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.mpc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mpc-distance { font-size: 10px; color: #6366f1; font-weight: 500; background: #eef2ff; padding: 2px 7px; border-radius: 8px; }
.mpc-avail { font-size: 10px; padding: 2px 7px; border-radius: 8px; font-weight: 500; }
.mpc-avail-on { background: #d1fae5; color: #065f46; }
.mpc-avail-off { background: #fee2e2; color: #991b1b; }
.mpc-loc { font-size: 10px; color: var(--text2); }
