@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&display=swap');

:root {
  --paper: #f5f2eb;
  --paper-2: #ebe6da;
  --white: #fffdf8;
  --ink: #26221e;
  --ink-2: #5d5750;
  --ink-3: #958e84;
  --line: #ddd6c8;
  --acc: #a4502d;
  --acc-2: #f1e2d6;
  --green: #4d5b44;
  --sans: 'Pretendard', 'Malgun Gothic', sans-serif;
  --serif: 'Gowun Batang', 'Batang', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

/* 샘플 표시 */
.sample-bar { background: #1f1b18; color: #e9e2d6; font-size: 12px; text-align: center; padding: 7px 12px; letter-spacing: 0.01em; }
.sample-bar b { color: #fff; font-weight: 600; }
.sample-bar a { text-decoration: underline; text-underline-offset: 3px; }
.wm { position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='260'><text x='40' y='150' transform='rotate(-22 210 130)' font-family='sans-serif' font-size='24' font-weight='700' fill='rgba(60,50,40,0.085)'>waydstudio 시안</text></svg>");
}

/* 공지 띠 + 헤더 */
.notice { background: var(--green); color: #eef0ea; font-size: 13px; text-align: center; padding: 8px 12px; }
.hd { position: sticky; top: 0; z-index: 40; background: rgba(245,242,235,0.96); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1280px; margin: 0 auto; height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; white-space: nowrap; }
.logo i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.logo small { font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink-3); letter-spacing: 0.18em; }
.gnb { display: flex; gap: 34px; margin: 0 auto; font-size: 15px; }
.gnb a { padding: 6px 0; border-bottom: 1.5px solid transparent; }
.gnb a:hover, .gnb a.on { border-color: var(--ink); }
.util { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-2); }
.util .cart { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.util .cart em { font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; background: var(--acc); color: #fff; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; background: none; border: 0; width: 28px; height: 28px; }
.menu-btn span { display: block; height: 1.5px; background: var(--ink); margin: 6px 2px; }

/* 메인 히어로 */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 560px; background: var(--paper-2); }
.hero-art { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #e9dfcb 0%, #d6c7aa 55%, #b9a582 100%); }
.hero-art .hill { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 46%; background: #8f8a6c; border-radius: 50% 50% 0 0; opacity: .55; }
.hero-art .hill.b { bottom: -90px; height: 40%; background: #5f6a52; opacity: .7; left: 20%; }
.hero-art .bottles { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 22px; }
.hero-txt { padding: 80px 72px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; color: var(--acc); font-weight: 600; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-size: 44px; line-height: 1.32; margin: 18px 0 20px; font-weight: 700; letter-spacing: -0.01em; }
.hero p { color: var(--ink-2); font-size: 16px; max-width: 420px; }
.btns { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn.line { background: transparent; color: var(--ink); }
.btn.acc { background: var(--acc); border-color: var(--acc); }
.btn:disabled { background: #b8b1a6; border-color: #b8b1a6; cursor: not-allowed; }
.dots { display: flex; gap: 6px; margin-top: 48px; }
.dots span { width: 26px; height: 2px; background: #c7bfb0; }
.dots span.on { background: var(--ink); }

/* 섹션 공통 */
.sec { max-width: 1280px; margin: 0 auto; padding: 96px 32px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; gap: 16px; }
.sec-hd h2 { font-family: var(--serif); font-size: 30px; font-weight: 700; }
.sec-hd .tabs { display: flex; gap: 6px; }
.sec-hd .tabs button { white-space: nowrap; flex-shrink: 0; border: 1px solid var(--line); background: transparent; padding: 7px 16px; font-size: 13px; cursor: pointer; border-radius: 20px; }
.sec-hd .tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.more { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--ink-3); }

/* 상품 카드 */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
.card a { display: block; }
.thumb { position: relative; aspect-ratio: 4/5; display: grid; place-items: end center; padding-bottom: 28px; overflow: hidden; }
.thumb .tag { position: absolute; top: 12px; left: 12px; background: var(--white); font-size: 11px; font-weight: 600; padding: 3px 8px; letter-spacing: .04em; }
.thumb .tag.sold { background: #3a3530; color: #fff; }
.card h3 { font-size: 15px; font-weight: 600; margin-top: 14px; }
.card .desc { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.card .price { margin-top: 8px; font-weight: 700; font-size: 16px; }
.card .price s { color: var(--ink-3); font-weight: 400; font-size: 13px; margin-left: 6px; }
.card .price b { color: var(--acc); margin-right: 6px; }
.card.soldout .thumb { filter: grayscale(.6); opacity: .75; }

/* 이야기 배너 */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.story a { position: relative; min-height: 320px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; }
.story a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20,16,12,.55)); }
.story a > * { position: relative; }
.story .k { font-size: 12px; letter-spacing: .2em; opacity: .85; }
.story h3 { font-family: var(--serif); font-size: 26px; margin-top: 6px; }
.story .s1 { background: radial-gradient(90% 90% at 70% 30%, #c9b48f, #6f5b3e); }
.story .s2 { background: radial-gradient(90% 90% at 30% 30%, #9aa48a, #3e4a36); }

/* 브랜드 소개 띠 */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .sec { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about h2 { font-family: var(--serif); font-size: 32px; line-height: 1.4; }
.about p { color: var(--ink-2); margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--white); padding: 28px 22px; }
.facts b { display: block; font-family: var(--serif); font-size: 28px; }
.facts span { font-size: 13px; color: var(--ink-3); }

/* 후기 */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rv { background: var(--white); border: 1px solid var(--line); padding: 26px; }
.rv .star { color: var(--acc); letter-spacing: 2px; font-size: 14px; }
.rv p { margin: 12px 0 16px; font-size: 14px; color: var(--ink-2); }
.rv small { color: var(--ink-3); font-size: 12px; }

/* 푸터 */
.ft { background: #24201c; color: #b9b1a5; font-size: 13px; }
.ft-in { max-width: 1280px; margin: 0 auto; padding: 56px 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.ft h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.ft .big { color: #fff; font-family: var(--serif); font-size: 22px; }
.ft .links { display: flex; gap: 16px; margin-top: 18px; color: #fff; }
.ft .legal { max-width: 1280px; margin: 0 auto; padding: 18px 32px 40px; border-top: 1px solid #3a342e; font-size: 12px; color: #8a8278; }

/* 상품 상세 */
.crumb { max-width: 1280px; margin: 0 auto; padding: 22px 32px 0; font-size: 12px; color: var(--ink-3); }
.pd { max-width: 1280px; margin: 0 auto; padding: 24px 32px 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.gallery .main { overflow: hidden; aspect-ratio: 1/1; display: grid; place-items: end center; padding-bottom: 48px; }
.gallery .subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery .subs > div { overflow: hidden; aspect-ratio: 1/1; display: grid; place-items: end center; padding-bottom: 8px; border: 1px solid transparent; cursor: pointer; }
.gallery .subs > div.on { border-color: var(--ink); }
.info .cat { font-size: 12px; letter-spacing: .16em; color: var(--acc); font-weight: 600; }
.info h1 { font-family: var(--serif); font-size: 30px; line-height: 1.35; margin: 8px 0 6px; }
.info .sub { color: var(--ink-2); }
.info .rate { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.info .rate b { color: var(--acc); }
.info .pr { font-size: 28px; font-weight: 700; margin: 18px 0 22px; }
.dl { border-top: 1px solid var(--ink); }
.dl div { display: grid; grid-template-columns: 110px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl dt { color: var(--ink-3); }
.opt { margin-top: 22px; }
.opt label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.opt select { width: 100%; height: 48px; border: 1px solid var(--line); background: var(--white); padding: 0 12px; }
.sel-box { margin-top: 14px; background: var(--white); border: 1px solid var(--line); padding: 16px; display: none; }
.sel-box.show { display: block; }
.sel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.qty { display: inline-flex; border: 1px solid var(--line); }
.qty button { width: 34px; height: 34px; border: 0; background: var(--paper); cursor: pointer; font-size: 16px; }
.qty input { width: 44px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--white); }
.stock { font-size: 12px; color: var(--acc); margin-top: 8px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 18px; }
.total b { font-size: 24px; }
.buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy .btn { height: 56px; }
.paytags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.paytags span { font-size: 11px; border: 1px solid var(--line); padding: 3px 8px; color: var(--ink-2); background: var(--white); }
.adult { margin-top: 14px; font-size: 12px; color: var(--ink-2); background: var(--acc-2); padding: 10px 12px; }

.pd-tabs { position: sticky; top: 72px; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.pd-tabs nav { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; }
.pd-tabs a { flex: 1; text-align: center; padding: 16px 0; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; }
.pd-tabs a.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.pd-body { max-width: 860px; margin: 0 auto; padding: 72px 32px; }
.pd-body section { margin-bottom: 72px; }
.pd-body h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
.detail-hero { padding: 64px 40px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.detail-hero h3 { font-family: var(--serif); font-size: 28px; line-height: 1.45; margin-top: 10px; }
.detail-hero p { color: var(--ink-2); margin-top: 14px; }
.taste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.taste > div { background: var(--white); border: 1px solid var(--line); padding: 18px; font-size: 13px; color: var(--ink-2); }
.taste b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.bar { height: 6px; background: var(--paper-2); margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--acc); }
.slot { border: 1px dashed var(--ink-3); color: var(--ink-3); text-align: center; padding: 34px 12px; font-size: 13px; margin-top: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
table.t th { width: 150px; color: var(--ink-3); font-weight: 500; background: var(--white); }
.qna-list li { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.qna-list li > span:last-child { color: var(--ink-3); white-space: nowrap; font-size: 13px; }
.badge { font-size: 11px; padding: 2px 7px; margin-right: 6px; background: var(--green); color: #fff; }
.badge.wait { background: var(--ink-3); }

/* 모바일 하단 구매 바 */
.mbuy { display: none; }

/* 장바구니·주문 */
.flow { max-width: 1080px; margin: 0 auto; padding: 48px 32px 96px; }
.steps { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.steps span.on { color: var(--ink); font-weight: 700; }
.flow h1 { font-family: var(--serif); font-size: 30px; margin-bottom: 20px; }
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.box { background: var(--white); border: 1px solid var(--line); padding: 22px; }
.ci { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci:last-child { border-bottom: 0; }
.ci .th { width: 72px; height: 90px; display: grid; place-items: end center; padding-bottom: 6px; }
.ci small { color: var(--ink-3); display: block; }
.ci .rm { border: 0; background: none; color: var(--ink-3); font-size: 12px; cursor: pointer; text-decoration: underline; }
.sum div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum .tt { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.freeship { font-size: 12px; color: var(--acc); margin: 8px 0 14px; }
.form-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.form-row input, .form-row select { height: 42px; border: 1px solid var(--line); padding: 0 10px; background: #fff; width: 100%; }
.pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pays label { border: 1px solid var(--line); padding: 12px 8px; text-align: center; font-size: 13px; cursor: pointer; background: #fff; }
.pays input { display: none; }
.pays label:has(input:checked) { border-color: var(--ink); font-weight: 700; }
.empty { text-align: center; padding: 60px 0; color: var(--ink-3); }
.done { text-align: center; padding: 56px 24px; }
.done h1 { margin-bottom: 8px; }
.done .ono { display: inline-block; margin: 18px 0; padding: 10px 18px; background: var(--white); border: 1px solid var(--line); font-weight: 700; }

/* 반응형 */
@media (max-width: 860px) {
  body { font-size: 14px; }
  .hd-in { height: 56px; padding: 0 16px; gap: 10px; }
  .gnb, .util .t { display: none; }
  .menu-btn { display: block; order: -1; }
  .logo { font-size: 18px; margin: 0 auto; }
  .logo small { display: none; }
  .logo i { width: 26px; height: 26px; font-size: 12px; }
  .util { gap: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { height: 360px; }
  .hero-art .bottles { gap: 12px; bottom: 34px; transform: translateX(-50%) scale(.78); transform-origin: bottom center; }
  .hero-txt { padding: 36px 20px 44px; }
  .hero h1 { font-size: 30px; margin: 12px 0 14px; }
  .hero p { font-size: 15px; }
  .btns .btn { flex: 1; }
  .dots { margin-top: 28px; }
  .sec { padding: 60px 16px; }
  .sec-hd { flex-wrap: wrap; margin-bottom: 22px; }
  .sec-hd h2 { font-size: 24px; }
  .sec-hd .tabs { order: 3; width: 100%; overflow-x: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .thumb > div { transform: scale(.62); transform-origin: bottom center; }
  .gallery .main > div { transform: scale(.8); transform-origin: bottom center; }
  .card h3 { font-size: 14px; }
  .card .price { font-size: 15px; }
  .story { grid-template-columns: 1fr; gap: 12px; }
  .story a { min-height: 220px; padding: 24px; }
  .about .sec { grid-template-columns: 1fr; gap: 28px; }
  .about h2 { font-size: 25px; }
  .facts div { padding: 18px 12px; }
  .facts b { font-size: 22px; }
  .reviews { grid-template-columns: 1fr; gap: 12px; }
  .ft-in { grid-template-columns: 1fr; padding: 40px 16px; gap: 24px; }
  .ft .legal { padding: 16px 16px 96px; }
  .crumb { padding: 14px 16px 0; }
  .pd { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 14px 0 40px; }
  .gallery .subs { padding: 0 16px; }
  .info { padding: 0 16px; }
  .info h1 { font-size: 24px; }
  .info .pr { font-size: 24px; margin: 12px 0 16px; }
  .info .buy { display: none; }
  .pd-tabs { top: 56px; }
  .pd-tabs nav { padding: 0; }
  .pd-tabs a { padding: 13px 0; font-size: 13px; }
  .pd-body { padding: 44px 16px; }
  .detail-hero { padding: 40px 18px; }
  .detail-hero h3 { font-size: 22px; }
  .taste { grid-template-columns: 1fr; }
  table.t th { width: 96px; }
  .mbuy { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .mbuy .btn { height: 50px; padding: 0 10px; }
  .flow { padding: 28px 16px 120px; }
  .cart-wrap { grid-template-columns: 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .pays { grid-template-columns: 1fr 1fr; }
}
