/* ═══════════════════════════════════════════════════════════════════════════
   상품 상세 공통 (md- prefix) — 모바일·데스크탑 공유
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── md- 클래스를 m-form- 규격에 매핑 ── */

.md-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #80868b);
  letter-spacing: 0.03em;
  padding: 0 16px 6px;
  margin-top: 12px;
}
.md-section-head:first-child { margin-top: 0; }
.md-section-head svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.md-card {
  background: #fff;
  padding: 0;
  margin: 0 16px;
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.md-card + .md-section-head,
.md-table + .md-note + .md-section-head,
.md-table + .md-section-head {
  margin-top: 12px;
}
.md-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  min-height: 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  gap: 12px;
}
.md-row:last-child { border-bottom: none; }
.md-row span { font-size: 13px; color: var(--text-subtle, #64748b); flex-shrink: 0; }
.md-row strong { font-size: 13px; font-weight: 600; color: #0f172a; text-align: right; word-break: keep-all; }
.md-row .md-link {
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.md-vehicle-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 4px;
  flex-wrap: wrap;
}
.md-vehicle-model {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}
.md-vehicle-carno {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.md-badges {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.md-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: #f1f5f9;
  color: #475569;
}
.md-vehicle-sub {
  font-size: 12px;
  color: #1e293b;
  padding: 4px 16px;
}
.md-vehicle-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 16px;
  font-size: 12px;
}
.md-vehicle-label {
  flex: 0 0 60px;
  color: var(--m-text-tertiary, #8b95a1);
  font-weight: 500;
  font-size: 11px;
}
.md-vehicle-value {
  flex: 1;
  color: var(--m-text-primary, #1e293b);
  font-weight: 500;
  word-break: break-word;
}
.md-vehicle-meta {
  font-size: 11px;
  color: #334155;
  padding: 4px 16px;
}
.md-color-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 2px;
  vertical-align: middle;
  line-height: 1.3;
}
.md-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
}
.md-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s ease;
}
.md-action-btn:active {
  background: rgba(0, 0, 0, 0.1);
}
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 0 16px;
  width: calc(100% - 32px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #fff;
}
.md-table th {
  padding: 0 16px;
  min-height: 36px;
  height: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted, #80868b);
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.md-table td {
  padding: 0 16px;
  min-height: 44px;
  height: 44px;
  color: #0f172a;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.md-table td strong {
  font-weight: 700;
}
.md-note {
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-muted, #80868b);
  background: transparent;
}
.md-no-photo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  color: #94a3b8;
  font-size: 12px;
}

/* ── 상세 갤러리 (모바일·데스크탑 공유) ── */
.pls-mobile-detail-gallery {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 0;
  overflow: hidden;
  background: #0f172a;
  position: relative;
}
.md-gallery-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.md-gallery-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--m-radius-pill, 999px);
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.pls-mobile-detail-gallery {
  cursor: pointer;
}
.pls-mobile-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  pointer-events: auto !important;
  -webkit-user-select: none;
  user-select: none;
}
.pls-mobile-detail-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}
.pls-mobile-detail-gallery__nav--prev { left: 8px; }
.pls-mobile-detail-gallery__nav--next { right: 8px; }
.pls-mobile-detail-gallery__counter {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}
