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

:root {
  --bg: #f6f0e6;
  --paper: #fffdf8;
  --ink: #2b211c;
  --sub: #6f625a;
  --mute: #a3958a;
  --line: #e7dccb;
  --red: #7a2e2a;      /* 팥색 */
  --red-d: #5e221f;
  --gold: #b88a3e;
  --gold-l: #f3e7cf;
  --ok: #2f7a4f;
  --serif: 'Gowun Batang', 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 480px; margin: 0 auto; background: var(--paper); min-height: 100vh; box-shadow: 0 0 40px rgba(60, 40, 20, .06); }
.top { display: flex; align-items: center; justify-content: center; height: 56px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .12em; color: var(--red); }
.sec { padding: 40px 22px; }
.sec + .sec { border-top: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--gold); margin-bottom: 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; }
h1 { font-size: 30px; white-space: pre-line; }
h2 { font-size: 23px; margin-bottom: 14px; }
.lead { color: var(--sub); margin-top: 14px; white-space: pre-line; }
.center { text-align: center; }

/* 히어로 */
.hero { padding: 44px 22px 36px; text-align: center; background:
  radial-gradient(120% 70% at 50% 0%, #fff 0%, var(--paper) 60%),
  var(--paper); }
.hero .seal { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.15; }
.hero-img { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 26px; }
.hero-img img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--gold-l); }

.points { display: grid; gap: 12px; }
.point { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.point .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.point b { display: block; }
.point span { color: var(--sub); font-size: 14px; }

/* 폼 */
.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel] { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; background: #fff; }
.field input:focus { outline: 2px solid var(--gold); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }
.agree { display: grid; gap: 10px; padding: 14px; background: #fbf7ef; border-radius: 10px; font-size: 14px; }
.agree label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.agree details { color: var(--sub); font-size: 13px; margin-left: 26px; }
.agree summary { cursor: pointer; }
.err { color: #b3261e; font-size: 14px; min-height: 1em; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border: 0; border-radius: 12px; background: var(--red); color: #fff; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:active { background: var(--red-d); }
.btn:disabled { opacity: .5; }
.btn.kakao { background: #fee500; color: #191600; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { height: 44px; font-size: 15px; }

.sticky { position: sticky; bottom: 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255,253,248,0), var(--paper) 30%); }

/* 예약안내 */
.timer { margin: 22px auto 0; display: inline-flex; gap: 6px; align-items: baseline; padding: 12px 18px; border-radius: 12px; background: var(--red); color: #fff; }
.timer small { opacity: .8; font-size: 13px; }
.timer b { font-variant-numeric: tabular-nums; font-size: 22px; letter-spacing: .02em; }
.timer.over { background: #8a7f77; }
.benefit { margin-top: 20px; padding: 18px; border: 1px dashed var(--gold); border-radius: 12px; background: var(--gold-l); text-align: center; }
.benefit b { font-family: var(--serif); font-size: 19px; color: var(--red); }
.benefit p { font-size: 14px; color: var(--sub); margin-top: 6px; }
.coupon { margin-top: 12px; display: flex; gap: 8px; }
.coupon code { flex: 1; display: flex; align-items: center; justify-content: center; height: 46px; background: #fff; border-radius: 8px; font-size: 18px; font-weight: 700; letter-spacing: .1em; }
.coupon button { width: 90px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

.prods { display: grid; gap: 16px; }
.prod { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.prod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--gold-l); }
.prod .body { padding: 16px; }
.prod .tag { font-size: 12px; font-weight: 600; color: var(--gold); }
.prod h3 { font-size: 19px; margin: 2px 0 2px; }
.prod p { font-size: 14px; color: var(--sub); }
.prod .row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.prod .price { font-size: 19px; font-weight: 800; }
.prod .row .btn { width: auto; padding: 0 18px; }

.reviews { display: grid; gap: 10px; }
.review { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15px; }
.review small { display: block; color: var(--mute); margin-top: 6px; font-size: 13px; }

.done-ic { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold-l); color: var(--red); display: flex; align-items: center; justify-content: center; }
.steps { display: grid; gap: 0; margin-top: 24px; text-align: left; }
.steps li { list-style: none; position: relative; padding: 0 0 18px 30px; font-size: 15px; }
.steps li::before { content: ''; position: absolute; left: 6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.steps li::after { content: ''; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li b { display: block; }
.steps li span { color: var(--sub); font-size: 14px; }

footer#footer { padding: 28px 22px 40px; font-size: 12px; color: var(--mute); line-height: 1.8; border-top: 1px solid var(--line); }
footer#footer a { text-decoration: none; }
.hide { display: none !important; }

/* 주문서 */
.olist { display: grid; gap: 10px; }
.oitem { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.oitem.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.oitem img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--gold-l); }
.oitem b { display: block; font-size: 15px; line-height: 1.35; }
.oitem span { font-size: 14px; color: var(--sub); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 36px; border: 0; background: #fbf7ef; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty output { width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.field textarea, .field input[type=date] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; }
.field input[type=date] { height: 52px; }
.addr-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.addr-row button { padding: 0 16px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.field input[readonly] { background: #faf6ee; }
.same { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 4px; }
.same input { width: 18px; height: 18px; accent-color: var(--red); }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pays label { position: relative; }
.pays input { position: absolute; opacity: 0; }
.pays span { display: block; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; cursor: pointer; }
.pays span small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; }
.pays input:checked + span { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.pays input:disabled + span { opacity: .45; cursor: not-allowed; }
.sum { padding: 16px; background: #fbf7ef; border-radius: 12px; display: grid; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; }
.sum .dc { color: var(--red); }
.sum .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 18px; font-weight: 800; }
.bankbox { padding: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; display: grid; gap: 6px; margin-top: 20px; }
.bankbox div { display: flex; justify-content: space-between; gap: 12px; }
.bankbox span { color: var(--sub); }
