@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap";:root{font-family:DM Sans,Arial,sans-serif;color:#171717;background:#f5f5f5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#111,#252525 58%,#a20e18 150%)}.login-card{width:min(100%,440px);background:#fff;border-radius:20px;padding:38px;box-shadow:0 24px 70px #0004}.brand-mark{width:54px;height:54px;border-radius:14px;background:#d71920;color:#fff;display:grid;place-items:center;font-weight:800;font-size:20px;letter-spacing:-1px;margin-bottom:22px}.brand-mark.small{width:40px;height:40px;border-radius:10px;font-size:15px;margin:0}.login-card h1{font-size:30px;margin:0 0 8px;letter-spacing:-1.3px}.login-card h1 span,.brand span{color:#d71920}.muted{color:#777}.login-card .muted{line-height:1.55;margin:0 0 26px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#d71920;margin:0 0 9px}.stack{display:grid;gap:17px}.stack label,.form-grid label,.stock-editor label{display:grid;gap:7px;font-size:13px;font-weight:700}.stack input,.form-grid input,.form-grid select,.form-grid textarea,.stock-editor input,.category-add input,.filters select{width:100%;border:1px solid #ddd;border-radius:9px;padding:12px;background:#fff;outline:none}.stack input:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#d71920;box-shadow:0 0 0 3px #d7192018}.password-field{position:relative}.password-field input{padding-right:44px}.icon-btn{border:0;background:transparent;padding:7px;color:#555}.password-field .icon-btn{position:absolute;right:5px;top:4px}.primary,.outline,.danger-ghost{border-radius:9px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:13px}.primary{background:#d71920;color:#fff;border:1px solid #d71920}.primary:hover{background:#b91219}.primary:disabled{opacity:.6;cursor:wait}.outline{background:#fff;border:1px solid #ddd;color:#333}.outline:hover{border-color:#aaa}.danger-ghost{border:1px solid #f1d2d3;background:#fff8f8;color:#bd171e}.full{width:100%;padding:14px}.tiny{font-size:11px;color:#999;text-align:center;margin:20px 0 0}.error{color:#b5121b;font-size:13px}.center-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:12px;color:#666}.spinner{width:20px;height:20px;border:2px solid #ddd;border-top-color:#d71920;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{min-height:100vh}.topbar{height:74px;background:#111;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1200px)/2))}.brand{display:flex;align-items:center;gap:11px}.brand strong{font-size:17px}.brand small{display:block;color:#aaa;font-size:9px;letter-spacing:1.3px;margin-top:3px}.top-actions,.heading-actions{display:flex;align-items:center;gap:10px}.topbar .outline{background:#222;border-color:#444;color:#fff}.role{display:flex;align-items:center;gap:6px;color:#ddd;font-size:12px}.content{max-width:1200px;margin:0 auto;padding:38px 24px 70px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.page-heading h2{font-size:34px;letter-spacing:-1.3px;margin:0}.page-heading .muted{margin:7px 0 0;font-size:14px}.filters{display:flex;gap:10px;align-items:center;margin-bottom:18px;flex-wrap:wrap}.searchbox{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e3e3e3;border-radius:9px;padding:0 12px;flex:1;min-width:230px;color:#888}.searchbox input{border:0;outline:0;padding:12px 0;width:100%;background:transparent}.filters select{width:auto;min-width:160px;padding:11px}.results-line{font-size:12px;color:#888;margin:18px 0}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid #e8e8e8;border-radius:14px;overflow:hidden;transition:.18s}.product-card:hover{box-shadow:0 10px 28px #0000000c;transform:translateY(-2px)}.product-photo{height:190px;background:#f1f1f1;position:relative;display:grid;place-items:center}.product-photo img{width:100%;height:100%;object-fit:contain;background:#fff}.photo-placeholder{display:grid;place-items:center;gap:7px;color:#bbb}.photo-placeholder span{font-size:11px}.photo-manage{position:absolute;right:10px;top:10px;background:#fff;border:1px solid #ddd;border-radius:8px;padding:8px}.product-info{padding:17px}.product-ref{font-size:10px;color:#999;font-weight:800;letter-spacing:1px}.product-info h3{font-size:17px;margin:6px 0 4px}.product-info p{font-size:12px;margin:0;min-height:18px}.price{font-size:21px;font-weight:800;margin:15px 0 13px}.stock-total{display:flex;justify-content:space-between;border-top:1px solid #eee;padding:11px 0 8px;font-size:12px}.stock-total strong{color:#16834a}.stock-list{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.stock-list div{background:#f6f6f6;border-radius:6px;padding:7px 5px;text-align:center;display:grid;gap:3px}.stock-list span{font-size:9px;color:#888}.stock-list b{font-size:13px}.card-actions{display:flex;gap:8px;margin-top:14px}.card-actions .outline{flex:1}.empty{text-align:center;padding:65px 20px;color:#999}.empty h3{color:#444;margin-bottom:5px}.empty p{font-size:13px}.notice{padding:12px 14px;border-radius:9px;margin:14px 0;display:flex;justify-content:space-between}.notice.error{background:#fff0f0}.notice button{border:0;background:none;color:inherit}.category-add{display:flex;gap:8px;max-width:520px;margin:12px 0}.category-add input{flex:1}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;z-index:10;display:grid;place-items:center;padding:18px}.modal{background:#fff;border-radius:16px;width:min(100%,760px);max-height:92vh;overflow:auto;padding:25px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head h2{margin:0;font-size:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid .wide{grid-column:1/-1}.form-grid textarea{min-height:75px;resize:vertical}.section-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:1px;margin:24px 0 12px;padding-top:16px;border-top:1px solid #eee}.stock-editor{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stock-editor input{padding:9px}.file-picker{display:grid;gap:7px;border:1px dashed #ccc;border-radius:10px;padding:13px;font-size:13px;font-weight:700}.file-picker input{font-size:12px}.file-picker small{color:#888;font-weight:400}.existing-photos{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.existing-photo{width:112px;border:1px solid #eee;border-radius:9px;overflow:hidden}.existing-photo img{width:100%;height:85px;object-fit:contain;background:#f5f5f5}.photo-controls{display:flex;align-items:center;justify-content:space-around;padding:5px}.tiny-btn{font-size:9px;padding:6px}.modal-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.setup-card code{display:block;background:#f5f5f5;padding:9px;border-radius:6px;margin-top:8px;font-size:12px}@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.topbar{padding:0 15px;height:66px}.brand strong{font-size:14px}.role{display:none}.content{padding:25px 14px 50px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h2{font-size:29px}.heading-actions{width:100%}.heading-actions button{flex:1}.filters{display:grid;grid-template-columns:1fr 1fr}.searchbox{grid-column:1/-1}.filters select{width:100%;min-width:0}.filters button{grid-column:1/-1}.product-grid{grid-template-columns:1fr}.product-photo{height:210px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.stock-editor{grid-template-columns:repeat(2,1fr)}.login-card{padding:28px 22px}.modal{padding:18px}.category-add{flex-direction:column}}
