/**
 * 카탈로그 보기 모달 — 검색 결과 화면 기준 통일 (#catalog-sellers-modal)
 * 홈(index)·검색(search)·마이페이지(mypage) 공통
 */
#catalog-sellers-modal.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10150;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
#catalog-sellers-modal.modal-overlay.show {
  display: flex;
}
#catalog-sellers-modal .catalog-sellers-modal__dialog {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
#catalog-sellers-modal .catalog-sellers-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
}
#catalog-sellers-modal .catalog-sellers-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}
#catalog-sellers-modal .catalog-sellers-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 1;
}
#catalog-sellers-modal .catalog-sellers-modal__close:hover {
  background: #f3f4f6;
  color: #1f2937;
}
#catalog-sellers-modal .catalog-sellers-modal__body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

#catalog-sellers-modal .catalog-sellers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#catalog-sellers-modal .catalog-sellers-table th,
#catalog-sellers-modal .catalog-sellers-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}
#catalog-sellers-modal .catalog-sellers-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}
#catalog-sellers-modal .catalog-sellers-table td {
  color: #1f2937;
}
#catalog-sellers-modal .catalog-sellers-table .col-product {
  min-width: 0;
  vertical-align: middle;
  padding-left: 16px;
}
#catalog-sellers-modal .catalog-sellers-table .cs-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
#catalog-sellers-modal .catalog-sellers-table .cs-thumb-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#catalog-sellers-modal .catalog-sellers-table .cs-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#catalog-sellers-modal .catalog-sellers-table .cs-thumb-empty {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
  padding: 2px;
}
#catalog-sellers-modal .catalog-sellers-table .cs-product-name {
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
  min-width: 0;
}
#catalog-sellers-modal .catalog-sellers-table a.cs-product-link {
  color: #0369a1;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}
#catalog-sellers-modal .catalog-sellers-table a.cs-product-link:hover {
  color: #00bfff;
  text-decoration: underline;
}
#catalog-sellers-modal .catalog-sellers-table .col-platform {
  width: 72px;
  text-align: center;
  vertical-align: middle;
}
#catalog-sellers-modal .platform-logo-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#catalog-sellers-modal .platform-logo-cell svg {
  display: block;
}
#catalog-sellers-modal .platform-fallback {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
