:root{--bg:#0f1115;--card:#1a1d24;--line:#2a2e38;--text:#f2f3f5;--muted:#9aa0ab;--acc:#ffcc33;--acc-text:#1a1400;--ok:#3ecf8e;--err:#ff6b6b}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;padding-bottom:84px}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}
.top{position:sticky;top:0;z-index:5;background:rgba(15,17,21,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding:12px 0}
h1{margin:0;font-size:22px;letter-spacing:.3px}
h1::after{content:" ✨"}
.sub{margin:2px 0 10px;color:var(--muted);font-size:14px}
#q{width:100%;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--text);font-size:16px}
.status{color:var(--muted);text-align:center;margin:28px 0}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin-top:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.card img{width:100%;aspect-ratio:1/1;object-fit:cover;background:#000;display:block}
.info{padding:10px;display:flex;flex-direction:column;gap:6px;flex:1}
.name{font-size:14px;line-height:1.3;flex:1}
.price{font-weight:700;font-size:17px}
.price small{font-weight:400;color:var(--muted);font-size:12px}
.add{border:0;border-radius:10px;background:var(--acc);color:var(--acc-text);font-weight:700;padding:10px;font-size:15px;cursor:pointer}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:#252a33;color:var(--text);font-size:20px;cursor:pointer;flex:none}
.qty input{flex:1;min-width:0;height:38px;text-align:center;border-radius:10px;border:1px solid var(--acc);background:var(--bg);color:var(--text);font-size:16px;font-weight:700}
.bar{position:fixed;left:16px;right:16px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:6;max-width:600px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:10px;border:0;border-radius:14px;background:var(--acc);color:var(--acc-text);font-size:16px;font-weight:700;padding:15px 18px;box-shadow:0 8px 24px rgba(0,0,0,.45);cursor:pointer}
.cart{position:fixed;inset:0;z-index:10;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;justify-content:center}
.cart[hidden],.bar[hidden]{display:none}
.sheet{background:var(--card);width:100%;max-width:600px;max-height:92vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom))}
.sheetHead{display:flex;justify-content:space-between;align-items:center}
.sheetHead h2{margin:0;font-size:20px}
.x{background:none;border:0;color:var(--muted);font-size:22px;cursor:pointer;padding:6px}
.line{display:grid;grid-template-columns:48px 1fr auto;gap:8px 10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.line img{width:48px;height:48px;border-radius:8px;object-fit:cover}
.line .n{font-size:14px}
.line .s{font-size:13px;color:var(--muted)}
.line .qty{grid-column:2/4}
.line .rm{background:none;border:0;color:var(--err);font-size:13px;cursor:pointer;padding:4px}
.total{font-size:18px;text-align:right;margin:14px 0}
form label{display:block;font-size:14px;color:var(--muted);margin-bottom:10px}
form input,form textarea{display:block;width:100%;margin-top:4px;padding:11px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--text);font:inherit;font-size:16px}
.hp{position:absolute!important;left:-9999px;width:1px;height:1px}
.send{width:100%;border:0;border-radius:12px;background:var(--acc);color:var(--acc-text);font-weight:700;font-size:17px;padding:14px;cursor:pointer;margin-top:4px}
.send:disabled{opacity:.6}
.note{font-size:12px;color:var(--muted);text-align:center;margin:10px 0 0}
.msg{text-align:center;font-weight:600;margin:10px 0 0;min-height:1em}
.msg.ok{color:var(--ok)}.msg.err{color:var(--err)}
@media (min-width:700px){.grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}.cart{align-items:center}.sheet{border-radius:18px}}
