/* 시니어스탠다드 — 화면 디자인
 *
 * 누가 보는가: 노부모를 둔 30~50대 자녀. 큰돈을 들여 한 번 사는 물건을 고르는 중이고,
 * 광고가 아니라 근거를 보고 싶어 한다. 그래서 이 화면의 원칙은 네 가지다.
 *
 * 1. 카드를 쓰지 않는다. 구분은 여백과 1px 괘선으로만 한다.
 *    카드는 모든 항목을 같은 무게로 보이게 만들어 비교를 방해한다.
 * 2. 색은 종이·먹·자주(紫朱) 셋뿐. 자주는 순위 숫자와 링크에만 쓴다.
 * 3. 숫자에는 언제나 단위와 기준 달이 붙는다. 맨 숫자는 띄우지 않는다.
 * 4. 페이지에서 큰 것은 순위 숫자 하나뿐이다.
 *
 * 본문 18px·행간 1.75·터치 영역 48px 는 시니어 가독성 기준이라 줄이지 않는다.
 */

:root {
  --paper: #fbfaf7;
  --paper-2: #f2efe8;
  --ink: #1b2320;
  --ink-2: #5a635d;
  --line: #ddd9d0;
  --line-strong: #c3beb2;
  --seal: #6b2238;
  --seal-soft: #f4ebee;

  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'Apple SD Gothic Neo', serif;
  --sans: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;

  --wrap: 1080px;
  --prose: 40rem;
  --rail: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* 본문 글줄은 80자를 넘기지 않는다 */
p,
.lead,
.section-note,
.source-line {
  max-width: var(--prose);
}

a {
  color: var(--seal);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 24px;
  top: 12px;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 3px;
}

.muted {
  color: var(--ink-2);
}

/* ── 제목 ─────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem);
  margin: 3.5rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
}

main h2:first-of-type {
  margin-top: 3rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-2);
  margin: 1rem 0 0;
}

.section-note {
  color: var(--ink-2);
  margin: 0 0 1.5rem;
}

.source-line {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 1rem 0 0;
}

/* ── 샘플 안내 띠 ──────────────────────────────────── */

.sample-banner {
  background: var(--ink);
  color: #efe9dd;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 10px 24px;
  text-align: center;
}

.sample-banner strong {
  color: var(--paper);
  margin-right: 0.5rem;
}

/* ── 머리말 ───────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--seal);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--seal);
}

main {
  padding-bottom: 5rem;
}

.crumbs {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 1.5rem 0 1.25rem;
}

.crumbs a {
  color: var(--ink-2);
}

/* ── 첫 화면 ──────────────────────────────────────── */

.hero {
  padding: 4.5rem 0 0;
}

.hero h1 {
  max-width: 17ch;
}

.hero .lead {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--ink);
}

/* 이번 달 집계: 숫자는 단위와 함께, 기준은 바로 아래 */
.figures {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  margin: 3rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.figures li {
  display: flex;
  flex-direction: column;
}

.figures b {
  font-family: var(--sans);
  font-feature-settings: 'tnum' 1;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.figures b small {
  font-size: 1rem;
  font-weight: 400;
  margin-left: 0.25rem;
  color: var(--ink-2);
}

.figures span {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: 0.4rem;
}

/* ── 순위 목록: 이 사이트에서 가장 중요한 화면 ────────── */

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.rank-list li {
  border-bottom: 1px solid var(--line);
}

.rank-row {
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  gap: 0 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  text-decoration: none;
  color: inherit;
}

.rank-row:hover .name {
  box-shadow: inset 0 -1px 0 var(--seal);
}

.rank-rail {
  display: block;
}

.rank-no {
  display: block;
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--seal);
  letter-spacing: -0.04em;
}

.rank-cat {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* 홈의 목록은 카테고리마다 1위 하나씩이라, 같은 숫자 1 을 여섯 번 반복하는 대신
   레일에 카테고리 이름을 둔다. 큰 순위 숫자는 카테고리 랭킹 화면에만 쓴다. */
.rank-rail .cat-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.rank-rail .cat-sub {
  display: block;
  font-size: 0.85rem;
  color: var(--seal);
  margin-top: 0.2rem;
}

.rank-main .name {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.rank-main .brand {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-top: 0.15rem;
}

.rank-price {
  font-feature-settings: 'tnum' 1;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 0.2rem;
}

/* 한 줄 안의 지표: 단위가 라벨 노릇을 한다 */
.metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.metrics li {
  font-feature-settings: 'tnum' 1;
}

.metrics b {
  font-weight: 600;
  color: var(--ink);
}

.metrics .up {
  color: var(--seal);
}

.metrics.big {
  gap: 0.5rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.metrics.big b {
  font-size: 1.25rem;
  font-weight: 600;
}

.digest-line {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  color: var(--ink);
}

/* ── 후기 종합 ────────────────────────────────────── */

.digest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.digest h3 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.digest ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.digest li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  color: var(--ink-2);
}

.digest li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.45rem;
  height: 1px;
  background: var(--line-strong);
}

/* ── 빠르게 비교하는 표 ───────────────────────────── */

.compare-scroll {
  overflow-x: auto;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.compare {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 1rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.compare tbody th {
  font-weight: 600;
  font-family: var(--sans);
  font-size: 1rem;
}

.compare tbody th a {
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--line-strong);
}

.compare tbody th a:hover {
  box-shadow: inset 0 -1px 0 var(--seal);
  color: var(--seal);
}

.compare .num {
  text-align: right;
  font-feature-settings: 'tnum' 1;
  white-space: nowrap;
  padding-right: 1.75rem;
}

.compare th:last-child,
.compare td:last-child {
  padding-right: 0;
}

.compare .best {
  color: var(--seal);
  font-weight: 600;
}

.compare tbody tr:hover {
  background: var(--paper-2);
}

/* 다섯 달 추이 표: 칸이 적어 좁은 화면에서도 접힌다 */
.compare.trend {
  min-width: 34rem;
}

.compare.trend caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 0.9rem 0 0.2rem;
}

.compare.trend tbody th {
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-2);
}

/* ── 목록(카테고리·제품·인증): 카드가 아니라 줄 ──────── */

.rows {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.rows li {
  border-bottom: 1px solid var(--line);
}

.row-link {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: 0.4rem 2.5rem;
  padding: 1.5rem 0;
  text-decoration: none;
  color: inherit;
}

.row-link h2,
.row-link h3 {
  margin: 0;
  font-size: 1.3rem;
}

.row-link:hover h2,
.row-link:hover h3 {
  color: var(--seal);
}

.row-link p {
  margin: 0;
  color: var(--ink-2);
  max-width: 48ch;
}

.row-link .items {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}

/* ── 인증 배지 ────────────────────────────────────── */

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
}

.cert-badge {
  display: inline-block;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-2);
  background: transparent;
  white-space: nowrap;
}

.cert-badge.welfare {
  border-color: var(--seal);
  color: var(--seal);
  background: var(--seal-soft);
}

.cert-badge.medical {
  border-color: var(--ink);
  color: var(--ink);
}

.cert-badge.none {
  border-style: dashed;
}

/* ── 표 ──────────────────────────────────────────── */

.specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

.specs th,
.specs td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--line);
}

.specs th {
  width: 14rem;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 1rem;
}

.specs td {
  font-size: 1rem;
}

/* ── 블록(확인할 것 / 주의) ───────────────────────── */

.box {
  background: var(--paper-2);
  border-radius: 3px;
  padding: 1.75rem;
  margin-top: 2rem;
}

.box.warn {
  background: var(--seal-soft);
}

.box h2,
.box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.box > :last-child {
  margin-bottom: 0;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.checks,
.plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li,
.plain li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.plain li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 1.05em;
  width: 0.5rem;
  height: 1px;
  background: var(--line-strong);
}

.check-item::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.7em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--seal);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

/* ── 제품 머리 ────────────────────────────────────── */

.product-head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.product-head .brand {
  color: var(--ink-2);
  margin: 0.6rem 0 0;
}

.price-big {
  font-size: 2rem;
  font-weight: 600;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.02em;
  margin: 1.25rem 0 0;
}

.welfare-note {
  display: block;
  margin-top: 1rem;
  color: var(--seal);
}

/* ── 버튼과 바깥 링크 ─────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--seal);
  border-color: var(--seal);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.ghost:hover {
  background: transparent;
  border-color: var(--seal);
  color: var(--seal);
}

.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.buy .note {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0;
  max-width: 34ch;
}

/* ── 문의 폼 ──────────────────────────────────────── */

form.contact {
  max-width: 34rem;
  margin-top: 2rem;
}

form.contact label {
  display: block;
  margin-top: 1.5rem;
  font-weight: 500;
}

form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

form.contact textarea {
  min-height: 10rem;
  line-height: 1.7;
  resize: vertical;
}

form.contact .hp {
  position: absolute;
  left: -9999px;
}

form.contact button {
  margin-top: 2rem;
}

.notice {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--seal);
  background: var(--seal-soft);
  margin-top: 2rem;
  border-radius: 0 3px 3px 0;
}

.notice.ok {
  border-left-color: var(--ink);
  background: var(--paper-2);
}

/* ── 꼬리말 ───────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 3.5rem 0 4rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  color: var(--ink-2);
  margin: 0.75rem 0 0;
  max-width: 34ch;
}

.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 0.75rem;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  color: var(--ink);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--seal);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.footer-bottom p {
  margin: 0;
  max-width: 60ch;
}

/* ── 좁은 화면 ────────────────────────────────────── */

@media (max-width: 760px) {
  :root {
    --rail: 3rem;
  }

  body {
    font-size: 17px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .main-nav {
    gap: 1.25rem;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .figures {
    gap: 1.5rem 2.5rem;
  }

  .figures b {
    font-size: 1.6rem;
  }

  .rank-row {
    grid-template-columns: var(--rail) 1fr;
  }

  .rank-no {
    font-size: 2rem;
  }

  .rank-price {
    grid-column: 2;
    padding-top: 0.75rem;
    font-size: 1.05rem;
  }

  .row-link {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .row-link .items {
    grid-column: 1;
  }

  .digest,
  .cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .specs th {
    width: 9rem;
  }

  .box {
    padding: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ── 상단 카테고리 바 ─────────────────────────────── */

.cat-bar {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.cat-bar ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cat-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--ink-2);
  text-decoration: none;
}

.cat-bar a:hover,
.cat-bar a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--seal);
}

/* ── 카테고리 타일 (홈) ───────────────────────────── */

.cat-tiles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
}

.cat-tiles a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.cat-tiles img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-2);
}

.cat-tiles span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.cat-tiles a:hover span {
  color: var(--seal);
}

/* ── 제품 카드 격자 ───────────────────────────────── */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 3.5rem 0 0.5rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.75rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-size: 0.95rem;
  white-space: nowrap;
}

.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.cards.wide {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.thumb {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card:hover .thumb {
  box-shadow: 0 0 0 1px var(--seal);
}

.rank-badge {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 2.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--seal);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  font-feature-settings: 'tnum' 1;
  border-bottom-right-radius: 4px;
}

.card-name {
  display: block;
  margin-top: 0.75rem;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.5;
}

.card:hover .card-name {
  color: var(--seal);
}

.card-brand {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 0.1rem;
}

.card-price {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.01em;
}

.card-meta {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  font-feature-settings: 'tnum' 1;
}

.card-meta b {
  color: var(--ink);
  font-weight: 600;
}

.card .badges {
  margin-top: 0.5rem;
}

.card .cert-badge {
  font-size: 0.78rem;
  padding: 0.05rem 0.4rem;
}

/* 제품 상세 머리 */

.product-top {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-strong);
}

.product-top .shot {
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
}

.product-top .shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 표 안의 작은 썸네일 */

.compare .pic {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--paper-2);
  vertical-align: middle;
  margin-right: 0.75rem;
}

.compare .cell {
  display: flex;
  align-items: center;
}

/* 순위 줄에 들어가는 사진 */

.rank-row .shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--paper-2);
}

.rank-row.with-shot {
  grid-template-columns: var(--rail) 150px 1fr auto;
}

@media (max-width: 1000px) {
  .cards,
  .cards.wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-tiles {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 760px) {
  .cards,
  .cards.wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }

  .cat-tiles {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .cat-tiles span {
    font-size: 0.9rem;
  }

  .rank-row.with-shot {
    grid-template-columns: var(--rail) 96px 1fr;
  }

  .section-head {
    margin-top: 2.5rem;
  }
}


/* 홈 머리말은 상품 격자가 바로 보이도록 짧게 */
.hero.slim {
  padding: 3rem 0 0;
}

.hero.slim h1 {
  max-width: 20ch;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem);
}

.hero.slim .figures {
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.hero.slim .figures b {
  font-size: 1.6rem;
}

/* 안내 글(정보 탭) */
.article {
  max-width: 44rem;
}

.article h2 {
  margin-top: 3rem;
}

.article h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.article ol {
  padding-left: 1.4rem;
}

.article ol li {
  padding: 0.35rem 0;
}

.article table.specs th {
  width: 11rem;
}

/* ══ 고급화 패스 ═════════════════════════════════════
   더 깊은 먹색, 황동색 악센트, 넓은 여백, 가는 선.
   앞의 규칙을 덮어쓰는 자리이므로 파일 맨 끝에 둔다. */

:root {
  --paper: #faf9f6;
  --paper-2: #f1eee7;
  --ink: #14181a;
  --ink-2: #5d6360;
  --line: #e2ded5;
  --line-strong: #cfc9bc;
  --seal: #5c1a2e;
  --seal-soft: #f3ebee;
  --gold: #a9885c;
}

body {
  letter-spacing: -0.003em;
}

/* 머리말 작은 라벨 */
.kicker {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--gold);
}

.kicker::after {
  content: '';
  display: block;
  width: 2.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--gold);
  opacity: 0.6;
}

/* 소개 머리말 */
.hero.intro {
  padding: 4.5rem 0 0;
}

.hero.intro h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 3.4rem);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero.intro .lead {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--ink-2);
}

.intro-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3.5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.intro-points b {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.intro-points span {
  display: block;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* 카테고리 타일 */
.cat-tiles {
  margin-top: 3.5rem;
  gap: 1.5rem;
}

.cat-tiles img {
  border-radius: 2px;
  border: 1px solid var(--line);
}

.cat-tiles span {
  margin-top: 0.8rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
}

/* 구역 머리말 */
.section-head {
  align-items: flex-end;
  margin-top: 5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.section-head a {
  flex: none;
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.section-head a:hover {
  color: var(--seal);
  border-color: var(--seal);
}

.section-note {
  margin: 1rem 0 2rem;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* 제품 카드 */
.cards {
  gap: 3rem 1.75rem;
}

.card {
  border: 0;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color 0.2s ease;
}

.card:hover .thumb {
  border-color: var(--gold);
}

.card-name {
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 0.9rem;
}

.card:hover .card-name {
  color: var(--seal);
}

.card-brand {
  font-size: 0.86rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.card-meta {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.rank-badge {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0;
}

/* 머리글 */
.site-header {
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--seal);
}

.main-nav a {
  letter-spacing: 0.04em;
}

.cat-bar a.active,
.cat-bar a:hover {
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* 샘플 안내 띠 */
.sample-banner {
  background: var(--ink);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1rem;
}

.sample-banner strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* 바닥글 */
.site-footer {
  margin-top: 7rem;
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.footer-brand p {
  color: var(--ink-2);
  max-width: 34ch;
}

@media (max-width: 760px) {
  .intro-points {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero.intro {
    padding-top: 3rem;
  }

  .section-head {
    margin-top: 3.5rem;
  }

  .cards {
    gap: 2.25rem 1rem;
  }
}

/* 카드 안 지표·배지 정돈 */
.card-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.card-meta b {
  font-weight: 600;
  color: var(--ink);
}

.card-sold {
  display: block;
  color: var(--ink-2);
}

.card .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.card .cert-badge {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.card:hover .cert-badge {
  border-color: var(--gold);
}

/* 카드 말머리 · 품목 칩 */
.card-kicker {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.card-kicker + .card-name {
  margin-top: 0.3rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.chips li {
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  background: var(--paper);
}

.chips li,
.chips a {
  color: var(--ink-2);
}

.chips a,
.chips > li > span {
  display: block;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
}

.chips a:hover {
  color: var(--paper);
  background: var(--ink);
}

/* ── 품목 바 (카테고리 아래 한 단계) ───────────────── */

.sub-bar {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.sub-bar ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sub-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0;
  white-space: nowrap;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  text-decoration: none;
}

.sub-bar a:hover {
  color: var(--ink);
}

.sub-bar a.active {
  color: var(--seal);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold);
}

@media (max-width: 760px) {
  .sub-bar ul {
    gap: 1rem;
  }

  .sub-bar a {
    font-size: 0.88rem;
    min-height: 38px;
  }
}

/* ── 사진 없는 제품 카드 ─────────────────────────────
   원본 자료에는 상품 이미지가 없다. 사진 자리를 비워 두는 대신
   순위 번호를 머리에 세우고 이름·가격·후기로 읽히게 한다. */

.cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cards.wide {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  /* 사진 위에 올라앉는 순위 배지가 기댈 자리. 이게 없으면 배지가 절대 위치로 카드를 벗어나
     화면 밖으로 날아간다 (.card .thumb 는 배지의 조상이 아니라 형제라서 기준이 못 된다). */
  position: relative;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.card:hover {
  border-color: var(--gold);
  background: var(--paper-2);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.9rem;
}

.rank-badge {
  position: static;
  flex: none;
  min-width: 1.9rem;
  padding: 0.1rem 0.4rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.55;
}

.card-top .card-kicker {
  margin-top: 0;
  letter-spacing: 0.08em;
}

.card-name {
  margin-top: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  /* 원본 상품명은 길다. 세 줄까지만 보이고 나머지는 접는다 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  margin-top: auto;
  padding-top: 0.6rem;
}

@media (max-width: 1000px) {
  .cards,
  .cards.wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards,
  .cards.wide {
    grid-template-columns: 1fr;
  }
}

/* 옵션마다 가격이 다른 제품: 최저가라고 밝힌다 */
.card-price small,
.price-big small {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.price-big small {
  font-size: 0.8rem;
}

/* ── 제품 사진 ────────────────────────────────────────
   원본 CDN 주소를 그대로 쓴다(내려받지 않는다). 사진이 없는 제품은 사진 칸 자체를
   렌더하지 않으므로, 아래 규칙은 사진이 있을 때만 걸린다. 한 줄에 사진 있는 카드와
   없는 카드가 섞여도 이름·가격 줄이 어긋나지 않게 카드는 그대로 flex 열로 둔다. */

.card .thumb {
  display: block;
  position: relative;
  /* 카드 패딩을 거슬러 올라가 사진이 카드 폭을 꽉 채우게 한다 */
  margin: -1.05rem -1.1rem 0.95rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .thumb img {
  transform: scale(1.035);
}

/* 사진이 붙으면 순위 배지를 사진 위로 올린다 */
.card .thumb + .card-top .rank-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── 제품 상세 머리: 사진 + 제목·가격·지표 ───────────── */

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 0.5rem;
}

.detail-head-text > h1 {
  margin-top: 0;
}

.detail-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-photo figcaption {
  padding: 0.5rem 0.7rem 0.55rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .detail-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .detail-photo {
    max-width: 300px;
  }
}

/* ── 사진이 아직 없는 제품의 사진 칸 ─────────────────────
 *
 * 칸을 빼면 한 줄에서 사진 있는 카드와 없는 카드가 섞여 제목 줄이 어긋난다.
 * 빈 네모를 두면 더 나쁘다. 그래서 이미 가진 숫자를 넣는다. 사진이 들어오면
 * 이 칸은 저절로 사라진다.
 *
 * 괘선과 여백만 쓰고 숫자는 크게 띄우지 않는다 — 페이지에서 큰 것은 순위 숫자 하나뿐이다.
 * 위쪽 2.6rem 은 사진 위에 올라앉는 순위 배지가 겹치지 않도록 비워 둔 자리다.
 */
/* `.card .thumb` 가 비율·display 를 쥐고 있어서 같은 무게로 받아야 한다 */
.card .thumb-figures {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  /* 사진처럼 카드 폭을 꽉 채우고(바깥 여백은 .card .thumb 가 이미 당겨 놓았다) 안쪽에
     카드와 같은 여백을 돌려준다. 위쪽은 순위 배지가 앉을 자리라 더 비운다. */
  padding: 2.9rem 1.1rem 1.05rem;
}

.tf-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.tf-label {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.tf-value {
  flex: none;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum' 1;
}
