/* ==========================================================================
   unlock — Brand Design System (DESIGN.md)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --color-surface: #FFFFFF;
  --color-border: #D9DADB;
  --color-heading: #0C2030;
  --color-body: #353F42;
  --color-primary: #7C1C35;
  --color-alert: #C42D26;
  --color-retro-sky: #47ABE2;
  --color-butter-yellow: #F2E375;
  /* Soft Gray(--color-border)는 선(divider)으로 쓰지 않고, 이미지 플레이스홀더·컨트롤 면 채움 용도로만 사용 */
  --color-fill: var(--color-border);

  /* 토큰에서 파생한 오버레이 (임의 헥스코드 없음) */
  --scrim: color-mix(in srgb, var(--color-heading) 45%, transparent);

  /* DESIGN.md §2.1 */
  --font-latin: "tablet-gothic-wide", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-korean: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  /* 혼합 텍스트용: 두 패밀리를 연달아 배치해 글리프 단위로 영문·숫자는 tablet-gothic-wide, 국문은 Pretendard가 적용됨.
     (--font-latin을 그대로 이어 쓰면 중간의 시스템 폰트가 한글을 먼저 가져가 Pretendard가 밀림) */
  --font: "tablet-gothic-wide", "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Typography scale — 국문(ko) / 영문·숫자(en) */
  --display-ko: 42px; --display-en: 44px;
  --h1-ko: 30px;      --h1-en: 32px;
  --h2-ko: 18px;      --h2-en: 19px;
  --b1: 17px; --b2: 15px; --c1: 13px; --micro: 11px;

  --header-h: 40px;
  --gutter: 24px;
  --grid-gap-x: 10px;   /* 상품 그리드 열 간격 */
  --grid-gap-y: 80px;   /* 상품 그리드 행 간격 */
}

@media (max-width: 768px) {
  :root {
    --display-ko: 30px; --display-en: 32px;
    --h1-ko: 22px;      --h1-en: 24px;
    --gutter: 16px;
    --grid-gap-x: 7px;
    --grid-gap-y: 48px;
  }
}

/* ---------- 2. Reset & Must-Avoid rules ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-body);
  font-family: var(--font);
  font-size: var(--b2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Type scale ---------- */
.t-display { font-size: var(--display-ko); font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; color: var(--color-heading); }
.t-display.en { font-size: var(--display-en); letter-spacing: 0.03em; }
.t-h1 { font-size: var(--h1-ko); font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; color: var(--color-heading); }
.t-h1.en { font-size: var(--h1-en); letter-spacing: 0.02em; }
.t-h2 { font-size: var(--h2-ko); font-weight: 700; line-height: 1.5; letter-spacing: -0.005em; color: var(--color-heading); }
.t-h2.en { font-size: var(--h2-en); letter-spacing: 0.01em; }
.t-b1 { font-size: var(--b1); font-weight: 400; line-height: 1.5; letter-spacing: -0.005em; }
.t-b1.en { letter-spacing: 0; }
.t-b2 { font-size: var(--b2); font-weight: 400; line-height: 1.5; }
.t-c1 { font-size: var(--c1); font-weight: 400; line-height: 1.5; }
.t-micro { font-size: var(--micro); font-weight: 700; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; }

/* ---------- 4. Photo treatment (DESIGN §4) ---------- */
.media { position: relative; overflow: hidden; background: var(--color-fill); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); }
.media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.13;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- 5. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background-color: var(--color-surface); color: var(--color-heading);
}
.header__inner {
  height: 100%; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 16px;
}
.header__left, .header__right { display: flex; align-items: center; gap: 28px; min-width: 0; }
.header__right { justify-content: flex-end; }
.header__nav { display: flex; gap: 28px; align-items: center; }
.nav-link, .cart-btn {
  font-family: var(--font-latin); font-size: var(--micro) !important; font-weight: 700 !important; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1;
  padding: 4px 0 !important; border: none; border-bottom: 1px solid transparent; color: var(--color-heading) !important;
  background: transparent !important; outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; white-space: nowrap; margin: 0;
}
.nav-link:hover, .nav-link.is-active, .cart-btn:hover { border-bottom-color: currentColor; }
.cart-count { display: inline-block; min-width: 1.4em; text-align: center; }
/* 로고 (DESIGN.md §5): 높이 기준 지정, 폭은 auto — 비율 왜곡·회전·그림자 금지 */
.logo { display: block; padding: 4px 0; line-height: 0; }
.header .logo__img { height: 14px; }
.logo__img { display: block; height: 18px; width: auto; aspect-ratio: auto; max-width: none; }
.header__burger { display: none; width: 32px; height: 32px; position: relative; margin-left: -8px; }
.header__burger span { position: absolute; left: 8px; right: 8px; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
.header__burger span:nth-child(1) { top: 11px; }
.header__burger span:nth-child(2) { top: 20px; }
.header__burger[aria-expanded="true"] span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

/* auth-slot: LOGIN/JOIN ↔ LOGOUT/MY 전환 시 레이아웃에 영향을 주지 않도록 display:contents로 감쌈 */
.auth-slot { display: contents; }

/* COMMUNITY 3단 서브 드롭다운 — 순백 배경, 보더·그림자 없음, Micro 규격 */
.nav-community { position: relative; display: flex; align-items: center; }
.community-panel {
  display: none; position: absolute; top: calc(100% + 1px); left: 0; z-index: 101; min-width: 140px;
  flex-direction: column; gap: 0; background: var(--color-surface); padding: 8px 0;
}
.community-panel a {
  display: block; padding: 8px 16px; font-size: var(--micro); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-heading); white-space: nowrap;
}
.community-panel a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .nav-community:hover .community-panel { display: flex; }
}
.nav-community.is-open .community-panel { display: flex; }


.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--color-surface);
padding: 8px var(--gutter) 32px; overflow: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.mnav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mnav a, .mnav button { display: block; width: 100%; padding: 18px 0; color: var(--color-heading); text-align: left; }
/* 모바일 메뉴 내 COMMUNITY 계층형 서브메뉴(Many ways · Notice · Q&A) */
.mnav__group { padding: 8px 0 0; }
.mnav__label { padding: 8px 0; color: var(--color-heading); }
.mnav__sub { display: flex; flex-direction: column; padding-left: 16px; }
.mnav__sub a { padding: 12px 0; font-size: var(--b2); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--color-body); }
.mnav__sub a:hover { color: var(--color-heading); }

/* 헤더 검색 바 — 슬림 GNB 바로 아래, 선 없이 면 채움(--color-fill) 인풋 토글 */
.search-bar { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 98; background: var(--color-surface); display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px var(--gutter); }
.search-bar[hidden] { display: none; }
.search-bar__form { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 12px; }
.search-bar__input {
  flex: 1; background: transparent; border: 0; border-bottom: 1px solid var(--color-heading);
  padding: 12px 4px; font-family: var(--font-korean); font-size: var(--b2); color: var(--color-heading); outline: none;
}
.search-bar__input::placeholder { color: var(--color-body); opacity: .6; }
.search-bar__submit, .search-bar__close {
  display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; margin: 0;
  border: none; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-size: var(--micro); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.search-bar__submit { background: var(--color-heading); color: var(--color-surface); }
.search-bar__submit:hover { background: var(--color-primary); }
.search-bar__close { background: var(--color-fill); color: var(--color-heading); }
.search-bar__close:hover { background: var(--color-heading); color: var(--color-surface); }

@media (max-width: 900px) {
  .header__left .header__nav, .header__right .header__nav { display: none; }
  .header__burger { display: block; }
  .header__left, .header__right { gap: 0; }
}
@media (min-width: 901px) { .mnav { display: none; } }

/* ---------- 6. Hero ---------- */
/* 첫 화면 = [슬림 GNB 40px] + [히어로 미디어 calc(100vh - GNB)]. 슬로건 바는 그 아래 독립 블록이라 스크롤해야 나타남 */
.hero { padding-top: var(--header-h); background: var(--color-surface); }
.hero__media {
  position: relative; width: 100%; overflow: hidden; background: var(--color-heading);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 420px;
}
.hero__slide { position: absolute; inset: 0; opacity: 0; animation: heroSlide 18s infinite; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.92); }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  39% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .8s; }
.hero__video.is-playing { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
/* 우하단 SCROLL 인디케이터가 밝은 사진 위에서도 읽히도록 하단에만 옅은 스크림 */
.hero__media::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, var(--scrim) 0%, transparent 100%);
}
.hero__scroll {
  position: absolute; right: 24px; bottom: 24px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--color-surface);
}
.hero__scroll i { display: block; width: 1px; height: 40px; background: var(--color-surface); transform-origin: top; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* 슬로건 바: 선 없이 순백색의 넉넉한 여백 블록만으로 히어로·상품 그리드와 구분 (텍스트 줄 높이의 내부 여백까지 더해 시각적으로는 상하 균형) */
.hero__bar { padding: 80px var(--gutter) 80px; background-color: var(--color-surface); }
/* Display (DESIGN.md §2.2): Latin Bold 44px(모바일 32px) · LH 150% · +3% — .t-display.en이 규격 담당 */
.hero__title { font-family: var(--font-latin); color: var(--color-heading); white-space: nowrap; }
@media (max-width: 768px) {
  .hero__scroll { right: 16px; bottom: 16px; }
  .hero__bar { padding-top: 48px; padding-bottom: 48px; }
  /* 모바일에서도 슬로건은 항상 한 줄: 글자 폭 ≈ 폰트 크기 × 12.5 이므로 (화면폭 − 좌우 거터) ÷ 13 으로 유동 축소 (최대 Display 32px) */
  .hero__bar .hero__title { font-size: clamp(18px, calc((100vw - 2 * var(--gutter)) / 13), var(--display-en)); } /* .t-display.en보다 뒤에서 덮어쓰도록 선택자 강화 */
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
  .hero__slide:first-child { opacity: 1; }
  .hero__scroll i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 7. Shop section: filter + 0-gap grid ---------- */
.shop { scroll-margin-top: var(--header-h); }
/* 카테고리명 H1만 남긴 헤드: 필터 바가 없으므로 위 56px(콘텐츠 시작 여백) · 아래 40px 여백으로 그리드와 구분 (선 없음) */
.shop__head { padding: 80px var(--gutter) 80px; }
.shop__head p { margin-top: 12px; color: var(--color-body); }
.tags { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tags::-webkit-scrollbar { display: none; }
.tag {
  flex: none; height: 34px; padding: 0 16px; border: 0;
  background: var(--color-fill); color: var(--color-body);
  font-size: var(--c1); font-weight: 500; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.tag:hover { color: var(--color-heading); }
.tag[aria-pressed="true"] { background: var(--color-heading); color: var(--color-surface); }
.tag .n { margin-left: 6px; opacity: .6; }

.gridwrap { padding: 0 var(--gutter) 56px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--grid-gap-x); row-gap: var(--grid-gap-y); }
/* PLP 페이지네이션 — 선·박스·원형 배경 없는 플랫 텍스트. 활성 번호만 1px 밑줄, PREV/NEXT는 양 끝 (푸터와의 사이 여백) */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 24px var(--gutter) 40px; font-family: var(--font-latin); }
.pager__nums { display: flex; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.pager__num, .pager__gap { display: inline-block; padding: 8px 2px; font-size: var(--b2); font-weight: 400; line-height: 1.5; color: var(--color-body); }
a.pager__num:hover { color: var(--color-heading); }
.pager__num.is-active { color: var(--color-heading); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.pager__side--end { text-align: right; }
.pager__ctl { display: inline-block; padding: 8px 0; font-size: var(--micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-heading); }
.pager__ctl:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.card { display: block; background: var(--color-surface); }
.card .media { aspect-ratio: 3 / 4; }
.card .media .b { opacity: 0; transition: opacity .35s; }
@media (hover: hover) { .card:hover .media .b { opacity: 1; } }
.card.is-soldout .media img.a { opacity: .55; }
.card.is-soldout .media img.b { opacity: 0; }
@media (hover: hover) { .card.is-soldout:hover .media img.b { opacity: .55; } }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 7px;
  font-size: var(--micro); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.5;
}
.badge--new { background: var(--color-butter-yellow); color: var(--color-heading); }
.meta { padding: 12px 0 0; }
.meta .name { font-size: var(--c1); font-weight: 500; color: var(--color-heading); margin-bottom: 4px; line-height: 1.5; }
.price-line { font-size: var(--c1); font-weight: 700; color: var(--color-heading); line-height: 1.5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-line .pct, .price-line .sold { color: var(--color-alert); font-weight: 700; }
.price-line .orig { color: var(--color-body); font-weight: 400; text-decoration: line-through; }
.price-line.big { font-size: var(--h2-en); }
.price-line.big .pct { font-size: var(--b2); }
.price-line.big .orig { font-size: var(--c1); }

@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .shop__head { padding: 48px var(--gutter) 48px; }
}

/* ---------- 8. Section head (OOTD · 연관 상품 공용) ---------- */
.section-head { padding: 56px var(--gutter) 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head p.t-c1 { max-width: 34em; }

/* ---------- 9. OOTD UGC feed ---------- */
/* 'Many ways' 피드 헤더: 슬로건 바(.hero__bar)와 동일한 호흡 — 선 없이 순백 면과 상·하 여백 80px(모바일 48px)으로 위아래 콘텐츠와 구분 */
.ootd { scroll-margin-top: var(--header-h); }
.ootd .section-head { padding: 280px var(--gutter) 80px; align-items: baseline; }
.ootd__title { font-family: var(--font-latin); color: var(--color-heading); }   /* Display 규격(.t-display.en: Bold · 44px/모바일 32px · LH 150% · +3%)은 슬로건 바와 공용 */
.showcase .gridwrap { padding-bottom: 0; }   /* 위쪽 여백이 헤더 패딩(80px)만으로 정확히 형성되도록 */
@media (max-width: 768px) { .ootd .section-head { padding-top: 48px; padding-bottom: 48px; row-gap: 12px; } }
.ugc .media { aspect-ratio: 3 / 4; }
.ugc .meta { padding: 12px 0 0; font-size: var(--c1); color: var(--color-heading); font-weight: 500; }   /* @아이디만, 좌측 정렬 */
.ootd__all { font-size: var(--c1); font-weight: 500; color: var(--color-heading); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; transition: color .15s; }   /* 타이틀 우측 전체 보기 버튼 */
.ootd__all:hover { color: var(--color-primary, #7C1C35); }

/* Many ways 전용 페이지(manyways.html) — 1200px 중앙 정렬 룩북 컨테이너. 헤더·그리드·페이지네이션이 같은 좌우 정렬선을 공유 */
.mw { max-width: 1200px; margin: 0 auto; padding: 80px var(--gutter) 80px; }
.mw__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 80px; }   /* 구분선 없이 여백만 */
.mw__title { font-family: var(--font-latin); font-size: var(--h1-en, 32px) !important; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; color: var(--color-heading, #0C2030); }   /* Shop PLP 타이틀과 같은 H1(.t-h1.en): 32px / 모바일 24px(--h1-en 토큰) */
.mw__note { color: var(--color-body); }
.mw__grid { grid-template-columns: repeat(4, 1fr); column-gap: var(--grid-gap-x, 10px); row-gap: var(--grid-gap-y, 80px); }   /* 모바일 토큰: 7px / 48px */
.mw__grid .media { aspect-ratio: 3 / 4; }
.mw__grid .media, .mw__grid img { border-radius: 0 !important; box-shadow: none !important; border: none !important; }
.mw__grid img { object-fit: cover; }
.mw__grid .meta { margin-top: 12px; padding: 0; font-size: var(--c1); font-weight: 500; color: var(--color-heading); }
.mw .pager { padding: 56px 0 0; }
@media (max-width: 768px) {
  .mw { padding: 48px var(--gutter) 48px; }
  .mw__head { 
    flex-direction: column; 
    align-items: flex-start; 
    padding-bottom: 48px;
  }
  .mw__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 10. Footer — 좌측 브랜드 1열 + 우측 정보 2열(비대칭) + 최하단 초소형 법적 바 (선·박스 없음) ---------- */
.footer { padding: 160px var(--gutter) 40px; background: var(--color-surface); color: var(--color-body); }
.footer a { color: inherit; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer p { margin: 0; }
/* 상단: 로고 + 우측 정보(저작권/인라인 바)를 가로로 나란히 배치 */
.footer__main { display: flex; align-items: flex-end; gap: 40px; margin-bottom: 24px; }
.footer__logo { display: block; line-height: 0; flex: none; }
.footer__logo:hover { text-decoration: none; }
.footer__logo img { display: block; width: auto; height: 84px; }
.footer__content { display: flex; flex-direction: column; gap: 8px; }
/* 저작권 */
.footer__copy { font-size: var(--c1); line-height: 1.6; }
/* 반품 주소 · 입금 계좌 · 상담 시간 · CS 링크 — 가운뎃점으로 이은 가로 1열 플랫 인라인 바 */
.footer__inline-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--c1); font-weight: 400; line-height: 1.6; color: var(--color-body); }
.footer__inline-info a { color: var(--color-body); text-decoration: none; }
.footer__inline-info a:hover { color: var(--color-heading); text-decoration: underline; text-underline-offset: 3px; }
.footer__inline-info .sep { color: color-mix(in srgb, var(--color-body) 40%, transparent); }
/* 최하단 법적 정보 — Micro 11px, --color-body 45%, 1.5 */
.footer .footer__legal { margin: 0; font-size: var(--micro); font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; color: color-mix(in srgb, var(--color-body) 45%, transparent); }
.footer__legal a { color: inherit; }
@media (max-width: 768px) {
  .footer { padding: 56px var(--gutter) 32px; }
  .footer__main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__logo img { height: 60px; }
}

/* ---------- 11. Buttons & form controls ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px;
  background: var(--color-heading); color: var(--color-surface); border: 0;
  font-size: var(--b2); font-weight: 700; letter-spacing: 0.03em; text-align: center;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--color-primary); }
.btn--ghost { background: var(--color-fill); color: var(--color-heading); }
.btn--ghost:hover { background: var(--color-heading); color: var(--color-surface); }
.btn[disabled] { background: var(--color-fill); color: var(--color-body); cursor: not-allowed; }
.btn--line { background: transparent; border: 1px solid var(--color-border, #D9DADB); color: var(--color-body); border-radius: 0 !important; box-shadow: none !important; }
.btn--line:hover { background: transparent; border-color: var(--color-heading); color: var(--color-heading); }
.btn--solid { background: var(--color-heading, #0C2030) !important; color: var(--color-surface, #FFFFFF) !important; font-weight: 700; border: none !important; border-radius: 0 !important; box-shadow: none !important; }
.btn--solid:hover { background: var(--color-primary, #7C1C35) !important; }
.btn--sm { height: 40px; width: auto; padding: 0 18px; font-size: var(--c1); }

/* PDP CTA row: 바로 구매하기 / 장바구니에 담기 (1:1 균등) + 찜 (52px 고정) 가로 1열 */
.cta-row { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 8px; width: 100%; }
.cta-row .btn { width: auto; border-radius: 0 !important; box-shadow: none !important; }
.btn--buy, .btn--cart { flex: 1 1 0; min-width: 0; padding: 0 16px; white-space: nowrap; }
.btn--sq { flex: 0 0 52px; width: 52px; padding: 0; display: flex; align-items: center; justify-content: center; }
.btn--wish { font-size: 20px; }

.field { display: block; }
.field__label { display: block; margin-bottom: 8px; color: var(--color-heading); }
.input, .select, .textarea {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  background: var(--color-fill); color: var(--color-heading);
  border: 0; font-size: var(--b2); line-height: 1.5;
}
.input::placeholder, .textarea::placeholder { color: var(--color-body); opacity: .7; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%230C2030' stroke-width='1.3'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.field-error { margin-top: 8px; color: var(--color-alert); font-size: var(--c1); font-weight: 700; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { outline: 1px solid var(--color-alert); outline-offset: -1px; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--color-heading); background: var(--color-surface); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.check input:checked { background: var(--color-heading); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--color-surface); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* ---------- 12. Product Detail Page ---------- */
.pdp { padding-top: var(--header-h); }
.pdp__grid { display: grid; grid-template-columns: 60% 40%; align-items: start; }
.pdp__main { min-width: 0; }
.pdp__gallery { display: grid; gap: 12px; }
.pdp__gallery--main { margin-bottom: 12px; } /* 대표 컷과 나머지 디테일 컷을 두 컨테이너로 분리해도 갤러리 리듬(12px) 유지 */
.pdp__after { padding-top: 56px; }
.pdp__after #threads { max-width: 60%; width: 100%; box-sizing: border-box; }
@media (max-width: 900px) {
  .pdp__after #threads { max-width: 100%; }
}
.cut { position: relative; overflow: hidden; }
.cut .media { position: absolute; inset: 0; }

.pdp__side { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); max-height: calc(100svh - var(--header-h)); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.side { padding: 32px 40px 60px; display: grid; gap: 24px; } /* 하단 세트 추천 박스가 스크롤 끝에서 잘리지 않도록 여유 패딩 */
.crumbs { color: var(--color-body); }
.crumbs a:hover { color: var(--color-heading); text-decoration: underline; text-underline-offset: 3px; }
.side__title { margin-top: 8px; }
.side .price-line { margin-top: 8px; }
.side__block > .t-micro { margin-bottom: 10px; color: var(--color-heading); }
.side__block + .side__block { margin-top: 0; }
.side__block--promo { margin-top: 36px; }
/* 멀티 스타일링(SET) 잠정 비활성화 — 마크업·데이터는 유지, 노출만 차단(재오픈 시 이 규칙만 제거) */
.setpromo, .side__block--promo { display: none !important; }
.spec-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { padding: 10px 12px; text-align: center; font-size: var(--c1); white-space: nowrap; }
.spec thead th { color: var(--color-heading); font-weight: 700; }
.spec tbody th { color: var(--color-heading); font-weight: 700; text-align: left; }
.spec-cap { margin: 10px 0 4px; color: var(--color-body); }
.size-guide-img { margin-bottom: 16px; }
.size-guide-img img { display: block; width: 100%; max-width: 200px; margin: 0 auto; }
.opts { display: grid; gap: 8px; }
/* PDP COLOR/SIZE 선택: 진한 면 채움 대신 은은한 1px 라인 스타일 */
.opts .select {
  background: var(--color-surface); color: var(--color-heading);
  border: 1px solid var(--color-border); height: 48px; font-size: var(--c1);
  border-radius: 0 !important; box-shadow: none !important;
}
.opts .select:invalid { color: var(--color-body); opacity: .7; }
.opts .select option[value=""] { color: var(--color-body); }
.opts .select option:not([value=""]) { color: var(--color-heading); }
.cta { display: grid; gap: 8px; }
.setpromo { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--color-fill); border-radius: 0; box-shadow: none; flex-shrink: 0; min-height: fit-content; }
.setpromo .media { flex: none; width: 52px; aspect-ratio: 3 / 4; }
.setpromo .arrow { margin-left: auto; color: var(--color-heading); font-size: var(--b1); transition: transform .2s; }
.setpromo:hover .arrow { transform: translateX(4px); }

.pdp__bar { display: none; }

/* Threads */
.tabs { display: flex; scroll-margin-top: calc(var(--header-h) + 16px); }
.tab { flex: 1; height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--color-body); border-bottom: 2px solid transparent; font-weight: 700; font-size: var(--b2); letter-spacing: .02em; }
.tab[aria-selected="true"] { color: var(--color-heading); border-bottom-color: var(--color-heading); }
.tab:hover { color: var(--color-heading); }
.thread__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: auto; padding: 20px var(--gutter) !important; box-sizing: border-box; border-radius: 0 !important; box-shadow: none !important; }
.thread__bar--end { justify-content: flex-end; }
.thread__bar .btn { width: auto; height: 34px !important; padding: 0 16px !important; background: var(--color-fill, #D9DADB) !important; color: var(--color-heading, #0C2030) !important; font-size: var(--c1, 13px) !important; font-weight: 700 !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; }
.thread__bar .btn:hover { background: rgba(0, 0, 0, 0.15) !important; }
.thread__bar p { margin: 0 !important; line-height: 1.5; font-size: var(--c1, 13px); color: var(--color-body); }
.write { padding: 8px var(--gutter) 24px; display: grid; gap: 14px; }
.write__row { display: flex; gap: 8px; justify-content: flex-end; }
.is-hidden { display: none !important; }
.thread-more { text-align: center; padding: 24px 0 32px; }
.thread-more__btn { font-size: var(--c1); font-weight: 500; color: var(--color-heading); background: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.post-list { padding: 0 var(--gutter) 24px; }
.post { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.post:first-child { border-top: 1px solid var(--color-border); }
.post__content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--color-body); }
.post__meta b { color: var(--color-heading); font-weight: 700; }
.post__content p { color: var(--color-body); line-height: 1.6; word-break: keep-all; margin: 0; }
.thumb64 { flex: none; width: 64px; height: 64px; }
.post .thumb64, .mrow .thumb64 { align-self: flex-start; width: 80px; height: 80px; aspect-ratio: 1 / 1 !important; margin-top: 0 !important; }
.qa { display: inline-block; width: 1.6em; color: var(--color-heading); font-weight: 700; }
.answer { margin-top: 14px; padding-left: 1.6em; } /* 질문 텍스트 시작선에 맞춰 들여쓰기 */
.answer .brand { color: var(--color-primary); margin-bottom: 4px; }
.answer--wait { color: var(--color-body); }
.thread__empty { padding: 48px var(--gutter); text-align: center; }

/* Accordion */
.acc { position: relative; width: 100%; border-radius: 0; box-shadow: none; }
.acc__btn { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); color: var(--color-heading); font-weight: 700; font-size: var(--b2); border-radius: 0; box-shadow: none; }
.acc__icon { position: relative; flex: none; width: 12px; height: 12px; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; background: var(--color-heading); transition: transform .3s; }
.acc__icon::before { left: 0; right: 0; top: 5.5px; height: 1px; }
.acc__icon::after { top: 0; bottom: 0; left: 5.5px; width: 1px; }
.acc.is-open .acc__icon::after { transform: scaleY(0); }
/* 열림/닫힘은 JS가 인라인 max-height를 실제 콘텐츠 높이(scrollHeight)로 지정해 애니메이션 — 항상 일반 문서 흐름(position: static)에 있으므로 다음 아코디언 헤더가 겹치지 않고 자연스럽게 밀려 내려감 */
.acc__panel { position: static; width: 100%; max-height: 0; overflow: hidden; transition: max-height .3s ease; border-radius: 0; box-shadow: none; }
.acc__panel > div { width: 100%; padding: 14px var(--gutter); }
.acc__panel p { color: var(--color-body); }

/* PDP sidebar accordion (사이즈 가이드 · 정책 안내, 사이드바 최하단) */
.side-acc { border-top: 1px solid var(--color-border); border-radius: 0; box-shadow: none; }
.side-acc .acc { border-bottom: 1px solid var(--color-border); }
.side-acc .acc__btn { padding: 16px 0; font-size: var(--micro); }
.acc:not(.is-open) .acc__panel { max-height: 0 !important; overflow: hidden !important; }
.side-acc .acc__panel > div { padding: 12px 0 16px; }
/* 사이드바 아코디언 본문(배송 안내·사이즈 가이드·교환/반품·세탁 주의사항): 본문 B2(15px) 대신 C1(13px)로 슬림하게 */
.side-acc .acc__panel p,
.side-acc .acc__panel > div,
.side-acc .acc__panel table,
.side-acc .acc__panel ul {
  font-size: var(--c1) !important;
  line-height: 1.6;
  word-break: keep-all;
  color: var(--color-body);
  border-radius: 0 !important;
  box-shadow: none !important;
}
.side-acc .acc__panel p + p, .side-acc .acc__panel p + ul, .side-acc .acc__panel ul + p { margin-top: 8px; }
.side-acc__list { list-style: disc; padding-left: 1.1em; display: grid; gap: 4px; }

.related { margin-top: 24px; }

@media (max-width: 900px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__main { display: contents; }
  /* 대표 컷 → 주문 패널(.pdp__side) → 나머지 디테일 컷 → 리뷰/Q&A 순으로 전개 */
  .pdp__gallery--main { order: 1; margin-bottom: 0; }
  .pdp__side { order: 2; position: static; max-height: none; overflow: visible; }
  .pdp__gallery--rest { order: 3; margin-top: 20px; }
  .side { padding: 20px var(--gutter); }
  .pdp__bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--color-surface); padding: 10px var(--gutter); }
  body.has-bar { padding-bottom: 72px; }
}

/* ---------- 13. Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; transition: visibility 0s .35s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 40%; min-width: 460px; max-width: 100vw;
  background: var(--color-surface);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); height: 56px; flex: none; }
.drawer__close { font-size: var(--c1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-heading); padding: 8px 0; border-bottom: 1px solid transparent; }
.drawer__close:hover { border-bottom-color: currentColor; }
.drawer__body { flex: 1; overflow-y: auto; }
.ship-note { padding: 4px var(--gutter) 12px; color: var(--color-body); }
.ship-note b { color: var(--color-heading); }
.citem { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px var(--gutter); align-items: start; border: none !important; }
.citem + .citem { margin-top: 8px; }
.citem .media { aspect-ratio: 3 / 4; width: 64px; border-radius: 0 !important; box-shadow: none !important; }
.citem__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.citem__header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.citem__name { color: var(--color-heading); font-weight: 500; font-size: var(--c1); line-height: 1.4; }
.citem__price { color: var(--color-heading); font-weight: 700; font-size: var(--c1); white-space: nowrap; }
.citem__opt { font-family: var(--font-latin); font-size: var(--c1, 13px); font-weight: 500; color: var(--color-body, #353F42); letter-spacing: 0.04em; margin: 4px 0 12px; }
.citem__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; height: 26px; border: none !important; background: var(--color-fill); border-radius: 0 !important; box-shadow: none !important; }
.qty button { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--color-heading); font-size: 13px; background: transparent; border: none; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.qty button:hover { background: rgba(0, 0, 0, .06); }
.qty span { min-width: 26px; display: flex; align-items: center; justify-content: center; font-size: var(--c1); font-weight: 700; color: var(--color-heading); text-align: center; }
.citem__remove { color: var(--color-body); font-size: var(--micro); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.citem__remove:hover { color: var(--color-heading); }
.drawer__empty { padding: 64px var(--gutter); text-align: center; display: grid; gap: 20px; justify-items: center; }
.drawer__foot { flex: none; padding: 20px var(--gutter) 24px; background: var(--color-surface); }
.sum { display: grid; gap: 6px; margin-bottom: 16px; }
.sum div { display: flex; justify-content: space-between; color: var(--color-body); font-size: var(--c1); }
.sum .total { color: var(--color-heading); font-weight: 700; font-size: var(--b1); padding-top: 12px; margin-top: 4px; }
.drawer__foot .continue { display: block; width: 100%; text-align: center; margin-top: 12px; color: var(--color-body); font-size: var(--c1); text-decoration: underline; text-underline-offset: 3px; }
.drawer__foot .continue:hover { color: var(--color-heading); }
@media (max-width: 768px) { .drawer__panel { width: 100vw; min-width: 0; } }

/* ---------- 14. Checkout / Order ---------- */
.page { padding-top: var(--header-h); }
/* 좌측 폼(01~04) + 약관/결제 버튼을 세로로 쌓고, 우측 요약은 두 행에 걸쳐 고정(named grid areas) */
/* 컨테이너 상하 패딩(80px/모바일 48px)은 .co가 전담 — 내부 타이틀·마지막 섹션의 자체 상/하 패딩은 겹치지 않도록 0으로 정리 */
.co { display: grid; grid-template-columns: 1fr 440px; grid-template-areas: "form summary" "submit summary"; align-items: start; align-content: start; min-height: calc(100vh - var(--header-h)); padding: 80px var(--gutter) 80px; }
.co__form { grid-area: form; min-width: 0; }
.co__title { padding: 0 var(--gutter) 8px; }
.co-sec { padding: 28px var(--gutter) 20px; display: grid; gap: 16px; }
.co__submit { grid-area: submit; padding-bottom: 0; }
.co-terms { display: grid; gap: 10px; margin-bottom: 20px; }
.co-terms__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-terms__view { font-size: var(--micro); color: var(--color-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; padding: 0; border-radius: 0 !important; box-shadow: none !important; }
.my__kakao-ad { margin-top: 24px; margin-bottom: 32px; }
.co-sec__head { display: flex; align-items: baseline; gap: 12px; }
.co-benefit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.co-benefit:has(> .co-points[hidden]) { grid-template-columns: 1fr; }
.co-benefit .claim__field--tight, .co-benefit .co-points { margin: 0; min-width: 0; }
.co-benefit .select--line { width: 100%; height: 48px; border-radius: 0 !important; box-shadow: none !important; }
.co-benefit .field-note { margin-top: 8px; font-size: var(--c1, 13px); color: var(--color-body); }
.co-points .points-use .input--line { padding: 0 12px; }
@media (max-width: 768px) { .co-benefit { grid-template-columns: 1fr; gap: 20px; } }
.points-use { display: flex; gap: 8px; }
.points-use .input--line { flex: 1; min-width: 0; height: 48px; padding: 0 14px; background: var(--color-surface, #FFFFFF); border: 1px solid var(--color-border, #D9DADB); border-radius: 0 !important; box-shadow: none !important; font-family: var(--font-latin); font-size: 15px; }
.points-use__all { height: 48px; padding: 0 18px; background: var(--color-fill, #D9DADB); color: var(--color-heading, #0C2030); font-size: var(--c1, 13px); font-weight: 700; border: none; border-radius: 0 !important; box-shadow: none !important; cursor: pointer; white-space: nowrap; }
.points-use__all:hover { background: rgba(0, 0, 0, 0.15); }
.points-use__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; color: var(--color-body); }
.points-use__meta strong { font-family: var(--font-latin); color: var(--color-heading); }
.points-use__note { font-size: var(--micro, 11px); color: var(--color-body); }
.co-sec__head .t-micro { color: var(--color-primary); }
.co-sec .claim__field--tight { margin-bottom: 0; }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-status { padding: 16px 20px; background: var(--color-surface, #FFFFFF); color: var(--color-body); border: 1px solid var(--color-border, #D9DADB); border-radius: 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.login-status__logout { flex: none; color: var(--color-heading); text-decoration: underline; text-underline-offset: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .span2 { grid-column: 1 / -1; }
/* 배송 메모: '기타(직접 입력)' 선택 시에만 부드럽게 펼쳐지는 직접 입력 인풋 */
.memo-custom { margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; border-width: 0; padding-top: 0; padding-bottom: 0; transition: max-height .2s ease, opacity .2s ease, margin-top .2s ease; }
.memo-custom.is-open { margin-top: 8px; max-height: 48px; opacity: 1; border-width: 1px; padding-top: 0; padding-bottom: 0; }
/* 쿠폰 할인(03): 라인형 셀렉트 단독 — 옵션 변경 즉시 반영, 별도 적용 버튼 없음 */
.sum__discount span:last-child { color: var(--color-primary); font-weight: 700; }
.co__demo { color: var(--color-body); text-align: center; }
.co__summary { grid-area: summary; position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.co__summary .co__title { padding: 0 var(--gutter) 8px; }
.co__summary .citem { grid-template-columns: 72px 1fr; }
.co__summary .sum { padding: 20px var(--gutter) 0; margin: 0; }
.co__empty { padding: 96px var(--gutter); text-align: center; display: grid; gap: 20px; justify-items: center; }
@media (max-width: 900px) {
  /* 1열 스택: 01~03 폼 → 주문 요약(Summary) → 약관 동의/최종 결제 버튼 순으로 배치 */
  .co { grid-template-columns: 1fr; grid-template-areas: "form" "summary" "submit"; padding: 48px var(--gutter) 48px; }
  .co__summary { position: static; max-height: none; margin: 36px 0 24px; }
  .social, .grid2 { grid-template-columns: 1fr; }
}

/* 로그인 단독 페이지 — 체크아웃 §01 간편 로그인 섹션(.social/.login-status)을 그대로 재사용 */
.auth-page { max-width: 480px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.auth-page .co__title { padding: 0 0 24px; }

.done { max-width: 880px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.done__head { display: grid; gap: 12px; padding-bottom: 32px; }
.done__no { color: var(--color-primary); }
.done__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px var(--gutter); font-size: var(--c1); }
.done__row b { color: var(--color-heading); }
.done__benefit { background: var(--color-fill); margin: 48px 0; padding: 24px 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.done__benefit-title { margin: 6px 0 12px; }
.done__benefit-body { color: var(--color-body); line-height: 1.6; }
.done__benefit-body p + p { margin-top: 2px; }
.done__benefit-cta { flex-shrink: 0; }
.next { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px; }
.next > div { display: flex; flex-direction: column; gap: 10px; }
.next .btn { margin-top: auto; }
@media (max-width: 768px) {
  .next { grid-template-columns: 1fr; gap: 36px; }
  .done__benefit { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. My page (선 없는 여백 중심) ---------- */
.my { max-width: 1200px; margin: 0 auto; padding: 56px var(--gutter) 96px; }   /* GNB 아래 56px 여백 후 시작 · 전체를 max-width 1200 중앙 정렬 컨테이너로 */
.my__head { display: grid; gap: 8px; }
.my__summary { display: flex; flex-wrap: wrap; gap: 24px 72px; margin-top: 32px; margin-bottom: 44px; border: none !important; }
.metric { display: grid; gap: 0; text-align: left; border: none !important; }
.metric__label { color: var(--color-body); font-size: var(--c1, 13px); margin-bottom: 6px; }
.metric__value { font-family: var(--font-latin); font-size: 28px !important; font-weight: 700; color: var(--color-heading, #0C2030); width: fit-content; line-height: 1.2; padding-bottom: 4px; border-bottom: 1.5px solid transparent; }
/* 클릭 가능한 요약 지표(적립금·보유 쿠폰): 호버 피드백 + 선택 시 금액 글자 폭에 맞춘 슬림 밑줄(transparent 기본값으로 레이아웃 흔들림 방지) */
.metric--btn { transition: opacity .15s; }
.metric--btn:hover { opacity: .65; }
.metric--btn[aria-pressed="true"] .metric__value { border-bottom-color: var(--color-heading); }
.my__tabs { margin-top: 0; margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px; border: none !important; }
.my__tabs .tag { height: 40px; display: flex; align-items: center; padding: 0 16px; background: transparent !important; border: 1px solid var(--color-border, #D9DADB) !important; color: var(--color-heading, #0C2030); font-size: var(--c1, 13px); font-weight: 500; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.my__tabs .tag .n { margin-left: 6px; font-size: var(--micro, 11px); opacity: .6; }
.my__tabs .tag:hover { border-color: var(--color-heading) !important; }
.my__tabs .tag[aria-pressed="true"] { background: var(--color-heading, #0C2030) !important; color: var(--color-surface, #FFFFFF); border-color: var(--color-heading, #0C2030) !important; font-weight: 700; }
@media (max-width: 900px) {
  .my__tabs { overflow-x: visible; }   /* 5개 탭이 화면 밖으로 넘치지 않도록 줄바꿈 */
  .mrow { padding: 16px 0; }
}
.my__panel { width: 100%; margin-top: 48px; min-height: 320px; }
/* 주문 처리 현황: 5열 균등 플랫 그리드(열 간격 24px), 건수 H2 Bold(0건은 톤다운) 위 · 상태 라벨 C1 아래 */
.ostat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 0 0 72px; text-align: center; }
.ostat__item { display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; width: 100%; text-align: center; cursor: pointer; transition: opacity .15s; }   /* 화면상 건수가 위, 라벨이 아래 */
.ostat__item:hover { opacity: .65; }
.ostat__n { color: color-mix(in srgb, var(--color-body) 45%, transparent); }
.ostat__item.has-n .ostat__n { color: var(--color-heading); }
.ostat__label { font-size: var(--c1); font-weight: 400; line-height: 1.4; color: var(--color-body); word-break: keep-all; }
/* 선택된 상태: 숫자·라벨 --color-heading Bold, 숫자 아래 1px 밑줄 (박스·배경 없음) */
.ostat__item.is-active .ostat__n { color: var(--color-heading); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ostat__item.is-active .ostat__label { color: var(--color-heading); font-weight: 700; }
.ostat-empty { padding: 48px 0; color: var(--color-body); text-align: center; }
.my__empty { padding: 48px 0; color: var(--color-body); }

.order { width: 100%; padding-bottom: 64px; }   /* 부모 폭을 온전히 채움: 헤더·상품 행·하단 액션이 좌우로 펼쳐짐 */
.order__head { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.order__date { color: var(--color-heading); font-weight: 700; }
.order__head .t-micro { color: var(--color-body); }
.order__status { color: var(--color-heading); font-weight: 700; }
.is-cancel { color: var(--color-alert); font-weight: 700; }
.is-alert { color: var(--color-alert); font-weight: 700; }
.order__items { display: grid; gap: 20px; width: 100%; margin-top: 20px; }
.oitem { width: 100%; display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: start; }
.oitem .media { aspect-ratio: 3 / 4; }
.oitem__name { color: var(--color-heading); font-weight: 500; line-height: 1.4; }
.oitem__opt { font-family: var(--font-latin); font-weight: 500; color: var(--color-body, #353F42); letter-spacing: 0.04em; margin-top: 4px; }
.oitem__price { color: var(--color-heading); font-weight: 700; }
/* 썸네일 없이 상품명/옵션만 보여주는 경우(비회원 주문조회 등) — 3열 그리드 대신 2단 flex로 이름을 넓게, 가격은 우측 고정 */
.oitem--simple { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; width: 100%; }
.oitem--simple .oitem__info { flex: 1; min-width: 0; }
.oitem--simple .oitem__name, .oitem--simple .oitem__opt { word-break: keep-all; }
.oitem--simple .oitem__price { flex: none; }
.guest-order__track { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); border-radius: 0 !important; margin-top: 20px; margin-bottom: 24px; padding-top: 16px; padding-bottom: 24px; }
.guest-order__kv { margin-top: 24px; }
.guest-order__kv > div { padding: 8px 0; }
.guest-order__contact { margin-top: 24px; font-size: var(--c1); color: var(--color-body); line-height: 1.6; word-break: keep-all; }
.guest-order__contact-link { font-weight: 700; color: var(--color-heading); text-decoration: underline; text-underline-offset: 3px; }
.guest-order__actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.guest-order__reset-btn {
  height: 36px; padding: 0 14px; font-size: var(--c1); font-weight: 500;
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-heading);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s;
}
.guest-order__reset-btn:hover { background: var(--color-fill); color: var(--color-heading); }
.order__foot { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.order__foot b { color: var(--color-heading); font-weight: 700; margin-left: 6px; }
.order__actions { display: flex; gap: 8px; }
.order__actions .btn { border-radius: 0 !important; box-shadow: none !important; }
.order__panel { display: grid; gap: 8px; margin-top: 20px; }
.order__panel .kv, .order__panel .steps { max-width: 480px; }   /* 상세 표는 항목·값이 멀어지지 않도록 폭 제한(좌측 정렬) */
.order__panel .t-micro { color: var(--color-heading); }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--color-body); }
.steps i { font-style: normal; }
.steps .is-now { color: var(--color-heading); font-weight: 700; }
.kv > div { display: flex; justify-content: space-between; gap: 24px; padding: 4px 0; }
.kv dt { color: var(--color-body); flex: none; }
.kv dd { color: var(--color-heading); text-align: right; }
.kv__total dt, .kv__total dd { color: var(--color-heading); font-weight: 700; }
.kv dd.is-cancel { color: var(--color-alert); font-weight: 700; }

.gridwrap--flush { padding: 0; }
.wish__remove { display: block; margin-top: 10px; color: var(--color-body); text-decoration: underline; text-underline-offset: 3px; }
.wish__remove:hover { color: var(--color-heading); }

/* 나의 리뷰/Q&A: notice-list/.qboard와 동일한 인라인 보더 — 첫 행 상단 1px + 각 행 하단 1px (.my 컨테이너 폭 그대로 사용해 선 길이 일치) */
.mylist { width: 100%; }
.mrow { padding: 20px 0; border-bottom: 1px solid var(--color-border, #D9DADB); }
.mrow:first-child { border-top: 1px solid var(--color-border, #D9DADB); }
.mrow__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--color-body); margin-bottom: 10px; }
.mrow__meta b { color: var(--color-heading); font-weight: 700; }
.mrow__date { color: var(--color-body); }
.mrow__body { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.mrow__content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mrow__content .mrow__meta { margin-bottom: 0; }
.mrow__body p, .mrow__reply .t-b2 { color: var(--color-body); }
.mrow__body .thumb64, .mrow__body .thumb64 img { border-radius: 0 !important; box-shadow: none !important; }
.mrow__q { color: var(--color-heading); font-weight: 500; }
.mrow__reply, .mrow__wait { margin-top: 12px; padding-left: 1.6em; }   /* 질문 텍스트 시작선(Q 마크 폭)에 맞춰 들여쓰기 */
.mrow__reply .brand { color: var(--color-primary); margin-bottom: 4px; }
.mylist__empty { padding: 48px 0; color: var(--color-body); text-align: center; }
.act__prod:hover b { text-decoration: underline; text-underline-offset: 3px; }

.my__form { display: grid; gap: 40px; width: 100%; max-width: 800px; }
/* 내 정보 수정 폼: 리뷰/문의 작성 패널과 같은 순백색 1px 라인형 직각 인풋(.input--line) */
.my__form .input--line { height: 48px; padding: 0 14px; background: var(--color-surface, #FFFFFF) !important; border: 1px solid var(--color-border, #D9DADB) !important; color: var(--color-heading); font-size: var(--b2); border-radius: 0 !important; box-shadow: none !important; }
.my__form .input--line:focus { outline: none; border-color: var(--color-heading) !important; }
.my__form .input--line[readonly] { background: var(--color-fill) !important; color: var(--color-body); cursor: pointer; }   /* 기본값: 수정 불가 필드 */
.my__form .addr-line.input--line[readonly] { background: var(--color-surface, #FFFFFF) !important; border-color: var(--color-border, #D9DADB) !important; color: var(--color-heading, #0C2030) !important; }   /* 우편번호/주소: 상세 주소와 동일한 순백색 라인형으로 일치 */
.my__form .field.has-error .input--line { border-color: var(--color-alert) !important; }
.my__form .btn { border-radius: 0 !important; box-shadow: none !important; }
.my__form .btn, .my__form .input--line { width: 100%; }
/* 기본 배송지: 우편번호는 좁게, 주소는 인풋 우측 안쪽 돋보기 아이콘으로 검색(Q&A 검색창 .qna__search-btn과 동일 패턴) */
.addr-zip .input--line { max-width: 240px; }
.address-input-wrap { position: relative; }
.address-input-wrap .input--line { padding-right: 40px; }
.address-search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--color-heading); cursor: pointer; }
.address-search-btn:hover { color: var(--color-primary); }
.my__fgroup { display: grid; }
.my__saved { margin-top: 12px; color: var(--color-heading); font-weight: 700; }

/* 요약 지표(적립금/보유 쿠폰) 클릭 시 전환되는 패널 — 직각 · 무그림자(DESIGN.md 엄수) */
.coupon-view, .points-view { max-width: 640px; }
.coupon-sub { margin-top: 40px; }
.coupon-list { display: grid; gap: 12px; margin-top: 16px; }
.coupon-card {
  border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important;
  padding: 24px; position: relative;
}
.coupon-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.coupon-card__amt { color: var(--color-heading); }
.coupon-card__link { color: var(--color-body); flex: none; }
.coupon-card__link:hover { color: var(--color-heading); text-decoration: underline; text-underline-offset: 3px; }
.coupon-card__lead { display: flex; align-items: center; gap: 8px; }
.coupon-badge { background: var(--color-fill, #D9DADB) !important; border: none !important; color: var(--color-heading, #0C2030) !important; font-size: var(--micro, 11px) !important; font-weight: 700 !important; letter-spacing: 0.05em; padding: 3px 6px !important; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: 0 !important; box-shadow: none !important; }
.coupon-card__name { font-size: var(--b2, 15px); font-weight: 700; margin: 12px 0 6px; color: var(--color-heading, #0C2030); }
.coupon-card__meta { color: var(--color-body, #353F42); line-height: 1.5; }
.coupon-card__period { font-family: var(--font-latin); }
.coupon-card__meta span { display: block; }
.coupon-card__meta .coupon-card__dot { display: none; }
.coupon-card__meta .coupon-card__period { margin-top: 4px; }
.badge--flat {
  position: static; display: inline-block; margin-top: 14px;
  background: var(--color-fill); color: var(--color-heading);
  border-radius: 0 !important; box-shadow: none !important;
}

.points-summary {
  display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 800px; margin-top: 24px; background: var(--color-surface, #FFFFFF);
  border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important;
}
.points-summary__col { padding: 28px 32px; background: var(--color-surface, #FFFFFF) !important; }
.points-summary__label { color: var(--color-heading); margin-bottom: 8px; }
.points-summary__amt { font-family: var(--font-latin); font-size: 28px; font-weight: 700; color: var(--color-heading); margin: 8px 0 16px; }
.points-summary__sub { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.points-summary__sub > div { display: flex; justify-content: space-between; gap: 16px; color: var(--color-body); }
.points-summary__guide { border-left: 1px solid var(--color-border); background: var(--color-surface, #FFFFFF) !important; }
.points-guide__title { font-size: var(--b1, 16px); font-weight: 700; color: var(--color-heading, #0C2030); margin-bottom: 14px; }
.points-guide__list { list-style: none; padding: 0; margin: 0; line-height: 1.6; color: var(--color-body); }
@media (max-width: 768px) {
  .points-summary { grid-template-columns: 1fr; }
  .points-summary__guide { border-left: none; border-top: 1px solid var(--color-border); }
}
.points-sub { margin-top: 40px; margin-bottom: 16px; font-size: var(--b2, 15px); font-weight: 700; color: var(--color-heading); }
.points-divider { margin: 0; border-top: 1px solid var(--color-border); }
.points-list { margin-top: 0; }
.point-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.point-row__date { font-size: var(--c1, 13px); color: var(--color-heading); }
.point-row__date b { font-weight: 500; }
.point-row__no { margin-left: 10px; font-weight: 400; color: var(--color-body); }
.point-row__reason { margin-top: 4px; font-size: var(--c1, 13px); color: var(--color-body); }
.point-row__amt { flex: none; font-family: var(--font-latin); font-size: 16px; color: var(--color-heading, #0C2030); font-weight: 700; }

/* 교환/반품 신청 패널 — 직각 · 무그림자, 1px 인라인 라인 위주(DESIGN.md 엄수) */
.claim { max-width: 880px; }
.claim__meta { margin: 16px 0; color: var(--color-body); }
.claim__items { display: grid; gap: 16px; padding: 20px 0; margin-bottom: 32px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.oitem--sm { grid-template-columns: 80px 1fr auto; }
.claim__field { margin-bottom: 28px; }
.claim__field--tight { margin-bottom: 20px; }
.claim__field > .field__label { font-weight: 500; }
.claim__label { margin-bottom: 10px; }
.claim__addr { margin-top: 4px; color: var(--color-heading); }
.select--line {
  background: var(--color-surface); color: var(--color-heading);
  border: 1px solid var(--color-border); height: 48px;
  border-radius: 0 !important; box-shadow: none !important;
}
.claim-textarea { height: 100px; min-height: 100px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important; }
.claim-textarea:focus { outline: none; border-color: var(--color-heading); }
.claim-shipbox { border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important; padding: 20px; display: grid; gap: 16px; }
.claim-shipbox__title { color: var(--color-heading); }
.claim-shipnote { padding: 16px 20px; border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important; color: var(--color-body); }
.claim-notice { margin-bottom: 28px; padding: 16px 20px; background: var(--color-fill); border-radius: 0 !important; box-shadow: none !important; }
.claim-notice__title { margin-bottom: 8px; font-size: var(--c1); font-weight: 700; color: var(--color-heading); }
.claim-notice__list { list-style: disc; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--c1); line-height: 1.6; word-break: keep-all; color: var(--color-body); }
.claim-radio { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.claim-radio input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--color-heading); }
.claim-radio span { display: grid; gap: 4px; }
.claim-radio b { color: var(--color-heading); font-weight: 700; }
.claim-radio__desc { color: var(--color-body); }
.claim-radio.is-disabled { opacity: .45; cursor: not-allowed; }
/* 교환/반품 사진 첨부: 상세 내용 아래 플랫 라인 버튼 + 72px 정방형 썸네일 미리보기 */
.claim__field--photo { margin-bottom: 28px; }
.claim-photo-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--color-border); color: var(--color-heading); cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.claim-photo-btn:hover, .claim-photo-btn:focus-within { border-color: var(--color-heading); }
.claim__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.claim__photos:empty { display: none; }
.claim__thumb { position: relative; width: 72px; height: 72px; background: var(--color-fill); }
.claim__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.claim__del { position: absolute; top: 0; right: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--color-heading); color: var(--color-surface); font-size: 14px; line-height: 1; border-radius: 0 !important; }
.claim__photo-hint { margin-top: 12px; color: var(--color-body); }
.claim__cta { display: flex; gap: 8px; margin-top: 40px; }
.claim__cta .btn { flex: 1; height: 52px; border-radius: 0 !important; box-shadow: none !important; }
/* 리뷰 작성/수정 인라인 패널 — 교환/반품 패널(.claim)과 같은 폭·CTA 규격, 헤더·대상 상품 아래 1px 라인 */
.rvw { max-width: 880px; }
.rvw .btn, .rvw .input--line, .rvw__add, .rvw__thumb { border-radius: 0 !important; box-shadow: none !important; }
.rvw .btn--outline { color: var(--color-heading); }
.rvw__head { padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.rvw__head h2 { color: var(--color-heading); font-weight: 700; }
.rvw__meta { margin-top: 16px; color: var(--color-body); }
.rvw__block { padding: 32px 0; }
.rvw__block + .rvw__block { border-top: 1px solid var(--color-border); }   /* 품목 블록 사이 1px 구분선 + 상하 32px */
.rvw__block:last-of-type { padding-bottom: 0; }   /* 하단 CTA는 claim__cta의 상단 40px 여백만 사용 */
.rvw__item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: start; }
.rvw__item .media { aspect-ratio: 3 / 4; border-radius: 0 !important; box-shadow: none !important; }
.rvw__name { color: var(--color-heading); font-weight: 500; line-height: 1.4; }
.rvw__state { margin-left: 8px; padding: 2px 6px; background: var(--color-fill); color: var(--color-body); vertical-align: 2px; }
.rvw__opt { margin-top: 6px; color: var(--color-body); }
.rvw__sep { margin: 0 6px; color: var(--color-border); }
.rvw__auto { color: var(--color-body); opacity: .7; }
.rvw__price { margin-top: 4px; color: var(--color-heading); font-weight: 700; }
.rvw__sec { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.rvw__label { display: block; margin-bottom: 10px; color: var(--color-heading); font-weight: 500; padding: 0; }
.rvw__label span { color: var(--color-body); font-weight: 400; }
.rvw__body-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rvw__body-grid .field__label { color: var(--color-body); }
.rvw__num { border-radius: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.rvw__num::-webkit-outer-spin-button, .rvw__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rvw__text { height: 100px; min-height: 100px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important; }
.rvw__text:focus { outline: none; border-color: var(--color-heading); }
.rvw__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rvw__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border: 1px dashed var(--color-border); color: var(--color-body); cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.rvw__add span { font-size: 18px; line-height: 1; color: var(--color-heading); }
.rvw__add:hover, .rvw__add:focus-within { border-color: var(--color-heading); color: var(--color-heading); }
.rvw__thumb { position: relative; width: 64px; height: 64px; background: var(--color-fill); }
.rvw__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; }
.rvw__del { position: absolute; top: 0; right: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--color-heading); color: var(--color-surface); font-size: 14px; line-height: 1; border-radius: 0 !important; }
.rvw__hint { margin-top: 8px; color: var(--color-body); }
.rvw .field-error { margin-top: 0; }
.thumbs64 { display: flex; flex-wrap: wrap; gap: 8px; flex: none; justify-content: flex-end; }
[data-action="photo-review-open"] { cursor: pointer; }
/* [수정]: 작성일 옆 미니 직각 링크 */
.mrow__edit { border: none !important; background: transparent !important; padding: 0 !important; font-size: var(--c1, 13px); color: var(--color-body); text-decoration: underline; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.mrow__edit:hover { color: var(--color-heading); }
.mrow__meta { align-items: center; }

/* 나의 리뷰 2단 구성: 작성 가능한 리뷰 → 작성한 리뷰 */
.myrev--pending { margin-bottom: 56px; }
.myrev__title, .my__fgroup h2, .my__form h2 {
  font-size: var(--h2-ko, 18px) !important;
  font-weight: 700 !important;
  color: var(--color-heading, #0C2030) !important;
  line-height: 1.4 !important;
  letter-spacing: -0.005em !important;
  margin-bottom: 20px;
}
.prow { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.prow__thumb { aspect-ratio: 3 / 4; border-radius: 0 !important; box-shadow: none !important; }
.prow__name { color: var(--color-heading); font-weight: 500; line-height: 1.4; }
.prow__opt, .prow__date { color: var(--color-body); margin-top: 4px; }
.prow__btn { width: auto; height: 36px; padding: 0 16px; color: var(--color-heading); font-size: var(--c1); border-radius: 0 !important; box-shadow: none !important; }
.prow__btn { background: var(--color-heading, #0C2030) !important; color: var(--color-surface, #FFFFFF) !important; font-weight: 700 !important; border: none !important; }
.prow__btn:hover { background: var(--color-primary, #7C1C35) !important; }
@media (max-width: 768px) {
  .rvw__body-grid { gap: 12px; }
  .thumbs64 { max-width: 136px; }
}

/* PDP 리뷰 포토 라이트박스 — 클릭 가능 영역은 상위 .post가 담당 */
.rvw-modal { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; }
.rvw-modal[hidden] { display: none !important; }
.rvw-modal__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-heading) 75%, transparent); }
.rvw-modal__dialog { position: relative; z-index: 1; max-width: 580px; width: calc(100% - 32px); max-height: 90vh; background: var(--color-surface); border: none !important; border-radius: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; }
.rvw-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: none !important; font-size: var(--c1); color: var(--color-body); flex: none; }
.rvw-modal__close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--color-heading); border-radius: 0 !important; box-shadow: none !important; cursor: pointer; }
.rvw-modal__body { position: relative; display: flex; align-items: center; min-height: 0; }
.rvw-modal__main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.rvw-modal__figure { width: 100%; max-height: 52vh; background: var(--color-fill); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.rvw-modal__figure img { width: 100%; height: 100%; max-height: 52vh; object-fit: contain; }
.rvw-modal__info { padding: 20px 20px 24px; border-top: none !important; overflow-y: auto; max-height: 25vh; }
.rvw-modal__dialog.is-text-only .rvw-modal__figure { display: none !important; }
.rvw-modal__dialog.is-text-only .rvw-modal__info { max-height: none; padding: 32px 28px 40px; }
.rvw-modal__dialog.is-text-only .rvw-modal__desc { font-size: var(--b1); line-height: 1.7; }
.rvw-modal__meta { font-size: var(--c1); font-weight: 700; color: var(--color-heading); margin-bottom: 8px; }
.rvw-modal__desc { font-size: var(--b2); color: var(--color-body); line-height: 1.6; word-break: keep-all; }
.rvw-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 64px; height: 100px; padding: 0; display: flex; align-items: center; justify-content: center; background: transparent !important; color: var(--color-surface); font-size: 40px; font-weight: 400; line-height: 1; border: none !important; border-radius: 0 !important; box-shadow: none !important; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: opacity .2s, transform .2s; }
.rvw-modal__nav:hover { opacity: .65; transform: translateY(-50%) scale(1.1); }
.rvw-modal__nav:disabled { opacity: .3; cursor: default; }
.rvw-modal__nav:disabled:hover { transform: translateY(-50%); }
.rvw-modal__nav--prev { left: -80px; }
.rvw-modal__nav--next { right: -80px; }
@media (max-width: 768px) {
  .rvw-modal__dialog { width: calc(100% - 16px); max-height: 94vh; }
  .rvw-modal__nav { width: 54px; height: 80px; font-size: 28px; color: rgba(255,255,255,.85); }
  .rvw-modal__nav--prev { left: 0; right: auto; }
  .rvw-modal__nav--next { right: 0; left: auto; }
}

/* 개인정보처리방침 모달 (공용 푸터에서 열림) — 순백 배경, 직각, 보더만 사용 */
.privacy-modal { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; padding: 24px; }
.privacy-modal[hidden] { display: none !important; }
.privacy-modal__scrim { position: absolute; inset: 0; background: rgba(12, 32, 48, 0.45); }
.privacy-modal__dialog { position: relative; z-index: 1; max-width: 720px; width: 100%; max-height: 85vh; background: var(--color-surface, #FFFFFF); border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; }
.privacy-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--color-border); flex: none; }
.privacy-modal__close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--color-heading); cursor: pointer; }
.privacy-modal__body { padding: 24px; overflow-y: auto; max-height: 70vh; color: var(--color-body); font-size: var(--c1); line-height: 1.7; }
.privacy-modal__intro { margin-bottom: 16px; color: var(--color-body); }
.privacy-modal__body p { margin: 0 0 8px; }
.privacy-modal__h { margin: 24px 0 8px; font-size: var(--b2); font-weight: 700; color: var(--color-heading); }
.privacy-modal__h:first-child { margin-top: 0; }
.privacy-modal__table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: var(--c1); }
.privacy-modal__list { list-style: disc; padding-left: 20px; margin: 8px 0; display: grid; gap: 4px; }
.privacy-modal__note { margin-top: 8px; color: var(--color-heading); font-weight: 500; }
.privacy-modal__table th, .privacy-modal__table td { border: 1px solid var(--color-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.privacy-modal__table th { background: var(--color-fill); color: var(--color-heading); font-weight: 700; }
.footer__privacy-link { border: none; background: none; padding: 0; margin: 0; font: inherit; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 적립금 지급 안내 팝업 — 화면 중앙, [확인] 버튼(또는 스크림 클릭)으로만 닫힘 */
.reward-modal { position: fixed; inset: 0; z-index: 280; display: flex; align-items: center; justify-content: center; padding: 24px; }
.reward-modal[hidden] { display: none !important; }
.reward-modal__scrim { position: absolute; inset: 0; background: rgba(12, 32, 48, 0.4); }
.reward-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 360px; background: var(--color-surface, #FFFFFF); border: 1px solid var(--color-border, #D9DADB); border-radius: 0 !important; box-shadow: none !important; padding: 40px 32px; text-align: center; }
.reward-modal__label { font-size: var(--micro, 11px); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary, #7C1C35); margin-bottom: 12px; }
.reward-modal__amt { font-family: var(--font-latin, 'Tablet Gothic Wide', sans-serif); font-size: 38px; font-weight: 700; color: var(--color-heading, #0C2030); letter-spacing: -0.01em; margin-bottom: 14px; }
.reward-modal__msg { font-size: var(--c1, 13px); line-height: 1.6; color: var(--color-body, #353F42); word-break: keep-all; margin-bottom: 28px; }
.reward-modal__ok { width: 100%; height: 44px; background: var(--color-heading, #0C2030); color: #FFFFFF; font-size: var(--c1, 13px); font-weight: 700; border: none; border-radius: 0 !important; cursor: pointer; }
.reward-modal__ok:hover { opacity: 0.9; }
@media (max-width: 768px) {
  .privacy-modal { padding: 0; }
  .privacy-modal__dialog { max-width: none; width: 100%; height: 100%; max-height: none; }
  .privacy-modal__body { max-height: none; flex: 1; }
}

/* 통합 문의 작성 인라인 패널 (마이페이지 · 상품 상세 공용) — 리뷰/교환·반품 패널과 같은 폭·CTA, 모달·그림자 없음 */
.qpanel { max-width: 880px; }
.qpanel-wrap { padding: 24px var(--gutter) 48px; }   /* 상품 상세 Q&A 탭 안: 스레드와 같은 좌우 거터 */
.qpanel .btn, .qpanel .input--line, .qpanel .select--line, .qpanel .check input, .qpanel .media { border-radius: 0 !important; box-shadow: none !important; }
.qpanel .btn--outline { color: var(--color-heading); }
.qpanel__head { padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.qpanel__head h2 { color: var(--color-heading); font-weight: 700; }
.qpanel__guide { margin-top: 12px; color: var(--color-body); }
.qpanel__target { padding: 24px 0; border-bottom: 1px solid var(--color-border); display: grid; gap: 16px; }
.qpanel__target:has(#qna-target-preview:empty) { gap: 0; }
.qpanel__item { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: center; }
.qpanel__item .media { aspect-ratio: 3 / 4; }
.qpanel__name { color: var(--color-heading); font-weight: 500; line-height: 1.4; }
.qpanel__price { margin-top: 4px; color: var(--color-heading); font-weight: 700; }
.qpanel__opt { color: var(--color-body); font-weight: 400; }
.qpanel__fields { display: grid; gap: 24px; padding-top: 32px; }
.qpanel .field__label { color: var(--color-heading); font-weight: 500; }
.qpanel__secret { align-items: center; }
.qpanel__secret input { margin-top: 0; }
.qpanel__secret .t-c1 { color: var(--color-heading); }
.qpanel__input { background: var(--color-surface); }
.qpanel__text { height: 140px; min-height: 140px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 0 !important; box-shadow: none !important; }
.qpanel__text:focus { outline: none; border-color: var(--color-heading); }
.qpanel .field-error { margin-top: 20px; }

/* 나의 Q&A: 서브 타이틀 + 우측 [문의 작성] */
.myrev__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.myrev__bar .myrev__title { margin-bottom: 0; }
.myrev__btn { border-radius: 0 !important; box-shadow: none !important; background: var(--color-fill, #D9DADB) !important; color: var(--color-heading, #0C2030) !important; font-weight: 700; }
.myrev__btn { height: 34px !important; padding: 0 16px !important; font-size: var(--c1, 13px) !important; font-weight: 700 !important; background: var(--color-fill, #D9DADB) !important; color: var(--color-heading, #0C2030) !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; }
.myrev__btn:hover { background: rgba(0, 0, 0, 0.15) !important; }
.mrow__status { font-weight: 700; color: var(--color-body); }   /* 답변 완료 = body, 답변 대기 중 = .is-alert */
.mrow__status.is-alert { color: var(--color-alert); }
/* 나의 Q&A 아코디언 — 박스 없이 여백과 행 구분선만 */
.qacc { cursor: pointer; }
.qacc__head { display: flex; align-items: flex-start; width: 100%; padding: 0; background: none; border: 0; text-align: left; color: var(--color-heading); font-weight: 500; line-height: 1.5; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.qacc__head .qa { flex: none; }
.qacc__title { flex: 1; min-width: 0; }
.qacc:hover .qacc__title, .qacc__head:focus-visible .qacc__title { text-decoration: underline; text-underline-offset: 3px; }
.qacc__icon { flex: none; position: relative; width: 12px; height: 12px; margin: 6px 0 0 16px; }
.qacc__icon::before, .qacc__icon::after { content: ""; position: absolute; left: 0; top: 5.5px; width: 12px; height: 1px; background: var(--color-heading); transition: transform .2s; }
.qacc__icon::after { transform: rotate(90deg); }
.qacc.is-open .qacc__icon::after { transform: rotate(0deg); }   /* + → − */
.qacc__body { display: none; cursor: auto; }
.qacc.is-open .qacc__body { display: block; animation: qacc-open .22s ease; }
@keyframes qacc-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qacc.is-open .qacc__body { animation: none; } }
.qacc__content { margin-top: 12px; color: var(--color-body); font-weight: 400; line-height: 1.6; white-space: pre-line; }
.qacc__reply { margin-top: 16px; padding-left: 1.6em; }
.qacc__label { margin-bottom: 4px; color: var(--color-primary, #7C1C35) !important; font-weight: 700; letter-spacing: 0.05em; background: none; border: 0; }   /* 브랜드 답변 라벨: 딥 와인 액센트(--color-alert 아님) */
.qacc__reply .t-b2 { color: var(--color-body); line-height: 1.6; }
.post__lock { margin-right: 6px; font-size: 13px; }
/* 상품 상세 Q&A 아코디언 — 스레드 좌우 거터 안쪽에서 1px 행 구분선 (마이페이지·qna.html과 동일 규칙) */
.pqa { padding: 0 var(--gutter) 24px; }
.pqa__item { padding: 20px 0; border-bottom: 1px solid var(--color-border); cursor: pointer; }
.pqa__item:first-child { border-top: 1px solid var(--color-border); }
.pqa__head { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.pqa__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--color-body); margin-bottom: 8px; }
.pqa__title { display: flex; align-items: flex-start; color: var(--color-heading); font-weight: 500; line-height: 1.5; }
.pqa__title .qa { flex: none; }
.pqa__item:not(.pqa__item--locked):hover .pqa__text, .pqa__head:focus-visible .pqa__text { text-decoration: underline; text-underline-offset: 3px; }
.pqa__item--locked .pqa__text { color: var(--color-body); }
.pqa__body { display: none; cursor: auto; }
.pqa__item.is-open .pqa__body { display: block; animation: qacc-open .22s ease; }
@media (prefers-reduced-motion: reduce) { .pqa__item.is-open .pqa__body { animation: none; } }
.pqa__content { padding: 12px 0 0; color: var(--color-body); font-weight: 400; line-height: 1.6; white-space: pre-line; }
.pqa__reply, .pqa__wait { margin-top: 16px; padding-left: 1.6em; }
.pqa__label { margin-bottom: 4px; color: var(--color-primary, #7C1C35) !important; font-weight: 700; letter-spacing: 0.05em; }
.pqa__reply .t-b2 { color: var(--color-body); line-height: 1.6; }
.pqa__wait { color: var(--color-body); padding-left: calc(var(--b2) * 1.6); }   /* C1 크기에서도 Q 텍스트 시작선에 맞춤 */

.btn--outline { background: var(--color-surface); color: var(--color-heading); border: 1px solid var(--color-border); }
.btn--outline:hover { background: var(--color-fill); }

@media (max-width: 768px) {
  .point-row { flex-direction: column; gap: 6px; }
  .claim__cta { flex-direction: column; }
  .claim__cta .btn { flex: none; width: 100%; }   /* 세로 쌓임 시 flex-basis 0으로 높이가 눌리지 않도록 52px 유지 */
  .rvw .claim__cta, .qpanel .claim__cta { flex-direction: row; }   /* 리뷰·문의 패널: 모바일에서도 가로 1열 듀얼 CTA */
  .rvw .claim__cta .btn, .qpanel .claim__cta .btn { flex: 1 1 0; width: auto; }
  .my__summary { flex-direction: column; gap: 20px; margin-bottom: 36px; }
  .my__panel { margin-top: 36px; }
  .ostat { gap: 4px; margin-bottom: 48px; }
  .ostat__label { font-size: var(--micro); }
  .oitem { grid-template-columns: 72px 1fr; }
  .oitem__price { grid-column: 2; }
  .order { padding-bottom: 48px; }
  .order__foot { flex-direction: column; align-items: flex-start; }
  .order__actions { width: 100%; }
  .order__actions .btn { flex: 1; }
}

.nf { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 120px var(--gutter); text-align: center; }
.nf .btn { width: auto; padding: 0 28px; }

/* ---------- 16. Q&A board (qna.html) — 정갈한 사각 프레임: 인라인 보더 활용 ---------- */
.qna__head { max-width: 1200px; margin: 0 auto; padding: 80px var(--gutter) 0; }
.qna__search { position: relative; margin-top: 80px; max-width: 480px; }
.qna__search-input {
  width: 100%; height: 48px; padding: 0 40px 0 2px; background: transparent; color: var(--color-heading);
  border: 0; border-bottom: 1px solid var(--color-border); font-size: var(--b2);
}
.qna__search-input:focus { outline: none; border-bottom-color: var(--color-heading); }
.qna__search-input::placeholder { color: var(--color-body); opacity: .7; }
.qna__search-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--color-heading); }
.qtabs { display: flex; flex-wrap: wrap; gap: 8px; }
/* 필터 탭 라인: 좌측 탭 · 우측 끝 [문의 작성] (탭과 같은 34px) */
.qtabs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.qtabs-bar .qna__result-note { margin-top: 0; }
.qna__write-btn {   /* 탐색 탭과 구분되는 솔리드 직각 Primary 액션 */
  flex-shrink: 0; height: 34px; padding: 0 16px; display: inline-flex; align-items: center;
  background: var(--color-fill, #D9DADB) !important; color: var(--color-heading, #0C2030) !important; border: none !important;
  font-size: var(--c1); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; transition: background 0.2s ease;
  border-radius: 0 !important; box-shadow: none !important;
}
.qna__write-btn:hover, .qna__write-btn:focus-visible { background: rgba(0, 0, 0, 0.15) !important; }
.qna__write { max-width: 1200px; margin: 24px auto 0; padding: 0 var(--gutter) 24px; }
.qna__write:empty { display: none; }
.qtab {
  height: 34px; padding: 0 16px; display: inline-flex; align-items: center;
  background: var(--color-surface); color: var(--color-body); border: 1px solid var(--color-border);
  font-size: var(--c1); font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.qtab:hover { color: var(--color-heading); }
.qtab.is-active { background: var(--color-heading); color: var(--color-surface); border-color: var(--color-heading); }
.qna__result-note { margin-top: 24px; color: var(--color-body); }
.qna__result-note b { color: var(--color-heading); }

.qboard { max-width: 1200px; margin: 24px auto 0; padding: 0 var(--gutter); }
.qrow { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-border); align-items: flex-start; cursor: pointer; }
.qrow:first-child { border-top: 1px solid var(--color-border); }
.qrow__thumb { flex: none; width: 44px; height: 44px; }
.qrow__body { min-width: 0; flex: 1; }
.qrow__thumb, .qrow__thumb img { border-radius: 0 !important; box-shadow: none !important; }
/* 게시판 아코디언 헤더: 제목 + 메타 전체가 토글 버튼 (박스·그림자 없음) */
.qrow__head { display: block; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 0 !important; box-shadow: none !important; }
.qrow__head > span { display: flex; }
.qrow__title { display: flex; align-items: center; gap: 8px; font-size: var(--b2); font-weight: 500; color: var(--color-heading); line-height: 1.5; }
.qrow:not(.qrow--locked):hover .qrow__text, .qrow__head:focus-visible .qrow__text { text-decoration: underline; text-underline-offset: 3px; }
.qrow--locked .qrow__text { color: var(--color-body); }
.qrow__state { font-weight: 700; color: var(--color-body); }
.qrow__state.is-alert { color: var(--color-alert); }
.qrow__detail { display: none; cursor: auto; }
.qrow.is-open .qrow__detail { display: block; animation: qacc-open .22s ease; }
@media (prefers-reduced-motion: reduce) { .qrow.is-open .qrow__detail { animation: none; } }
.qrow__content { padding: 12px 0 0; color: var(--color-body); line-height: 1.6; white-space: pre-line; }
.qrow__label { margin-bottom: 4px; color: var(--color-primary, #7C1C35) !important; font-weight: 700; letter-spacing: 0.05em; }
.qrow__reply .t-b2 { color: var(--color-body); line-height: 1.6; }
/* 미니멀 토스트 (권한 안내 등) */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 200; max-width: calc(100% - 32px); padding: 14px 20px; background: var(--color-heading); color: var(--color-surface); font-weight: 500; text-align: center; border-radius: 0 !important; box-shadow: none !important; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.qrow__lock { font-size: 13px; line-height: 1; }
.qrow__badge { position: static; padding: 2px 6px; }
.qrow__meta { display: flex; gap: 12px; color: var(--color-body); margin-top: 6px; }
.qrow__reply { margin-top: 16px; padding-left: 1.6em; color: var(--color-body); }   /* 본문(하단 패딩 없음) 아래 16px 후 들여쓰기 — .pqa__reply와 동일 규격 */
.qboard__empty { max-width: 1200px; margin: 0 auto; padding: 48px var(--gutter); text-align: center; color: var(--color-body); }
.qna .pager { max-width: 1200px; margin: 0 auto; }

@media (max-width: 768px) {
  .qna__head { padding-top: 48px; }
  .qna__search { margin-top: 48px; }
  .qtabs { gap: 6px; }
  .qtabs-bar { align-items: flex-start; }   /* 탭은 줄바꿈, 버튼은 우측 상단 고정(flex-shrink: 0) */
}

/* ---------- 17. Auth pages (login.html · join.html) — 직각 라인형 폼 ---------- */
.auth-head { text-align: left; margin-bottom: 32px; }
.auth-head__note { margin-top: 8px; color: var(--color-body); }
/* 로그인 화면: Sticky Footer 패턴 — body.is-login이 뷰포트 전체 높이를 잡고, #app이 헤더/푸터 사이 남은 공간을 채운 뒤 로그인 박스를 그 안에서 중앙 정렬 */
body.is-login { display: flex; flex-direction: column; min-height: 100vh; }
body.is-login #app { flex: 1; display: flex; flex-direction: column; }

/* 약관 동의 전(is-gated): 어차피 GNB로 이동해도 약관 동의 화면만 다시 그려지므로, 눌러도 안 먹는 것처럼 보이지 않도록 아예 잠긴 상태로 표시 */
body.is-gated #header a, body.is-gated #header button { pointer-events: none; opacity: 0.35; }
.page--center { flex: 1; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: var(--header-h); }
/* 카카오/네이버 간편가입 단일화: 플랫 컨테이너 420–440px, 보더·그림자 없음 */
.auth-page--login { width: 100%; max-width: 440px; padding: 40px 20px; margin: 0; border: none; box-shadow: none; text-align: center; }
.auth-page--login .auth-head { text-align: center; }
.auth-page--login .auth-panel { text-align: left; }

/* 카카오/네이버 간편로그인 — 헤더 바로 아래 상하 스택 주력 액션 */
.auth-social { display: grid; gap: 10px; }
.auth-social .btn { height: 52px; font-size: var(--b2); font-weight: 700; }

/* 간편로그인 버튼 하단 40px 여백 후 중앙 정렬 비회원 주문조회 링크 */
.auth-guest-cta {
  display: block; width: 100%; margin-top: 40px; text-align: center;
  color: var(--color-body); font-size: var(--c1);
  text-decoration: underline; text-underline-offset: 3px;
}
.auth-guest-cta:hover { color: var(--color-heading); }

.field--line { display: block; }
.input--line, .select--line {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  background: var(--color-surface); color: var(--color-heading);
  border: 1px solid var(--color-border); font-size: var(--b2); line-height: 1.5;
}
.input--line:focus, .select--line:focus { outline: none; border-color: var(--color-heading); }
.input--line::placeholder { color: var(--color-body); opacity: .7; }
.select--line { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%230C2030' stroke-width='1.3'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
.field.has-error .input--line, .field.has-error .select--line { outline: 1px solid var(--color-alert); outline-offset: -1px; border-color: var(--color-alert); }
.select--line option:disabled { color: var(--color-body); }
.field-note { margin-top: 8px; color: var(--color-body); }
.req { color: var(--color-alert); font-weight: 700; }

.auth-form { display: grid; gap: 20px; }

.btn--kakao { background: #FEE500; color: #000000; border: none; font-weight: 700; border-radius: 0 !important; box-shadow: none !important; }
.btn--kakao:hover { background: #FEE500; opacity: .85; }
.btn--naver { background: #03C75A; color: #FFFFFF; border: none; font-weight: 700; border-radius: 0 !important; box-shadow: none !important; }
.btn--naver:hover { background: #03C75A; opacity: .85; }

#authpanel-guest { margin-top: 20px; }
.auth-guest-msg { margin-top: 16px; text-align: center; }

/* ---------- 18. Join (join.html) ---------- */
.join-page { max-width: 560px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.join-form { display: grid; gap: 28px; margin-top: 32px; }
.tel-split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }

.join-terms { display: grid; gap: 12px; margin-top: 4px; }
.check--all { padding-bottom: 4px; }
.check--all input { width: 22px; height: 22px; }
.term-acc-list { display: grid; border-top: 1px solid var(--color-border); }
.term-acc { border-bottom: 1px solid var(--color-border); }
.term-acc__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.join-form__submit { margin-top: 8px; }

@media (max-width: 640px) {
  .join-page { padding-top: 48px; }
  .tel-split { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- 19. Notice (notice.html) — Q&A 게시판(§16 .qna)과 동일한 좌측 정렬 헤더·1px 인라인 보더 위계 ---------- */
/* .notice(섹션) 자체는 폭 제약이 없고, .qna__head/.qboard와 마찬가지로 각 하위 블록이 개별적으로 max-width:1200px 중앙 정렬을 가짐 */
.notice__head { max-width: 1200px; margin: 0 auto; padding: 80px var(--gutter) 80px; }

/* 상태 A — 목록: 컨테이너 상단 1px 라인 + 각 행 하단 1px 라인으로 구분(중복 없이), Q&A .qboard/.qrow와 동일 규격 */
.notice-list { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.notice-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.notice-row:first-child { border-top: 1px solid var(--color-border); }
.notice-row__link { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--color-heading); }
.notice-row__title { font-size: var(--b2); font-weight: 500; }
.notice-row__link:hover .notice-row__title { color: var(--color-heading); text-decoration: underline; text-underline-offset: 3px; }
.notice-row__date { flex: none; color: var(--color-body); }
.notice-row__badge { position: static; flex: none; }   /* Q&A NEW 배지(.badge--new)를 그대로 재사용 */

/* 상태 B — 상세: 헤더(제목+메타)를 위아래 1px 라인으로 감싸 본문과 구분, Q&A와 동일한 1200px 폭 */
.notice-detail { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 80px; }
.notice-detail__head { border-top: 1px solid var(--color-border); }
.notice-detail__title { padding: 20px 0 0; color: var(--color-heading); }
.notice-detail__meta { display: flex; gap: 10px; padding: 12px 0 20px; border-bottom: 1px solid var(--color-border); color: var(--color-body); }
.notice-detail__sep { color: var(--color-border); }
.notice-detail__body { padding: 48px 0; line-height: 1.7; color: var(--color-body); }
.notice-detail__body p { margin-bottom: 1.2em; }
.notice-detail__body p:last-child { margin-bottom: 0; }
.notice-detail__body ul { padding-left: 1.2em; list-style: disc; display: grid; gap: 8px; margin-bottom: 1.2em; }
.notice-detail__body b { color: var(--color-heading); font-weight: 700; }
.notice-detail__body mark { background: var(--color-butter-yellow); color: var(--color-heading); padding: 0 3px; font-weight: 700; }
.notice-detail__lg { font-size: 1.3em; }
.notice-detail__foot { display: flex; justify-content: flex-end; }
.notice-back-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 28px;
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-heading);
  font-size: var(--c1); font-weight: 700;
}
.notice-back-btn:hover { border-color: var(--color-heading); }

@media (max-width: 768px) {
  .notice__head { padding-top: 48px; padding-bottom: 48px; }
  .notice-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* 리뷰 브랜드 답글 — PDP·마이페이지 공통 좌측 수직선 스레드 (DESIGN.md §3.8·§3.10·§3.14) */
.rvreply { margin-top: 14px; padding-left: 20px; background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; }
.rvreply__head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px !important; }
.rvreply__arrow { color: var(--color-heading, #0C2030); margin-right: -2px; }
.rvreply__badge { font-family: var(--font-latin, inherit); font-size: var(--micro, 11px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary, #7C1C35) !important; }
.rvreply__date { font-size: var(--micro, 11px); font-weight: 400; color: var(--color-body, #353F42) !important; }
.rvreply__text { font-size: var(--c1, 13px); color: var(--color-heading, #0C2030) !important; line-height: 1.6; white-space: pre-line; margin: 0 !important; }
.withdraw-wrap { max-width: 640px; margin-top: 24px; text-align: left; border-top: none !important; }
#btn-open-withdraw { font-size: var(--micro, 11px); color: rgba(53, 63, 66, 0.45); background: none; border: none; padding: 0; cursor: pointer; text-decoration: none !important; }
#btn-open-withdraw:hover { text-decoration: underline !important; text-underline-offset: 3px; color: var(--color-body); }

/* 환불정책 페이지 */
.policy { max-width: 760px; margin: 0 auto; padding: 72px var(--gutter) 96px; display: grid; gap: 28px; }
.policy__sec { display: grid; gap: 10px; line-height: 1.7; }
.policy__sec p { margin: 0; }
.policy__h { font-size: 18px; font-weight: 700; color: var(--color-heading); margin: 0; }
