.logout-button{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#e74c3c;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;margin-left:auto}.logout-button:hover{background:#c0392b;transform:translateY(-1px)}.logout-button:active{transform:translateY(0)}.logout-button svg{width:16px;height:16px}.universal-search{position:relative;width:100%;max-width:500px;margin:0 auto 20px}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-input{width:100%;padding:10px 40px 10px 16px;border:2px solid #ddd;border-radius:24px;font-size:14px;transition:all .2s}.search-input:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.search-loading{position:absolute;right:40px;font-size:16px}.search-clear{position:absolute;right:10px;background:none;border:none;font-size:24px;color:#7f8c8d;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;line-height:1}.search-clear:hover{color:#2c3e50}.search-results{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 4px 12px #00000026;max-height:400px;overflow-y:auto;z-index:1000;margin-top:4px}.search-section{border-bottom:1px solid #e9ecef}.search-section:last-child{border-bottom:none}.search-section-title{padding:10px 16px;font-size:12px;font-weight:600;text-transform:uppercase;color:#7f8c8d;background:#f8f9fa;letter-spacing:.5px}.search-result-item{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:background-color .2s}.search-result-item:hover{background-color:#f8f9fa}.result-icon{font-size:20px;flex-shrink:0}.result-content{flex:1;min-width:0}.result-name{font-weight:500;color:#2c3e50;font-size:14px;margin-bottom:2px}.result-meta{font-size:12px;color:#7f8c8d}.search-no-results{padding:20px;text-align:center;color:#7f8c8d;font-size:14px}@media (max-width: 768px){.universal-search{max-width:100%;margin-bottom:15px}.search-results{max-height:300px}}.layout{display:flex;min-height:100vh;position:relative}.mobile-menu-toggle{display:none;position:fixed;top:15px;left:15px;z-index:1001;background-color:#2c3e50;border:none;padding:10px;border-radius:4px;cursor:pointer;flex-direction:column;gap:4px}.mobile-menu-toggle span{width:25px;height:3px;background-color:#fff;border-radius:2px;transition:all .3s}.sidebar{width:250px;background-color:#2c3e50;color:#fff;padding:0;position:fixed;height:100vh;overflow-y:auto;z-index:1000;transition:transform .3s ease;display:flex;flex-direction:column}.mobile-close-btn{display:none;background:none;border:none;color:#fff;font-size:28px;cursor:pointer;padding:0;line-height:1}.sidebar-header{padding:20px;background-color:#1a252f;border-bottom:1px solid #34495e;display:flex;justify-content:space-between;align-items:center}.sidebar-logout{padding:15px 20px;border-top:1px solid #34495e;margin-top:auto;background-color:#1a252f}.sidebar-header h1{font-size:20px;font-weight:600;margin:0}.nav-menu{list-style:none;padding:0;margin:0}.nav-menu li{margin:0}.nav-menu a{display:block;padding:12px 20px;color:#ecf0f1;transition:background-color .2s;border-left:3px solid transparent}.nav-menu a:hover{background-color:#34495e}.nav-menu a.active{background-color:#34495e;border-left-color:#3498db;font-weight:500}.nav-section{padding:15px 20px 8px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#95a5a6;font-weight:600}.nav-section-title{display:block}.main-content{flex:1;margin-left:250px;padding:20px;background-color:#f5f5f5;min-height:100vh;width:calc(100% - 250px);box-sizing:border-box}@media (max-width: 768px){.mobile-menu-toggle{display:flex}.sidebar{width:280px;transform:translate(-100%);box-shadow:2px 0 10px #0000001a}.sidebar.mobile-open{transform:translate(0)}.mobile-close-btn{display:block}.main-content{margin-left:0;padding:60px 15px 20px;width:100%}.sidebar-header{padding:15px}.sidebar.mobile-open:before{content:"";position:fixed;top:0;left:280px;right:0;bottom:0;background-color:#00000080;z-index:-1}}@media (max-width: 640px){.sidebar{width:100%}.main-content{padding:60px 10px 15px;width:100%}.nav-section{padding:12px 15px 6px}.nav-menu a{padding:10px 15px;font-size:14px}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-box{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;padding:40px;width:100%;max-width:400px;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:30px}.login-header h1{font-size:28px;color:#2c3e50;margin:0 0 8px;font-weight:700}.login-header p{font-size:14px;color:#7f8c8d;margin:0}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:600;color:#34495e}.form-group input{padding:12px 16px;border:2px solid #e1e8ed;border-radius:8px;font-size:16px;transition:all .2s}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.login-error{background:#fee;color:#c33;padding:12px;border-radius:6px;font-size:14px;text-align:center;border:1px solid #fcc}.login-button{padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:10px}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed}.login-footer{margin-top:30px;text-align:center;padding-top:20px;border-top:1px solid #e1e8ed}.login-footer p{font-size:12px;color:#95a5a6;margin:0}@media (max-width: 480px){.login-box{padding:30px 20px}.login-header h1{font-size:24px}}.dashboard{max-width:1200px}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:15px}.dashboard h1{margin:0;color:#2c3e50}.time-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.time-filter label{font-weight:500;color:#34495e;font-size:14px}.time-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;background:#fff;cursor:pointer}.time-select:focus{outline:none;border-color:#3498db}.time-range-info{font-size:12px;color:#7f8c8d;font-style:italic}.custom-date-range{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}.custom-date-range span{color:#7f8c8d;font-size:14px}.date-input{padding:6px 10px;border:1px solid #ddd;border-radius:4px;font-size:14px}.date-input:focus{outline:none;border-color:#3498db}.time-frame-badge{background:#e3f2fd;border-left:4px solid #2196f3;padding:12px 20px;border-radius:4px;margin-bottom:25px;color:#1565c0;font-size:14px}.time-frame-badge strong{font-weight:600}.dashboard-loading{text-align:center;padding:50px;font-size:18px;color:#7f8c8d}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-bottom:30px}.stat-card{background:#fff;padding:25px;border-radius:8px;box-shadow:0 2px 4px #0000001a;transition:transform .2s,box-shadow .2s}.stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.stat-card h3{font-size:14px;color:#7f8c8d;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}.stat-value{font-size:32px;font-weight:600;color:#2c3e50;margin-bottom:10px}.stat-card.success .stat-value{color:#27ae60}.stat-card.warning .stat-value{color:#f39c12}.stat-card.danger .stat-value{color:#e74c3c}.stat-link{display:inline-block;color:#3498db;font-size:14px;margin-top:5px}.stat-link:hover{text-decoration:underline}.stat-note{display:block;font-size:12px;color:#95a5a6;margin-top:5px}@media (max-width: 768px){.dashboard-header{flex-direction:column;align-items:flex-start}.dashboard h1{font-size:24px;margin-bottom:0}.time-filter{width:100%}.time-select{flex:1;min-width:150px}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px}.stat-card{padding:20px}.stat-value{font-size:28px}}@media (max-width: 480px){.dashboard h1{font-size:20px}.stats-grid{grid-template-columns:1fr;gap:12px}.stat-card{padding:15px}.stat-value{font-size:24px}.stat-card h3{font-size:12px}}.bulk-edit-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#e3f2fd;border:1px solid #90caf9;border-radius:6px;margin-bottom:16px;flex-wrap:wrap;gap:12px}.bulk-edit-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.selected-count{font-weight:600;color:#1976d2;font-size:14px}.btn-link{background:none;border:none;color:#1976d2;cursor:pointer;text-decoration:underline;font-size:13px;padding:0}.btn-link:hover{color:#1565c0}.bulk-edit-actions{display:flex;gap:8px;flex-wrap:wrap}@media (max-width: 768px){.bulk-edit-toolbar{flex-direction:column;align-items:flex-start}.bulk-edit-actions{width:100%}.bulk-edit-actions button{flex:1}}.bulk-edit-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px}.bulk-edit-modal{background:#fff;border-radius:8px;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #0000004d;margin-bottom:40px}.bulk-edit-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e9ecef}.bulk-edit-modal-header h2{margin:0;color:#2c3e50;font-size:20px}.close-button{background:none;border:none;font-size:28px;color:#7f8c8d;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.close-button:hover{background:#f8f9fa;color:#2c3e50}.bulk-edit-form{padding:20px}.bulk-edit-form .form-group{margin-bottom:20px}.bulk-edit-form label{display:block;margin-bottom:8px;font-weight:500;color:#34495e;font-size:14px}.bulk-edit-form select,.bulk-edit-form input{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.bulk-edit-form select:focus,.bulk-edit-form input:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;padding-top:20px;border-top:1px solid #e9ecef}@media (max-width: 768px){.bulk-edit-modal{max-width:100%;margin:10px}.bulk-edit-modal-header,.bulk-edit-form{padding:15px}.form-actions{flex-direction:column}.form-actions button{width:100%}}.info-text{color:#7f8c8d;font-size:14px;margin:0;padding:12px;background:#f8f9fa;border-radius:4px}.pagination-controls{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;margin-top:20px;border-top:1px solid #e0e0e0;background-color:#fafafa}.pagination-info{display:flex;align-items:center;gap:20px;font-size:14px;color:#555}.pagination-info label{display:flex;align-items:center;gap:8px;font-weight:500}.page-size-select{padding:6px 10px;border-radius:4px;border:1px solid #ddd;font-size:14px;background-color:#fff;cursor:pointer}.page-size-select:hover{border-color:#3498db}.pagination-buttons{display:flex;align-items:center;gap:15px}.page-numbers{font-size:14px;color:#555;font-weight:500}.pagination-buttons .btn{min-width:80px}.pagination-buttons .btn:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 768px){.pagination-controls{flex-direction:column;gap:15px;align-items:stretch}.pagination-info{flex-direction:column;align-items:flex-start;gap:10px}.pagination-buttons{justify-content:center}}.products-page{max-width:1400px;width:100%;position:relative}.bulk-update-progress-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.bulk-update-progress-container{background:#fff;border-radius:12px;padding:30px 40px;min-width:400px;max-width:500px;box-shadow:0 10px 40px #0003}.bulk-update-progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.bulk-update-progress-header h3{margin:0;color:#2c3e50;font-size:18px;font-weight:600}.bulk-update-progress-header span{color:#3498db;font-size:18px;font-weight:600}.bulk-update-progress-bar{width:100%;height:8px;background:#e9ecef;border-radius:4px;overflow:hidden;margin-bottom:15px}.bulk-update-progress-fill{height:100%;background:linear-gradient(90deg,#3498db,#2980b9);border-radius:4px;transition:width .3s ease;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.8}}.bulk-update-progress-text{margin:0;color:#6c757d;font-size:14px;text-align:center}.thumbnail-column{width:60px;text-align:center;padding:8px!important}.product-thumbnail{width:50px;height:50px;object-fit:cover;border-radius:4px;border:1px solid #ddd}.product-thumbnail.placeholder{width:50px;height:50px;display:flex;align-items:center;justify-content:center;background:#f8f9fa;color:#6c757d;font-size:10px;border-radius:4px;border:1px solid #ddd}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.page-header h1{color:#2c3e50}.page-loading{text-align:center;padding:50px;font-size:18px;color:#7f8c8d}.filters{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.filters select,.filters input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.filters input{min-width:200px}.table-container{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000001a}.data-table{width:100%;border-collapse:collapse}.data-table thead{background-color:#f8f9fa}.data-table th{padding:12px;text-align:left;font-weight:600;font-size:13px;color:#495057;text-transform:uppercase;letter-spacing:.5px}.data-table td{padding:12px;border-top:1px solid #e9ecef;font-size:14px}.data-table tbody tr:hover{background-color:#f8f9fa}.data-table tbody tr.low-stock{background-color:#fff3cd}.data-table td.warning{color:#f39c12;font-weight:600}.badge{display:inline-block;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500;text-transform:capitalize}.badge.active{background-color:#d4edda;color:#155724}.badge.archived{background-color:#f8d7da;color:#721c24}.empty-state{text-align:center;padding:40px;color:#7f8c8d}.btn{padding:8px 16px;border-radius:4px;font-size:14px;font-weight:500;transition:all .2s}.btn-primary{background-color:#3498db;color:#fff}.btn-primary:hover{background-color:#2980b9}.btn-secondary{background-color:#95a5a6;color:#fff}.btn-secondary:hover{background-color:#7f8c8d}.btn-danger{background-color:#e74c3c;color:#fff}.btn-danger:hover{background-color:#c0392b}.btn-sm{padding:4px 8px;font-size:12px;margin-right:5px}@media (max-width: 768px){.page-header{flex-direction:column;align-items:flex-start;gap:15px}.page-header h1{font-size:24px}.search-bar .search-input{max-width:100%}.filters{flex-direction:column;gap:8px}.filters input,.filters select{width:100%;min-width:auto}.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -15px;padding:0 15px}.data-table{min-width:900px}.data-table th,.data-table td{padding:8px 6px;font-size:12px}.checkbox-column{width:35px}.thumbnail-column{width:50px;padding:6px!important}.product-thumbnail,.product-thumbnail.placeholder{width:40px;height:40px;font-size:9px}.btn{padding:6px 12px;font-size:13px}.btn-sm{padding:3px 6px;font-size:11px;margin-right:3px}.data-table th:nth-child(n+4),.data-table td:nth-child(n+4){white-space:nowrap}}@media (max-width: 480px){.page-header h1{font-size:20px}.data-table{min-width:850px}.data-table th,.data-table td{padding:6px 4px;font-size:11px}.product-thumbnail,.product-thumbnail.placeholder{width:35px;height:35px}}.categories-page{max-width:1400px}.category-form-section{background:#fff;padding:20px;border-radius:8px;margin-bottom:25px;box-shadow:0 2px 4px #0000001a}.category-form-section h2{margin-bottom:15px;color:#2c3e50;font-size:18px;font-weight:600;padding-bottom:10px;border-bottom:2px solid #e9ecef}.category-form{margin-top:10px}.categories-list h2{margin-bottom:20px;color:#2c3e50}.form-group input,.form-group select{padding:8px 10px;border:1px solid #ddd;border-radius:4px;font-size:14px;width:100%;box-sizing:border-box;transition:border-color .2s ease}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3498db}@media (max-width: 768px){.categories-page{width:100%}.category-form-section{padding:15px;margin-bottom:20px}.form-row{grid-template-columns:1fr;gap:12px}.form-actions{flex-direction:column}.form-actions button{width:100%}.categories-list h2{font-size:18px}}@media (max-width: 480px){.category-form-section{padding:12px}.category-form-section h2{font-size:18px}}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px;align-items:start}.form-actions{display:flex;gap:12px;margin-top:15px;justify-content:flex-end}.form-actions .btn{min-width:100px;padding:10px 20px;font-size:14px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .2s ease;border:none}.form-actions .btn-primary{background-color:#3498db;color:#fff}.form-actions .btn-secondary{background-color:#95a5a6;color:#fff}.search-bar{margin-bottom:16px}.search-bar .search-input{width:100%;max-width:500px;padding:10px 16px;border:2px solid #ddd;border-radius:6px;font-size:14px;transition:all .2s}.search-bar .search-input:focus{outline:none;border-color:#3498db;box-shadow:0 0 0 3px #3498db1a}.checkbox-column{width:40px;text-align:center}.checkbox-column input[type=checkbox]{cursor:pointer;width:18px;height:18px}@media (max-width: 768px){.search-bar .search-input{max-width:100%}.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -15px;padding:0 15px}.data-table{min-width:600px}.data-table th,.data-table td{padding:8px 6px;font-size:12px}.checkbox-column{width:35px}}@media (max-width: 480px){.data-table{min-width:550px}.data-table th,.data-table td{padding:6px 4px;font-size:11px}}.brands-page{max-width:1400px}.brand-form-section{background:#fff;padding:20px;border-radius:8px;margin-bottom:25px;box-shadow:0 2px 4px #0000001a}.brand-form-section h2{margin-bottom:15px;color:#2c3e50;font-size:18px;font-weight:600;padding-bottom:10px;border-bottom:2px solid #e9ecef}.brand-form{margin-top:10px}.brands-list h2{margin-bottom:20px;color:#2c3e50}@media (max-width: 768px){.brands-page{width:100%}.brand-form-section{padding:15px;margin-bottom:20px}.form-row{grid-template-columns:1fr;gap:12px}.form-actions{flex-direction:column}.form-actions button{width:100%}.brands-list h2{font-size:18px}}@media (max-width: 480px){.brand-form-section{padding:12px}.brand-form-section h2{font-size:18px}}.form-section{margin-bottom:15px;padding:15px;background-color:#f8f9fa;border-radius:6px;border:1px solid #e9ecef}.form-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #dee2e6}.form-section-header h3{font-size:16px;font-weight:600;color:#2c3e50;margin:0}.item-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px;margin-bottom:12px;align-items:end;padding:12px;background-color:#fff;border:1px solid #e0e0e0;border-radius:4px}.item-row .form-group label{margin-bottom:4px;font-size:12px;font-weight:500}.item-row button{align-self:end;margin-bottom:0;white-space:nowrap;padding:8px 12px}.purchases-page{max-width:1400px}.item-info{font-size:12px;margin-bottom:4px;color:#495057}@media (max-width: 768px){.purchases-page{width:100%}.page-header{flex-direction:column;align-items:flex-start;gap:15px}.page-header h1{font-size:24px}.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -15px;padding:0 15px}.data-table{min-width:800px}.data-table th,.data-table td{padding:8px 6px;font-size:12px}.item-info{font-size:11px}}@media (max-width: 480px){.page-header h1{font-size:20px}.data-table{min-width:750px}.data-table th,.data-table td{padding:6px 4px;font-size:11px}}.form-section{margin-bottom:10px;padding:10px;background-color:#f8f9fa;border-radius:6px;border:1px solid #e9ecef}.form-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:6px;border-bottom:2px solid #dee2e6}.form-section-header h3{font-size:14px;font-weight:600;color:#2c3e50;margin:0}.form-section h3{font-size:14px;font-weight:600;color:#2c3e50;margin:0 0 8px;padding-bottom:6px;border-bottom:2px solid #dee2e6}.item-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.2fr auto;gap:8px;margin-bottom:8px;align-items:end;padding:8px;background-color:#fff;border:1px solid #e0e0e0;border-radius:4px}.item-row .form-group{margin-bottom:0}.item-row .form-group label{margin-bottom:3px;font-size:11px;font-weight:500}.item-row .form-group input,.item-row .form-group select{padding:6px 8px;font-size:13px}.item-row button{align-self:end;margin-bottom:0;white-space:nowrap;padding:6px 10px;font-size:12px}@media (max-width: 768px){.item-row{grid-template-columns:1fr;gap:15px;padding:12px}.item-row button{width:100%;align-self:stretch}.form-section-header{flex-direction:column;align-items:flex-start;gap:10px}.form-section-header button{width:100%}}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:#2c3e50;margin-bottom:0}.checkbox-label input[type=checkbox]{cursor:pointer;width:16px;height:16px;margin:0}.sale-form .form-row{margin-bottom:10px;gap:10px}.sale-form .form-section{margin-bottom:10px}.sale-form .form-group{margin-bottom:0}.sale-form textarea{min-height:50px;max-height:70px;resize:vertical;padding:6px 10px;font-size:13px}.sale-form .form-section:has(.image-input-row){padding:10px}.sale-form .image-input-row{margin-bottom:8px}.sale-form .images-grid{gap:8px;margin-top:8px}.sale-form .image-preview-card{max-width:80px}.sale-form .image-preview{height:60px}.sale-form .image-preview img{max-height:60px}.sale-form .image-preview-card .btn{padding:4px 8px;font-size:11px;margin-top:4px}.sale-form .form-actions{margin-top:12px;padding-top:10px;border-top:1px solid #e9ecef}.sale-form .form-actions .btn{padding:8px 16px;font-size:13px}@media (max-width: 480px){.form-section{padding:12px}.form-section-header h3{font-size:16px}.item-row{padding:10px}}.sales-page{max-width:1400px}.shipping-info{display:flex;flex-direction:column}.carrier-badge{display:inline-block;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#fff}.carrier-usps{background-color:#004b87}.carrier-ups{background-color:#7b68ee}.carrier-fedex{background-color:#4d148c}.tracking-number{color:#495057;word-break:break-all;font-family:monospace}@media (max-width: 768px){.carrier-badge{font-size:11px;padding:3px 8px}.tracking-number{font-size:11px}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow-y:auto}.modal-content{background:#fff;border-radius:8px;padding:25px;max-width:1000px;width:100%;max-height:98vh;overflow-y:auto;box-shadow:0 4px 20px #00000026;margin:auto auto 40px;display:flex;flex-direction:column;position:relative;transition:transform .1s ease-out}.draggable-modal{position:relative}.modal-header-draggable{cursor:move;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.modal-header-draggable:hover{background-color:#00000005;border-radius:4px;padding:8px;margin:-8px}.modal-content h2{margin-bottom:20px;color:#2c3e50;font-size:22px;font-weight:600;padding-bottom:12px;border-bottom:2px solid #e9ecef;flex-shrink:0}.modal-content form{display:flex;flex-direction:column;flex:1;min-height:0}.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px;align-items:start;flex-shrink:0}.form-group{display:flex;flex-direction:column;width:100%}.form-group label{margin-bottom:6px;font-size:13px;font-weight:600;color:#2c3e50}.form-group input,.form-group select,.form-group textarea{padding:8px 10px;border:1px solid #ddd;border-radius:4px;font-size:14px;width:100%;box-sizing:border-box;transition:border-color .2s ease}.form-group textarea{resize:vertical;min-height:60px;max-height:120px}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3498db}.form-group input:disabled{background-color:#f5f5f5;cursor:not-allowed}.form-actions{display:flex;gap:12px;margin-top:20px;padding-top:15px;border-top:1px solid #e9ecef;justify-content:flex-end;flex-shrink:0}.form-actions .btn{min-width:100px;padding:10px 20px;font-size:14px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .2s ease}.form-actions .btn-primary{background-color:#3498db;color:#fff;border:none}.form-actions .btn-primary:hover{background-color:#2980b9}.form-actions .btn-secondary{background-color:#95a5a6;color:#fff;border:none}.form-actions .btn-secondary:hover{background-color:#7f8c8d}.btn{padding:8px 16px;font-size:14px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .2s ease;border:none;white-space:nowrap}.btn-sm{padding:6px 12px;font-size:13px}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover{background-color:#5a6268}.btn-danger{background-color:#dc3545;color:#fff}.btn-danger:hover{background-color:#c82333}.form-section{margin-bottom:15px;padding:15px;background-color:#f8f9fa;border-radius:4px;flex-shrink:0}.form-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.form-section-header h3{font-size:16px;color:#2c3e50;margin:0}.image-upload-info{margin-top:10px;padding:10px;background-color:#e8f4f8;border-left:3px solid #3498db;border-radius:4px}.image-upload-info small{color:#34495e;line-height:1.6}.image-input-row{display:flex;gap:10px;align-items:center;margin-bottom:12px}.image-input-row input[type=file]{flex:1;padding:6px 8px;border:1px solid #ddd;border-radius:4px;font-size:13px;background-color:#fff}.images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:12px;max-height:200px;overflow-y:auto}.image-preview-card{display:flex;flex-direction:column}.image-preview{width:100%;height:120px;border:1px solid #ddd;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;background-color:#f8f9fa}.image-preview img{width:100%;height:100%;object-fit:cover}@media (max-width: 768px){.modal-content{padding:20px;max-width:95%;max-height:95vh}.form-row{grid-template-columns:1fr;gap:12px}.image-input-row{flex-direction:column;align-items:stretch}.image-preview{width:100%;height:200px}.form-actions{flex-direction:column}.form-actions .btn{width:100%}}@media (max-width: 480px){.modal-content{padding:15px}.modal-content h2{font-size:18px;margin-bottom:15px}.form-group label{font-size:13px}.form-group input,.form-group select,.form-group textarea{font-size:13px;padding:6px 10px}}.expenses-page{max-width:1400px}.expenses-summary{background:#fff;padding:15px 20px;border-radius:8px;margin-bottom:20px;font-size:18px;color:#2c3e50}.customers-page{padding:20px}.search-bar{margin-bottom:20px}.search-input{width:100%;max-width:400px;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px}.address-cell{font-size:13px;line-height:1.4}.address-cell div{margin-bottom:2px}.customer-form{display:flex;flex-direction:column;gap:15px}@media (max-width: 768px){.customers-page{padding:10px}.table-container{overflow-x:auto}.data-table{font-size:12px}.data-table th,.data-table td{padding:8px 4px}}.business-settings-page{padding:20px;max-width:1000px}.settings-form{display:flex;flex-direction:column;gap:30px}.form-section{background:#fff;padding:25px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.form-section h3{margin:0 0 20px;color:#2c3e50;font-size:20px}.form-help{color:#666;font-size:14px;margin-bottom:15px}.image-upload-section{margin-top:15px}.upload-area{border:2px dashed #ddd;border-radius:8px;padding:40px;text-align:center;background:#f9f9f9;transition:all .3s}.upload-area:hover{border-color:#3498db;background:#f0f8ff}.upload-label{display:inline-block;padding:12px 24px;background:#3498db;color:#fff;border-radius:4px;cursor:pointer;font-weight:500;transition:background .3s}.upload-label:hover{background:#2980b9}.image-preview-container{display:flex;flex-direction:column;align-items:center;gap:15px}.logo-preview-circle{width:200px;height:200px;border-radius:50%;overflow:hidden;border:4px solid #3498db;box-shadow:0 4px 8px #0000001a;background:#fff;display:flex;align-items:center;justify-content:center}.logo-preview-circle img{width:100%;height:100%;object-fit:cover}.header-preview{width:100%;max-width:800px;height:300px;border-radius:8px;overflow:hidden;border:2px solid #ddd;box-shadow:0 2px 8px #0000001a}.header-preview img{width:100%;height:100%;object-fit:cover}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:20px}@media (max-width: 768px){.business-settings-page{padding:10px}.form-section{padding:15px}.logo-preview-circle{width:150px;height:150px}.header-preview{height:200px}}.catalog-page{max-width:100%;padding:0;background-color:#fafafa}.catalog-page.feed-layout{background-color:#fafafa}.catalog-fixed-header{position:fixed;top:0;left:0;right:0;background:#fff;border-bottom:1px solid #e0e0e0;z-index:100;box-shadow:0 2px 8px #0000000d}.catalog-header-content{display:flex;align-items:center;justify-content:space-between;padding:10px 15px;gap:15px;max-width:100%}.catalog-header-left{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.catalog-header-logo{width:50px;height:50px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid #e0e0e0}.catalog-header-logo img{width:100%;height:100%;object-fit:cover}.catalog-header-banner-small{width:80px;height:50px;overflow:hidden;border-radius:4px;flex-shrink:0;display:none}.catalog-header-banner-small img{width:100%;height:100%;object-fit:cover}.catalog-header-title{flex:1;min-width:0}.catalog-header-title h1{font-size:18px;color:#2c3e50;margin:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-header-search{position:relative;flex-shrink:0}.catalog-search-input{width:150px;padding:8px 35px 8px 12px;border:1px solid #dbdbdb;border-radius:20px;font-size:14px;background:#fafafa;transition:all .2s}.catalog-search-input:focus{outline:none;border-color:#0095f6;background:#fff;width:200px}.catalog-search-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#8e8e8e;pointer-events:none}.catalog-header-spacer{height:70px}.scroll-to-top-button{position:fixed;bottom:30px;right:30px;width:50px;height:50px;border-radius:50%;background:#0095f6;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #0095f666;z-index:99;transition:all .3s ease;opacity:.9}.scroll-to-top-button:hover{opacity:1;transform:translateY(-2px);box-shadow:0 6px 16px #0095f680}.scroll-to-top-button:active{transform:translateY(0)}.feed-container{max-width:100%;margin:0 auto;padding:0;background-color:#fafafa;display:flex;flex-direction:column;gap:0}@media (min-width: 768px){.feed-container{max-width:600px;padding:0}}.instagram-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background-color:#000;padding:0;margin:0}.product-group-section{margin-bottom:40px;background-color:#fafafa}.group-header{padding:20px 16px 12px;background-color:#fff;border-bottom:1px solid #dbdbdb;margin-bottom:2px}.group-brand{font-size:18px;font-weight:700;color:#262626;margin:0 0 4px}.group-category{font-size:14px;color:#8e8e8e;font-weight:400}.instagram-product-card{position:relative;width:100%;padding-top:100%;background-color:#000;cursor:pointer;overflow:hidden}.instagram-image-container{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden}.instagram-image-carousel{display:flex;width:100%;height:100%;will-change:transform}.instagram-image-slide{flex:0 0 100%;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.instagram-image-slide img{width:100%;height:100%;object-fit:cover;display:block}.instagram-image-dots{position:absolute;bottom:12px;left:50%;transform:translate(-50%);display:flex;gap:6px;z-index:10}.instagram-dot{width:6px;height:6px;border-radius:50%;background-color:#ffffff80;transition:background-color .3s ease,transform .3s ease}.instagram-dot.active{background-color:#ffffffe6;transform:scale(1.2)}.feed-product-card{background:#fff;margin-bottom:0;border-radius:0;border:none;border-bottom:1px solid #dbdbdb;cursor:pointer;transition:opacity .2s;overflow:hidden;width:100%;max-width:100%}.feed-product-card:active{opacity:.8}.feed-product-card:last-child{border-bottom:1px solid #dbdbdb}@media (max-width: 767px){.feed-product-card{margin-bottom:12px;border-radius:0;border:none;box-shadow:0 1px 3px #0000001a}.feed-product-card:last-child{margin-bottom:0}}.feed-card-header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #efefef}.feed-card-brand{font-size:14px;font-weight:600;color:#262626}.feed-card-dots{display:flex;gap:4px}.feed-dot{width:6px;height:6px;border-radius:50%;background-color:#c7c7c7;display:inline-block;transition:background-color .3s ease}.feed-dot.active{background-color:#0095f6}.feed-image-container{position:relative;width:100%;padding-top:100%;overflow:hidden;background-color:#000;max-width:100%}.feed-image-carousel{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;transition:transform .5s ease-in-out;will-change:transform}.feed-image-slide{flex:0 0 100%;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.feed-image-slide img{width:100%;height:100%;object-fit:cover;display:block}.feed-image-skeleton{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}@keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-shimmer{width:100%;height:100%;background:linear-gradient(90deg,#fff0,#ffffff4d,#fff0);animation:shimmer 1.5s infinite}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.feed-image-indicator{position:absolute;bottom:12px;right:12px;background:#000000b3;color:#fff;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.feed-card-info{padding:16px 20px}.feed-product-name{font-size:14px;font-weight:600;color:#262626;margin:0 0 8px;line-height:1.4}.feed-product-details{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.feed-detail-tag{font-size:12px;color:#8e8e8e;background-color:#f0f0f0;padding:4px 8px;border-radius:4px}.feed-view-hint{font-size:12px;color:#8e8e8e;margin-top:8px;text-align:center;font-weight:500}.empty-catalog{text-align:center;padding:60px 20px;color:#8e8e8e;background:#fff;margin:20px 0}.catalog-loading{text-align:center;padding:60px;font-size:16px;color:#8e8e8d;background:#fafafa}.product-detail-modal{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000f2;z-index:1000;overflow:hidden;display:flex;align-items:center;justify-content:center}.product-detail-content{position:relative;width:100%;height:100vh;background:#fff;display:flex;flex-direction:column;overflow:hidden}.close-button{position:absolute;top:15px;right:15px;width:44px;height:44px;border-radius:50%;background:#fffffff2;color:#2c3e50;border:none;cursor:pointer;z-index:1001;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 12px #00000026;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.close-button:active{transform:scale(.95);background:#fff}.detail-layout{display:flex;flex-direction:column;height:100%;overflow:hidden}.detail-images-section{flex:1;min-height:0;display:flex;flex-direction:column;background:#000;position:relative}.main-image-container{flex:1;position:relative;display:flex;align-items:center;justify-content:center;background:#000;min-height:0;touch-action:pan-y}.main-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.main-image-container.placeholder{background:#1a1a1a;color:#fff;font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.main-image-container.placeholder svg{opacity:.5}.image-nav-button{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;background:#fffffff2;border:none;color:#2c3e50;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 12px #0003;touch-action:manipulation;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.image-nav-button:active{transform:translateY(-50%) scale(.95);background:#fff}.prev-button{left:12px}.next-button{right:12px}.image-counter{position:absolute;bottom:12px;left:50%;transform:translate(-50%);background:#000000bf;color:#fff;padding:8px 16px;border-radius:20px;font-size:13px;font-weight:500;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.thumbnail-container{display:flex;gap:8px;padding:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;background:#1a1a1a;scrollbar-width:thin;flex-shrink:0}.thumbnail-container::-webkit-scrollbar{height:4px}.thumbnail-container::-webkit-scrollbar-thumb{background:#555;border-radius:2px}.thumbnail{flex-shrink:0;width:70px;height:70px;border-radius:6px;overflow:hidden;border:3px solid transparent;cursor:pointer;opacity:.6;transition:all .2s ease;background:transparent;padding:0;margin:0}.thumbnail.active{border-color:#3498db;opacity:1}.thumbnail img{width:100%;height:100%;object-fit:cover;display:block}.detail-info-section{flex-shrink:0;padding:20px 16px;background:#fff;border-top:1px solid #e9ecef;max-height:45vh;overflow-y:auto;-webkit-overflow-scrolling:touch}.detail-header{margin-bottom:16px}.detail-product-name{font-size:24px;color:#2c3e50;margin:0 0 12px;font-weight:700;line-height:1.3}.detail-brand-badge{display:inline-block;padding:6px 12px;background:#f8f9fa;color:#495057;border-radius:6px;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.detail-specs-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:20px}.detail-spec-item{padding:12px;background:#f8f9fa;border-radius:8px;border-left:3px solid #3498db}.spec-label{font-size:11px;color:#6c757d;text-transform:uppercase;letter-spacing:.5px;font-weight:600;margin-bottom:4px}.spec-value{font-size:15px;color:#2c3e50;font-weight:500}@media (min-width: 768px){.catalog-page{max-width:100%;margin:0 auto;padding:0}.catalog-header-content{padding:15px 30px}.catalog-header-logo{width:60px;height:60px}.catalog-header-banner-small{display:block;width:120px;height:60px}.catalog-header-title h1{font-size:24px}.catalog-search-input{width:200px}.catalog-search-input:focus{width:250px}.catalog-header-spacer{height:90px}.feed-container{max-width:600px;margin:0 auto;padding:0;background-color:#fafafa}.feed-product-card{border-radius:0;border:none;border-bottom:1px solid #dbdbdb;margin-bottom:24px;box-shadow:0 1px 3px #0000000d}.feed-product-card:hover{box-shadow:0 2px 8px #0000001a}.feed-product-card:last-child{margin-bottom:0;border-bottom:1px solid #dbdbdb}.feed-card-header,.feed-card-info{padding:14px 20px}.feed-product-name{font-size:15px}.detail-layout{flex-direction:row}.detail-images-section{flex:0 0 60%;max-width:60%}.detail-info-section{flex:0 0 40%;max-width:40%;max-height:100vh;border-top:none;border-left:1px solid #e9ecef;padding:40px}.detail-product-name{font-size:32px}.detail-specs-grid{grid-template-columns:repeat(2,1fr);gap:20px}.spec-value{font-size:16px}.thumbnail{width:90px;height:90px}.image-nav-button{width:56px;height:56px}.prev-button{left:24px}.next-button{right:24px}.close-button{width:48px;height:48px;top:20px;right:20px}}@media (min-width: 1024px){.catalog-header-content{padding:15px 40px}.catalog-header-logo{width:70px;height:70px}.catalog-header-banner-small{width:150px;height:70px}.catalog-header-title h1{font-size:28px}.catalog-search-input{width:250px}.catalog-search-input:focus{width:300px}.catalog-header-spacer{height:100px}.feed-container{max-width:600px;background-color:#fafafa}.instagram-grid{grid-template-columns:repeat(4,1fr);max-width:1200px;margin:0 auto}.detail-images-section{flex:0 0 55%;max-width:55%}.detail-info-section{flex:0 0 45%;max-width:45%;padding:50px}.detail-product-name{font-size:36px}.detail-specs-grid{grid-template-columns:repeat(2,1fr)}}@media (min-width: 768px) and (max-width: 1023px){.instagram-grid{grid-template-columns:repeat(4,1fr)}}@media (hover: none) and (pointer: coarse){.feed-product-card{cursor:default}.image-nav-button{width:52px;height:52px}.close-button{width:48px;height:48px}.thumbnail{width:75px;height:75px}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f5f5f5;color:#333}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}a{text-decoration:none;color:inherit}button{cursor:pointer;border:none;font-family:inherit}input,select,textarea{font-family:inherit}
