/* ============================================================
   촬영상품 상세페이지 — 피그마 sub_촬영상품_1920 (52:5892) 1920x4773 기반
   2026-09 상품 재구성(7종 3섹션: 3+2+2)으로 좌표 재계산 —
   S4/밴드2 제거, 2카드 섹션은 pd-cards--2로 중앙 정렬.
   섹션/밴드/푸터 폴백값: 실측 보정(data-dyn-gap) 전 no-JS용
   ============================================================ */

:root {
  --c-olive-text: #3f4034;
  --c-green: #4a4c25;      /* 라벨/가격 포인트 */
  --c-bg-beige: #fbf9f6;   /* 섹션2/4 밴드 */
  --c-footer-dark: #393633;
  --c-footer-line: #fbf9f6;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --serif: "Nanum Myeongjo", "NanumMyeongjo", serif;
  --en: "Cormorant Infant", "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: #111; background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; } /* clip — hidden과 달리 body를 스크롤 컨테이너로 만들지 않아 세로 이중 스크롤바 원천 차단 */ }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; }

#page { position: relative; width: 1920px; height: 3910px; transform-origin: 0 0; background: #fff; }
.container { width: 1400px; margin-inline: auto; }

/* ---------- GNB/히어로 — site-gnb 웹컴포넌트 + css/sub-hero.css 사용 ---------- */

/* ---------- 섹션 공통 (라벨 + 제목) ---------- */
.pd-sec { position: absolute; left: 260px; width: 1400px; }
.pd-sec__label {
  font-family: var(--en); font-weight: 700; font-size: 22px; line-height: 26.6px;
  letter-spacing: -0.05em; text-transform: uppercase; color: var(--c-green);
}
.pd-sec__tit {
  margin-top: 18px; font-family: var(--serif); font-weight: 600;
  font-size: 38px; line-height: 43.7px; letter-spacing: -0.025em; color: #222;
}

/* ---------- 카드 그리드 (카드 규격은 css/card.css 공용) ---------- */
.pd-cards { position: absolute; left: 260px; top: 169px; display: flex; gap: 40px; }

/* 섹션 위치 — 피그마 좌표 (라벨/타이틀은 캔버스 중앙 정렬, 카드는 x260부터) */
.pd-sec { left: 0; width: 1920px; }
.pd-sec--s1 { top: 700px; }
.pd-sec--s2 { top: 1563px; }
.pd-sec--s3 { top: 2426px; }
.pd-sec__label { position: absolute; left: 0; width: 100%; text-align: center; }
.pd-sec__tit { position: absolute; top: 45px; margin-top: 0; left: 0; width: 100%; text-align: center; }
/* 2카드 섹션 — 그리드 폭 1400 안에서 중앙 정렬 */
.pd-cards--2 { width: 1400px; justify-content: center; }
.pd-band { position: absolute; left: 0; width: 1920px; height: 863px; background: var(--c-bg-beige); }
.pd-band--1 { top: 1423px; }

/* 카드 세로 위치: 라벨top + 169 (700→869, 1563→1732, 2426→2595) */

/* ---------- 푸터 (다크, 3149~3910 — data-dyn-gap 160 실측 보정) ---------- */

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(10px);
  background: #333; color: #fff; padding: 12px 24px; border-radius: 6px;
  font-size: 15px; z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   모바일 (html.is-m — 360 캔버스) — 피그마 촬영상품_360 4110:8067 기반
   (설명 1줄 요약) 2026-09 재구성: S1 320 / S2밴드 1475 / S3 2410
   360x3927: GNB 60(fixed) / 히어로 60~260 / S1 320~1415 /
   S2밴드 1475~2350 / S3 2410~3165 / 푸터 3225~3927
   (높이는 data-dyn-gap 실측 보정이 최종 결정 — 아래 값은 no-JS 폴백)
   ============================================================ */
html.is-m #page { width: 360px; height: 3927px; }

/* ---------- 히어로 (60~260) — 모바일 전용 크롭(pd-hero-m.jpg, 딤 포함) ---------- */
html.is-m .sub-hero { top: 60px; height: 200px; }
html.is-m .sub-hero__img:not(.sub-hero__img--m) { display: none; }
html.is-m .sub-hero__tit { left: 0; top: 82px; width: 100%; text-align: center; }

/* 데스크톱 히어로 타이틀 위치 (inline style → CSS 이동, 모바일 오버라이드용) */
.sub-hero__tit { left: 838px; top: 302px; }

/* ---------- 섹션 — 라벨/타이틀 중앙 정렬, 카드 top 105 (헤더 65 + 간격 40) ---------- */
html.is-m .pd-sec, html.is-m .pd-band { width: 360px; }
html.is-m .pd-sec--s1 { top: 320px; }
html.is-m .pd-sec--s2 { top: 1535px; }  /* 밴드 top 1475 + 상여백 60 */
html.is-m .pd-sec--s3 { top: 2410px; }  /* 밴드 하단 2350 + 60 */
html.is-m .pd-sec__label, html.is-m .pd-sec__tit { left: 0; width: 100%; text-align: center; }
html.is-m .pd-sec__label { top: 0; font-size: 16px; line-height: 19px; }
html.is-m .pd-sec__tit { top: 33px; font-size: 28px; line-height: 32px; }
html.is-m .pd-cards { left: 20px; top: 105px; flex-direction: column; gap: 30px; }
html.is-m .pd-cards--2 { width: 320px; }

/* ---------- 베이지 밴드 (S2) ---------- */
html.is-m .pd-band--1 { top: 1475px; height: 875px; }

/* ============================================================
   태블릿 (html.is-t — 1024 캔버스) — 피그마 촬영상품_1024 277:8302 기반
   절대좌표 대신 flow 스택(마진/패딩) — 상품 수가 바뀌어도 높이 자동.
   캔버스 1024 → main.js base=1024로 tPad(바 68 자리)·t-native 푸터 자동 적용.
   히어로 68~408 / 섹션 콘텐츠 720 중앙(좌우 152) / 카드 이미지 720×440 /
   텍스트 세로 스택(이름→설명→가격, 왼쪽 정렬) / 밴드는 섹션 자체 배경.
   ============================================================ */
html.is-t #page { width: 1024px; height: auto; }

/* 히어로 (68~408) — 데스크톱 이미지 커버 + 타이틀 중앙 40px */
html.is-t .sub-hero { top: 68px; width: 1024px; height: 340px; }
html.is-t .sub-hero__img--m { display: none; }
html.is-t .sub-hero__tit { left: 0; top: 146px; width: 100%; text-align: center; font-size: 40px; line-height: 46px; }

/* 섹션 — 세로 스택. inline top(데스크톱 좌표)을 무효화하기 위해 relative+top:0 */
html.is-t main { padding-top: 408px; }
html.is-t .pd-sec, html.is-t .pd-band { position: relative; top: 0; left: auto; width: auto; }
html.is-t .pd-band { display: none; }  /* 밴드 div 대신 섹션 자체 배경(::before) 사용 */
html.is-t .pd-sec { width: 720px; margin: 0 auto; padding: 100px 0 0; }
html.is-t .pd-sec--band { padding-bottom: 100px; }
html.is-t .pd-sec--band::before {
  content: ''; position: absolute; z-index: -1;
  left: 50%; transform: translateX(-50%);
  width: 1024px; top: 0; bottom: 0;
  background: var(--c-bg-beige);
}

/* 섹션 헤더 — 라벨 18 / 타이틀 32, 중앙 정렬, 세로 스택 */
html.is-t .pd-sec__label { position: static; width: auto; text-align: center; font-size: 18px; line-height: 21px; }
html.is-t .pd-sec__tit { position: static; width: auto; margin-top: 18px; text-align: center; font-size: 32px; line-height: 37px; }

/* 카드 — 세로 스택 720, img 720×440, 텍스트 세로 스택(info 해체 → order 재배열) */
html.is-t .pd-cards { position: static; width: 720px; margin: 50px 0 0; flex-direction: column; gap: 30px; }
html.is-t .pd-cards--2 { width: 720px; }
html.is-t .card { display: flex; flex-direction: column; align-items: flex-start; width: 720px; }
html.is-t .card__img { width: 720px; height: 440px; order: 0; }
html.is-t .card__info { display: contents; }
html.is-t .card__name { order: 1; margin-top: 16px; font-size: 22px; line-height: 26px; }
html.is-t .card__desc { order: 2; margin-top: 6px; font-size: 16px; line-height: 22px; }
html.is-t .card__price { order: 3; margin-top: 12px; }
html.is-t .card__price span { font-size: 18px; }
/* 바로가기 바 — 터치 우준 태블릿에서는 호버 동작이 어색해 렌더에서 제외(모바일과 동일) */
html.is-t .card__goto { display: none; }
