.app{min-height:100vh;padding-bottom:5rem}.header{background:linear-gradient(135deg, var(--surface) 0%, #1e2740 100%);border-bottom:1px solid var(--border);padding:1.5rem 1.25rem 1.25rem}.header-content h1{margin:0;font-size:1.75rem;font-weight:700}.subtitle{color:var(--text-muted);margin:.25rem 0 0;font-size:.9rem}.stats{gap:1rem;margin-top:1.25rem;display:flex}.stat{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);text-align:center;flex:1;padding:.75rem 1rem}.stat-value{color:var(--primary);font-size:1.5rem;font-weight:700;display:block}.stat-label{color:var(--text-muted);font-size:.75rem}.main{max-width:960px;margin:0 auto;padding:1.25rem}.section{margin-bottom:2rem}.section-header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.section-header h2{margin:0;font-size:1.15rem;font-weight:600}.count-label{color:var(--text-muted);font-size:.85rem}.loading{text-align:center;color:var(--text-muted);padding:3rem}.categories-tree{flex-direction:column;gap:.75rem;display:flex}.category-group{flex-direction:column;gap:.5rem;display:flex}.subcategories{border-right:2px solid var(--border);flex-direction:column;gap:.5rem;margin-right:.5rem;padding-right:1.25rem;display:flex}.category-card-wrap{align-items:stretch;gap:.35rem;display:flex}.category-card-wrap.sub .category-card{font-size:.9rem}.category-card{background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);text-align:right;flex-direction:column;flex:1;align-items:flex-start;gap:.35rem;padding:.85rem 1rem;transition:border-color .15s,background .15s;display:flex}.category-actions{flex-direction:column;flex-shrink:0;gap:.25rem;display:flex}.action-btn{background:var(--surface);border:1px solid var(--border);border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:.85rem;transition:background .15s,border-color .15s;display:flex}.action-btn:hover{background:var(--surface-hover);border-color:var(--primary)}.action-btn.danger:hover{border-color:var(--danger);color:var(--danger)}.category-card:hover{background:var(--surface-hover);border-color:var(--primary)}.category-card.selected{border-color:var(--primary);background:#4f8cff1a}.category-name{font-size:.95rem;font-weight:600}.category-count{color:var(--text-muted);font-size:.8rem}.products-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);gap:1rem;padding:1rem;transition:border-color .15s;display:flex}.product-card:hover{border-color:var(--primary)}.product-image{background:var(--bg);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:72px;height:72px;display:flex;overflow:hidden}.product-image img{object-fit:cover;width:100%;height:100%}.no-image{opacity:.5;font-size:1.75rem}.product-info{flex:1;min-width:0}.product-info h3{word-break:break-word;margin:0 0 .35rem;font-size:1rem;font-weight:600}.product-meta{flex-wrap:wrap;align-items:center;gap:.5rem;margin:0;font-size:.8rem;display:flex}.badge{color:var(--primary);background:#4f8cff26;border-radius:999px;padding:.15rem .5rem;font-size:.75rem}.quantity{color:var(--accent);font-weight:500}.product-notes{color:var(--text-muted);margin:.5rem 0 0;font-size:.85rem;line-height:1.4}.qty-control{background:var(--bg);border:1px solid var(--border);border-radius:10px;align-items:center;gap:0;margin-top:.65rem;display:inline-flex;overflow:hidden}.qty-btn{width:36px;height:36px;color:var(--text-muted);justify-content:center;align-items:center;font-size:1.25rem;font-weight:600;transition:background .15s;display:flex}.qty-btn:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.qty-btn.plus:hover:not(:disabled){color:var(--accent)}.qty-btn:disabled{opacity:.3;cursor:not-allowed}.qty-value{text-align:center;min-width:2.5rem;color:var(--accent);border-inline:1px solid var(--border);padding:.35rem .5rem;font-size:1.1rem;font-weight:700}.product-actions{flex-wrap:wrap;gap:.4rem;margin-top:.65rem;display:flex}.btn-sm{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:.3rem .6rem;font-size:.75rem;transition:background .15s,border-color .15s}.btn-sm:hover{background:var(--surface-hover);border-color:var(--primary)}.btn-sm.warning:hover{background:#fbbf241a;border-color:#fbbf24}.btn-sm.danger{color:var(--danger);border-color:#f871714d}.btn-sm.danger:hover{border-color:var(--danger);background:#f871711a}.out-stat{color:var(--text-muted)!important}.view-tabs{background:var(--bg);border:1px solid var(--border);border-radius:10px;gap:.35rem;padding:.25rem;display:flex}.tab{color:var(--text-muted);border-radius:8px;padding:.45rem .85rem;font-size:.85rem;font-weight:500;transition:background .15s,color .15s}.tab:hover{color:var(--text)}.tab.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0003}.section-subheader{justify-content:space-between;align-items:center;gap:.5rem;margin:1rem 0;display:flex}.section-subheader h2{margin:0;font-size:1.05rem;font-weight:600}.empty-state{text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);color:var(--text-muted);padding:2.5rem 1rem}.empty-state p{margin:0 0 1rem}.empty-hint{color:var(--text-muted);text-align:center;margin:0}.btn{border-radius:8px;justify-content:center;align-items:center;padding:.65rem 1.25rem;font-weight:500;transition:background .15s,opacity .15s;display:inline-flex}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover:not(:disabled){background:var(--primary-hover)}.btn.primary:disabled{opacity:.6;cursor:not-allowed}.btn.text{color:var(--primary);padding:.35rem .75rem;font-size:.85rem}.btn.text:hover{background:#4f8cff1a;border-radius:6px}.menu-wrap{z-index:100;position:fixed;bottom:1.5rem;left:1.5rem}.fab{background:var(--primary);color:#fff;width:52px;height:52px;box-shadow:var(--shadow);border-radius:50%;justify-content:center;align-items:center;font-size:1.5rem;transition:transform .2s,background .15s;display:flex}.fab:hover{background:var(--primary-hover);transform:scale(1.05)}.fab.open{background:var(--surface-hover);border:1px solid var(--border)}.fab-icon{line-height:1}.menu-dropdown{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:180px;box-shadow:var(--shadow);animation:.15s slideUp;position:absolute;bottom:calc(100% + .75rem);left:0;overflow:hidden}@keyframes slideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.menu-item{text-align:right;align-items:center;gap:.65rem;width:100%;padding:.85rem 1rem;transition:background .15s;display:flex}.menu-item:hover{background:var(--surface-hover)}.menu-item+.menu-item{border-top:1px solid var(--border)}.menu-icon{font-size:1.1rem}.modal-overlay{z-index:200;background:#000000a6;justify-content:center;align-items:flex-end;padding:0;animation:.15s fadeIn;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius) var(--radius) 0 0;width:100%;max-width:480px;max-height:90vh;animation:.2s slideModal;overflow-y:auto}@keyframes slideModal{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex;position:sticky;top:0}.modal-header h2{margin:0;font-size:1.1rem}.icon-btn{width:32px;height:32px;color:var(--text-muted);border-radius:8px;justify-content:center;align-items:center;transition:background .15s;display:flex}.icon-btn:hover{background:var(--surface-hover);color:var(--text)}.modal-body{padding:1.25rem}.form{flex-direction:column;gap:1rem;display:flex}.field{flex-direction:column;gap:.35rem;display:flex}.field span{color:var(--text-muted);font-size:.85rem;font-weight:500}.image-preview{object-fit:cover;border:1px solid var(--border);border-radius:8px;width:80px;height:80px;margin-top:.5rem}.error{color:var(--danger);margin:0;font-size:.85rem}.field-hint{color:var(--text-muted);margin:0;font-size:.85rem}.confirm-modal{max-width:360px}.confirm-title{margin:0 0 .5rem;font-size:1.1rem}.confirm-message{color:var(--text-muted);margin:0 0 1.25rem;line-height:1.5}.confirm-actions{justify-content:flex-end;gap:.5rem;display:flex}.confirm-actions .btn{border:1px solid var(--border);border-radius:8px;padding:.55rem 1rem}.confirm-actions .btn.danger{background:var(--danger);color:#fff;border-color:var(--danger)}.confirm-actions .btn.danger:hover{opacity:.9}@media (width>=640px){.header{padding:2rem 2rem 1.5rem}.header-content h1{font-size:2rem}.main{padding:1.5rem 2rem}.modal-overlay{align-items:center;padding:1rem}.modal{border-radius:var(--radius);max-height:85vh}.fab{width:56px;height:56px}.menu-wrap{bottom:2rem;left:2rem}}@media (width>=960px){.stats{max-width:400px}}:root{--bg:#0f1219;--surface:#1a1f2e;--surface-hover:#242b3d;--border:#2d3548;--text:#e8eaed;--text-muted:#9aa0b0;--primary:#4f8cff;--primary-hover:#3d7aef;--accent:#34d399;--danger:#f87171;--radius:12px;--shadow:0 4px 24px #0006;color:var(--text);background-color:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:Segoe UI,system-ui,-apple-system,sans-serif;font-weight:400;line-height:1.5}*,:before,:after{box-sizing:border-box}body{min-height:100vh;margin:0}#root{min-height:100vh}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none}input,select,textarea{background:var(--bg);border:1px solid var(--border);border-radius:8px;width:100%;padding:.65rem .85rem;transition:border-color .15s}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:none}textarea{resize:vertical;min-height:80px}
