:root{ --fg:#15181d; --muted:#8a8f98; --hairline:#e7e9ec; --accent:#e0621f; --bg:#fff; }
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Pretendard,sans-serif;color:var(--fg);background:var(--bg)}
a{color:inherit;text-decoration:none}

.topnav{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--hairline);position:sticky;top:0;background:var(--bg);z-index:10}
.topnav .brand{font-weight:800;font-size:16px}
.topnav .links{display:flex;gap:18px;font-size:13px;color:var(--muted)}
.topnav .links a:hover{color:var(--fg)}
.cart-badge{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--accent);color:#fff;font-size:10px;font-weight:700;margin-left:4px}

.container{max-width:1100px;margin:0 auto;padding:20px}

.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.product-card{border:1px solid var(--hairline);border-radius:12px;padding:10px;cursor:pointer;transition:box-shadow .15s}
.product-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.08)}
.product-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#f2f3f5}
.product-card .name{font-size:13.5px;margin-top:8px;line-height:1.4}
.product-card .price{font-weight:800;margin-top:4px;font-size:14px}

.empty-state{color:var(--muted);text-align:center;padding:60px 0;font-size:14px}

.btn{display:inline-block;height:44px;padding:0 20px;border-radius:10px;border:0;background:var(--fg);color:#fff;font-weight:700;font-size:14px;cursor:pointer}
.btn.secondary{background:#fff;color:var(--fg);border:1px solid var(--hairline)}
.btn.block{width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed}

label{display:block;font-size:12px;color:var(--muted);margin:14px 0 4px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid var(--hairline);border-radius:8px;font-size:14px;font-family:inherit}

.row{display:flex;gap:10px}
.row > *{flex:1}

.card{border:1px solid var(--hairline);border-radius:12px;padding:16px}
.summary-line{display:flex;justify-content:space-between;font-size:13.5px;padding:6px 0}
.summary-line.total{font-weight:800;font-size:16px;border-top:1px solid var(--hairline);margin-top:6px;padding-top:12px}

.cart-item{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--hairline)}
.cart-item img{width:64px;height:64px;object-fit:cover;border-radius:8px;background:#f2f3f5}
.cart-item .info{flex:1}
.cart-item .opt{font-size:12px;color:var(--muted)}
.qty-control{display:flex;align-items:center;gap:8px}
.qty-control button{width:28px;height:28px;border-radius:6px;border:1px solid var(--hairline);background:#fff;cursor:pointer}
