@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --bg: #EAF0ED;
  --card: #FFFFFF;
  --soft: #F2F4F3;
  --field: #F4F5F5;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --muted: #6B6B6B;
  --line: #EDF0EE;
  --mint: #9EE6CB;
  --mint-ink: #0E2A22;
  --mint-soft: #CDF2E4;
  --mint-deep: #0F7A5C;
  --bar: #3CC49A;
  --warn: #B23A1E;
  --r-card: 20px;
  --r-btn: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Jost', 'Noto Sans KR', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border-radius: var(--r-card); padding: 18px; }
.row { display: flex; align-items: center; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.title { margin: 10px 4px 2px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.section-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 0; }
.section-head h2 { margin: 0; font-size: 16px; font-weight: 500; }
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }

/* buttons */
.btn { height: 54px; border-radius: 16px; border: none; padding: 0 22px; font-size: 15px; font-weight: 500; background: var(--soft); }
.btn-primary { background: var(--mint); color: var(--mint-ink); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 400; background: var(--card); border: none; }
.btn-block { width: 100%; }
.icon-circle { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle.lg { width: 52px; height: 52px; }
.add-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--mint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stepper { display: flex; align-items: center; gap: 2px; height: 40px; border-radius: 999px; background: var(--soft); padding: 0 3px; flex-shrink: 0; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff; font-size: 16px; }
.stepper button.plus { background: var(--mint); color: var(--mint-ink); }
.stepper span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }

/* pills / tabs */
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pill { height: 40px; padding: 0 16px; border-radius: 999px; border: none; background: var(--card); color: var(--ink-2); font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.pill.on { background: var(--mint); color: var(--mint-ink); font-weight: 500; }

/* fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.input { height: 54px; border-radius: 14px; border: none; background: var(--field); padding: 0 16px; font-size: 16px; outline: none; width: 100%; }
.input:focus, textarea.input:focus, select.input:focus { box-shadow: 0 0 0 2px var(--mint); }
textarea.input { height: auto; min-height: 104px; padding: 14px 16px; line-height: 1.6; resize: vertical; font-size: 14px; }
select.input { appearance: auto; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); }
.seg button { flex: 1; height: 42px; border-radius: 10px; border: none; background: transparent; color: var(--muted); font-size: 14px; }
.seg button.on { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 6px 6px 6px 18px; border-radius: 20px; background: var(--card); }
.top .logo { height: 30px; width: auto; display: block; }
.top nav { order: 3; flex: 1 1 100%; display: flex; gap: 4px; overflow-x: auto; margin: 0 0 4px -8px; }
.top nav button { height: 40px; padding: 0 16px; border-radius: 12px; border: none; background: transparent; color: #4A4A4A; font-size: 14px; white-space: nowrap; }
.top nav button.on { background: var(--mint-soft); color: var(--mint-ink); font-weight: 600; }
.cart-btn { position: relative; width: 48px; height: 48px; border-radius: 14px; border: none; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--mint); color: var(--mint-ink); font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.foot { max-width: 1080px; margin: 0 auto; padding: 8px 20px 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* list item */
.item { display: flex; align-items: center; gap: 14px; border-radius: 18px; background: var(--card); padding: 14px 14px 14px 16px; }
.item .name { font-size: 15px; font-weight: 500; word-break: keep-all; }
.item .sub { font-size: 12px; color: var(--muted); }
.price { font-size: 14px; font-weight: 600; }
.tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--soft); color: var(--ink-2); }

/* notices */
.notice-mint { display: flex; align-items: center; gap: 12px; border-radius: 18px; background: var(--mint-soft); padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.notice-mint b { color: var(--ink); font-weight: 600; }
.notice-big { display: flex; gap: 14px; border-radius: 20px; background: var(--mint); color: var(--mint-ink); padding: 18px; font-size: 14px; line-height: 1.6; }
.notice-big .icon-circle { background: #fff; width: 40px; height: 40px; }
.notice-big b { font-size: 15px; font-weight: 600; display: block; }
.notice-big span { color: #24453B; }

/* status */
.steps { display: flex; gap: 4px; }
.steps > div { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.steps i { height: 4px; border-radius: 2px; background: #E6ECE9; }
.steps .done { color: var(--ink); font-weight: 500; }
.steps .done i { background: var(--bar); }
.status { font-size: 13px; font-weight: 500; white-space: nowrap; }
.st-shipping { color: var(--mint-deep); }
.st-shipped, .st-canceled, .st-rejected { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
.err { color: var(--warn); font-size: 13px; }
.empty { border-radius: 20px; background: var(--card); padding: 48px 16px; text-align: center; font-size: 14px; color: var(--muted); }
