/* ─────────────────────────────────────────────
   PLP (Product List Page) 공용 스타일
   뷰 토글(그리드/게시판), 공용 그리드, 게시판 테이블
   ───────────────────────────────────────────── */

/* ── 뷰 토글 버튼 ── */
.plp-view-toggle {
  display: flex;
  gap: 4px;
}
.plp-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: #aaa;
  transition: background .15s, color .15s, border-color .15s;
  padding: 0;
}
.plp-view-btn:hover { color: #555; border-color: #bbb; }
.plp-view-btn.is-active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ── 공용 카드 그리드 ── */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* ── 게시판 테이블 ── */
.plp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.plp-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  padding: 10px 12px;
  border-bottom: 2px solid #e8e8e8;
}
.plp-table__col-thumb  { width: 72px; }
.plp-table__col-info   { min-width: 200px; }
.plp-table__col-price  { width: 130px; white-space: nowrap; }
.plp-table__col-meta   { width: 120px; }
.plp-table__col-date   { width: 100px; white-space: nowrap; }

.plp-table__row {
  cursor: pointer;
  transition: background .1s;
}
.plp-table__row:hover { background: #fafafa; }
.plp-table__row td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

/* 썸네일 셀 */
.plp-table__thumb-link {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
}
.plp-table__thumb-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}
.plp-table__thumb-ph {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
}

/* 정보 셀 */
.plp-table__brand {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 3px;
  text-decoration: none;
}
.plp-table__brand:hover { color: #555; }
.plp-table__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  display: -webkit-box;
  line-height: 1.4;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-decoration: none;
}
.plp-table__title:hover { color: #555; }
.plp-table__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.plp-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.plp-tag--new     { background: #fffde7; color: #f57f17; }
.plp-tag--auth    { background: #e8f5e9; color: #2e7d32; }
.plp-tag--cond    { background: #f0f0f0; color: #555; }
.plp-tag--auction { background: #fff3e0; color: #e65100; }
.plp-tag--inquiry { background: #f3e5f5; color: #6a1b9a; }
.plp-tag--hot     { background: #fdecea; color: #c62828; }

/* 가격 셀 */
.plp-price {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.plp-price--inquiry {
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

/* 판매자/조회 셀 */
.plp-seller { display: block; font-size: 12px; color: #666; }
.plp-views  { display: block; font-size: 11px; color: #bbb; margin-top: 2px; }

/* 날짜 셀 */
.plp-date { font-size: 12px; color: #aaa; }

/* ── 뷰 상태 제어 ── */
.plp-view--grid .plp-table  { display: none; }
.plp-view--list .plp-grid   { display: none; }
