/* 5230 LOOK 전용 추가 스타일 (lookchain.css 위에 얹음) */

/* 피드는 기존 카드 스크롤 방식 유지 (스냅 없음) */
.look-page { display: contents; }

/* ═══ 레이아웃 (r2) — 인트로를 사이드 최상단으로, 룩 카드 확대 ═══
   · 데스크톱: 피드 위 인트로 제거 → 접속 즉시 첫 룩 카드가 보인다
   · 인트로는 우측 사이드 컬럼 최상단(NOW VIEWING 패널 위)으로 이동
   · 모바일(사이드 없음): 피드 위 축약 인트로 1블록만 노출
   ══════════════════════════════════════════════════════════════ */

/* 모바일 축약 인트로 — 타이포 + 카피 1줄 */
.intro--mobile {
  padding: 16px 8px 2px;      /* 그리드 gap(30px)이 피드와의 간격을 담당 */
  grid-column: 1 / -1;
}
.intro--mobile h1 { font-size: clamp(30px, 8.5vw, 46px); margin-bottom: 12px; }
.intro--mobile h1 em { -webkit-text-stroke-width: 1.3px; }
.intro--mobile p { font-size: 13.5px; line-height: 1.65; margin-bottom: 0; }

/* 사이드 인트로 — 1100px 미만에서는 숨김 (사이드 자체가 없음) */
.intro--side { display: none; }

@media (min-width: 1100px) {
  /* 카드(최대 620px)와 사이드(360px)를 가운데로 모아 균형을 맞춘다 */
  .main {
    grid-template-columns: minmax(0, 660px) 360px;
    justify-content: center;
    gap: 40px;
    padding-top: 22px;
  }
  .feed { gap: 34px; }

  /* 룩 카드 확대 — 이미지 비율(2:3)·오버레이·변형 스위치·배지는 그대로 */
  .look-card { width: min(620px, 94vw, 100%); }
  .feed-empty { width: min(620px, 100%); }

  .intro--mobile { display: none; }

  .intro--side {
    display: block;
    text-align: left;
    padding: 0 2px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .intro--side h1 {
    font-size: clamp(28px, 2.3vw, 34px);
    line-height: 1.04;
    margin-bottom: 12px;
  }
  .intro--side h1 em { -webkit-text-stroke-width: 1.2px; }
  .intro--side p { font-size: 13.5px; line-height: 1.7; margin-bottom: 0; }
}

/* 넓은 화면에서는 카드를 조금 더 키운다 */
@media (min-width: 1440px) {
  .main { grid-template-columns: minmax(0, 700px) 360px; }
  .look-card { width: min(660px, 100%); }
}

/* ── NOW VIEWING 아이템: 등장 시 살짝 확대되는 팝 애니메이션 ── */
@keyframes sidePop {
  from { opacity: 0; transform: scale(0.8); }
  60%  { transform: scale(1.07); }
  to   { opacity: 1; transform: scale(1); }
}
.side-item img {
  animation: sidePop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.side-item img:hover { transform: scale(1.35); transition: transform 0.25s ease; }

/* ── 온보딩 칩 ── */
.ob-group { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.ob-chip {
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--grey);
  transition: all 0.15s;
}
.ob-chip:hover { border-color: var(--ink); color: var(--ink); }
.ob-chip--on { background: var(--ink); border-color: var(--ink); color: #fff; }

.myshop-btn--fill { background: var(--ink); color: #fff; }
.myshop-btn--fill:hover { opacity: 0.85; }

/* 공식/유저 룩 구분 배지 */
.official-chip {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: #fff;
  color: var(--ink);
  padding: 7px 11px;
  border-radius: 999px;
}
.official-chip--mine { background: var(--point); color: #fff; }
/* 공식 룩은 body-chip이 왼쪽 자리를 양보 */
.look-card .official-chip + .body-chip { top: 48px; }

/* 업로드 모달 */
.up-drop {
  border: 2px dashed #d5d5d0;
  border-radius: 16px;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.up-drop:hover { border-color: var(--ink); }
.up-drop img { max-width: 130px; max-height: 180px; border-radius: 10px; object-fit: cover; }
.up-drop p { font-size: 13.5px; color: var(--grey); margin: 0; }
.up-label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--grey); margin: 14px 0 8px; }
.up-tags {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 6px;
}
.up-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  cursor: pointer;
}
.up-tag:last-child { border-bottom: none; }
.up-tag input { accent-color: var(--ink); width: 15px; height: 15px; }
.up-tag img { width: 30px; height: 38px; object-fit: cover; border-radius: 6px; background: #f4f4f2; }
.up-tag span { flex: 1; }
.up-tag em { font-style: normal; color: var(--grey); font-size: 12.5px; }

/* 상품 태그 검색 + 선택 개수 */
.up-search { margin-bottom: 8px !important; }
.up-count { font-size: 12px; color: var(--grey); text-align: right; margin: 0 2px 10px; }
.up-count--over { color: #c0392b; font-weight: 700; }

/* ── [내 룩] 탭 ───────────────────────────── */
.ml-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.ml-row { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ml-row:last-child { border-bottom: none; }
.ml-thumb { width: 46px; height: 60px; object-fit: cover; border-radius: 9px; background: #f4f4f2; flex: none; }
.ml-info { flex: 1; min-width: 0; }
.ml-tags { font-size: 13.5px; font-weight: 600; line-height: 1.35; word-break: keep-all; }
.ml-meta { font-size: 12px; color: var(--grey); margin: 3px 0 5px; }
.ml-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
}
.ml-status--pending { background: #fff4e0; color: #b06f00; }
.ml-status--live { background: #e8f6ee; color: var(--point); }
.ml-status--official { background: var(--ink); color: #fff; }
.ml-actions { display: flex; flex-direction: column; gap: 5px; flex: none; }
.ml-actions button {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border: 1.3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.ml-actions button:hover { border-color: var(--ink); }
.ml-actions .ml-del { color: #c0392b; }
.ml-actions .ml-del:hover { border-color: #c0392b; }
.ml-empty { font-size: 13.5px; color: var(--grey); text-align: center; line-height: 1.7; padding: 26px 0; }
.ml-preview {
  display: block;
  max-width: 120px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f4f2;
  margin: 0 auto 14px;
}

/* ── 장바구니 수량 스텝퍼 (공용 카트) ── */
.c-step { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.c-step button {
  width: 22px; height: 22px;
  border: 1.3px solid var(--line);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  transition: border-color 0.15s;
}
.c-step button:hover { border-color: var(--ink); }
.c-step b { font-size: 13px; min-width: 14px; text-align: center; }
.cart-empty { text-align: center; color: var(--grey); font-size: 14px; padding: 60px 0; line-height: 1.7; }

/* 상세 드로어 — 판매 종료 아이템 안내 */
.d-missing { font-size: 12.5px; color: var(--grey); padding: 10px 0 0; }

/* 피드 빈 상태 / 오류 */
.feed-empty {
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  padding: 54px 24px;
  text-align: center;
}
.feed-empty-title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feed-empty-sub { font-size: 14px; color: var(--grey); line-height: 1.7; margin-bottom: 18px; }
.feed-empty .flow-btn { max-width: 260px; margin: 0 auto; }

/* ── 법적 고지 푸터 (T-013) ─────────────────────────────────
   look.html 푸터는 lookchain.css 의 가운데 정렬 레이아웃 위에 얹힌다.
   마크업 문자열 규약은 전 5230 페이지 동일 (.footer-legal 블록). */
.footer-legal {
  margin: 28px auto 0;
  max-width: 980px;
  border-top: 1px solid var(--line);
  padding: 22px 4px 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--grey);
  text-align: left;
}
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 14px;
  font-size: 13px;
}
.footer-legal-nav a { color: var(--grey); }
.footer-legal-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal-em strong { font-weight: 800; color: var(--ink); }
.footer-biz {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0 0 10px;
}
.footer-biz li { white-space: nowrap; }
.footer-biz b { font-weight: 600; color: var(--ink); margin-right: 5px; }
.footer-legal-note { font-size: 12px; line-height: 1.8; max-width: 78ch; }

/* ── 고객센터 공통 블록 (S3-06) ── */
.footer-cs {
  margin: 28px auto 0;
  max-width: 980px;
  border-top: 1px solid var(--line);
  padding: 22px 4px 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--grey);
  text-align: left;
}
.footer-cs-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink);
  margin-bottom: 10px;
}
.footer-cs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
  font-size: 13px;
}
.footer-cs-nav a { color: var(--grey); }
.footer-cs-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-cs-note { font-size: 12px; line-height: 1.8; max-width: 78ch; }
/* 고객센터 블록이 앞에 오면 법적 블록의 위 여백은 중복이므로 줄인다 */
.footer-cs + .footer-legal { margin-top: 18px; }

@media (max-width: 820px) {
  .footer-biz li { white-space: normal; }
}

/* 폰트 개선: 아카이브 공유 lookchain.css를 건드리지 않고 여기서 오버라이드 */
body { font-family: 'Archivo', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', sans-serif; }
