@charset "utf-8";
/* =========================================================
   노르드킨 활력관 상세 (리뉴얼)
   Figma : PC 1242-3045 / MO 1396-3895
   - 이 파일은 prd2_new.php 에서만 사용한다.
   - PC 레이아웃: 본문 640 + 간격 38 + 사이드 380 = 1058 (x 431~1489)
   - 브레이크포인트 1200px
   ========================================================= */

.npd {
  --npd-primary: #212121;
  --npd-point:   #fd6c01;
  --npd-stroke:  #ebebeb;

  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--npd-primary);

  /* clip 이어야 한다. hidden 을 쓰면 이 요소가 스크롤 컨테이너가 되어
     안쪽 .npd-card 의 position:sticky 가 화면 기준으로 붙지 못한다. */
  overflow-x: clip;
}
.npd * { box-sizing: border-box; }

.npd-container {
  max-width: 1098px;   /* 1058 + 좌우 20 패딩 */
  margin: 0 auto;
  padding: 0 20px;
}

.npd .npd-mo-only { display: none; }

/* =========================================================
   상단 배너
   ========================================================= */
.npd-hero {
  position: relative;
  height: 398px;
  /* overflow 를 막지 않는다. 제품 그래픽은 피그마에서도 배너 아래로 76px 나와 있다
     (배너 398 / 제품 top 104 + 높이 370 = 474). 아래 상세정보 라벨과는 23px 여유가 있어
     겹치지 않는다. hidden 을 주면 병 밑동과 박스 아랫면이 잘린다. */
  /* 아래가 흰색, 위로 갈수록 짙은 베이지 */
  background: linear-gradient(0deg, #fff 0%, #d5b593 92.34%, #120b00 199.37%);
}
.npd-hero-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -529px;   /* 상세정보(.npd-container)와 같은 기준선 = 화면중앙 −529 */
}
.npd-hero-sub {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.9;
  color: var(--npd-primary);
}
.npd-hero-title {
  margin: 0;
  font-weight: 700;
  font-size: 72px;
  line-height: 1.3;
  color: var(--npd-primary);
}
.npd-hero-img {
  position: absolute;
  left: 50%;
  top: 104px;
  margin-left: 26px;     /* 디자인상 제품 그래픽 위치 */
  width: 505px;
  height: auto;
}

/* =========================================================
   본문 + 사이드
   ========================================================= */
.npd-label {
  margin: 40px 0 17px;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.5;
  color: var(--npd-primary);
}

.npd-layout {
  display: grid;
  grid-template-columns: 640px 380px;
  justify-content: space-between;
  /* align-items:start 를 주면 안 된다. 그러면 .npd-side 가 카드 높이(439px)로만
     잡혀서 sticky 가 붙어 있을 구간이 0 이 되고, 결국 따라오지 않는다.
     stretch 로 두어야 사이드가 본문 높이만큼 늘어나 그 안에서 카드가 따라온다. */
  align-items: stretch;
  padding-bottom: 120px;
}

/* 상세 이미지 — 피그마가 나눠둔 01~17 을 그대로 이어 붙인다.
   붙는 지점에 틈이 생기지 않도록 여백과 인라인 간격을 모두 없앤다. */
.npd-detail { font-size: 0; }
.npd-detail-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  vertical-align: top;
}

.npd-detail-img:last-child {
  margin-top: -1.5%;
}

/* 우측 플로팅 박스 — 스크롤을 내려도 화면에 붙어 따라온다 */
.npd-side {
  position: relative;
  height: 100%;   /* 본문 높이만큼 확보 -> 카드가 이 안에서 따라다닌다 */
}
.npd-card {
  position: sticky;
  top: 100px;          /* 고정 헤더(약 80) 아래로 여유 */
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 40px 50px;
  border: 1px solid var(--npd-stroke);
  border-radius: 10px;
  background: #fff;
}
.npd-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.6;
  color: #000;
}
.npd-card-sub {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.9;
  color: #000;
}

.npd-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.npd-card-list li {
  position: relative;
  padding-left: 14px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--npd-primary);
  word-break: keep-all;
}
.npd-card-list li + li { margin-top: 11px; }
.npd-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--npd-point);
}

.npd-card-btn {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--npd-primary);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color .2s ease;
}
.npd-card-btn:hover { background: #000; }

/* =========================================================
   모바일 하단 고정 바 (PC 에서는 숨김)
   ========================================================= */
.npd-bottombar { display: none; }

/* =========================================================
   모바일 (< 1200px)
   ========================================================= */
@media (max-width: 1199px) {

  .npd .npd-pc-only { display: none; }
  .npd .npd-mo-only { display: block; }

  /* 배너는 모바일 시안에 없다 — 01번 이미지가 그 역할을 한다 */
  .npd-hero { display: none; }

  .npd-container { padding: 0; }
  .npd-label { display: none; }

  .npd-layout {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  /* 사이드 박스는 하단 고정 바로 대체 */
  .npd-side { display: none; }

  /* 고정 바에 가리지 않도록 본문 아래 여백 */
  .npd-detail { padding-bottom: 84px; }

  .npd-bottombar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--npd-stroke);
  }
  .npd-bottombar-btn {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--npd-primary);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.5;
    cursor: pointer;
  }
}
