/* ===== 판매자 프로필 페이지 ===== */
.spWrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 230px 16px 60px;
}

/* ── 프로필 카드 ── */
.spProfileCard {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  position: relative;
}

.spAvatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
  border: 2px solid #e0e0e0;
}
.spAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spProfileBody {
  flex: 1;
  min-width: 0;
}

.spNameRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.spNickname {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.spTempPill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  background: #e8fff4;
  color: #20c997;
}
.spTempGrade {
  font-size: .8rem;
  color: #888;
}

.spIntroduce {
  font-size: .875rem;
  color: #888;
  margin-bottom: 12px;
}

/* 매너온도 바 */
.spTempBarRow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spTempBarLabel {
  font-size: .8rem;
  color: #555;
  white-space: nowrap;
}
.spTempNum {
  font-size: .9rem;
  font-weight: 700;
}
.spTempTrack {
  flex: 1;
  max-width: 180px;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.spTempFill {
  height: 100%;
  border-radius: 4px;
  background: #20c997;
  transition: width .6s ease;
}

/* 편집 버튼 */
.spEditBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  background: #f5f5f5;
  color: #555;
  text-decoration: none;
  transition: background .2s;
  flex-shrink: 0;
}
.spEditBtn:hover { background: #ebebeb; color: #1a1a1a; }

/* ── 후기 링크 카드 ── */
.spReviewLinkCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.spReviewLinkCard:hover {
  border-color: #20c997;
  box-shadow: 0 4px 14px rgba(32,201,151,.12);
}
.spReviewLinkLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spReviewLinkLeft > ion-icon {
  font-size: 1.1rem;
  color: #f59e0b;
}
.spReviewLinkTitle {
  font-size: .95rem;
  font-weight: 700;
  color: #1a1a1a;
}
.spReviewLinkCount {
  font-size: .875rem;
  color: #555;
}
.spReviewLinkStars {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}
.spReviewLinkAvg {
  font-size: .85rem;
  font-weight: 700;
  color: #f59e0b;
}
.spReviewLinkNone {
  font-size: .875rem;
  color: #bbb;
}
.spReviewLinkArrow {
  font-size: 1.1rem;
  color: #bbb;
  flex-shrink: 0;
}

/* ── 통계 카드 ── */
.spStatsCard {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 20px 32px;
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.spStatItem {
  text-align: center;
  flex: 1;
}
.spStatItem + .spStatItem {
  border-left: 1px solid #f0f0f0;
}
.spStatNum {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
}
.spStatLbl {
  font-size: .78rem;
  color: #888;
  margin-top: 4px;
}

/* ── 공통 섹션 ── */
.spSection {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  margin-bottom: 20px;
}
.spSectionHeader {
  padding: 20px 24px 0;
  border-bottom: 1px solid #f0f0f0;
}
.spSectionTitle {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── 리뷰 섹션 ── */
.spReviewSummary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f5f5f5;
}
.spReviewBigScore {
  font-size: 2.6rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
}
.spReviewScoreRight {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spReviewStars {
  display: flex;
  gap: 2px;
}
.spReviewSubLbl {
  font-size: .75rem;
  color: #aaa;
}

.spReviewList {
  padding: 0 24px 8px;
}
.spReviewCard {
  padding: 18px 0;
  border-bottom: 1px solid #f8f8f8;
}
.spReviewCard:last-child { border-bottom: none; }

.spReviewTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.spReviewAvatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spReviewAvatar ion-icon { font-size: 20px; color: #ccc; }
.spReviewMeta { flex: 1; }
.spReviewerName {
  font-size: .875rem;
  font-weight: 700;
  color: #222;
}
.spReviewDate {
  font-size: .72rem;
  color: #bbb;
}
.spReviewRating { display: flex; gap: 1px; }

.spReviewProduct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: .75rem;
  color: #888;
  text-decoration: none;
  margin-bottom: 7px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background .2s;
}
.spReviewProduct:hover { background: #f0f0f0; color: #555; }

.spReviewContent {
  font-size: .875rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
.spReviewNoContent {
  font-size: .78rem;
  color: #ccc;
  font-style: italic;
  margin: 0;
}

/* ── 탭 ── */
.spTabs {
  display: flex;
  gap: 0;
}
.spTab {
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.spTab:hover { color: #1a1a1a; }
.spTab.active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
  font-weight: 700;
}

/* 상품 개수 */
.spListMeta {
  padding: 12px 24px;
  font-size: .875rem;
  color: #555;
  border-bottom: 1px solid #f8f8f8;
}
.spListMeta strong { color: #1a1a1a; font-weight: 700; }

/* ── 상품 그리드 ── */
.spProductGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #f0f0f0;
}
@media (max-width: 768px) {
  .spProductGrid { grid-template-columns: repeat(2, 1fr); }
}

.spProductCard {
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .15s;
  position: relative;
}
.spProductCard:hover { background: #fafafa; }

.spProductImgWrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.spProductImgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.spProductCard:hover .spProductImgWrap img { transform: scale(1.04); }

.spStatusDim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
}
.spStatusBadge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.spBadge-SALE     { background: #e8fff4; color: #20c997; }
.spBadge-RESERVED { background: #fff7e6; color: #f97316; }
.spBadge-SOLD     { background: #f0f0f0; color: #aaa; }

.spProductInfo { padding: 10px 12px 14px; }
.spProductTitle {
  font-size: .875rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.spProductPrice { font-size: .95rem; font-weight: 800; color: #1a1a1a; }
.spProductMeta  { font-size: .75rem; color: #aaa; margin-top: 4px; }

/* ── 빈 상태 ── */
.spEmpty {
  padding: 56px 20px;
  text-align: center;
  color: #bbb;
}
.spEmpty ion-icon { font-size: 3rem; display: block; margin: 0 auto 12px; }
.spEmpty p { font-size: .9rem; }
