*{box-sizing:border-box}
body{margin:0;background:#f4f4f4;color:#333;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:14px}
.hidden{display:none!important}
.screen{min-height:100vh;padding:16px}
.login-card{max-width:420px;margin:12vh auto 0;background:#fff;border:1px solid #eee;border-radius:8px;padding:24px}
.login-card h1{font-size:22px;margin:0 0 4px}
.login-card p{color:#777;margin:0 0 18px;font-size:13px}
input,select{width:100%;height:42px;padding:0 12px;border:1px solid #ddd;border-radius:6px;margin-bottom:12px;background:#fff;color:#333}
button{height:42px;padding:0 16px;border:0;border-radius:6px;cursor:pointer}
.primary{background:#e1251b;color:#fff;width:100%}
.ghost{background:#fff;color:#e1251b;border:1px solid #e1251b;width:100%;margin-top:8px}
.icon-btn{background:#fff;color:#333;font-weight:600;border:1px solid #ddd}
.msg{color:#b13a3a;font-size:13px;margin-top:8px}
.suggestions{max-height:240px;overflow:auto;border:1px solid #ddd;border-radius:6px;background:#fff;margin:-6px 0 12px}
.suggestions div{padding:10px 12px;border-bottom:1px solid #f0f1ed;cursor:pointer}
.suggestions div:hover{background:#f0f6f0}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #eee;border-radius:8px;padding:12px 14px}
.store{font-size:17px;font-weight:600}
.meta{color:#777;font-size:12px;margin-top:2px}
.search-row{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.search-row input{flex:1;margin:0}
.search-row select{flex:1;min-width:120px;margin:0}
.products{display:grid;grid-template-columns:1fr;gap:10px;padding-bottom:72px}
.card{background:#fff;border:1px solid #eee;border-radius:8px;padding:14px}
.card .title{font-size:16px;font-weight:600}
.card .generic{display:inline-block;background:#fff0f0;color:#e1251b;font-size:13px;font-weight:600;margin-top:5px;padding:2px 8px;border-radius:4px}
.card .sub{color:#666;font-size:12px;margin:3px 0 8px}
.card .row{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.price{color:#e1251b;font-weight:700;font-size:20px}
.policy{background:#fff0f0;color:#e1251b;border-radius:4px;padding:4px 8px;font-size:12px;margin-top:8px}
.card .qty{display:flex;align-items:center;gap:8px}
.card .qty-input{width:74px;height:40px;margin:0;padding:0 8px;text-align:center}
.cart-drawer{position:fixed;right:0;top:0;bottom:0;width:100%;max-width:420px;background:#fff;border-left:1px solid #eee;display:flex;flex-direction:column;z-index:20}
.drawer-head,.panel-head{display:flex;justify-content:space-between;align-items:center;padding:14px;border-bottom:1px solid #eee;font-weight:600}
.drawer-head button,.panel-head button{height:34px;background:#eef0ec}
.cart-items{flex:1;overflow:auto;padding:12px}
.cart-item{border-bottom:1px solid #eee;padding:10px 0}
.cart-item .top{display:flex;justify-content:space-between;gap:8px}
.cart-item .name{font-weight:600}
.cart-item .ops{display:flex;align-items:center;gap:8px;margin-top:8px}
.cart-item .ops button{width:30px;height:30px;padding:0}
.drawer-foot{padding:14px;border-top:1px solid #eee}
.total{font-size:20px;font-weight:700;margin-bottom:10px}
.order{border:1px solid #eee;border-radius:8px;background:#fff;padding:14px;margin-bottom:10px}
.order .row{display:flex;justify-content:space-between;margin-top:4px}
.muted{color:#777;font-size:12px}
@media(min-width:720px){.products{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1080px){.products{grid-template-columns:repeat(3,1fr)}}
