/* BASIC css start */
:root {
  --bg-light: #f1f2f3;
  --bg-dark: #171717;
  --text-light: #ffffff;
  --text-dark: #171717;
  --accent: #d8b8a5; /* 은은한 포인트 컬러 */
  --pdp-width: 1920; /* TEXTURE 레이아웃 연산용 기준 너비 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  line-height: 1.4;
  background-color: var(--bg-light);
  color: var(--text-dark);
  word-break: keep-all; /* 한국어 줄바꿈 최적화 */
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  background-color: transparent; /* 누끼 이미지를 위해 배경 투명화 */
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-light);
}

section {
  position: relative;
  width: 100%;
}

/* =========================================
   HERO & SECTION HEADERS (01, 02, 03, 04)
   ========================================= */
.section_01, .sectionHeader {
  width: 100%;
  display: flex;
  align-items: stretch; /* 이미지와 텍스트 박스 높이를 동일하게 맞춤 (위아래 여백 제거의 핵심) */
  justify-content: space-between;
  overflow: hidden; /* 영역 밖으로 나가는 이미지/그라데이션 방지 */
}

.section_01 .title {
  flex: 1; /* 50% 영역 차지 */
  padding: 5% 10%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 텍스트를 세로 중앙 정렬 */
}

.sectionHeader .title {
  flex: 1; /* 50% 영역 차지 */
  padding: 10%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 텍스트를 세로 중앙 정렬 */
}

.section_01 .title {
  text-align: center;
}

.sectionHeader .title {
  text-align: left;
}

.section_01 .title h2, .sectionHeader .title h2 {
  font-size: clamp(2.5rem, 5vw, 5.5rem); 
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.sectionHeader .title h2 {
  font-size: clamp(3rem, 6vw, 6rem);
  text-transform: uppercase;
}

.section_01 .title p {
  font-size: clamp(1rem, 2.3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #666;
}

.sectionHeader .title p {
  font-size: clamp(1rem, 1.7vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #666;
}
.sectionHeader .title span {
  display: block;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 300;
  margin-bottom: 20px;
  color: #888;
}

/* 히어로 이미지 공통 스타일 (나머지 50% 영역) */
.hero-img {
  flex: 1;
  display: flex;
  align-items: stretch;
  z-index: 1;
}
.hero-img img {
  width: 100%;
  height: 100%; /* 부모 높이에 꽉 맞춤 */
  object-fit: cover; /* 찌그러짐 방지 및 여백 없이 채우기 */
  display: block;
}

.sectionHeader .hero-img img {
  width:50%;
  position:absolute;
  top:0;
}
.look-01.sectionHeader .hero-img img {left:0;}
.look-02.sectionHeader .hero-img img {right:0;}
.look-03.sectionHeader .hero-img img {right:0;}

/* --- 히어로 섹션별 디테일 설정 --- */

/* Hero 01 (section_01) */
.section_01 {
  /* 호리존: 위(연회색) -> 아래(흰색) */
  background: linear-gradient(to bottom, #c8c8c8 0%, #ffffff 100%);
        margin-bottom:-1px;
}
.section_01 .hero-img {
  justify-content: flex-end; /* 우측 끝으로 배치 */
}

/* Hero 02 (look-01) */
.sectionHeader.look-01 {
  /* 텍스트 우측, 이미지 좌측을 위해 배치 순서 반전 */
  flex-direction: row-reverse; 
  background: #ffffff; /* 그냥 흰색 */
        margin-bottom:-1px;
}
.sectionHeader.look-01 .hero-img {
  justify-content: flex-start; /* 좌측 끝으로 배치 */
}

/* Hero 03 (look-02) */
.sectionHeader.look-02 {
  flex-direction: row; /* 텍스트 좌측, 이미지 우측 */
  /* 호리존 바닥 질감: 위(연회색) -> 중간(흰색) -> 아래(살짝 어두운 회색) */
  background: linear-gradient(to bottom, #c8c8c8 0%, #ffffff 30%, #ffffff 70%, #929292 100%);
}
.sectionHeader.look-02 .hero-img {
  justify-content: flex-end; /* 우측 끝으로 배치 */
}

/* Hero 04 (look-03) */
.sectionHeader.look-03 {
  flex-direction: row; /* 텍스트 좌측, 이미지 우측 */
  /* 좌측(흰색) -> 우측(연회색) */
  background: linear-gradient(to right, #ffffff 0%, #c8c8c8 100%);
        margin-bottom:-1px;
}
.sectionHeader.look-03 .hero-img {
  justify-content: flex-end; /* 우측 끝으로 배치 */
}

/* =========================================
   SECTION 02 : GALLERY INTRO
   ========================================= */
.section_02 {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 100px 5% 120px;
}

.section_02 .title { margin-bottom: 60px; }
.section_02 .title h2 {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 800;
  margin-bottom: 10px;
  color:#fff;
}
.section_02 .title p {
  font-size: clamp(1.2rem, 3vw, 2.8rem);
  font-weight: 400;
  color: #aaa;
}

.section_02 .gallery {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 20px;
  margin-bottom: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}
.section_02 .gallery div { height: 100%; }
.section_02 .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section_02 > span {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.6rem);
  font-weight: 200;
  line-height: 1.6;
  color: #ccc;
}

/* =========================================
   LOOKBOOK DETAILS
   ========================================= */
.lookbook {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 120px 5%;
}

.lookbook .productWrap {
  position: relative;
  width: 100%;
  max-width: 50%;
  margin: 0 auto 100px;
}

.lookbook .productWrap > img {
  width: 80%;
  height: auto;
}

.lookbook .productTransparent {
  position: absolute;
  bottom: 0; 
  right: 0; 
  width: 60%; 
  display: flex;
  justify-content: flex-end; 
  align-items: flex-end; 
  gap: 15px;
  z-index: 2;
}

.lookbook .productTransparent img {
  width: auto;
  max-width: 45%; 
  max-height: 345px; 
  object-fit: contain; 
}

.lookbook .productLink {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 55%;
  margin: 0 auto 100px;
  gap: 40px;
}

.lookbook .productLink .productLinkWrap {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 30px;
}

.lookbook .productLink .productLinkWrap h2 {
  width: 200px;
  flex-shrink: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  line-height:1.6;
}

.lookbook .productLink .productLinkWrap .desc {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: clamp(1rem, 2.2vw, 2.2rem);
  font-weight: 300;
  line-height: 1.6;
}

.lookbook .productLink .productLinkWrap .desc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 20px;
  margin-top: 5px;
  width: max-content;
  transition: all 0.3s ease;
}

.lookbook .productLink .productLinkWrap .desc a:hover {
  background-color: #fff;
  color: #000;
}

.lookbook .productFlex {
  display: grid;
  grid-template-columns: 1.3fr 1fr; 
  gap: 40px;
  width: 100%;
  max-width: 70%;
  margin: 0 auto;
}

.lookbook .productFlex .videoArea {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.lookbook .productFlex .videoArea iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lookbook .productFlex .imageArea {
  position: relative;
  width: 100%;
  height: 100%; 
}

.lookbook .productFlex .imageAreaInner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px; 
}

.lookbook .productFlex .imageAreaInner img {
  width: 100%;
  flex: 1 1 0%; 
  min-height: 0; 
  object-fit: cover; 
  border-radius: 4px;
}

/* =========================================
   TEXTURE SECTION (Grid + CQI Layout)
   ========================================= */
.texture {
  padding: 120px 0 240px;
  background-color: var(--bg-light);
  container-type: inline-size; /* cqi 기준 영역 설정 */
  overflow: hidden;
}

.texture h2 {
  text-align: center;
        font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 80px;
  letter-spacing: 0.1em;
}

.texture .ap-image {
        justify-content: center;
  max-width: 1280px;
  /* 전달해주신 수식 그대로 적용하여 센터링 */
  padding: 0 calc((var(--pdp-width) - 1280) / 2 / var(--pdp-width) * 100cqi);
  margin: auto;
  height: clamp(0px, calc(1320 / var(--pdp-width) * 100cqi), 1320px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  place-items: center start;
  position: relative;
        scale:1.3;
}

.texture .ap-image__img {
  display: block;
}

.texture .ap-image__img img {
  width: 100%;
  height: auto;
  /* 흰색 배경이 있는 사진들이 회색 배경 위에서 자연스럽게 보이도록 약간의 그림자 추가 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
}

/* 1. 좌측 상단 (쿠션 든 손) */
.texture .ap-image__img:nth-of-type(1) {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
  justify-self: center;
  width: clamp(0px, calc(340 / var(--pdp-width) * 100cqi), 340px);
  z-index: 1;
}

/* 2. 상단 중앙 (글로스 팁) */
.texture .ap-image__img:nth-of-type(2) {
  grid-column: 2 / 5;
  grid-row: 2 / 4;
  justify-self: center;
  align-self: start;
  width: clamp(0px, calc(220 / var(--pdp-width) * 100cqi), 220px);
  z-index: 4;
}

/* 3. 우측 상단 (글로스 스머지) */
.texture .ap-image__img:nth-of-type(3) {
  grid-column: 5 / 9;
  grid-row: 2 / 5;
  justify-self: center;
  align-self: start;
  width: clamp(0px, calc(290 / var(--pdp-width) * 100cqi), 290px);
  z-index: 1;
}

/* 4. 정중앙 (글로스 블랍) */
.texture .ap-image__img:nth-of-type(4) {
  grid-column: 3 / 7;
  grid-row: 3 / 7;
  justify-self: center;
  width: clamp(0px, calc(460 / var(--pdp-width) * 100cqi), 460px);
  z-index: 3; /* 손과 팁 위에 겹치도록 */
}

/* 5. 좌측 하단 (보라색 쿠션) */
.texture .ap-image__img:nth-of-type(5) {
  grid-column: 2 / 4;
  grid-row: 6 / 8;
  justify-self: start;
  width: clamp(0px, calc(280 / var(--pdp-width) * 100cqi), 280px);
  z-index: 3;
}

/* 6. 중앙 하단 (손가락 누르는 모습) */
.texture .ap-image__img:nth-of-type(6) {
  grid-column: 4 / 7;
  grid-row: 7 / 9;
  justify-self: center;
  align-self: start;
  width: clamp(0px, calc(340 / var(--pdp-width) * 100cqi), 340px);
  z-index: 4; /* 중앙 블랍 위에 겹치도록 */
}

/* 7. 우측 하단 (글로스 떨어지는 모습) */
.texture .ap-image__img:nth-of-type(7) {
  grid-column: 6 / 9;
  grid-row: 4 / 8;
  justify-self: end;
  width: clamp(0px, calc(260 / var(--pdp-width) * 100cqi), 260px);
  z-index: 1;
  margin-right: clamp(0px, calc(20 / var(--pdp-width) * 100cqi), 20px);
}




/* =========================================
   SCROLL ANIMATIONS (Fade Up)
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
/* BASIC css end */

