@charset "utf-8";
/* ==========================================================================
   DR. NL 자사몰 - 디자인 시스템 (SSOT)
   - 라이트 단일 테마 고정
   - 폰트: Pretendard
   - 폰트 사이즈: fs-32 / fs-28 / fs-24 / fs-18 / fs-16 / fs-14 (모바일 기준, 6단 고정)
   - 모바일 390px 기준, PC(1040px~)는 좌측 GNB 레일 + 본문 640px + 우측 이미지(1300px~)
   - 브랜드 모티프: 패키지 눈금(줄자) → ruler 요소
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  color-scheme: light;

  /* Brand */
  --red: #ce3438;          /* 로고 레드 */
  --red-dark: #a5262a;
  --red-soft: #f6e4e4;
  --red-tint: #fbf2f2;

  --ink: #17161a;
  --ink-2: #3d3b41;
  --ink-3: #6b6870;
  --ink-4: #97949c;

  --paper: #ffffff;
  --sand: #f7f5f2;         /* 웜 아이보리 섹션 */
  --sand-2: #efece7;
  --line: #ddd9d3;
  --line-strong: #c3beb6;

  --ph: #e3e0dc;           /* 이미지 플레이스홀더 */
  --ph-line: #cbc7c1;

  /* Type scale (6단 고정) */
  --fs-32: 32px;
  --fs-28: 28px;
  --fs-24: 24px;
  --fs-18: 18px;
  --fs-16: 16px;
  --fs-14: 14px;

  /* Layout */
  --shell: 600px;          /* PC 본문 폭 */
  --gutter: 20px;
  --header-h: 60px;
  --promo-h: 44px;

  /* Space */
  --s1: 6px;  --s2: 10px; --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 44px; --s7: 60px; --s8: 80px;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: var(--fs-16);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;          /* 좌우 스크롤 차단 */
  word-break: keep-all;
  overflow-wrap: anywhere;
  letter-spacing: -0.015em;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

/* ---------- Type ---------- */
.fs-32 { font-size: var(--fs-32); line-height: 1.32; letter-spacing: -0.035em; font-weight: 700; }
.fs-28 { font-size: var(--fs-28); line-height: 1.38; letter-spacing: -0.032em; font-weight: 700; }
.fs-24 { font-size: var(--fs-24); line-height: 1.44; letter-spacing: -0.028em; font-weight: 700; }
.fs-18 { font-size: var(--fs-18); line-height: 1.66; letter-spacing: -0.02em; }
.fs-16 { font-size: var(--fs-16); line-height: 1.74; }
.fs-14 { font-size: var(--fs-14); line-height: 1.62; color: var(--ink-3); }  /* 주의사항·캡션 전용 */

.w-400 { font-weight: 400; } .w-500 { font-weight: 500; }
.w-600 { font-weight: 600; } .w-700 { font-weight: 700; } .w-800 { font-weight: 800; }
.c-red { color: var(--red); } .c-ink3 { color: var(--ink-3); } .c-white { color: #fff; }
.ta-c { text-align: center; } .ta-r { text-align: right; }

.eyebrow {
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.4;
}
.eyebrow--muted { color: var(--ink-4); }
/* 한글 라벨은 자간을 줄인다 (대문자 영문 기준 자간이 한글에서는 과하게 벌어짐) */
.eyebrow--ko { letter-spacing: .02em; text-transform: none; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.sec { padding-block: var(--s7); position: relative; }
.sec--tight { padding-block: var(--s6); }
.sec--screen { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
.sec--sand { background: var(--sand); }
.sec--sand2 { background: var(--sand-2); }
.sec--tint { background: var(--red-tint); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink .fs-14, .sec--ink .c-ink3 { color: #b6b2bb; }
.sec--ink .eyebrow { color: #ff8b8e; }
.sec--red { background: var(--red); color: #fff; }
.sec--red .eyebrow, .sec--red .fs-14 { color: rgba(255,255,255,.82); }

.stack > * + * { margin-top: var(--s3); }
.stack-4 > * + * { margin-top: var(--s4); }
.stack-5 > * + * { margin-top: var(--s5); }
.stack-2 > * + * { margin-top: var(--s2); }
.mt-2 { margin-top: var(--s2); } .mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); } .mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); }

/* ==========================================================================
   줄자(ruler) 모티프 - 브랜드 시그니처 · 세로 전용
   제품 패키지 우측 눈금을 옮긴 요소. 가로 방향으로는 쓰지 않는다.
   화면에 고정하지 않고 **섹션 단위**로 붙여, 스크롤하면 섹션과 함께 지나간다.
   한 페이지에 2개 섹션 정도만 쓴다. 우측에 여백이 없거나
   이미 .vruler 가 들어간 섹션에는 넣지 않는다.
   ========================================================================== */
.sec--ruled::before,
.hero--ruled::after {
  content: "";
  position: absolute;
  right: 6px;
  width: 24px;
  --tick-major: rgba(23, 22, 26, .5);
  --tick-minor: rgba(23, 22, 26, .28);
  /* 작은 눈금 12px 주기, 큰 눈금은 정확히 5칸마다(60px) 겹쳐 하나의 패턴이 되게 한다 */
  background-image:
    repeating-linear-gradient(180deg, var(--tick-major) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(180deg, var(--tick-minor) 0 1.5px, transparent 1.5px 12px);
  background-size: 100% 100%, 52% 100%;
  background-position: 100% 0, 100% 0;
  background-repeat: no-repeat;
  pointer-events: none;
}
.sec--ruled::before { top: var(--s6); bottom: var(--s6); }

/* 눈금이 있는 섹션은 본문 우측을 눈금 폭만큼 좁혀, 글자가 눈금에 붙지 않게 한다 */
.sec--ruled > .shell,
.hero--ruled > .shell { padding-right: calc(var(--gutter) + 44px); }
.pdp-hero.sec--ruled::before { top: var(--s4); bottom: var(--s5); }
.hero--ruled::after { top: var(--s6); bottom: var(--s5); }

.sec--ink.sec--ruled::before, .sec--red.sec--ruled::before {
  --tick-major: rgba(255, 255, 255, .7);
  --tick-minor: rgba(255, 255, 255, .38);
}

@media (max-width: 360px) {
  .sec--ruled::before, .hero--ruled::after { width: 18px; right: 4px; }
  .sec--ruled > .shell,
  .hero--ruled > .shell { padding-right: calc(var(--gutter) + 32px); }
}

/* 세로 눈금 레일 : 수치 강조 블록 우측 */
.vruler {
  --tick: var(--line-strong);
  width: 16px;
  align-self: stretch;
  flex: 0 0 16px;
  background-image:
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 6.4px);
  background-size: 100% 100%, 55% 100%;
  background-position: 100% 0, 100% 0;
  background-repeat: no-repeat;
  opacity: .8;
}
.sec--ink .vruler, .sec--red .vruler { --tick: rgba(255,255,255,.4); }

/* 섹션 상단 인덱스 */
.sec-index {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--s4);
}
.sec-index__bar {
  flex: 0 0 1px; height: 16px;
  background: var(--line-strong);
}
.sec--ink .sec-index__bar, .sec--red .sec-index__bar { background: rgba(255,255,255,.45); }

/* ---------- 실사진 ---------- */
.photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--r0 { border-radius: 0; }
.photo--full { margin-inline: calc(var(--gutter) * -1); border-radius: 0; width: auto; }

/* 사진 위 텍스트 (이미지 위에 글자를 얹는 구성) */
.photo-copy { position: relative; }
.photo-copy__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.68) 92%);
}
.photo-copy__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--s5) var(--s4) var(--s4);
  color: #fff;
}
.photo-copy__body .fs-14 { color: rgba(255,255,255,.85); }

/* 사진 그리드 */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.photo-grid .photo { aspect-ratio: 1 / 1; }
.photo-grid .photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* ---------- 이미지 플레이스홀더 ---------- */
.ph {
  position: relative;
  width: 100%;
  background: var(--ph);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 2px, transparent 2px 12px);
}
.ph::after {
  content: attr(data-size);
  font-size: var(--fs-14);
  font-weight: 600;
  color: #8b8781;
  letter-spacing: .04em;
  background: rgba(255,255,255,.78);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  position: absolute;
  bottom: 10px; right: 10px;
}
.ph-label {
  position: absolute; top: 12px; left: 12px;
  font-size: var(--fs-14); font-weight: 700; color: #7d7973;
  background: rgba(255,255,255,.78); padding: 5px 12px; border-radius: var(--radius-pill);
  max-width: calc(100% - 24px);
}
.ph--r0 { border-radius: 0; }
.sec--ink .ph, .sec--red .ph { background: rgba(255,255,255,.14); }
.sec--ink .photo { background: rgba(255,255,255,.1); }
.sec--ink .ph::after, .sec--red .ph::after { background: rgba(0,0,0,.3); color: #fff; }
.sec--ink .ph-label, .sec--red .ph-label { background: rgba(0,0,0,.3); color: #fff; }

/* 이미지 위 텍스트 오버레이(상세페이지 봇 판독용 텍스트 레이어) */
.overlay {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ph);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 2px, transparent 2px 12px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: var(--s5) var(--s4) var(--s5);
  color: var(--ink);
}
.overlay::after {
  content: attr(data-size);
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: var(--fs-14); font-weight: 600; color: #7d7973;
  background: rgba(255,255,255,.78); padding: 5px 12px; border-radius: var(--radius-pill);
}
.overlay__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.86) 78%); }
.overlay > *:not(.overlay__scrim) { position: relative; z-index: 1; }
.overlay > .ph-label { position: absolute; z-index: 2; }
.overlay--dark { color: #fff; }
.overlay--dark .overlay__scrim { background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.72) 82%); }
.overlay--dark::after { background: rgba(0,0,0,.35); color: #fff; }
.overlay--dark .fs-14 { color: rgba(255,255,255,.8); }
.overlay--tall { min-height: 380px; }
.overlay--photo { background-size: cover; background-position: center 22%; background-repeat: no-repeat; }
.overlay--photo::after { display: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-18);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap; /* 버튼 문구는 두 줄로 꺾지 않는다 (아코디언 질문은 .acc__q라 무관) */
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  text-align: center;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); background: #fff; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--full { display: flex; width: 100%; }
.btn--sm { min-height: 44px; font-size: var(--fs-16); padding: 0 18px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
/* 좁은 화면에서 2단 카드·주문 내역의 작은 버튼이 한 줄에 들어가게 패딩만 줄인다 */
@media (max-width: 420px) {
  .pcard .btn--sm, .review .btn--sm { padding: 0 10px; }
}

.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-18); font-weight: 700;
  border-bottom: 2px solid currentColor; padding-bottom: 2px;
}
.tlink--sm { font-size: var(--fs-16); }

/* ---------- 프로모 바 / 헤더 ---------- */
.promo {
  background: var(--red); color: #fff;
  min-height: var(--promo-h);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8px var(--gutter);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.promo a, .promo .promo__cta { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.promo--ref { background: var(--ink); }

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
}
.hdr__logo { display: flex; align-items: center; }
.hdr__logo img { height: 34px; width: auto; }
.hdr__right { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }

/* 메뉴 시트 */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .34s var(--ease);
  overflow-y: auto;
}
.menu[data-open="true"] { transform: translateY(0); }
.menu__top { height: var(--header-h); flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.menu__nav { padding-block: 0; }
.menu__nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: var(--fs-18); font-weight: 700; letter-spacing: -0.02em;
}
.menu__nav a:last-child { border-bottom: 0; }
.menu__nav a span.fs-14 { font-weight: 500; }
.menu__sub { margin-top: 0; padding-block: 0 var(--s5); }
.menu__sub a, .menu__sub button {
  display: block; width: 100%; text-align: left;
  padding: 12px 0; font-size: var(--fs-16); color: var(--ink-2);
}

/* 간편 로그인 시트 */
.login-sheet {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 16, 24, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.login-sheet[hidden] { display: none; }
.login-sheet__panel {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 16px 16px 0 0;
  padding: var(--s5) 20px calc(var(--s5) + env(safe-area-inset-bottom));
}
.login-sheet__close {
  display: block; width: 100%; margin-top: var(--s4);
  padding: 8px 0; background: none; border: 0;
  font-size: var(--fs-14); color: var(--ink-3); cursor: pointer;
}
.login-step[hidden] { display: none; }
.btn--google { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); gap: 8px; }
.btn--google:hover { background: var(--sand); color: var(--ink); }
.btn--google svg { width: 20px; height: 20px; flex: 0 0 20px; }
.btn--naver { background: #03c75a; color: #fff; }
.btn--naver:hover { background: #02b351; color: #fff; }
.btn--kakao { background: #fee500; color: #191919; }
.btn--kakao:hover { background: #f4dc00; color: #191919; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand) 62%, #fff 100%);
  padding-top: var(--s6);
  padding-bottom: 0;
  overflow: hidden;
}
.hero__title { margin-bottom: var(--s3); }
.hero__cta { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); }
.hero__visual { position: relative; margin-top: var(--s5); }
.hero__visual img { width: 100%; height: auto; }

/* ---------- 제품 카드 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.grid-1 { display: grid; gap: var(--s3); }

.pcard {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s3) var(--s3) var(--s4);
  display: flex; flex-direction: column;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
/* 카드 어디를 눌러도 상세로 간다. 장바구니 버튼만 위로 띄워 예외로 둔다 */
.pcard__link::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
}
.pcard__btn { position: relative; z-index: 2; }
.pcard__badge {
  align-self: flex-start;
  font-size: var(--fs-14); font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: var(--radius-pill);
  background: var(--red-soft); color: var(--red);
}
.pcard__badge--ink { background: var(--ink); color: #fff; }
.pcard__media {
  aspect-ratio: 1 / 1; overflow: hidden; margin: var(--s2) 0 var(--s3);
  display: flex; align-items: center; justify-content: center;
  /* PC처럼 컬럼이 넓어져도 이미지가 정사각으로 커지지 않게 상한 (2026-08-21 150→185 확대) */
  max-height: 185px;
}
.pcard__media img,
.pcard__media video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply;
}
/* 회전 영상은 프레임 여백이 커서 제품이 작아 보인다. 전 제품 공통 안전 배율(아이넥 상하 7% 기준)로 확대.
   컨테이너 overflow:hidden이라 프레임 여백만 잘려 나간다 */
.pcard__media video { transform: scale(1.15); }
.pcard__media .ph { height: 100%; width: 100%; }
.pcard__cat { font-size: var(--fs-14); color: var(--ink-4); font-weight: 600; letter-spacing: .04em; }
/* 이름은 자연 높이로 두고, 가격·버튼은 margin-top:auto 로 하단 정렬한다.
   이름이 1줄이든 2줄이든 카드 높이는 그리드 stretch 로 맞춰진다. */
.pcard__name {
  font-size: var(--fs-18); font-weight: 700; line-height: 1.35;
  letter-spacing: -0.035em; margin-top: 2px;
}
.pcard__desc { font-size: var(--fs-14); color: var(--ink-3); margin-top: 8px; }
.pcard__price { margin-top: auto; padding-top: var(--s2); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-now { font-size: var(--fs-18); font-weight: 800; letter-spacing: -0.03em; }
.price-was { font-size: var(--fs-14); color: var(--ink-4); text-decoration: line-through; }
.price-off { font-size: var(--fs-14); font-weight: 800; color: var(--red); }
.pcard__btn { margin-top: var(--s3); }

/* 나의 추천 현황 행: 날짜 | 지인 | 구매 금액 | 포인트.
   행마다 독립 그리드라서 네 컬럼 전부 고정 트랙으로 잡아야 모든 행의 세로 정렬이 맞는다
   (마지막 컬럼을 auto로 두면 "구매 취소"처럼 짧은 행만 금액 폭이 달라진다).
   좁은 화면은 축약 표기로 전환한다(날짜 26.08.18 · 금액 9.87만원 - JS가 .ref-l/.ref-s 병행 렌더링) */
/* 주의: .sumrow(display:flex)가 파일 뒤쪽에 있어 단일 클래스 .refgrid로는 진다.
   반드시 .sumrow.refgrid 특이도로 쓴다 */
.sumrow.refgrid { display: grid; grid-template-columns: 88px 64px 1fr 96px; gap: 10px; align-items: baseline; }
.sumrow.refgrid > span:last-child { text-align: right; }
.refgrid .ref-s { display: none; }
@media (max-width: 420px) {
  .sumrow.refgrid { grid-template-columns: 58px 48px 1fr 84px; gap: 6px; font-size: var(--fs-14); }
  .refgrid .ref-l { display: none; }
  .refgrid .ref-s { display: inline; }
}

/* 섹션 제목 앞 아이콘(세트 = squares-four, 단품 = square). 제목 크기에 맞춰 레드 포인트 */
.h-ico { display: flex; align-items: center; gap: 10px; }
.h-ico > svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--red); }

/* 세트 카드는 2단 그리드에 컴팩트하게. 노출 개수는 짝수로 맞춘다(데이터 쪽 규칙).
   이름·설명·가격·버튼의 줄간격은 단품 카드(.pcard) 기본값을 그대로 상속한다 */
.setcard__media {
  display: flex; align-items: flex-end; justify-content: center; gap: var(--s2);
  height: 120px; margin: var(--s2) 0 var(--s3); /* 이미지-이름 간격은 단품 카드와 동일. 2026-08-21 100→120 확대 */
}
.setcard__media img {
  max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply;
  min-width: 0; flex: 0 1 auto; /* 풀세트 6종도 좁은 화면에서 줄어들며 들어간다 */
}
.setcard__blank {
  width: 60px; height: 96px; border-radius: 8px;
  background: var(--ph);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 2px, transparent 2px 10px);
}
.pcard--set .pcard__name { margin-top: 2px; }

/* ==========================================================================
   인포그래픽 - 이미지가 아니라 HTML/CSS 로 그린다.
   수치가 정확하고, 브랜드 컬러를 그대로 쓰며, 봇이 텍스트로 읽는다.
   ========================================================================== */
.info {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4);
}
.sec--sand .info, .sec--tint .info { background: #fff; }
.info__cap { font-size: var(--fs-14); margin-top: var(--s3); }

/* 연령대별 감소 막대 그래프 */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 148px; margin-top: var(--s2); }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart__bar {
  border-radius: 5px 5px 0 0;
  background: var(--line-strong);
  transition: height .5s var(--ease);
}
.chart__bar--on { background: var(--red); }
.chart__x { display: flex; gap: 6px; margin-top: 8px; }
.chart__x span {
  flex: 1; text-align: center; font-size: var(--fs-14); color: var(--ink-4); font-weight: 600;
}
.chart__x span.on { color: var(--red); }

/* 피부 단면 - 자외선 침투 */
.uvcut { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.uvcut__layer { position: relative; padding: var(--s3) var(--s4); }
.uvcut__layer + .uvcut__layer { border-top: 1px dashed var(--line-strong); }
.uvcut__l1 { background: #faf7f3; }
.uvcut__l2 { background: #f3ece5; }
.uvcut__l3 { background: #e8ddd2; }
.uvcut__name { font-size: var(--fs-14); font-weight: 700; color: var(--ink-2); }
.uvcut__val { font-size: var(--fs-14); color: var(--ink-3); }
.uvcut__beam {
  position: absolute; top: 0; bottom: 0; width: 3px; border-radius: 2px;
}
.uvcut__beam--b { right: 74px; background: linear-gradient(180deg, #c3beb6, rgba(195,190,182,0)); }
.uvcut__beam--a { right: 46px; background: linear-gradient(180deg, var(--red), rgba(206,52,56,.15)); }

/* 3요소 시너지 */
.tri { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.tri__item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3);
  text-align: center;
}
.tri__item:first-child { grid-column: 1 / -1; border-color: var(--red); background: var(--red-tint); }
.tri__k { font-size: var(--fs-18); font-weight: 800; letter-spacing: -0.03em; }
.tri__v { font-size: var(--fs-14); margin-top: 2px; }
.tri__eq {
  grid-column: 1 / -1; text-align: center; padding: var(--s3) 0 0;
  font-size: var(--fs-18); font-weight: 700;
}
.tri__eq b { color: var(--red); }

/* 4요소 그리드 */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.quad__item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3); text-align: center;
}
.quad__k { font-size: var(--fs-16); font-weight: 800; }
.quad__v { font-size: var(--fs-14); margin-top: 2px; }

/* 세대·비교 스텝 */
.gens { display: grid; gap: var(--s2); }
.gens__item {
  display: flex; align-items: center; gap: var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3);
}
.gens__item--on { border-color: var(--red); background: var(--red-tint); }
.gens__no {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--sand-2); color: var(--ink-3);
  display: grid; place-items: center; font-size: var(--fs-14); font-weight: 800;
}
.gens__item--on .gens__no { background: var(--red); color: #fff; }
.gens__t { font-size: var(--fs-16); font-weight: 700; }
.gens__d { font-size: var(--fs-14); }

/* ---------- 수치 / 근거 카드 ---------- */
.stat {
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; gap: var(--s3);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4) var(--s3) var(--s4) var(--s4);
}
/* 카드 배경 사진 - 왼쪽은 비우고 오른쪽에만 보이게 한다.
   사진 자체도 좌측 여백 / 우측 오브젝트 구성으로 촬영되어 있다. */
.stat__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 44%, #000 74%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 44%, #000 74%);
  pointer-events: none;
}
.stat__body, .stat .vruler { position: relative; z-index: 1; }
.sec--sand .stat, .sec--sand2 .stat, .sec--tint .stat { background: #fff; }
.sec--ink .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.stat__body { flex: 1; min-width: 0; }
.stat__num { font-size: var(--fs-32); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
/* 단위는 위첨자로 띄우지 않고 숫자 기준선에 맞춰 옆에 붙인다 */
.stat__num sup {
  font-size: var(--fs-16);
  font-weight: 700;
  vertical-align: baseline;
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.stat__label { font-size: var(--fs-16); font-weight: 700; margin-top: 4px; }
.stat__note { font-size: var(--fs-14); margin-top: 6px; }

.factrow {
  display: flex; gap: var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.factrow:first-child { border-top: 1px solid var(--line); }
.factrow__k { flex: 0 0 38%; font-size: var(--fs-16); font-weight: 700; }
.factrow__v { flex: 1; font-size: var(--fs-16); color: var(--ink-2); min-width: 0; }
.factrows--narrow .factrow__k { flex-basis: 30%; }

/* 섹션에 줄눈금(sec--ruled)이 있으면 카드 안 눈금은 생략 */
.sec--ruled .stat .vruler { display: none; }
.sec--ink .factrow { border-color: rgba(255,255,255,.16); }
.sec--ink .factrow__v { color: #ddd9e2; }

/* ---------- 스텝(루틴) ---------- */
.step { display: flex; gap: var(--s3); align-items: flex-start; }
.step__no {
  flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: var(--fs-18); font-weight: 800;
}
.step__no--line { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.step__body { flex: 1; min-width: 0; }

/* ---------- 체크 리스트 ---------- */
.checks { display: grid; gap: var(--s2); }
.checks li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: var(--fs-18); line-height: 1.6;
}
.checks li::before {
  content: ""; flex: 0 0 24px; height: 24px; margin-top: 3px;
  border-radius: 7px; background: var(--red-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ce3438' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  background-size: 14px 14px; background-position: center; background-repeat: no-repeat;
}
.checks--plain li::before {
  background: var(--red); border-radius: 50%; border: 0;
  flex-basis: 7px; height: 7px; margin-top: 12px;
}
.sec--ink .checks--plain li::before { background: #ff8b8e; }

/* ---------- 블로그 ---------- */
.postcard { display: block; }
.postcard:hover { border-color: var(--line-strong); }
.postcard .pcard__badge { background: var(--sand-2); color: var(--ink-3); }

/* 본문 조판 - 마크다운에서 변환된 영역 */
.prose > * + * { margin-top: var(--s4); }
.prose h2 {
  font-size: var(--fs-24); font-weight: 700; letter-spacing: -0.028em; line-height: 1.44;
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--fs-18); font-weight: 700; margin-top: var(--s5); }
.prose p { font-size: var(--fs-18); line-height: 1.78; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.1em; }
.prose li { font-size: var(--fs-18); line-height: 1.78; color: var(--ink-2); list-style: disc; margin-top: 8px; }
.prose ol li { list-style: decimal; }
.prose ol { font-size: var(--fs-14); }
.prose ol li { font-size: var(--fs-14); line-height: 1.7; color: var(--ink-3); }
.prose details {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s3) var(--s4); background: var(--sand);
}
.prose details + details { margin-top: var(--s2); }
.prose summary {
  list-style: none; cursor: pointer;
  font-size: var(--fs-18); font-weight: 700; letter-spacing: -0.02em;
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3);
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after {
  content: ""; flex: 0 0 16px; height: 16px; margin-top: 6px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/16px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 16px no-repeat;
  transition: transform .2s var(--ease);
}
.prose details[open] summary::after { transform: rotate(45deg); background-size: 16px 1.5px, 1.5px 0; }
.prose details[open] summary { margin-bottom: var(--s3); }
.prose details p { font-size: var(--fs-16); }
.prose table { font-size: var(--fs-16); margin-top: var(--s4); }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: var(--sand); font-weight: 700; }

/* ---------- 아코디언(FAQ) ---------- */
/* 처음·마지막 구분선은 긋지 않는다 (항목 사이에만) */
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 0; }
.acc__q {
  width: 100%; display: flex; gap: var(--s3); align-items: flex-start; justify-content: space-between;
  padding: var(--s3) 0; text-align: left;
  font-size: var(--fs-18); font-weight: 700; letter-spacing: -0.025em; line-height: 1.5;
}
.acc__q::after {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 5px;
  background:
    linear-gradient(var(--ink), var(--ink)) center/18px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 18px no-repeat;
  transition: background-size .22s var(--ease);
}
.acc__item[data-open="true"] .acc__q::after { background-size: 18px 1.5px, 1.5px 0; }
.acc__a { display: none; padding-bottom: var(--s4); font-size: var(--fs-16); color: var(--ink-2); }
.acc__item[data-open="true"] .acc__a { display: block; }

/* ---------- 후기 ---------- */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.review__body { padding: var(--s4); flex: 1; display: flex; flex-direction: column; }
.stars { display: flex; gap: 2px; color: var(--red); }
.review__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }

.scroller {
  display: flex; gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);   /* 스냅 정렬이 좌측 패딩을 먹지 않도록 */
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--s2);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: 0 0 78%; scroll-snap-align: start; }
.scroller--narrow > * { flex: 0 0 62%; }

/* ---------- 테이블 ---------- */
.tbl-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tbl { font-size: var(--fs-16); min-width: 100%; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-weight: 700; background: var(--sand); white-space: nowrap; }
.tbl td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl--compare td:first-child { font-weight: 700; }

/* ---------- 접이식 (부가 옵션 노출 최소화) ---------- */
.disclose { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.disclose > summary {
  list-style: none; cursor: pointer;
  padding: var(--s3) 0;
  font-size: var(--fs-16); font-weight: 600; color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between;
}
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::after {
  content: ""; flex: 0 0 14px; height: 14px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) center/14px 1.5px no-repeat,
    linear-gradient(var(--ink-3), var(--ink-3)) center/1.5px 14px no-repeat;
  transition: transform .2s var(--ease);
}
.disclose[open] > summary::after { transform: rotate(45deg); background-size: 14px 1.5px, 1.5px 0; }
.disclose__body { padding-bottom: var(--s4); }

/* ---------- 알림/주의 박스 (좌측 강조선 미사용) ---------- */
.note {
  background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s3) var(--s4);
  font-size: var(--fs-14);
}
.note--red { background: var(--red-tint); border-color: var(--red-soft); color: var(--ink-2); }
.note strong { color: var(--ink); }

/* ---------- 리퍼럴 ---------- */
/* 프로모 바와 같은 레드 바탕 흰 글씨. 해제(X) 버튼은 두지 않는다 */
.refbar {
  background: var(--red); color: #fff;
  min-height: var(--promo-h);
  padding: 8px var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--fs-14); font-weight: 600; text-align: center;
  letter-spacing: -0.01em;
}

.refcode {
  display: flex; align-items: center; gap: var(--s2);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: var(--s3); background: #fff;
}
.refcode__v { flex: 1; font-size: var(--fs-18); font-weight: 800; letter-spacing: .02em; min-width: 0; overflow-wrap: anywhere; }

.flow {
  display: grid; gap: var(--s3);
  counter-reset: flow;
}
.flow__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); position: relative;
}
.sec--ink .flow__item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.flow__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: var(--radius-pill);
  background: var(--red); color: #fff; font-size: var(--fs-14); font-weight: 800;
  margin-bottom: var(--s2);
}

/* ---------- PDP ---------- */
/* 히어로 배경은 흰색: 영상 흰 배경이 multiply로 섹션색에 물들어 제품이 분홍빛으로 보이는 것 방지 (2026-08-21) */
.pdp-hero { position: relative; background: #fff; padding-top: var(--s4); padding-bottom: var(--s5); }
.pdp-hero__media {
  aspect-ratio: 1 / 1; overflow: hidden; padding: var(--s3) 0;
  display: flex; align-items: center; justify-content: center;
}
.pdp-hero__media img,
.pdp-hero__media video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply;
}
.pdp-hero__media video { transform: scale(1.15); }
/* EGF 마스크 회전 영상은 여백 없는 풀블리드 연출 컷이라 확대는커녕 줄여야 제목과 숨이 생긴다 */
.pdp-hero__media video[src*="egf-mask"] { transform: scale(0.88); }
.pdp-hero__media .ph { width: 100%; height: 100%; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-tag {
  font-size: var(--fs-14); font-weight: 700; padding: 6px 12px;
  border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.pdp-tag--red { background: var(--red); color: #fff; border-color: var(--red); }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .28s var(--ease);
}
.buybar[data-show="true"] { transform: translateY(0); }
.buybar__in { max-width: var(--shell); margin: 0 auto; display: flex; align-items: center; gap: var(--s3); }
.buybar__price { flex: 1; min-width: 0; }
.buybar .btn { flex: 0 0 auto; }

/* ---------- 수량 스테퍼 ---------- */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qty button { width: 42px; height: 42px; font-size: var(--fs-18); font-weight: 700; display: grid; place-items: center; }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty--sm button { width: 34px; height: 34px; font-size: var(--fs-16); }
.qty--sm span { min-width: 24px; font-size: var(--fs-14); }

/* ---------- 장바구니 / 주문 ---------- */
.line-item { display: flex; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.line-item__media { flex: 0 0 76px; height: 112px; background: var(--sand); border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.line-item__media img { display: block; max-width: 66px; max-height: 102px; width: auto; height: auto; mix-blend-mode: multiply; }

/* 컴팩트 페이지 타이틀 바 (장바구니 등 기능 페이지) */
.pagebar { padding-block: var(--s4) var(--s3); }

/* 블로그 이전/다음 아티클 */
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: var(--s2) var(--s6); }
.postnav__item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0;
}
.postnav__item span:last-child {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45;
}
.postnav__item--next { text-align: right; }
.postnav__item--empty { border: 0; }
.postnav__item:not(.postnav__item--empty):hover { border-color: var(--ink); }
.line-item__body { flex: 1; min-width: 0; }
.line-item__body--cart { position: relative; display: flex; flex-direction: column; }
.line-item__name { padding-right: 32px; }
.line-item__del {
  position: absolute; top: 0; right: -4px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--ink-3); border-radius: 50%;
}
.line-item__del:hover { background: var(--sand); color: var(--ink); }
.line-item__foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.sumrow { display: flex; justify-content: space-between; gap: var(--s3); padding: 9px 0; font-size: var(--fs-16); }
.sumrow--total { border-top: 1.5px solid var(--ink); margin-top: var(--s2); padding-top: var(--s3); font-size: var(--fs-18); font-weight: 800; }
.sumrow__v { font-variant-numeric: tabular-nums; white-space: nowrap; }

.field { display: block; }
.field__l { display: block; font-size: var(--fs-14); font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: var(--fs-16);
}
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; }
.sec--red .field input { border-color: rgba(255,255,255,.5); }
.sec--red .refcode { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); color: #fff; }

/* ---------- 푸터 ---------- */
.ftr { background: var(--ink); color: #fff; padding-block: var(--s7) var(--s6); }
.ftr__logo {
  height: 34px; width: auto; margin-bottom: var(--s5);
}
.ftr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); }
.ftr h3 { font-size: var(--fs-14); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8b8792; margin-bottom: var(--s2); }
.ftr a { display: block; padding: 6px 0; font-size: var(--fs-16); color: #e6e3ea; }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ftr__legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.16); }
.ftr__legal p { font-size: var(--fs-14); color: #9a96a2; line-height: 1.8; }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  padding: 13px 20px; border-radius: var(--radius-pill);
  font-size: var(--fs-16); font-weight: 600;
  z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast[data-show="true"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- PC : 좌측 GNB 레일 + 본문 640px + 우측 이미지 ---------- */
/* 레일 왼쪽 여백 · 레일 폭 · 레일과 본문 사이 흰 여백 */
.rail, .pc-aside { display: none; }

@media (min-width: 1040px) {
  :root {
    /* 레일 + 본문(928px)을 화면 가운데 놓는다. 우측 이미지가 붙는 폭에서는 아래에서 왼쪽으로 당긴다 */
    --rail-x: max(24px, calc(50vw - 464px));
    --rail-w: 240px;
    --rail-gap: 48px;
    --col-x: calc(var(--rail-x) + var(--rail-w) + var(--rail-gap));
  }

  body { background: var(--paper); }

  /* PC에서는 상단 GNB 바를 쓰지 않는다 (레일이 대신한다) */
  .hdr { display: none; }

  .rail {
    display: block;
    position: fixed; top: 0; bottom: 0;
    left: var(--rail-x); width: var(--rail-w);
    z-index: 3;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .rail__in {
    min-height: 100%;
    display: flex; flex-direction: column;
    padding: 40px 0 44px;
  }
  .rail__logo { display: block; width: 104px; }
  .rail__logo img { display: block; width: 100%; height: auto; }

  .rail__nav { display: grid; margin-top: 44px; }
  .rail__nav a {
    padding: 9px 0;
    font-size: var(--fs-18); font-weight: 700; letter-spacing: -0.02em;
  }
  .rail__nav a:hover,
  .rail__nav a[aria-current="page"] { color: var(--red); }

  .rail__util { display: grid; margin-top: 30px; }
  .rail__util a, .rail__util button {
    display: flex; align-items: center; gap: 8px;
    width: 100%; text-align: left; padding: 7px 0;
    font-size: var(--fs-16); color: var(--ink-3);
  }
  .rail__util a:hover, .rail__util button:hover { color: var(--red); }
  .rail__util svg { flex: 0 0 18px; width: 18px; height: 18px; }
  .rail__count {
    min-width: 18px; height: 18px; padding-inline: 5px;
    border-radius: var(--radius-pill);
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  }

  /* 본문 - 좌우 흰 여백으로 레일·이미지와 분리된다 */
  .page {
    position: relative; z-index: 2;
    margin-left: var(--col-x);
    width: 640px;
    min-height: 100vh;
    background: var(--paper);
    box-shadow: 0 0 44px rgba(0,0,0,.09);
  }
  .shell { max-width: 640px; padding-inline: var(--gutter); }
  .buybar { left: var(--col-x); right: auto; width: 640px; }
  .scroller > * { flex: 0 0 66%; }
  .toast { left: calc(var(--col-x) + 320px); }
}

/* 우측 열 - 이미지 + 멘트·국기. 본문 오른쪽 여백이 충분할 때만 나온다.
   이때 레일·본문은 우측 자리를 만들려고 왼쪽으로 당긴다 */
@media (min-width: 1300px) {
  :root { --rail-x: max(24px, calc(50vw - 620px)); }

  /* 사진 상단을 레일 로고 상단(40px)과 같은 선에 맞춰 세 열이 한 기준선을 공유한다.
     세로 중앙 정렬은 페이지마다 사진 위치가 떠다녀 폐기(2026-08-20). */
  .pc-aside {
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0;
    left: calc(var(--col-x) + 640px + var(--rail-gap));
    width: min(288px, calc(100vw - var(--col-x) - 640px - var(--rail-gap) - 24px));
    padding-block: 40px;
    z-index: 1;
  }
  .pc-aside__photo {
    width: 100%; aspect-ratio: 3 / 4; max-height: 46vh;
    border-radius: var(--radius);
    background: #f4f2ef url(https://storage.googleapis.com/anti-aging-skincare/pc-banner-woman.webp) center 18% / cover no-repeat;
  }
  .pc-aside__copy { margin-top: var(--s4); }
  .pc-aside__copy .fs-14 { line-height: 1.8; }
  .pc-aside__flags { display: inline-flex; align-items: center; gap: 8px; }
  .pc-aside__flags img {
    width: 24px; height: 16px; object-fit: cover; display: block;
    border-radius: 2px; box-shadow: 0 0 0 1px rgba(17,17,17,.1);
  }
}

@media (max-width: 1039px) {
  .page { min-height: 100vh; }
}

/* 작은 기기 대응 (좌우 스크롤 방지) */
@media (max-width: 360px) {
  :root { --gutter: 16px; --fs-32: 28px; --fs-28: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal[data-in="true"] { opacity: 1; transform: none; }

/* 접근성 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 0; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 0; }
