:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --sub: #6f6f73;
  --line: #e7e5e2;
  --soft: #f7f4f1;
  --rose: #b76e79;
  --rose-soft: #f6e9ea;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.6; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; }

/* header */
.notice { background: var(--rose); color: #fff; text-align: center; font-size: 12px; padding: 7px 16px; letter-spacing: 0.02em; }
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { position: relative; display: flex; justify-content: center; align-items: center; height: 68px; padding: 0 16px; }
.logo { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 0.18em; text-align: center; line-height: 1; }
.logo small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.3em; color: var(--sub); margin-top: 5px; font-weight: 500; }
.cart-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; padding: 8px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.cart-count:empty, .cart-count[data-zero] { display: none; }
.gnb { display: flex; justify-content: center; gap: 28px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; }
.gnb::-webkit-scrollbar { display: none; }
.gnb a { white-space: nowrap; padding: 2px 0; border-bottom: 1px solid transparent; }
.gnb a:hover { border-color: var(--ink); }

/* buttons */
.btn-line, .btn-fill { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; border: 1px solid var(--ink); background: #fff; }
.btn-fill { background: var(--ink); color: #fff; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-fill:hover { background: #000; }
.btn-line.sm { height: 42px; padding: 0 16px; font-size: 12px; }
.wide { width: 100%; }
button:disabled { opacity: .5; cursor: default; }

/* hero */
.hero { position: relative; }
.hero::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.28)); pointer-events: none; }
.hero-empty::after { display: none; }
.hero-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.hero-slide img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-copy { z-index: 1; position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); text-align: center; color: #fff; width: calc(100% - 32px); text-shadow: 0 1px 18px rgba(0,0,0,.25); pointer-events: none; }
.hero-copy .btn-line { pointer-events: auto; background: rgba(255,255,255,.92); color: var(--ink); border-color: transparent; text-shadow: none; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0.08em; margin: 0 0 6px; }
.hero-copy h1 { font-size: clamp(24px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.02em; margin: 0 0 22px; }
.hero-empty { background: var(--soft); padding: 110px 16px; }
.hero-empty .hero-copy { position: static; transform: none; color: var(--ink); text-shadow: none; width: auto; }

/* sections & grid */
.sec { max-width: 1320px; margin: 0 auto; padding: 72px 24px 0; }
.sec-hd { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.sec-hd h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: 0.06em; margin: 0; }
.sec-hd p { margin: 0; color: var(--sub); font-size: 13px; }
.sec-hd .more { margin-left: auto; font-size: 11px; letter-spacing: 0.12em; font-weight: 600; border-bottom: 1px solid; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 18px; }
.card .ph { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 3 / 4; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s; }
.card .ph .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .ph .alt { opacity: 1; }
.card:hover .ph img:first-child { transform: scale(1.03); }
.card.sold .ph img { opacity: .55; }
.badge { position: absolute; left: 10px; top: 10px; background: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; padding: 3px 7px; }
.badge.dark { background: var(--ink); color: #fff; }
.card .nm { margin-top: 12px; font-size: 13.5px; }
.card .pr { margin-top: 3px; display: flex; gap: 6px; align-items: baseline; font-size: 14px; }
.card .pr s { color: #aaa; font-size: 12px; }
.dc { color: var(--rose); }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.empty { text-align: center; color: var(--sub); padding: 60px 0; }
.list-hd { text-align: center; margin-bottom: 36px; }
.list-hd h1 { font-family: var(--serif); font-size: 36px; font-weight: 600; letter-spacing: 0.1em; margin: 0; }
.list-hd p { margin: 2px 0 0; color: var(--sub); font-size: 13px; }
.cat-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-bottom: 20px; }
.cat-links a { border: 1px solid var(--line); padding: 26px 10px; text-align: center; }
.cat-links a:hover { background: var(--soft); }
.cat-links span { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: 0.1em; }
.cat-links small { color: var(--sub); }

/* product page */
.pd { max-width: 1320px; margin: 0 auto; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; padding: 40px 24px 0; }
.g-main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft); }
.g-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.g-thumbs button { border: 1px solid transparent; padding: 0; background: none; flex: 0 0 72px; }
.g-thumbs button.on { border-color: var(--ink); }
.g-thumbs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.info { position: sticky; top: 120px; align-self: start; }
.i-cat { font-size: 11px; letter-spacing: 0.15em; color: var(--sub); font-weight: 600; }
.i-name { font-size: 22px; font-weight: 600; margin: 6px 0 4px; letter-spacing: -0.02em; }
.i-sub { color: var(--sub); margin: 0 0 12px; }
.i-price { display: flex; gap: 8px; align-items: baseline; font-size: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.i-price s { color: #aaa; font-size: 14px; }
.i-meta { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: 12.5px; margin: 18px 0; color: var(--sub); }
.i-meta dt { color: var(--ink); font-weight: 600; }
.i-meta dd { margin: 0; }
.opt { margin-top: 18px; }
.opt-lb { font-size: 11px; letter-spacing: 0.15em; font-weight: 700; margin: 0 0 8px; }
.opt-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-btns button { display: inline-flex; align-items: center; gap: 6px; min-width: 52px; height: 38px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.opt-btns button i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.opt-btns button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sel-list { list-style: none; padding: 0; margin: 18px 0 0; }
.sel-list li { display: flex; align-items: center; gap: 10px; background: var(--soft); padding: 12px 14px; margin-bottom: 6px; font-size: 13px; }
.sel-list .l-nm { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.qty button { width: 28px; height: 28px; border: 0; background: none; }
.qty span { width: 30px; text-align: center; line-height: 28px; }
.x { border: 0; background: none; color: #999; font-size: 16px; padding: 0 2px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.total span { font-size: 11px; letter-spacing: 0.15em; font-weight: 700; }
.total b { font-size: 22px; }
.buy-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.i-pay { font-size: 12px; color: var(--sub); margin-top: 14px; }
.soldout-msg { background: var(--soft); padding: 16px; text-align: center; font-weight: 600; margin-top: 20px; }
.pd-tabs { display: flex; justify-content: center; gap: 0; margin: 72px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 104px; background: #fff; z-index: 5; }
.pd-tabs a { padding: 16px 28px; font-size: 12px; letter-spacing: 0.12em; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 22px; font-size: 13px; z-index: 50; display: flex; gap: 16px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast a { text-decoration: underline; }

/* 상세페이지 본문 (JPG 로도 뽑힘) */
.detail { max-width: 860px; margin: 0 auto; padding: 72px 0 40px; background: #fff; text-align: center; }
.detail figure { margin: 0 0 12px; }
.detail figure.full img { width: 100%; }
.detail figcaption { font-size: 14px; color: var(--sub); padding: 12px 24px 40px; }
.dt-intro { padding: 0 32px 64px; }
.dt-brand { font-family: var(--serif); letter-spacing: 0.3em; font-size: 14px; font-weight: 600; color: var(--sub); margin: 0 0 40px; }
.dt-en { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 0; color: var(--rose); }
.dt-head { font-size: 32px; font-weight: 600; margin: 8px 0 10px; letter-spacing: -0.03em; }
.dt-name { font-size: 15px; color: var(--sub); margin: 0 0 28px; }
.dt-text { font-size: 16.5px; line-height: 1.95; margin: 0; }
.dt-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.dt-tags span { font-size: 14px; color: var(--rose); background: var(--rose-soft); padding: 5px 12px; border-radius: 20px; }
.dt-md { padding: 0 40px 72px; }
.dt-md .dt-text { max-width: 600px; margin: 0 auto; }
.dt-sub { font-size: 12px; letter-spacing: .2em; font-weight: 700; margin: 34px 0 0; color: var(--sub); }
.dt-colors em { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--sub); }
.dt-label { display: inline-block; font-family: var(--serif); font-size: 22px; letter-spacing: 0.2em; font-weight: 600; margin: 0 0 26px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.dt-points { padding: 72px 48px; background: var(--soft); margin: 0 0 12px; }
.pt { display: flex; gap: 22px; text-align: left; max-width: 620px; margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--line); }
.pt:last-child { border-bottom: 1px solid var(--line); }
.pt-no { font-family: var(--serif); font-size: 30px; color: var(--rose); line-height: 1; min-width: 40px; }
.pt h3 { margin: 0 0 4px; font-size: 17px; }
.pt p { margin: 0; font-size: 15px; color: #4a4a4d; }
.dt-block { padding: 72px 40px 56px; }
.dt-colors { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-bottom: 22px; }
.dt-colors span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; }
.dt-colors i { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.dt-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dt-details figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dt-details figure:last-child:nth-child(odd) img { aspect-ratio: auto; }
.dt-details img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dt-details figcaption { padding: 10px 8px 24px; font-size: 13px; }
.dt-list { list-style: none; padding: 0; margin: 22px 0 0; font-size: 15.5px; line-height: 2; }
.dt-list li::before { content: '— '; color: var(--rose); }
.size-table, .scale { width: 100%; max-width: 680px; margin: 0 auto; border-collapse: collapse; font-size: 14.5px; }
.size-table th, .size-table td, .scale th, .scale td { border-bottom: 1px solid var(--line); padding: 13px 6px; }
.size-table thead th { border-top: 1px solid var(--ink); background: var(--soft); font-weight: 600; }
.size-table tbody th { font-weight: 600; }
.dt-note { font-size: 13px; color: var(--sub); margin-top: 16px; }
.scale { border-top: 1px solid var(--ink); }
.scale th { width: 22%; font-weight: 600; background: var(--soft); }
.scale td { color: #b5b5b5; width: 19.5%; }
.scale td.on { color: var(--ink); font-weight: 700; position: relative; }
.scale td.on::after { content: ''; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: 18px; height: 2px; background: var(--rose); }
.dt-info dl { display: grid; grid-template-columns: 90px 1fr; max-width: 620px; margin: 0 auto; text-align: left; font-size: 14.5px; border-top: 1px solid var(--ink); }
.dt-info dt, .dt-info dd { margin: 0; padding: 13px 8px; border-bottom: 1px solid var(--line); }
.dt-info dt { font-weight: 600; background: var(--soft); text-align: center; }
.guide { max-width: 860px; margin: 0 auto; padding: 48px 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: #4a4a4d; }
.guide h2 { font-size: 15px; color: var(--ink); margin: 24px 0 8px; }
.guide ul { padding-left: 18px; margin: 0; }

/* cart & order */
.cart-page, .order-page { max-width: 820px; }
.c-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-row img { width: 84px; aspect-ratio: 3/4; object-fit: cover; }
.c-nm { font-weight: 600; }
.c-opt { color: var(--sub); font-size: 12.5px; }
.c-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sum { background: var(--soft); padding: 22px 24px; margin: 26px 0; }
.sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.sum .grand { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.sum .hint { color: var(--rose); font-size: 12.5px; }
.of h2 { font-size: 15px; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.of label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.of input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; height: 46px; border: 1px solid var(--line); padding: 0 12px; margin-top: 5px; font-size: 14px; border-radius: 0; background: #fff; }
.of input:focus { outline: none; border-color: var(--ink); }
.of input[readonly] { background: var(--soft); }
.of .chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; }
.of .chk input { margin-top: 3px; }
.addr { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.addr label { margin-bottom: 12px; }
.addr button { margin-bottom: 12px; height: 46px; }
.pay-box { background: var(--soft); padding: 18px 20px; font-size: 13.5px; margin-bottom: 18px; }
.pay-box p { margin: 0 0 8px; }
.small { font-size: 12px; color: var(--sub); }
.form-err { color: #c0392b; font-size: 13px; min-height: 20px; }
.done { text-align: center; }
.done h2 { font-size: 22px; margin: 10px 0 4px; }
.done .ono { font-family: var(--serif); font-size: 22px; letter-spacing: 0.08em; color: var(--rose); }
.done .bank { background: var(--soft); padding: 22px; margin: 22px 0; font-size: 15px; line-height: 1.9; }
.done textarea { width: 100%; height: 190px; border: 1px solid var(--line); padding: 12px; font: 12.5px/1.6 var(--sans); resize: vertical; }
.done .btns { display: grid; gap: 8px; margin-top: 12px; }

/* footer */
.ft { margin-top: 110px; border-top: 1px solid var(--line); background: #fafaf9; }
.ft-in { max-width: 1320px; margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px; font-size: 12px; color: var(--sub); line-height: 1.9; }
.ft b { color: var(--ink); letter-spacing: 0.1em; font-size: 11px; }
.ft-logo { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.18em; color: var(--ink); margin-bottom: 10px; }
.ft .big { font-size: 18px; color: var(--ink); font-weight: 600; }
.ft-kakao { display: inline-block; margin-top: 8px; background: #fee500; color: #191919; padding: 6px 14px; font-weight: 600; }
.ft p { margin: 0 0 10px; }
.copy { margin-top: 16px !important; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 10px; }
  .pd-top { grid-template-columns: 1fr; gap: 24px; padding: 0 0; }
  .gallery { margin: 0 -0px; }
  .g-thumbs { padding: 0 16px; }
  .info { position: static; padding: 0 16px; }
  .ft-in { grid-template-columns: 1fr; gap: 8px; }
  .hero-track { grid-template-columns: 100%; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hero-track::-webkit-scrollbar { display: none; }
  .hero-slide { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .hd-in { height: 58px; }
  .logo { font-size: 23px; }
  .gnb { justify-content: flex-start; gap: 22px; }
  .sec { padding: 52px 16px 0; }
  .sec-hd h2 { font-size: 24px; }
  .sec-hd p { display: none; }
  .cat-links { grid-template-columns: repeat(2, 1fr); }
  .pd-tabs { top: 92px; margin-top: 48px; }
  .detail { padding-top: 48px; }
  .dt-head { font-size: 25px; }
  .dt-text { font-size: 15px; }
  .dt-points { padding: 52px 20px; }
  .dt-block { padding: 56px 16px 40px; }
  .dt-colors i { width: 44px; height: 44px; }
  .c-row { grid-template-columns: 70px 1fr; }
  .c-row img { width: 70px; }
  .c-right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* 결제수단 · 약관 */
.pay-methods { display: grid; gap: 8px; margin-bottom: 14px; }
.pm { display: flex !important; gap: 12px; align-items: flex-start; border: 1px solid var(--line); padding: 14px 16px; margin: 0 !important; cursor: pointer; font-weight: 400 !important; }
.pm input { margin-top: 4px; flex: none; width: auto; height: auto; }
.pm b { display: block; font-size: 14px; }
.pm small { color: var(--sub); font-size: 12.5px; }
.pm:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.of .chk a { text-decoration: underline; }
.ft-links { margin-top: 10px !important; }
.ft-links a { color: var(--ink); }
.legal { max-width: 860px; font-size: 14px; line-height: 1.85; color: #3a3a3d; }
.legal h2 { font-size: 15.5px; color: var(--ink); margin: 30px 0 8px; }
.legal p, .legal ul { margin: 0 0 10px; }
.done .status { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: var(--rose-soft); color: var(--rose); margin-bottom: 8px; }
.done .status.ok { background: #e5f3ea; color: #2e7d4f; }
.done .status.bad { background: #fbe6e4; color: #c0392b; }
.done .items { text-align: left; margin: 18px 0; }
