:root{--primary: #32373c;--primary-light: #4a5058;--primary-dark: #1e2226;--accent: #3d5b58;--accent-light: rgba(61, 91, 88, .25);--danger: #ef4444;--success: #22c55e;--warning: #f59e0b;--bg-dark: #32373c;--bg-main: #f5f7fb;--bg-white: #ffffff;--text-primary: #333333;--text-secondary: #666666;--text-muted: #999999;--text-label: #4e4e4e;--border-color: #e2e2e2;--border-light: #eeeeee;--sidebar-width: 200px;--header-height: 64px;--radius-sm: 8px;--radius-md: 10px;--radius-lg: 16px;--shadow-card: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);--shadow-lg: 0 25px 50px rgba(0, 0, 0, .25)}*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;font-family:Inter,Arial,sans-serif;font-size:14px;color:var(--text-primary);background-color:var(--bg-main);-webkit-font-smoothing:antialiased}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 24px;border:none;border-radius:var(--radius-md);font-size:14px;font-weight:500;transition:all .2s ease}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 10px 15px var(--accent-light),0 4px 6px var(--accent-light)}.btn-primary:hover{background:#2e4744}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:#d63636}.btn-outline{background:transparent;border:1px solid var(--border-color);color:var(--text-secondary)}.btn-outline:hover{background:var(--bg-main)}.btn-icon{padding:8px;background:transparent;border:none;border-radius:var(--radius-sm);color:var(--text-muted)}.btn-icon:hover{background:var(--bg-main);color:var(--text-primary)}.card{background:var(--bg-white);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:24px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;color:var(--text-label);line-height:20px}.form-group input,.form-group select,.form-group textarea{padding:12px 16px;border:1px solid var(--border-color);border-radius:var(--radius-md);font-size:16px;outline:none;transition:border-color .2s}.form-group input::placeholder,.form-group select::placeholder,.form-group textarea::placeholder{color:#0a0a0a80}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}table{width:100%;border-collapse:collapse}table th{text-align:left;padding:12px 16px;font-size:12px;font-weight:600;text-transform:uppercase;color:var(--text-muted);border-bottom:2px solid var(--border-light)}table th:last-child{text-align:center}table td{padding:12px 16px;border-bottom:1px solid var(--border-light);font-size:14px;color:var(--text-secondary)}table td:last-child{text-align:center}table tr:hover td{background:var(--bg-main)}.table-actions{display:flex;gap:4px;justify-content:center}.badge{display:inline-flex;align-items:center;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500}.badge-success{background:#dcfce7;color:#166534}.badge-danger{background:#fee2e2;color:#991b1b}.badge-warning{background:#fef3c7;color:#92400e}.badge-info{background:#e0f2fe;color:#1a6fa8}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{width:90vw;max-width:480px;max-height:90vh;overflow-y:auto;padding:0}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border-light)}.modal-header h2{font-size:18px;font-weight:600;color:var(--text-primary);margin:0}.modal-body{padding:24px;display:flex;flex-direction:column;gap:16px}.modal-footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:16px 24px;border-top:1px solid var(--border-light)}.modal-footer .modal-actions{display:flex;gap:8px}.confirm-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1001}.confirm-dialog{position:relative;background:var(--bg-white);border-radius:var(--radius-lg);padding:32px;max-width:400px;width:90%;text-align:center;box-shadow:0 20px 60px #0000004d}.confirm-close-btn{position:absolute;top:12px;right:12px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;color:var(--text-muted);transition:background .15s,color .15s}.confirm-close-btn:hover{background:#0000000f;color:var(--text-primary)}.confirm-icon{width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}.confirm-icon--danger{background:#fef2f2;color:var(--danger)}.confirm-title{font-size:18px;font-weight:600;color:var(--text-primary);margin:0 0 8px}.confirm-message{font-size:14px;color:var(--text-secondary);margin:0 0 24px;line-height:1.5}.confirm-actions{display:flex;gap:8px;justify-content:center}.lightbox-overlay{position:fixed;inset:0;background:#000000d9;z-index:1100;display:flex;align-items:center;justify-content:center}.lightbox-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border:none;background:#ffffff26;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s;z-index:1}.lightbox-close:hover{background:#ffffff4d}.lightbox-content{position:relative;max-width:90vw;max-height:85vh;display:flex;align-items:center;justify-content:center}.lightbox-image{max-width:100%;max-height:85vh;object-fit:contain;border-radius:var(--radius-md)}.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:none;background:#ffffff26;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}.lightbox-nav:hover{background:#ffffff4d}.lightbox-nav-prev{left:-60px}.lightbox-nav-next{right:-60px}@media(max-width:768px){.lightbox-nav{width:36px;height:36px}.lightbox-nav-prev{left:4px}.lightbox-nav-next{right:4px}}.lightbox-counter{position:absolute;bottom:-32px;left:50%;transform:translate(-50%);color:#ffffffb3;font-size:13px}.preview-modal{max-width:900px;width:90vw;max-height:90vh;display:flex;flex-direction:column}@media(max-width:768px){.preview-modal{max-height:95vh}}.preview-body{flex:1;overflow-y:auto;max-height:calc(90vh - 70px);padding:24px!important}.preview-loading{display:flex;flex-direction:column;align-items:center;padding:64px 24px;color:var(--text-muted);gap:16px}.preview-loading p{font-size:14px}.preview-spinner{width:32px;height:32px;border:3px solid var(--border-light);border-top-color:var(--accent);border-radius:50%;animation:pvspin .8s linear infinite}.preview-spinner-sm{width:20px;height:20px;border-width:2px}.preview-spinner-xs{width:14px;height:14px;border-width:2px}@keyframes pvspin{to{transform:rotate(360deg)}}.preview-section-loading{display:flex;align-items:center;gap:8px;padding:16px 0;color:var(--text-muted);font-size:13px}.preview-subcategory-block{margin-bottom:28px}.preview-subcategory-block:last-child{margin-bottom:0}.preview-subcategory-title{font-size:14px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.preview-subcategory-description{font-size:13px;color:var(--text-muted);margin:0 0 16px;line-height:1.4}.preview-items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.preview-item-card{border:2px solid var(--border-light);border-radius:var(--radius-md);overflow:hidden;cursor:pointer;transition:border-color .2s,box-shadow .2s}.preview-item-card:hover{box-shadow:0 4px 12px #00000014}.preview-item-card.selected{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}.preview-item-image-container{width:100%;height:140px;overflow:hidden;background:var(--bg-main);position:relative}.preview-item-image-container:hover .preview-carousel-btn{opacity:1}.preview-item-image{width:100%;height:100%;object-fit:cover}.preview-item-image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--text-muted);opacity:.4}.preview-carousel-btn{position:absolute;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;border:none;background:#ffffffd9;color:var(--text-primary);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s,background .2s;box-shadow:0 1px 4px #00000026}.preview-carousel-btn:hover{background:#fff}.preview-carousel-btn-prev{left:6px}.preview-carousel-btn-next{right:6px}.preview-carousel-dots{position:absolute;bottom:6px;left:50%;transform:translate(-50%);display:flex;gap:4px}.preview-carousel-dot{width:6px;height:6px;border-radius:50%;background:#ffffff80}.preview-carousel-dot.active{background:#fff}.preview-item-info{padding:10px 12px}.preview-item-name-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.preview-item-name{font-size:13px;font-weight:600;color:var(--text-primary)}.preview-item-price{font-size:12px;font-weight:600;color:var(--accent);white-space:nowrap}.preview-item-description{font-size:11px;color:var(--text-muted);margin-top:4px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.preview-variation-select{margin-top:8px}.preview-variation-select select{width:100%;padding:6px 10px;border:1px solid var(--border-color);border-radius:var(--radius-sm);font-size:12px;color:var(--text-secondary);background:var(--bg-white);outline:none;cursor:pointer}.preview-variation-select select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}.preview-variation-loading{margin-top:8px;display:flex;justify-content:center}.preview-no-items{font-size:13px;color:var(--text-muted);padding:12px 0;font-style:italic}.preview-empty{display:flex;align-items:center;justify-content:center;padding:48px 24px;color:var(--text-muted)}.preview-category-block{margin-bottom:32px;padding-bottom:24px;border-bottom:2px solid var(--border-light)}.preview-category-block:last-child{margin-bottom:0;border-bottom:none;padding-bottom:0}.preview-category-header{display:flex;align-items:center;gap:10px;margin-bottom:20px}.preview-category-icon{font-size:28px;line-height:1}.preview-category-name{font-size:20px;font-weight:600;color:var(--text-primary);margin:0}
