@font-face {
  font-family: "Pretendard";
  src: url("/assets/font/PretendardVariable-subset.woff") format("woff-variations"),
       url("/assets/font/PretendardVariable-subset.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #111;
  --sub: #666;
  --dim: #999;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --red: #e5463a;
  --hd: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.center { text-align: center; }
.no-scroll { overflow: hidden; }

/* 머리 */
.hd {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  height: var(--hd); padding: 0 24px;
  background: #fff;
}
.hd-logo img { width: 118px; height: auto; }
.hd-nav { flex: 1; display: flex; justify-content: center; gap: 58px; font-size: 12px; letter-spacing: .1em; }
.hd-nav > a, .hd-sub > a { display: block; padding: 20px 0; }
.hd-nav .hd-nav-cart { display: none; }
.hd-sub { position: relative; }
.hd-drop {
  display: none; position: absolute; left: 50%; top: 52px; transform: translateX(-50%);
  min-width: 140px; padding: 10px 0; background: #fff; border: 1px solid var(--line); letter-spacing: .02em;
}
.hd-drop a { display: block; padding: 6px 18px; color: var(--sub); white-space: nowrap; }
.hd-drop a:hover { color: var(--ink); }
.hd-sub:hover .hd-drop, .hd-sub:focus-within .hd-drop { display: block; }
.hd-nav a:hover { opacity: .6; }
.hd-cart { font-size: 12px; letter-spacing: .08em; display: flex; align-items: center; gap: 6px; }
.hd-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0; }
.hd-menu { display: none; width: 36px; height: 36px; padding: 0; border: 0; background: none; position: relative; }
.hd-menu span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: transform .2s; }
.hd-menu span:first-child { top: 14px; }
.hd-menu span:last-child { top: 21px; }
.menu-open .hd-menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .hd-menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* 첫 화면: 머리가 사진 위에 떠 있고 글자는 흰색 */
.home .hd { position: fixed; left: 0; right: 0; background: transparent; color: #fff; transition: background .2s, color .2s; }
.home .hd.on-light { background: #fff; color: var(--ink); }
.home .hd.on-light .hd-logo img { filter: invert(1); }
.home .hd .hd-count { background: #fff; color: var(--ink); }
.home .hd.on-light .hd-count { background: var(--ink); color: #fff; }
html:has(body.home) { scroll-snap-type: y mandatory; }
.slide { height: 100vh; height: 100svh; scroll-snap-align: start; overflow: hidden; background: #000; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-ft { height: auto; background: #fff; scroll-snap-align: end; padding-top: 40px; }
.only-m { display: none; }
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 6px; transition: opacity .2s; }
.dots.hide { opacity: 0; pointer-events: none; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid #fff; background: transparent; }
.dots button.on { background: #fff; }

/* 공통 틀 */
.wrap { max-width: 1280px; margin: 0 auto; padding: 40px 24px 80px; }
.narrow { max-width: 760px; }
.wrap > h1 { font-size: 18px; letter-spacing: .04em; text-align: center; margin: 10px 0 36px; }
.empty { text-align: center; color: var(--dim); padding: 50px 0; }
.btn-dark, .btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; font-size: 14px; border: 1px solid var(--ink);
}
.btn-dark { background: #333; border-color: #333; color: #fff; }
.btn-dark:disabled { background: #aaa; border-color: #aaa; cursor: default; }
.btn-line { background: #fff; }
.btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.badge { display: inline-block; vertical-align: middle; font-size: 10px; line-height: 1; padding: 4px 8px; border: 1px solid; letter-spacing: .04em; font-weight: 500; }
.badge-best { color: var(--red); }
.badge-md { color: var(--ink); }
.test-note { background: #fff6d6; padding: 12px 16px; font-size: 13px; margin: 0 0 24px; }

/* 상품 목록 */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cards img { background: var(--soft); width: 100%; margin-bottom: 14px; }
.card-name { color: var(--sub); font-size: 13px; }
.card-price { font-weight: 600; font-size: 15px; margin-bottom: 6px; }

/* 상품 */
.crumb { font-size: 11px; color: var(--dim); display: flex; gap: 8px; margin-bottom: 18px; }
.prod-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.prod-main { background: var(--soft); }
.prod-main img { width: 100%; }
.prod-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.prod-thumbs button { width: 64px; padding: 0; border: 1px solid transparent; background: var(--soft); }
.prod-thumbs button.on { border-color: var(--ink); }
.prod-info h1 { font-size: 20px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prod-price { font-size: 22px; font-weight: 600; margin: 4px 0 18px; }
.prod-desc { color: var(--sub); font-size: 12.5px; line-height: 1.8; margin: 0 0 18px; }
.prod-meta { margin: 0; border-top: 1px solid var(--line); }
.prod-meta div { display: flex; gap: 30px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.prod-meta dt { color: var(--sub); width: 40px; }
.prod-meta dd { margin: 0; }
.prod-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--soft); padding: 16px; margin-top: 22px; font-size: 13px; }
.prod-qty .label { color: var(--sub); }
.qty { display: inline-flex; border: 1px solid #ccc; background: #fff; }
.qty button { width: 30px; height: 30px; border: 0; background: none; }
.qty input { width: 40px; height: 30px; border: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; text-align: center; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.prod-total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0; color: var(--sub); font-size: 13px; }
.prod-total strong { font-size: 22px; color: var(--ink); }
.prod-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.prod-added { font-size: 13px; color: var(--sub); }
.prod-added a { text-decoration: underline; color: var(--ink); }
.tabs { display: flex; justify-content: center; gap: 50px; margin: 70px 0 50px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tabs a { padding: 14px 0; color: var(--sub); }
.tabs a:first-child { color: var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: -1px; }
.prod-detail { max-width: 650px; margin: 0 auto; display: flex; flex-direction: column; gap: 60px; }
.prod-detail img { width: 100%; }
.prod-text { font-size: 13px; color: #333; }
.prod-text h3, .legal h2, .guide h3 { font-size: 15px; letter-spacing: .04em; margin: 40px 0 12px; }
.prod-text h4 { font-size: 13px; color: var(--sub); margin: -4px 0 8px; font-weight: 500; }
.prod-text ul, .guide ul { padding-left: 18px; margin: 8px 0; }
.spec { margin: 0; }
.spec div { display: flex; gap: 20px; padding: 6px 0; }
.spec dt { width: 70px; color: var(--sub); flex: none; }
.spec dd { margin: 0; }
.contact { color: var(--sub); margin-top: 30px; }
.prod-sec { max-width: 650px; margin: 70px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.prod-sec h2 { font-size: 15px; margin-bottom: 10px; }
.prod-sec a { text-decoration: underline; }

/* 룩북 */
.look { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
.wrap.look > .look-side { font-size: 12px; font-weight: 500; letter-spacing: .04em; margin: 0; text-align: left; }
.look-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 980px; align-items: start; }
.look-col { display: flex; flex-direction: column; gap: 8px; }
.look-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; padding: 12px 18px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* 소개 */
.about { text-align: center; max-width: 760px; }
.about-title { width: 420px; margin: 40px auto 60px; }
.about-photo { width: 330px; margin: 0 auto 70px; }
.about h2 { font-size: 15px; font-weight: 500; letter-spacing: .08em; margin: 30px 0 10px; }
.about p { margin: 0 0 14px; }
.about-en { font-size: 13px; color: #333; }
.about-ko { font-size: 12px; color: var(--sub); }

/* 약관·안내 */
.legal { font-size: 13px; color: #333; }
.legal h2 { font-size: 14px; }
.guide h3:first-of-type { margin-top: 0; }

/* 장바구니·주문서 */
.ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ol-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ol-row img { background: var(--soft); }
.ol-name { display: flex; flex-direction: column; font-size: 13px; }
.ol-name span { color: var(--sub); }
.ol-qty { color: var(--sub); }
.ol-del { border: 0; background: none; color: var(--dim); font-size: 12px; text-decoration: underline; }
.ol-amount { min-width: 90px; text-align: right; }
.ol-total { margin: 20px 0 0; }
.ol-total div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--sub); }
.ol-total dd { margin: 0; }
.ol-total .sum { color: var(--ink); font-size: 16px; font-weight: 600; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.order section { margin-bottom: 36px; }
.order h2 { font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
.f { margin-bottom: 14px; }
.f > label { display: block; font-size: 13px; margin-bottom: 4px; }
.f em { color: var(--red); font-style: normal; margin-left: 2px; }
.f input:not([type=checkbox]):not([type=radio]), .f textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #ccc; border-radius: 0; font: inherit; background: #fff;
}
.f textarea { height: auto; padding: 10px 12px; resize: vertical; }
.f .row { display: flex; gap: 8px; }
.f .row .btn-line { height: 44px; flex: none; padding: 0 16px; }
.field-err { color: var(--red); font-size: 12px; margin: 4px 0 0; }
.check, .radio { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin: 6px 0 12px; cursor: pointer; }
.check input, .radio input { margin-top: 4px; accent-color: #333; }
.check a { text-decoration: underline; }
.radios { display: flex; gap: 24px; flex-wrap: wrap; }
.radios .radio { margin: 0; }
.note { font-size: 12px; color: var(--sub); }
.link { border: 0; background: none; padding: 0; font-size: 12px; color: var(--sub); text-decoration: underline; margin-left: 24px; }
.privacy-detail { background: var(--soft); padding: 12px 14px; font-size: 12px; color: var(--sub); margin-top: 8px; }
.privacy-detail p { margin: 0; }
.privacy-detail a { text-decoration: underline; }
.pay-bar { border-top: 1px solid var(--ink); padding-top: 20px; text-align: center; }
.pay-bar p { margin: 0 0 14px; }
.pay-bar strong { font-size: 22px; margin-left: 8px; }
.pay-bar .btn-dark { width: 100%; max-width: 360px; }
.status { color: var(--red); font-size: 13px; min-height: 20px; margin-top: 12px !important; }
.complete h1 { font-size: 18px; text-align: center; margin: 10px 0 30px; }
.done { margin: 0 0 24px; border-top: 1px solid var(--ink); }
.done div { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.done dt { width: 90px; color: var(--sub); flex: none; }
.done dd { margin: 0; }

/* 바닥 */
.ft { text-align: center; font-size: 12px; color: #444; padding: 40px 20px 50px; line-height: 1.9; }
.ft p { margin: 0 0 10px; }
.ft-sns { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.ft-name { color: var(--sub); }
.ft-dim { color: var(--dim); }
.ft-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ft-links b { font-weight: 600; }

@media (max-width: 768px) {
  .hd { padding: 0 16px; gap: 12px; }
  .hd-logo img { width: 104px; }
  .hd-nav {
    position: fixed; inset: var(--hd) 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; color: var(--ink); padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); visibility: hidden; transition: transform .2s, visibility .2s;
  }
  .menu-open .hd-nav { transform: none; visibility: visible; }
  .hd-nav > a, .hd-sub > a { padding: 12px 0; font-size: 13px; }
  .hd-drop { display: block; position: static; transform: none; border: 0; padding: 0 0 6px 12px; }
  .hd-drop a { padding: 4px 0; }
  .hd-nav .hd-nav-cart { display: block; }
  .hd-cart { margin-left: auto; }
  .hd-menu { display: block; }
  .home.menu-open .hd { background: #fff; color: var(--ink); }
  .home.menu-open .hd .hd-logo img { filter: invert(1); }
  .only-d { display: none; }
  .only-m { display: block; }
  .dots { right: 10px; }
  .wrap { padding: 24px 16px 60px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .prod-top { grid-template-columns: 1fr; gap: 24px; }
  .tabs { gap: 26px; margin: 50px 0 30px; }
  .prod-detail { gap: 36px; }
  .look { grid-template-columns: 1fr; }
  .wrap.look > .look-side { margin-bottom: 12px; }
  .look-grid { display: block; columns: 2; column-gap: 8px; }
  .look-col { display: contents; }
  .look-grid button { break-inside: avoid; margin-bottom: 8px; }
  .about-title { width: 90%; margin: 20px auto 40px; }
  .about-photo { width: 90%; margin-bottom: 50px; }
  .ol-row { grid-template-columns: 60px 1fr auto; grid-template-areas: "img name name" "img qty amount" "img del amount"; gap: 4px 12px; }
  .ol-row img { grid-area: img; }
  .ol-name { grid-area: name; }
  .ol-row .qty, .ol-qty { grid-area: qty; justify-self: start; }
  .ol-del { grid-area: del; justify-self: start; }
  .ol-amount { grid-area: amount; align-self: end; }
  .radios { gap: 14px; }
}
