/* ===========================================
   PRO-SPECS X KIM CHAM SAE 2026 SUMMER — PC
   =========================================== */

/* 브라우저 기본 body margin(8px) 제거 */
body { margin: 0; }

.kcs-page,
.kcs-page *,
.kcs-page *::before,
.kcs-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.kcs-page {
  margin-top: 92px; /* 운영 사이트 GNB + 상단 배너에 콘텐츠가 가려지지 않도록 여백 */
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1d1d1d;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  --c-text: #1d1d1d;
  --c-sub: #8e8e8e;
  --c-green: #0da30e;
  --c-blue: #63A5C9;
  --c-orange: #e8370d;
  --c-yellow: #fef112;
  --rail-w: 440px;
  --gap: 40px;
  --main-w: 960px;
}

.kcs-page img { display: block; max-width: 100%; }

/* 전체 레이아웃: 좌측 sticky 레일 + 우측 콘텐츠 */
.kcs-layout {
  max-width: calc(var(--rail-w) + var(--gap) + var(--main-w));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}

.kcs-rail {
  flex: 0 0 var(--rail-w);
  position: sticky;
  top: 0;
  padding: 16px 40px 16px 0;
  border-right: 1px solid #000;
  height: calc(100vh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.kcs-rail__top { display: flex; flex-direction: column; gap: 16px; }
.kcs-rail__title { font-weight: 500; font-size: 24px; color: var(--c-text); }
.kcs-rail__eng { font-weight: 500; font-size: 13px; color: var(--c-sub); }

.kcs-rail__credit { display: flex; flex-direction: column; gap: 14px; }
.kcs-rail__credit-item p { line-height: 1.6; }
.kcs-rail__credit-label { font-weight: 600; font-size: 8px; letter-spacing: 0.02em; color: var(--c-text); margin-bottom: 2px; text-transform: uppercase; }
.kcs-rail__credit-line { font-weight: 400; font-size: 11px; color: var(--c-text); }
.kcs-rail__credit-handle { font-weight: 400; font-size: 10px; color: var(--c-sub); margin-left: 6px; }

.kcs-main { flex: 0 0 var(--main-w); width: var(--main-w); display: flex; flex-direction: column; }

/* 작가 소개 (사진 + 텍스트) */
.kcs-artist {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 0;
}
.kcs-artist__photo { flex: 0 0 170px; width: 170px; height: 220px; border-radius: 50%; overflow: hidden; }
.kcs-artist__photo img { width: 100%; height: 100%; object-fit: cover; }
.kcs-artist__body { flex: 1; }
.kcs-artist__name { font-weight: 600; font-size: 20px; color: var(--c-text); margin-bottom: 4px; }
.kcs-artist__role { font-weight: 400; font-size: 13px; color: var(--c-sub); margin-bottom: 20px; }
.kcs-artist__desc { font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--c-text); white-space: pre-line; }

/* HERO: 그린 스트라이프 배경 + 첫 화면 오프닝 영상 (세로형, 512x640로 축소 표시) */
.kcs-hero {
  width: 100%;
  min-height: 720px;
  background:var(--c-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.kcs-hero__visual { width: 512px; height: 640px; overflow: hidden; }
.kcs-hero__visual video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 블루 박스: 인용 텍스트 */
.kcs-quote {
  width: 100%;
  min-height: 303px;
  background: #FBF9BC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 80px;
}
.kcs-quote p {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
}

/* 풀와이드 이미지 */
.kcs-full-img { width: 100%; margin-bottom: 8px; }
.kcs-full-img img { width: 100%; height: 602px; object-fit: cover; }

/* 2단 이미지 (이미지 사이 8px 간격, 세로 비율은 이미지 원본에 맞춰 auto) */
.kcs-duo { width: 100%; display: flex; gap: 8px; }
.kcs-duo__cell { flex: 0 0 calc(50% - 4px); width: calc(50% - 4px); height: auto; position: relative; overflow: hidden; }
.kcs-duo__cell img { width: 100%; height: auto; display: block; object-fit: cover; }

/* 480px 이미지 2x2 배열 (셀 4개를 2개씩 줄바꿈, 상하좌우 8px 간격) */
.kcs-duo--grid4 { flex-wrap: wrap; }

.kcs-duo__cell--yellow { background: var(--c-yellow); }
/* .kcs-duo__cell img { width:100%; height:100% } 보다 우선하도록 클래스 두 개로 특이도를 높임 */
.kcs-duo__cell .kcs-duo__mascot { position: absolute; left: 189px; top: 232px; width: 101px; height: 137px; }
.kcs-duo__cell .kcs-duo__logo { position: absolute; left: 104px; top: 435px; width: 299px; height: auto; }

/* 본문 텍스트 */
.kcs-text {
  width: 100%;
  padding: 80px 40px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
}
.kcs-text p + p { margin-top: 18px; }

/* 하단 배너 */
.kcs-banner { width: 100%; height: 560px; background: var(--c-orange); margin-top: 8px; }
.kcs-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 팝업스토어 안내: 색 배경 없이 라인으로만 구분하는 클린한 섹션. 좌측 세로형 사진 + 우측 텍스트 2단 배치 */
.kcs-popup { width: 100%; border-top: 1px solid #000; padding: 80px 0 100px; background: transparent; margin-top: 100px;}
.kcs-popup__layout { width: 960px; max-width: 100%; margin: 0 auto; display: flex; align-items: flex-start; gap: 48px; }
.kcs-popup__photo { flex: 0 0 300px; width: 300px; aspect-ratio: 3/4; overflow: hidden; }
.kcs-popup__photo img { width: 100%; height: 100%; object-fit: cover; }
.kcs-popup__info { flex: 1; min-width: 0; }
.kcs-popup__info-title { text-align: left; font-weight: 600; font-size: 16px; letter-spacing: 0.1em; margin-bottom: 24px; }
.kcs-popup__info-rows { width: calc(100% - 40px); margin: 24px 0 0; }
.kcs-popup__info-row { display: flex; justify-content: flex-start; gap: 24px; padding: 14px 0; }
.kcs-popup__info-row + .kcs-popup__info-row { border-top: 1px solid #e5e5e5; }
.kcs-popup__info-label { flex: 0 0 70px; font-weight: 600; font-size: 14px; color: var(--c-text); text-align: left; }
.kcs-popup__info-value { font-size: 14px; color: var(--c-text); }
/* 지도 핀 아이콘: 다른 상품 이미지들처럼 실제 <img> 태그로 렌더링 (배경이미지/인라인svg는 운영 사이트에서 지워지는 경우가 있어 제외) */
.kcs-popup__map-link { display: inline-block; width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }
.kcs-page .kcs-popup__map-link img {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  max-width: none !important;
  vertical-align: top !important;
}
.kcs-popup__body { margin: 0; text-align: left; }
.kcs-popup__body p { font-size: 15px; line-height: 1.7; color: var(--c-text); }
.kcs-popup__body p + p { margin-top: 16px; }

/* 상품 핫스팟: + 버튼 클릭 시 버튼 바로 옆에 상품 칩 노출, 칩 클릭 시 상품 페이지 이동 */
/* .kcs-duo__cell의 overflow:hidden에 칩이 잘리지 않도록 오버라이드 + 옆 셀보다 위로 쌓이도록 z-index 부여 */
.kcs-duo__cell.kcs-hotspot { overflow: visible; z-index: 2; }
.kcs-hotspot { position: relative; }
/* 칩이 열려 있는 동안, 옆 셀(동일 z-index)에 가려 잘리지 않도록 해당 셀을 최상단으로 끌어올림 */
.kcs-duo__cell.kcs-hotspot--active { z-index: 30; }

/* 버튼/칩의 기준점(inline left/top %만 지정) — 폭·높이 0이라 버튼·칩은 항상 이 좌표를 기준으로 붙어서 움직임 */
.kcs-hotspot__spot { position: absolute; width: 0; height: 0; }

.kcs-hotspot__btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #1d1d1d;
  padding: 0;
  cursor: pointer;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.kcs-hotspot__btn::before,
.kcs-hotspot__btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #1d1d1d;
  transform: translate(-50%, -50%);
}
.kcs-hotspot__btn::before { width: 9px; height: 1px; }
.kcs-hotspot__btn::after { width: 1px; height: 9px; }
.kcs-hotspot__btn.is-active { transform: translate(-50%, -50%) rotate(45deg); }

/* 칩은 버튼과 같은 기준점에서 오른쪽으로 26px 떨어진 자리(세로 중앙 정렬)에 뜸 = "+ 버튼 옆" */
.kcs-hotspot__chip {
  position: absolute;
  left: 0;
  top: 0;
  width: 220px;
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d1d1d;
  opacity: 0;
  visibility: hidden;
  transform: translate(26px, -50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}
.kcs-hotspot__chip.is-open { opacity: 1; visibility: visible; transform: translate(26px, -50%) translateY(0); }
/* 운영 사이트의 전역 a 태그 리셋이 배경을 지우는 경우를 대비한 방어 규칙 (opacity/visibility는 건드리지 않음) */
.kcs-page a.kcs-hotspot__chip { background-color: rgba(255, 255, 255, 0.97) !important; background-image: none !important; }
.kcs-hotspot__chip img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.kcs-hotspot__chip > div { min-width: 0; flex: 1; }
.kcs-hotspot__chip-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcs-hotspot__chip-opt { font-size: 11px; color: var(--c-sub); margin-bottom: 4px; }
.kcs-hotspot__chip-price { font-size: 12px; font-weight: 600; }
.kcs-hotspot__chip-price em { color: var(--c-orange); font-style: normal; margin-right: 5px; }
.kcs-hotspot__chip-arrow { margin-left: auto; opacity: 0.4; font-size: 16px; }

/* 스크롤 등장 애니메이션은 운영 공용 AOS 라이브러리(data-aos 속성)를 사용합니다. */

@media (max-width: 1520px) {
  .kcs-layout { max-width: 100%; padding: 0 40px; }
}
