/* ===============================
   Seller Profile
================================ */

.seller-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.seller-rating {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

.seller-latest-review {
  font-size: 14px;
  color: #222;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

/* ===============================
   Listings Grid
================================ */

.seller-items {
  max-width: 1100px;
  margin: 16px auto 40px;
  padding: 0 20px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.seller-item-card {
  text-decoration: none;
  color: inherit;
}

.seller-item-thumb img {
  width: 100%;
  border-radius: 12px;
}

.seller-item-title {
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.3;
}

.seller-reviews {
  max-height: 300px;
  overflow-y: auto;
}


/* ===============================
   Reviews (Center aligned)
================================ */

.seller-reviews-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.seller-reviews-wrap h3 {
  margin-top: 16px;
  margin-bottom: 12px;
}

.seller-reviews {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seller-review {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.review-face {
  font-size: 16px;
}

/* 1️⃣ Seller Header 색감 (은은하게)  */

.seller-header {
  background: #fafafa;          /* 아주 연한 회색 */
  border-bottom: 1px solid #eaeaea;

  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 14px;

  display: flex;
  align-items: center;
  gap: 12px;
  
  white-space: nowrap;        /* 🔥 줄바꿈 금지 */
  overflow: hidden;           /* 🔥 넘치면 숨김 */
}

.seller-back {
  font-size: 14px;
  color: #777;
  text-decoration: none;
  white-space: nowrap;
}

.seller-back:hover {
  color: #000;
  text-decoration: underline;
}

.seller-name {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  flex-shrink: 0;             /* 줄어들지 않음 */
}

.seller-rating {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;             /* 🔥 이게 중요 */
}

.seller-latest-review {
  font-size: 14px;
  color: #444;

  overflow: hidden;
  text-overflow: ellipsis;    /* … 처리 */
  white-space: nowrap;

  flex: 1;                    /* 남은 공간만 사용 */
}

.seller-reviews-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 32px;

  background: #fcfcfc;          /* 거의 흰색 */
}

  /* 2️⃣ Reviews 영역 (부드러운 카드 느낌) */
  
.seller-reviews-wrap h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.seller-reviews {
  list-style: none;
  padding: 0;
  margin: 0;
}

/*  3️⃣ 리뷰 아이템 (은은한 리스트)  */

.seller-review {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 10px 12px;
  margin-bottom: 8px;

  background: #f7f7f7;          /* 은은한 박스 */
  border-radius: 10px;

  font-size: 14px;
  line-height: 1.6;
}

.review-face {
  font-size: 16px;
}

.review-comment {
  color: #333;
}

/*  4️⃣ HR (구분선) 톤 다운  */
hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 24px auto;
  max-width: 1100px;
}

/* ===============================
   Section titles alignment
================================ */

/* Reviews title */
.seller-reviews-wrap h3 {
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 20px;
  color: #333;
}

/* Listings title */
.seller-listings-title {
  max-width: 1100px;
  margin: 0 auto 12px;
  padding: 0 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.seller-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 28px 16px 40px;
}

.seller-pagination a {
  color: #ff7a00;
  font-weight: 700;
  text-decoration: none;
}

.seller-pagination span {
  color: #64748b;
  font-size: 14px;
}

/* ===============================
   SOLD items
================================ */

.seller-item-card.is-sold {
  opacity: 0.6;
}

.seller-item-card.is-sold .seller-item-thumb {
  position: relative;
}

.seller-item-card.is-sold .seller-item-thumb::after {
  content: "SOLD";
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 18px;
  color: #fff;

  background: rgba(0,0,0,0.35);
  border-radius: 12px;
}

/* 클릭 막기 */
.seller-item-card.is-sold {
  pointer-events: none;
  cursor: default;
}

/* hover 효과 제거 (혹시 transform 쓰는 경우 대비) */
.seller-item-card.is-sold:hover {
  transform: none !important;
  box-shadow: none !important;
}


/* ===============================
   Responsive
================================ */

@media (max-width: 1024px) {
  .seller-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .seller-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .seller-latest-review {
    max-width: 100%;
  }

  .seller-items {
    grid-template-columns: repeat(2, 1fr);
     }
     
   .seller-back {
    font-weight: 600;
      }
  
}
.seller-item-thumb {
  position: relative;
}

.seller-item-hold-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
