/* MARU Store — POST body 복원 테스트용 데모 사이트 공통 스타일 */
:root {
  --c-bg: #f7f7f9;
  --c-surface: #ffffff;
  --c-text: #1f2430;
  --c-muted: #6b7280;
  --c-primary: #2f54eb;
  --c-primary-dark: #1d39c4;
  --c-border: #e5e7eb;
  --c-ok: #16a34a;
  --c-warn: #d97706;
  --c-err: #dc2626;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.brand span { color: var(--c-primary); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--c-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a.active { color: var(--c-text); border-bottom-color: var(--c-primary); }
.nav-links a:hover { color: var(--c-text); text-decoration: none; }

/* ---- Layout ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 36px 20px 80px; }
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f7f7f9 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 56px 40px;
  margin-bottom: 36px;
}
.hero h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--c-muted); font-size: 17px; margin: 0 0 24px; max-width: 560px; }

.section-title { font-size: 22px; margin: 0 0 18px; }

/* ---- Product grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .thumb { aspect-ratio: 4 / 3; background: #eef0f5; display: grid; place-items: center; font-size: 40px; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card .name { font-weight: 600; }
.card .price { color: var(--c-primary); font-weight: 700; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--c-primary-dark); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---- Forms ---- */
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 560px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 96px; }
.row { display: flex; gap: 14px; }
.row .field { flex: 1; }

.notice {
  font-size: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.notice.info { background: #eef2ff; color: var(--c-primary-dark); border: 1px solid #d6dcff; }
.notice.warn { background: #fff7ed; color: var(--c-warn); border: 1px solid #fde6c8; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 14px;
}
.site-footer .inner { max-width: 1080px; margin: 0 auto; padding: 28px 20px; }

/* ---- Debug panel (테스트 추적용, 실제 사이트엔 없는 요소) ---- */
#bm-debug {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  z-index: 9999;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
}
#bm-debug .toggle {
  background: #1f2430;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  box-shadow: var(--shadow);
  float: right;
}
#bm-debug .body {
  display: none;
  background: #11151c;
  color: #d7e0ea;
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
  box-shadow: var(--shadow);
  max-height: 70vh;
  overflow: auto;
  clear: both;
}
#bm-debug.open .body { display: block; }
#bm-debug h4 { margin: 0 0 8px; font-size: 12px; color: #9fb3c8; text-transform: uppercase; letter-spacing: 0.05em; }
#bm-debug .kv { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #1d2530; }
#bm-debug .kv .v { text-align: right; word-break: break-all; }
#bm-debug .yes { color: #4ade80; }
#bm-debug .ok { color: #4ade80; }
#bm-debug .no { color: #f87171; }
#bm-debug .warn { color: #fbbf24; }
#bm-debug pre { background: #0a0d12; border-radius: 6px; padding: 8px; margin: 8px 0 0; white-space: pre-wrap; word-break: break-all; color: #aeb9c5; }
#bm-debug .hint { color: #7b8794; margin-top: 10px; font-size: 11px; line-height: 1.5; }

.result-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.result-box h2 { margin: 0 0 8px; color: var(--c-ok); }
pre.dump { background: #11151c; color: #d7e0ea; border-radius: 8px; padding: 14px; overflow: auto; font-size: 13px; }
