:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --ink: #2b2622;
  --muted: #7a6f66;
  --line: #ebe3d8;
  --accent: #8b6b4a;
  --accent-soft: #f1e8dc;
  --dot: #2b2622;
  --radius: 16px;
  --gutter: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter) 48px; }

/* 상단 */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px var(--gutter);
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.tagline { color: var(--muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 홈 */
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: clamp(26px, 6vw, 40px); line-height: 1.25; margin: 0 0 10px; letter-spacing: -.03em; }
.hero p { margin: 0; color: var(--muted); }

.tabs { display: flex; gap: 6px; margin: 8px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 17px; color: var(--muted);
  padding: 10px 14px 12px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
[hidden] { display: none !important; }

.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 16px; }
.chips { display: flex; gap: 6px; }
.chips button {
  appearance: none; font: inherit; font-size: 14px; cursor: pointer;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { color: var(--muted); }

/* 카드 그리드 */
.grid { display: grid; gap: 14px; }
.grid-scenes { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: block; text-decoration: none; background: var(--card);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(60, 40, 20, .08); }
.card img { width: 100%; object-fit: cover; background: var(--accent-soft); }
.scene-card img { aspect-ratio: 4 / 5; }
.look-card img { aspect-ratio: 2 / 3; object-fit: contain; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { margin: 4px 0 4px; font-size: 16px; letter-spacing: -.01em; }
.card-body p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.sum { font-size: 13px; font-weight: 600; color: var(--accent); }
.chip-s {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 2px 8px; border-radius: 999px;
}

/* 상세 */
.crumb { font-size: 13px; color: var(--muted); padding: 16px 0 10px; }
.crumb a { color: var(--muted); }
.detail { display: grid; gap: 20px; }
@media (min-width: 860px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .detail-media { position: sticky; top: 72px; }
}
.detail h1 { margin: 6px 0 4px; font-size: clamp(22px, 5vw, 30px); letter-spacing: -.02em; line-height: 1.3; }
.sub { margin: 0 0 18px; color: var(--muted); }

.stage { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--accent-soft); }
.stage img { width: 100%; }
.stage-look img { aspect-ratio: 2 / 3; object-fit: contain; }
.stage-scene img { aspect-ratio: 4 / 5; object-fit: cover; }
.badge {
  position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .85); padding: 3px 8px; border-radius: 999px; color: var(--muted);
}
.dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; background: var(--dot); color: #fff;
  font: 700 14px/1 inherit; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  display: grid; place-items: center; padding: 0;
}
.dot.on, .dot:hover { background: var(--accent); transform: translate(-50%, -50%) scale(1.15); }

.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px;
  padding: 14px 6px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px; border-radius: 10px; transition: background .3s ease;
}
.item.on { background: var(--accent-soft); }
.num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 2px;
}
.info { display: flex; flex-direction: column; min-width: 0; }
.label { font-size: 16px; }
.pname { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meta { font-size: 12px; color: var(--muted); }
.buy { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-weight: 700; font-size: 16px; }
.price em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 14px; }
.btn {
  flex: none; text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 9px 14px; border-radius: 10px; background: var(--ink); color: #fff;
}
.btn:hover { background: var(--accent); }

.total {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 16px; padding: 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.total strong { font-size: 22px; }
.total small { color: var(--muted); }

.related { margin-top: 44px; }
.related h2 { font-size: 19px; margin: 0 0 12px; }

/* 하단 고지 */
.foot {
  border-top: 1px solid var(--line); padding: 24px var(--gutter) 40px;
  max-width: 1120px; margin: 0 auto; font-size: 13px; color: var(--muted);
}
.foot p { margin: 0 0 6px; }
.foot .notice { color: var(--ink); font-weight: 600; }
.copy { margin-top: 12px !important; }
