/* ==========================================================================
   Heart to Kiss — Mobile-first 29CM-style Layout
   - 헤더 아래 가로 스크롤 카테고리 칩
   - 컨텐츠 카드 → 상품 격자 인터리브 섹션
   - 바닥 탭바 (5칸)
   - 상품 카드 (2열, 3:4)
   ========================================================================== */

:root {
  --tab-bar-height: 60px;
  --chip-bar-height: 48px;
  --product-card-gap: 8px;
  --section-pad-x: 16px;
  --color-discount: #9c2b22;        /* v4: 잉크 톤 적색 */
  --color-soft-gray: var(--paper2); /* v4: 종이 보조색 */
}

/* 바닥 탭바 깔리므로 본문 하단 패딩 추가 */
@media (max-width: 1024px) {
  body {
    padding-bottom: var(--tab-bar-height);
  }
}

/* 데스크탑에서 옛 가운데 네비 숨김 — 새 카테고리 칩으로 통일 */
@media (min-width: 1025px) {
  .site-nav {
    display: none !important;
  }
}

/* ==========================================================================
   ① 헤더 아래 가로 스크롤 카테고리 칩
   ========================================================================== */
.cat-chips {
  position: sticky;
  top: 54px;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  height: var(--chip-bar-height);
  display: flex;
  align-items: center;
}

@media (min-width: 1025px) {
  .cat-chips {
    top: 60px;
  }
}

.cat-chips__scroll {
  display: flex;
  gap: 8px;
  width: 100%;
  padding-inline: var(--section-pad-x);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-chips__scroll::-webkit-scrollbar {
  display: none;
}

.cat-chips__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background-color: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.cat-chips__item.is-active {
  background-color: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 500;
}

@media (hover: hover) {
  .cat-chips__item:not(.is-active):hover {
    background-color: var(--paper2);
    border-color: var(--soft);
  }
}

/* ==========================================================================
   ② Hero 높이 보정 (100vh → 70vh / 모바일에선 55vh)
   ========================================================================== */
.home-section--hero {
  height: 90vh !important;
  min-height: 560px;
}

@media (max-width: 1024px) {
  .home-section--hero {
    height: 88svh !important;   /* 세로로 길게 — 풀스크린 느낌 */
    min-height: 520px;
    margin-top: 0 !important; /* 헤더와 안 겹침 — 칩 바 아래로 자연스러운 흐름 */
  }
}
/* 히어로 영상/이미지 칸에 꽉 차게 (잘림·기울어 보임 방지) */
.home-section--hero .hero__video,
.home-section--hero video,
.home-section--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   ③ 컨텐츠 카드 섹션 (29CM "셀렉" 패턴)
   - 옆으로 미는 큰 사진 카드 + 그 밑에 상품 격자
   ========================================================================== */
.curation-section {
  padding: 32px 0 24px;
  background-color: var(--paper);
}

.curation-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--section-pad-x) 16px;
}

.curation-section__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.curation-section__more {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
}

/* 큐레이션 카드 가로 스크롤 트랙 */
.curation-track {
  display: flex;
  gap: 12px;
  padding: 0 var(--section-pad-x) 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.curation-track::-webkit-scrollbar {
  display: none;
}

.curation-card {
  flex: 0 0 78%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--paper2);
  text-decoration: none;
  color: #FFFFFF;
  scroll-snap-align: start;
  transition: transform 220ms ease-out;
}

@media (min-width: 768px) {
  .curation-card {
    flex: 0 0 320px;
  }
}

.curation-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.curation-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.curation-card__eyebrow {
  display: inline-block;
  font-family: 'Pretendard', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.curation-card__title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.curation-card__sub {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   ④ 상품 격자 (2열, 3:4 카드)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px var(--product-card-gap);
  padding: 24px var(--section-pad-x) 0;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 12px;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  min-width: 0;
}
.product-card * { min-width: 0; }

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--paper2);
  border-radius: 0;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-soft, cubic-bezier(0.2,0.7,0.2,1));
}

@media (hover: hover) {
  .product-card:hover .product-card__media img {
    transform: scale(1.05);
  }
}

.product-card__wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease-out;
}

.product-card__wish.is-on {
  color: var(--color-discount);
}

/* v4: 카테고리 라벨 위 → 이름(좌)·가격(우) 한 줄 */
.product-card__info {
  padding: 12px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-card__brand {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card__name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 이름 + 가격을 한 줄에 좌우로 정렬 */
.product-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.product-card__price {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0;
  white-space: nowrap;
}

.product-card__discount {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-discount);
  white-space: nowrap;
}

/* ==========================================================================
   ⑤ 바닥 탭바 (5칸, 모바일 전용)
   ========================================================================== */
.bottom-tab {
  display: none;
}

@media (max-width: 1024px) {
  .bottom-tab {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: var(--tab-bar-height);
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
    backdrop-filter: saturate(150%) blur(18px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-tab__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--soft);
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 180ms ease-out;
  }

  .bottom-tab__item.is-active {
    color: var(--ink);
    font-weight: 500;
  }

  .bottom-tab__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
  }
}

/* ==========================================================================
   ⑥ 섹션 구분선 (29CM 톤)
   ========================================================================== */
.section-divider {
  height: 8px;
  background-color: var(--paper2);
  border: 0;
}

/* ==========================================================================
   ⑦ Hero 메시지 톤 다듬기 (큰 배너 안)
   ========================================================================== */
.hero__copy {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .hero__copy {
    font-size: 28px;
  }
}

/* ==========================================================================
   ⑧ 데스크탑에서 컨텐츠 카드 더 넓게
   ========================================================================== */
@media (min-width: 1025px) {
  .curation-section {
    padding: 56px 0 40px;
  }

  .curation-section__title {
    font-size: 22px;
  }

  .curation-track {
    gap: 16px;
    padding: 0 32px 8px;
  }
}

/* ==========================================================================
   ⑨ 29CM 컨텐츠 입구 카드 영역 (메인 페이지)
   "이번 주 주목" — 큰 사진 + 브랜드/Ep + 부제 (이미지 밖 하단)
   ========================================================================== */
.content-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  background-color: var(--paper);
}

@media (min-width: 1025px) {
  .content-entry {
    padding: 80px 24px 48px;
  }
}

.content-entry__header {
  margin-bottom: 24px;
}

.content-entry__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}

.content-entry__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 1025px) {
  .content-entry__title {
    font-size: 26px;
  }
}

.content-entry__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 768px) {
  .content-entry__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.entry-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.entry-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--paper2);
}

.entry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out-soft, cubic-bezier(0.2,0.7,0.2,1));
}

@media (hover: hover) {
  .entry-card:hover .entry-card__media img {
    transform: scale(1.05);
  }
}

.entry-card__info {
  padding: 12px 2px 0;
}

.entry-card__brand {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.entry-card__desc {
  margin: 4px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-card__date {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   ⑩ 매거진 페이지 (Ep.X / 표지 / 5섹션 / 관련 상품)
   ========================================================================== */
.magazine {
  background-color: var(--paper);
}

/* 매거진 페이지 헤더 (Ep + 제목 + 날짜 + 표지) */
.magazine-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 16px 32px;
  text-align: center;
}

@media (min-width: 1025px) {
  .magazine-header {
    padding: 80px 24px 48px;
  }
}

.magazine-header__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}

.magazine-header__ep {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1;
}

@media (min-width: 1025px) {
  .magazine-header__ep {
    font-size: 40px;
  }
}

.magazine-header__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

@media (min-width: 1025px) {
  .magazine-header__title {
    font-size: 26px;
  }
}

.magazine-header__date {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--soft);
  text-transform: uppercase;
}

.magazine-cover {
  width: 100%;
  margin: 32px 0 0;
}

.magazine-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

@media (min-width: 1025px) {
  .magazine-cover {
    max-width: 900px;
    margin: 32px auto 0;
  }
}

/* 매거진 소개 단락 (표지 다음 핵심 메시지) */
.magazine-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.magazine-intro__lead {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 24px;
}

@media (min-width: 1025px) {
  .magazine-intro {
    padding: 64px 24px;
  }
  .magazine-intro__lead {
    font-size: 22px;
  }
}

.magazine-intro__body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  margin: 0;
  text-align: left;
}

@media (min-width: 1025px) {
  .magazine-intro__body {
    font-size: 16px;
    text-align: center;
  }
}

/* 매거진 본문 섹션 (01~05 반복) */
.magazine-section {
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 0 16px;
}

@media (min-width: 1025px) {
  .magazine-section {
    margin-bottom: 96px;
    padding: 0 24px;
  }
}

.magazine-section__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--line);
  line-height: 1;
  margin-bottom: 8px;
}

@media (min-width: 1025px) {
  .magazine-section__num {
    font-size: 44px;
  }
}

.magazine-section__title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 1025px) {
  .magazine-section__title {
    font-size: 24px;
  }
}

.magazine-section__sub {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--soft);
}

.magazine-section__media {
  margin: 0 0 24px;
}

.magazine-section__media img {
  width: 100%;
  height: auto;
  display: block;
}

.magazine-section__media--portrait img {
  aspect-ratio: 9 / 13;
  object-fit: cover;
}

.magazine-section__media--landscape img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* 사진 2장 가로 페어 (한 섹션에 큰 사진 2장 나란히) */
.magazine-section__media--pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (min-width: 1025px) {
  .magazine-section__media--pair {
    gap: 8px;
  }
}

.magazine-section__media--pair img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* 2x2 4장 격자 (대형 룩북 섹션용) */
.magazine-section__media--quad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

@media (min-width: 1025px) {
  .magazine-section__media--quad {
    gap: 8px;
  }
}

.magazine-section__media--quad img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.magazine-section__body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  margin: 0;
}

@media (min-width: 1025px) {
  .magazine-section__body {
    font-size: 16px;
  }
}

/* 매거진 에디터 노트 (인용구) */
.magazine-editor-note {
  background-color: var(--paper2);
  margin: 32px 0;
  padding: 48px 24px;
}

.magazine-editor-note__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* 매거진 하단 관련 상품 */
.magazine-products {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 32px 16px 64px;
}

@media (min-width: 1025px) {
  .magazine-products {
    padding: 48px 24px 96px;
  }
}

.magazine-products__header {
  margin-bottom: 20px;
}

.magazine-products__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}

.magazine-products__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (min-width: 1025px) {
  .magazine-products__title {
    font-size: 22px;
  }
}

/* ==========================================================================
   ⑪ v4 종이 톤 푸터 — 종이 배경 + 잉크/소프트 글씨 (까만 띠 X)
   ========================================================================== */
.home-section--footer {
  background-color: var(--paper) !important;
  color: var(--soft) !important;
  border-top: 1px solid var(--line);
}

.home-section--footer * {
  color: inherit !important;
}

.home-section--footer .footer__brand {
  color: var(--ink) !important;
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem) !important;
}

.home-section--footer a {
  color: var(--soft) !important;
  text-decoration: none;
}

.home-section--footer a:hover {
  color: var(--ink) !important;
}

/* 강조 헤딩도 잉크색으로 */
.home-section--footer h3,
.home-section--footer .footer__heading {
  color: var(--ink) !important;
}

/* ==========================================================================
   ⑫ 메인 페이지 깔끔하게 — content-entry 의 위 여백 줄임 (Hero 직후)
   ========================================================================== */
.home-section--hero + .content-entry {
  padding-top: 32px;
}

@media (min-width: 1025px) {
  .home-section--hero + .content-entry {
    padding-top: 48px;
  }
}

/* Hero 영상 톤 다듬기 — 글자 크기 줄임 (29CM 미니멀) */
.hero__copy {
  font-size: clamp(20px, 4vw, 32px) !important;
}

.hero__cta {
  font-size: 12px !important;
  padding: 10px 24px !important;
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .hero__copy {
    font-size: 22px !important;
  }
}
