:root{
  --bg:#f5f8fd; --card:#ffffff; --ink:#14213d; --muted:#6e788c; --line:#e3e8f1;
  --red:#e83434; --red-soft:#fdecec; --toss:#3182f6; --cp:#e53935; --chip:#eef2f8;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans KR",system-ui,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;line-height:1.5}
a{color:inherit}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
.muted{color:var(--muted);font-size:13px}

.top{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;justify-content:space-between;height:60px;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.logo{width:36px;height:36px;border-radius:10px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:900;font-size:14px}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text b{font-size:17px}
.brand-text small{font-size:11px;color:var(--muted)}
.top-links{display:flex;gap:8px}
.top-links a{font-size:13px;text-decoration:none;padding:7px 10px;border-radius:999px;background:var(--chip);white-space:nowrap}

.hero{padding:28px 16px 8px}
.hero h1{font-size:28px;line-height:1.25;margin:0 0 10px;font-weight:900}
.hero h1 em{font-style:normal;color:var(--red)}
.hero p{margin:0;color:var(--muted);font-size:14px;max-width:620px}

.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:28px 0 12px}
.sec-head h2{margin:0;font-size:20px;font-weight:900}

.controls{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.controls input,.controls select{font:inherit;font-size:15px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);width:100%}
.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:13px;padding:7px 12px;border-radius:999px;cursor:pointer}
.chip[aria-selected="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:720px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.hero h1{font-size:36px}.controls{flex-direction:row;flex-wrap:wrap;align-items:center}.controls input{flex:1 1 320px;width:auto}.row{flex:0 0 340px}.chips{flex:1 1 100%}}
@media(min-width:1000px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.thumb{position:relative;aspect-ratio:1/1;background:#eef2f7}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .off{position:absolute;left:8px;top:8px;background:var(--red);color:#fff;font-weight:900;font-size:14px;padding:3px 8px;border-radius:8px}
.thumb .pick{position:absolute;right:8px;top:8px;background:var(--ink);color:#fff;font-size:11px;font-weight:700;padding:3px 7px;border-radius:8px}
.body{padding:10px 11px 12px;display:flex;flex-direction:column;gap:4px;flex:1}
.meta{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--muted)}
.src{font-weight:700}
.src.toss{color:var(--toss)} .src.cp{color:var(--cp)}
.title{font-size:13.5px;font-weight:500;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;word-break:keep-all;overflow-wrap:anywhere}
.price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.price .pct{color:var(--red);font-weight:900;font-size:16px}
.price b{font-size:17px;font-weight:900}
.price s{color:var(--muted);font-size:12px}
.unit{font-size:12px;color:var(--ink);background:var(--chip);border-radius:6px;padding:2px 6px;align-self:flex-start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.note{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rating{font-size:12px;color:var(--ink)}
.rating i{font-style:normal;color:#f5a524}
.cta{margin-top:auto;display:block;text-align:center;text-decoration:none;background:var(--ink);color:#fff;font-weight:700;font-size:13px;padding:9px 0;border-radius:10px}
.checked{font-size:11px;color:var(--muted)}

.more{display:block;margin:18px auto 0;font:inherit;font-weight:700;border:1px solid var(--line);background:#fff;color:var(--ink);padding:12px 28px;border-radius:999px;cursor:pointer}
.empty{text-align:center;color:var(--muted);padding:30px 0}

.foot{margin-top:40px;border-top:1px solid var(--line);background:#fff;padding:22px 0 30px;font-size:12.5px;color:var(--ink)}
.foot p{margin:0 0 10px}
.foot b{margin-right:6px}
.thumb:not(:has(img))::after{content:"이미지 준비 중";position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px}
