:root{--shop:#e54264;--ink:#243446;--soft:#f7f8fa}
button:disabled{opacity:.45;cursor:not-allowed}
.shop-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:14px 16px;background:#fff;border-bottom:1px solid #e5e7eb;align-items:center}
.shop-btn{border:1px solid #dbe0e6;background:white;border-radius:10px;padding:9px 14px;font-weight:700;cursor:pointer;min-height:40px;font-size:13px;transition:all .15s}
.shop-btn:hover:not(:disabled){border-color:#94a3b8;background:#f8fafc}
.shop-btn.primary{background:var(--shop);color:white;border-color:var(--shop)}
.shop-btn.primary:hover:not(:disabled){filter:brightness(.95);background:var(--shop)}
.shop-btn.dark{background:var(--ink);color:white;border-color:var(--ink)}
.shop-modal{position:fixed;inset:0;background:#152132aa;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px}
.shop-panel{background:#fff;width:min(880px,100%);max-height:94dvh;overflow:auto;border-radius:20px;padding:24px;box-shadow:0 20px 80px #0004}
.shop-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #eee;padding-bottom:14px;margin-bottom:16px;position:sticky;top:-24px;background:#fff;z-index:10;padding-top:4px}
.shop-head h2{font-size:20px;font-weight:800;color:var(--ink)}
.shop-form label{display:block;font-size:13px;font-weight:700;margin:12px 0 5px;color:#334155}
.shop-form input,.shop-form select,.shop-form textarea{border:1px solid #ccd4dd;border-radius:9px;padding:10px 12px;width:100%;background:white;min-width:0;font-size:14px}
.shop-form input:focus,.shop-form select:focus,.shop-form textarea:focus{border-color:var(--shop);outline:none;box-shadow:0 0 0 2px #e5426422}
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.shop-card{background:var(--soft);border:1px solid #e4e8ed;padding:14px 16px;border-radius:12px;margin:10px 0;overflow-wrap:anywhere}
.shop-muted{color:#687587;font-size:12.5px}
.shop-error{color:#b42340;background:#fff0f2;border:1px solid #fecdd3;padding:10px 12px;border-radius:8px;margin:10px 0;font-weight:600;font-size:13px}
.shop-row{display:flex;gap:12px;align-items:center}
.shop-row img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0;flex-shrink:0}
.shop-row .grow{flex:1;min-width:0}
.shop-qty{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.shop-qty input{width:64px;border:1px solid #ccc;padding:7px;text-align:center;border-radius:6px;font-weight:700}
.shop-total{padding:16px;background:#fff2f5;border:1px solid #fecdd3;border-radius:12px;line-height:1.85}
.shop-total strong{font-size:22px;color:var(--shop)}
.shop-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.shop-tag{display:inline-block;padding:3px 8px;border-radius:6px;background:#e8edf2;font-size:12px;margin-right:6px}
.shop-success{background:#dcfce7;color:#166534}
.shop-note{white-space:pre-wrap;overflow-wrap:anywhere}
.shop-toolbar .grow{flex:1}
.shop-footer{position:sticky;bottom:-24px;background:white;padding:14px 0;margin-top:16px;border-top:1px solid #eee;z-index:10}
.shop-panel:focus{outline:none}
#shop-live{padding:4px 16px;color:#b42340;font-size:13px;font-weight:700}
.shop-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.shop-product{border:1px solid #e1e5e9;background:white;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.shop-product:hover{box-shadow:0 8px 24px rgba(0,0,0,0.06)}
.shop-product-body{padding:14px;display:flex;flex:1;flex-direction:column;gap:8px}
.shop-product-body h3{font-weight:700;font-size:15px;line-height:1.4}
.shop-product-body select{width:100%;padding:8px;border:1px solid #ddd;border-radius:8px;font-size:13px}
.shop-price{font-size:22px;color:var(--shop);font-weight:800;margin-top:auto}
@media(max-width:600px){
 .shop-modal{padding:0;align-items:stretch}
 .shop-panel{border-radius:0;max-height:100dvh;padding:16px}
 .shop-grid{grid-template-columns:1fr}
 .shop-head{top:-16px}
 .shop-head h2{font-size:18px}
 .shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .shop-product-body{padding:10px}
 .shop-row{flex-wrap:wrap}
 .shop-qty{margin-left:auto}
 .shop-footer{bottom:-16px}
 .shop-btn{padding:8px 10px;font-size:12.5px}
}
@media print{.shop-modal,.shop-toolbar,#shop-live{display:none!important}}
