:root {
  --accent: #ef6c2d;
  --accent-dark: #d85a1e;
  --brand-green: #1a9e4b;
  --ink: #1c1917;
  --ink-soft: #78716c;
  --line: #f0ecea;
  --bg: #fff;
  --bg-soft: #faf8f7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: #f5f3f1;
  line-height: 1.5;
}
.app {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100dvh;
  position: relative;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  position: sticky; top: 0; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); z-index: 20;
}
.brand { font-weight: 800; font-size: 17px; letter-spacing: -0.2px; text-decoration: none; color: var(--ink); }
.brand em { color: var(--accent); font-style: normal; }

img { display: block; max-width: 100%; }
.hero-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.hero-strip img { width: 100%; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; object-fit: cover; }

.pad { padding: 20px; }
h1.title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.subtitle { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.price { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.price small { font-size: 15px; font-weight: 600; }
.badge {
  background: #fff1e8; color: var(--accent-dark);
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
}
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; gap: 12px; padding: 14px 20px; align-items: flex-start; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item .ico { font-size: 20px; line-height: 1.3; }
.trust-item b { display: block; font-size: 14.5px; }
.trust-item span { font-size: 13px; color: var(--ink-soft); }

.detail-wrap { position: relative; max-height: 1200px; overflow: hidden; }
.detail-wrap.open { max-height: none; }
.detail-wrap img { width: 100%; }
.detail-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(transparent, #fff 75%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px;
}
.detail-wrap.open .detail-fade { display: none; }
.btn-more {
  background: #fff; border: 1px solid #ddd6d2; border-radius: 24px;
  padding: 10px 24px; font-size: 14px; font-weight: 700; color: var(--ink);
}
.section { padding: 24px 20px; border-top: 8px solid var(--bg-soft); }
.section h2 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.section p, .section li { font-size: 13.5px; color: var(--ink-soft); }
.section ul { padding-left: 18px; display: grid; gap: 6px; }

footer { padding: 24px 20px 120px; background: var(--bg-soft); font-size: 12px; color: #a8a29e; }
footer b { color: #78716c; }
footer a { color: #78716c; }
footer p { margin-top: 4px; }

.cta-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); z-index: 30;
}
.btn-primary {
  width: 100%; border: 0; border-radius: 14px; padding: 16px;
  background: var(--accent); color: #fff; font-size: 16.5px; font-weight: 800;
  cursor: pointer; letter-spacing: -0.2px;
}
.btn-primary:active { background: var(--accent-dark); }
.btn-primary:disabled { background: #d6d3d1; }

/* 옵션 선택 바텀시트 */
.sheet-dim {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 100%);
  width: 100%; max-width: 520px; background: #fff; z-index: 41;
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  transition: transform .25s ease;
}
body.sheet-open .sheet-dim { opacity: 1; pointer-events: auto; }
body.sheet-open .sheet { transform: translate(-50%, 0); }
.sheet h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.opt {
  display: flex; justify-content: space-between; align-items: center;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 8px;
  cursor: pointer; font-size: 14.5px;
}
.opt.sel { border-color: var(--accent); background: #fff8f4; }
.opt b { font-weight: 700; }
.opt .p { font-weight: 800; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.qty-row span { font-size: 14px; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.stepper b { width: 36px; text-align: center; font-size: 15px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.total-row b { font-size: 20px; font-weight: 800; }

/* 주문서 */
.card { background: var(--bg-soft); border-radius: 14px; padding: 16px; font-size: 14px; }
.card b { font-size: 15px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font-size: 15px; font-family: inherit; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.addr-row { display: flex; gap: 8px; }
.btn-ghost {
  border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 0 14px; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
.notice {
  background: #fff8f0; border: 1px solid #fde4c8; border-radius: 12px;
  padding: 14px; font-size: 13px; color: #9a5b16; margin-top: 16px;
}
.center { text-align: center; }
.result-ico { font-size: 52px; margin: 48px 0 12px; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* 문서 페이지 */
.doc { padding: 20px; font-size: 14px; }
.doc h1 { font-size: 20px; margin-bottom: 16px; }
.doc h2 { font-size: 15px; margin: 20px 0 8px; }
.doc p, .doc li { color: #44403c; font-size: 13.5px; margin-bottom: 6px; }
.doc ul { padding-left: 18px; }
