[hidden]{display:none!important}
:root{--red:#d8241e;--red-hover:#b9201b;--dark:#1a1d25;--text:#222630;--muted:#8c939e;--border:#e8eaf0;--bg:#f6f7f9;--shadow:0 4px 25px #11182709}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--text)}button,input,textarea{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.admin-body{background:var(--bg)}.admin-shell{min-height:100vh;display:flex}.sidebar{width:254px;background:#171a22;color:#fff;flex-shrink:0;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;padding:27px 16px 18px}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 9px 36px}.sidebar-brand img{width:46px;height:46px;border-radius:11px}.sidebar-brand strong{display:block;font-size:16px;letter-spacing:-.4px;overflow:hidden;max-width:165px;text-overflow:ellipsis;white-space:nowrap}.sidebar-brand small{display:block;color:#9b9faa;font-size:11px;margin-top:5px}.nav-caption{padding:0 18px;color:#6d7380;font-size:10px;font-weight:900;letter-spacing:1.7px;margin-bottom:15px}.sidebar-nav{display:flex;flex-direction:column;gap:6px}.sidebar-nav a,.side-bottom a,.side-bottom button{display:flex;align-items:center;gap:15px;color:#a6abb6;border-radius:10px;padding:14px 15px;font-size:13px;font-weight:650;background:transparent;border:0;width:100%;text-align:left}.sidebar-nav a>span,.side-bottom span{width:18px;text-align:center;font-size:18px}.sidebar-nav a.current{background:var(--red);color:#fff;box-shadow:0 5px 15px #d8241e30}.sidebar-nav a:hover:not(.current),.side-bottom a:hover,.side-bottom button:hover{background:#252b35;color:#fff}.side-bottom{margin-top:auto;border-top:1px solid #343743;padding-top:16px}.side-bottom form{margin:0}.main-area{flex:1;min-width:0;display:flex;flex-direction:column}.admin-topbar{height:77px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 clamp(24px,3vw,52px);gap:23px}.topbar-spacer{flex:1}.preview-link{font-size:12px;font-weight:800;color:#737986}.preview-link:hover{color:var(--red)}.admin-avatar{width:37px;height:37px;background:#fff2f1;color:var(--red);border-radius:100%;display:grid;place-items:center;font-weight:850}.mobile-brand{display:none}.admin-content{width:100%;max-width:1600px;padding:40px clamp(24px,3vw,52px) 65px;flex:1;margin:0 auto}.eyebrow{font-size:10px;letter-spacing:2.1px;color:var(--red);font-weight:900;margin:0 0 7px}.page-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:29px}.page-heading h1{font-size:34px;letter-spacing:-1.2px;margin:0;line-height:1.2}.admin-footer{height:42px;font-size:11px;color:#a2a7b0;text-align:center}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:26px}.stat-card{display:flex;align-items:center;gap:16px;min-height:117px;background:#fff;border:1px solid var(--border);border-radius:14px;padding:21px 24px;box-shadow:var(--shadow)}.stat-icon{width:58px;height:58px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;font-size:27px}.stat-icon.red{color:var(--red);background:#fff0ee}.stat-icon.green{color:#189a6b;background:#eaf8f1}.stat-icon.blue{color:#477eb6;background:#ecf4fc}.stat-card p{font-size:12px;font-weight:650;color:#9399a4;margin:0 0 8px}.stat-card strong{font-size:30px;line-height:1;letter-spacing:-.8px}.panel{background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:26px 28px;border-bottom:1px solid var(--border)}.panel-header h2{margin:0 0 7px;font-size:19px;letter-spacing:-.35px}.panel-header p{margin:0;font-size:12px;line-height:1.6;color:#9298a1}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;padding:13px 20px;border-radius:9px;font-size:13px;font-weight:800;gap:8px;text-align:center;min-height:43px}.btn-primary{background:var(--red);color:#fff}.btn-primary:hover{background:var(--red-hover)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:#fff;color:#585f6a;border-color:#e3e6ec}.btn-secondary:hover{background:#fafafa}.table-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 28px}.search-wrap{height:42px;width:min(350px,100%);border:1px solid #e5e7eb;border-radius:9px;display:flex;align-items:center;gap:10px;padding:0 13px;color:#9ba1aa}.search-wrap span{font-size:22px}.search-wrap input{border:0;outline:0;min-width:0;flex:1;font-size:12px}.search-wrap:focus-within{border-color:var(--red)}.hint{font-size:11px;color:#a7acb4}.table-responsive{width:100%;overflow-x:auto}.products-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.products-table th{background:#fafbfc;color:#a0a5ae;font-size:10px;letter-spacing:1.2px;padding:17px 24px;font-weight:850;white-space:nowrap}.products-table td{border-top:1px solid #f0f1f3;padding:18px 24px;vertical-align:middle;color:#5e6570}.products-table tbody tr:hover{background:#fffdfd}.product-cell{display:flex;align-items:center;gap:13px;min-width:175px}.product-thumb{width:52px;height:52px;border:1px solid #e9ebee;background:#f6f7f9;border-radius:10px;display:grid;place-items:center;overflow:hidden;color:#b9bec6;flex-shrink:0;font-size:22px}.product-thumb img{width:100%;height:100%;object-fit:contain}.product-cell b{display:block;color:#333844;font-size:13px;line-height:1.4}.product-cell small{display:block;color:#a1a5ae;margin-top:6px;font-size:11px}.barcode-label{display:inline-block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f4f5f7;border:1px solid #ebebee;border-radius:6px;padding:7px 9px;color:#626873;font-size:11px;white-space:nowrap}.price-cell{color:#282d36;font-size:14px;white-space:nowrap}.status-pill{display:inline-block;border-radius:99px;padding:7px 12px;font-size:11px;font-weight:800;white-space:nowrap}.status-pill.active{background:#e6f8ee;color:#168754}.status-pill.inactive{background:#f1f2f5;color:#9299a1}.action-buttons{display:flex;gap:15px;align-items:center;white-space:nowrap}.action-edit,.action-delete{font-size:12px;font-weight:800;border:0;background:transparent;padding:3px 0}.action-edit{color:#4777b5}.action-edit:hover{text-decoration:underline}.action-delete{color:#d8514d}.action-delete:hover{text-decoration:underline}.delete-form{margin:0}.empty-table,.filter-empty{text-align:center;padding:55px 20px;color:#9ca3af;font-size:13px}.empty-table h3{font-size:18px;color:#3b404a;margin-bottom:8px}.empty-table .btn{margin-top:15px}.empty-icon{font-size:42px;color:#d3d6dc}.filter-empty[hidden]{display:none}.tip-card{display:flex;align-items:flex-start;gap:16px;background:#fff;border:1px solid #e9ebef;border-radius:13px;padding:19px 23px;margin-top:20px;color:#89929d}.tip-card>span{font-size:22px;color:#c78b40}.tip-card div{flex:1}.tip-card strong{display:block;color:#555c66;font-size:13px}.tip-card p{font-size:12px;line-height:1.6;margin:7px 0 0}.tip-card a{font-size:12px;color:var(--red);font-weight:850;white-space:nowrap;margin-top:9px}.editor-header{display:flex;align-items:center;justify-content:space-between;margin:-5px 0 20px}.back-button{font-size:13px;color:#78818b;font-weight:700}.back-button:hover{color:var(--red)}.editor-type{color:#a5aab2;font-size:10px;letter-spacing:1.1px;font-weight:850}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:20px;align-items:start}.form-fields{padding:27px;display:flex;flex-direction:column;gap:24px}.form-fields label,.form-stack label{font-size:13px;font-weight:750;color:#525a66;display:flex;flex-direction:column;gap:10px}.form-fields label>span:not(.switch){color:var(--red)}.form-fields label>small,.form-stack label>small{font-size:11px;color:#9ba2ac;font-weight:500}.form-fields input:not([type=checkbox]),.form-fields textarea,.form-stack input:not([type=checkbox]){height:46px;border:1px solid #dee2e8;border-radius:8px;padding:11px 13px;background:#fff;outline:0;color:#323946;font-weight:500;font-size:13px;max-width:100%;width:100%}.form-fields textarea{height:auto;min-height:125px;resize:vertical}.form-fields input:focus,.form-fields textarea:focus,.form-stack input:focus{border-color:var(--red);box-shadow:0 0 0 3px #d8241e12}.field-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:20px}.input-currency{display:flex;align-items:center;border:1px solid #dee2e8;border-radius:8px;height:46px;overflow:hidden}.input-currency strong{font-size:17px;background:#f7f8f9;padding:0 13px;height:100%;display:grid;place-items:center;color:#87909a;border-right:1px solid #e5e6e8}.input-currency input{border:0!important;box-shadow:none!important;height:100%!important}.toggle-line{flex-direction:row!important;align-items:center!important;gap:13px!important;cursor:pointer}.toggle-line>input{position:absolute;opacity:0;pointer-events:none}.switch{height:26px;width:46px;border-radius:20px;background:#b9bec6;position:relative;flex-shrink:0;transition:background .2s}.switch:after{content:"";position:absolute;height:20px;width:20px;border-radius:100%;top:3px;left:3px;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle-line input:checked+.switch{background:var(--red)}.toggle-line input:checked+.switch:after{transform:translateX(20px)}.toggle-line>span:last-child{display:flex;flex-direction:column;gap:5px}.toggle-line strong{font-size:13px;color:#424852}.toggle-line small{font-size:11px;color:#a1a7af;font-weight:400}.upload-panel .panel-header{padding:23px 22px}.upload-panel .panel-header h2{font-size:16px}.image-preview{margin:22px;border-radius:12px;border:2px dashed #e2e5e9;min-height:210px;background:#f9fafb;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a1a7b1;gap:10px;text-align:center;overflow:hidden}.image-preview img{max-width:100%;width:100%;height:240px;object-fit:contain}.upload-illustration{font-size:53px;color:#cbd0d7}.image-preview p{font-size:12px}.file-button{margin:0 22px;display:block;text-align:center;padding:13px;background:#fff;border:1px solid #dfe3e9;border-radius:9px;color:#68717c;font-size:12px;font-weight:850;cursor:pointer}.file-button:hover{border-color:var(--red);color:var(--red)}.upload-panel input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.upload-help{display:block;color:#a1a7af;font-size:10px;line-height:1.8;padding:18px 22px}.form-actions{display:flex;flex-direction:column;gap:9px;margin-top:20px}.content-narrow{max-width:740px}.settings-form>.btn{align-self:flex-start}.field-note{border:1px solid #e8eaf0;background:#fafafa;border-radius:9px;padding:15px;color:#7c8490;font-size:12px}.field-note strong{color:#4c5561}.activity-table td{font-size:12px}.activity-table td:last-child{max-width:420px;overflow-wrap:anywhere}.alert{padding:14px 18px;margin-bottom:22px;border-radius:9px;font-size:13px;line-height:1.6;font-weight:600}.alert.error{background:#fff0ee;color:#ad322b;border:1px solid #ffd4cf}.alert.success{background:#e9f8ef;color:#147c50;border:1px solid #c7ecd8}.alert.inside{margin:22px 25px 0}.auth-body{background:radial-gradient(circle at 20% 10%,#ffece9,transparent 32%),linear-gradient(145deg,#f9f9fb,#f1f3f6);min-height:100vh}.auth-page{padding:45px 15px;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}.auth-card{background:#fff;width:100%;max-width:460px;border-radius:20px;border:1px solid #e8e9ee;box-shadow:0 25px 80px #15182712;padding:37px}.auth-logo{display:flex;align-items:center;gap:11px;margin-bottom:35px}.auth-logo img{width:51px;height:51px;border-radius:10px}.auth-logo strong{font-size:18px;display:block;letter-spacing:-.5px}.auth-logo small{font-size:11px;color:#9aa1aa;display:block;margin-top:4px}.auth-card h1{font-size:30px;letter-spacing:-1px;margin:0 0 9px}.muted{color:#9399a4;font-size:13px;line-height:1.7;margin:0 0 28px}.form-stack{display:flex;flex-direction:column;gap:19px}.form-stack .btn{width:100%;margin-top:7px}.back-link{margin:26px 0 0;text-align:center;font-size:12px;color:#89919b}.back-link a:hover{color:var(--red)}.auth-footer{margin:22px 0 0;color:#a5abb4;font-size:11px}.setup-card{max-width:580px}.checks{border:1px solid #e8eaed;border-radius:11px;margin:0 0 24px;overflow:hidden}.check{display:flex;gap:9px;align-items:center;padding:11px 14px;border-bottom:1px solid #eef0f2;font-size:12px;color:#7e8590}.check:last-child{border-bottom:0}.check>b{margin-left:auto;font-size:11px}.check>b.ok{color:#1aab79}.check>b.danger{color:var(--red)}.checkline{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:11px!important;line-height:1.5}.checkline input{margin-top:3px;accent-color:var(--red)}.checkline span{font-size:12px;color:#747d88}.notice{background:#fff8ed;border:1px solid #f5e7ce;padding:16px;border-radius:10px;margin-top:25px;color:#866943;font-size:12px;line-height:1.7}.notice p{margin:7px 0 0}.notice code{word-break:break-word}
@media(max-width:1050px){.sidebar{width:210px}.sidebar-brand strong{max-width:120px}.admin-content{padding:30px 24px 55px}.products-table td,.products-table th{padding:14px 16px}.editor-layout{grid-template-columns:minmax(0,1fr) 260px}.stats-grid{gap:10px}}
@media(max-width:780px){.admin-shell{display:block}.sidebar{height:auto;min-height:0;position:static;width:100%;padding:10px 14px}.sidebar-brand,.nav-caption{display:none}.sidebar-nav{flex-direction:row;justify-content:center;gap:5px}.sidebar-nav a{justify-content:center;padding:12px 10px;font-size:11px}.sidebar-nav a>span{font-size:14px;width:auto}.side-bottom{display:none}.admin-topbar{height:65px;padding:0 20px}.mobile-brand{display:flex;align-items:center;gap:8px;font-weight:800}.mobile-brand img{height:31px;width:31px;border-radius:7px}.admin-content{padding:27px 15px 40px}.page-heading h1{font-size:28px}.stats-grid{grid-template-columns:1fr 1fr}.stat-card:last-child{grid-column:span 2}.stat-card{min-height:87px;padding:14px}.stat-icon{width:45px;height:45px}.stat-card strong{font-size:25px}.panel-header{padding:19px;align-items:flex-start}.table-tools{padding:15px 19px}.hint{display:none}.products-table{min-width:690px}.editor-layout{grid-template-columns:1fr}.editor-aside{display:grid;grid-template-columns:minmax(0,1fr)}.field-grid{grid-template-columns:1fr}.tip-card{flex-wrap:wrap}}
@media(max-width:490px){.sidebar-nav a{gap:6px;font-size:10px}.preview-link{display:none}.panel-header{flex-direction:column}.panel-header .btn{width:100%}.stat-card{gap:10px}.stat-card p{font-size:11px}.auth-card{padding:25px}.form-fields{padding:20px}.tip-card a{margin-left:35px}}

.remove-image{display:flex;align-items:center;gap:8px;margin:15px 22px 0;color:#68717c;font-size:12px;font-weight:650}.remove-image input{accent-color:var(--red)}
