:root { --bg:#fffaf5; --ink:#2b2420; --sub:#8a7d74; --accent:#e0703a; --card:#fff; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif; background:var(--bg); color:var(--ink); padding:0 16px 96px; }
header { text-align:center; padding:28px 0 12px; }
h1 { margin:0; font-size:26px; }
header p { margin:6px 0 0; color:var(--sub); font-size:14px; }
main { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; max-width:900px; margin:0 auto; }
.card { background:var(--card); border-radius:14px; overflow:hidden; box-shadow:0 1px 4px #0001; }
.card img { width:100%; aspect-ratio:1; object-fit:cover; display:block; background:#eee; }
.card h2 { font-size:15px; margin:8px 10px 2px; }
.card p { margin:0 10px; font-size:14px; }
.price { font-weight:700; }
.qty { color:var(--accent); padding-bottom:10px; }
.out { opacity:.45; } .out .qty { color:var(--sub); }
.empty { grid-column:1/-1; text-align:center; color:var(--sub); }
.dm { position:fixed; left:16px; right:16px; bottom:16px; max-width:500px; margin:0 auto; text-align:center; background:var(--accent); color:#fff; text-decoration:none; font-weight:700; padding:15px; border-radius:999px; }
/* 관리 화면 */
form, .row { background:var(--card); border-radius:14px; padding:12px; margin:0 auto 12px; max-width:500px; box-shadow:0 1px 4px #0001; }
form input, form textarea, form button { width:100%; font-size:16px; padding:12px; margin:4px 0; border:1px solid #ddd; border-radius:10px; }
button { font-size:16px; border:0; border-radius:10px; padding:10px 14px; background:#f1e9e2; color:var(--ink); }
button.main { background:var(--accent); color:#fff; font-weight:700; }
.row { display:flex; align-items:center; gap:8px; }
.row img { width:56px; height:56px; object-fit:cover; border-radius:8px; }
.row .nm { flex:1; font-size:14px; }
.row b { min-width:28px; text-align:center; }
/* 번호·선택·크게보기 */
.card { position:relative; }
.card img, .card h2 { cursor:pointer; }
.no { position:absolute; top:8px; left:8px; background:#000a; color:#fff; font-size:12px; font-weight:700; padding:3px 8px; border-radius:999px; }
.pick { position:absolute; top:6px; right:6px; background:#fffe; font-size:13px; padding:4px 8px; border-radius:999px; display:flex; gap:4px; align-items:center; }
.pick input { width:18px; height:18px; margin:0; accent-color:var(--accent); }
.dm { border:0; font-size:16px; cursor:pointer; }
dialog { border:0; border-radius:16px; padding:0 0 12px; width:min(92vw,460px); }
dialog::backdrop { background:#0008; }
dialog img { width:100%; display:block; }
dialog h2 { font-size:18px; margin:12px 14px 4px; }
dialog p { margin:0 14px 8px; }
dialog .memo { white-space:pre-line; color:var(--sub); font-size:14px; }
dialog button { display:block; width:calc(100% - 28px); margin:8px 14px 0; }
.pics { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
.pics img { flex:0 0 100%; scroll-snap-align:start; aspect-ratio:1; object-fit:cover; }
form small { color:var(--sub); font-size:12px; }
.no2 { color:var(--accent); }
