/* ==========================================================
   StarSeller · 메인 홈 v7 — clickmate `/seller/{id}` 1:1
   ========================================================== */

/* === 셀러 홈 모드 ===
   2026-06-08 v2: 호구오빠 스타일 — 헤더는 일반 sticky(불투명), cover 는 카드형(좌우 여백 + 둥근 모서리).
   헤더 transparent 모드는 제거됨 (cover 와 분리). */
body.is-seller-home { background: var(--c-app-shell); }

/* === COVER — 카드형 4:6 세로 히어로 (캐러셀) === */
.cover-wrap {
  position: relative;
  margin: 12px var(--gutter) 0;
  border-radius: 18px;
  aspect-ratio: 4 / 6;
  background: #1a1a1a;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .55s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cover-img--empty {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}
.cover-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 75%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* 슬라이드 텍스트 (bottom 정렬) */
.hero-text {
  position: absolute;
  left: 18px; right: 18px;
  bottom: 64px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  margin: 8px 0 0;
  opacity: .92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #C0202B;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-shadow: none;
}
.hero-live-badge .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: heroDotPulse 1.2s infinite;
}
@keyframes heroDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* CTA — slide 우하단 */
.hero-cta {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--c-accent, #C0202B);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  white-space: nowrap;
}

/* dots indicator — 하단 중앙 */
.hero-dots {
  position: absolute;
  left: 50%; bottom: 14px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  gap: 6px;
  padding: 5px 9px;
  background: rgba(0,0,0,.32);
  border-radius: 99px;
  backdrop-filter: blur(6px);
}
.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.is-on {
  background: #fff;
  transform: scale(1.25);
}

/* prev/next nav */
.hero-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.32);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.cover-wrap:hover .hero-nav { opacity: 1; }
.cover-wrap:active .hero-nav { opacity: 1; }
@media (hover: none) { .hero-nav { opacity: .85; } }
.hero-nav:hover { background: rgba(0,0,0,.55); }
.hero-nav--prev { left: 10px; }
.hero-nav--next { right: 10px; }

/* === 프로필 행 === */
.prof-row {
  display: flex; align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--c-bg);
}
.prof-avatar-wrap {
  flex-shrink: 0;
  width: 92px; height: 92px;
  display: grid; place-items: center;
}
.prof-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-divider);
  padding: 2px;
  background: var(--c-bg);
}
.prof-id { flex: 1; min-width: 0; }
.prof-name {
  font-family: 'Pretendard', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0;
}
.prof-meta { margin-top: 2px; }
.prof-meta-item {
  font-size: 12px; font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: -0.01em;
}

/* === 인라인 CTA — 단골맺기 + 메시지 === */
.cta-inline {
  display: flex; gap: 8px;
  padding: 8px 12px 16px;
  background: var(--c-bg);
}
.cta-follow-form { flex: 1; display: flex; }
.cta-follow {
  flex: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 44px;
  background: var(--c-dahong);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-family: inherit;
}
.cta-follow svg {
  width: 20px; height: 20px;
  fill: #fff;
  stroke: none;
}
.cta-follow.is-on {
  background: #fff;
  color: var(--c-dahong);
  border: 1.5px solid var(--c-dahong);
}
.cta-follow.is-on svg { fill: var(--c-dahong); }
.cta-msg {
  flex-shrink: 0;
  width: 50px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-divider);
  border-radius: 10px;
  color: var(--c-text-muted);
  background: var(--c-bg);
}
.cta-msg svg { width: 20px; height: 20px; fill: currentColor; }

/* === 셀러 소개 (collapsible) === */
.bio-sect { padding: 8px 16px; background: var(--c-bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bio-body {
  position: relative;
  overflow: hidden;
  transition: max-height .3s ease;
  max-height: 100px;
}
.bio-body.is-expanded { max-height: none; }
.bio-body::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent 0%, var(--c-bg) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s;
}
.bio-body.is-expanded::after { opacity: 0; }
.bio-p {
  font-size: 13.5px; line-height: 1.55;
  color: var(--c-ink);
  letter-spacing: -0.005em;
  word-break: keep-all;
  margin: 0 0 2px;
}
.bio-toggle {
  margin-top: 8px;
  background: none; border: 0;
  font-family: inherit;
  font-size: 13px; color: var(--c-text-muted);
  cursor: pointer;
  padding: 0;
}

/* === 대표 상품 — 가로 스크롤 === */
.ph-sect { padding: 16px 0 4px; background: var(--c-bg); }
.ph-h {
  font-family: 'Pretendard', sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0 16px 12px;
}
.ph-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
}
.ph-scroll::-webkit-scrollbar { display: none; }
.ph-card {
  flex: 0 0 128px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  gap: 8px;
}
.ph-thumb {
  position: relative;
  width: 128px; height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-paper);
}
.ph-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ph-info { display: flex; flex-direction: column; gap: 2px; }
.ph-price {
  text-align: left;
  font-size: 14px; font-weight: 700;
  color: var(--c-dahong);
  margin: 0;
  letter-spacing: -0.015em;
}
.ph-name {
  font-size: 14px;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === 다가오는 라이브 — 세로 리스트, 좌 124×172 썸넬 === */
.ulive-sect { padding: 16px; background: var(--c-bg); }
.ulive-h {
  font-family: 'Pretendard', sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-ink);
  margin: 0 0 20px;
}
.ulive-list { display: flex; flex-direction: column; gap: 24px; }
.ulive-empty {
  padding: 28px 0; text-align: center;
  font-size: 13px; color: var(--c-text-muted);
}
.ulive-row {
  display: flex; gap: 14px;
  text-decoration: none;
}
.ulive-thumb {
  position: relative;
  flex-shrink: 0;
  width: 124px;
  aspect-ratio: 124 / 172;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}
.ulive-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ulive-live-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--c-dahong); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
}
.ulive-live-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: ulive-pulse 1.2s infinite;
}
@keyframes ulive-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}
.ulive-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.ulive-when {
  font-size: 13px; font-weight: 700;
  color: var(--c-dahong);
  margin: 0;
  letter-spacing: -0.005em;
}
.ulive-row.is-live .ulive-when { color: var(--c-dahong); }
.ulive-title {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--c-ink);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.ulive-foot {
  margin-top: 28px;
  display: flex; align-items: center; gap: 8px;
}
.ulive-foot-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.ulive-foot-name { font-size: 12px; color: var(--c-text-muted); letter-spacing: -0.005em; }

/* === 판매자 정보 푸터 === */
.biz-spacer { height: 20px; background: var(--c-bg); }
.biz-info {
  background: var(--c-paper);
  padding: 16px 16px 20px;
}
.biz-info-shopname {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.biz-info-policy {
  font-size: 12px;
  color: var(--c-ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.biz-info-policy a {
  color: var(--c-ink);
  text-decoration: none;
}
.biz-info-policy a:hover { text-decoration: underline; }
.biz-info-policy-sep {
  display: inline-block;
  margin: 0 6px;
  color: var(--c-text-muted);
  opacity: .6;
}
.biz-info-head { padding: 0 0 8px; }
.biz-info-title {
  font-size: 12px; font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.biz-info-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 8px;
  padding: 4px 0 12px;
  font-size: 12px;
  color: var(--c-text-muted);
  letter-spacing: -0.005em;
}
.biz-info-grid p { margin: 0; line-height: 1.55; }
.biz-info-disclaimer {
  padding: 8px 0 0;
  border-top: 1px solid rgba(0,0,0,.05);
  margin-top: 4px;
  min-height: 60px;
}
.biz-info-disclaimer p {
  font-size: 10.5px;
  color: var(--c-text-muted);
  line-height: 1.6;
  letter-spacing: -0.005em;
  margin: 8px 0 0;
}

/* === 컨테이너: clickmate 풀폭 (570px 정도)와 우리 480 차이 — 480 유지 === */

/* 셀러 홈은 페이지 시작이 커버라 헤더 영역에 padding-top 들이지 않음 */
body.is-seller-home main { padding-top: 0; }
