:root{--bg:#111010;--panel:#211f1e;--panel2:#2c2826;--red:#ed302b;--text:#fff9f3;--muted:#bdb5af;--line:#504640}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.editor-wrap{width:min(1100px,calc(100% - 32px));margin:auto}.editor-header{border-bottom:1px solid var(--line);background:#1a1817}.header-row{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}.editor-brand{display:flex;gap:12px;align-items:center;text-decoration:none}.editor-brand img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--red)}.editor-brand strong{font-size:23px;text-transform:uppercase;display:block;line-height:1}.editor-brand small{color:#f07469;font-size:10px;letter-spacing:.17em;font-weight:bold}.header-controls{display:flex;align-items:center;gap:9px}.header-controls form{margin:0}.primary,.outline{display:inline-flex;justify-content:center;align-items:center;border-radius:9px;padding:11px 16px;font-weight:700;text-decoration:none;white-space:nowrap}.primary{border:1px solid var(--red);background:var(--red);color:white}.primary:hover{background:#c82622}.outline{border:1px solid #645a55;background:transparent;color:var(--text)}.outline:hover{border-color:var(--red)}.intro{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:54px 0 28px}.eyebrow{color:var(--red);letter-spacing:.16em;font-size:12px;font-weight:800}.intro h1{font-size:clamp(36px,5vw,56px);line-height:1;margin:6px 0 14px;text-transform:uppercase}.intro p:not(.eyebrow),.panel-title p{color:var(--muted);max-width:600px;margin:0}.editor-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:30px}.editor-tabs button{border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);padding:15px 20px;font-weight:700}.editor-tabs button.selected{color:#fff;border-color:var(--red)}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.panel-title h2{font-size:29px;margin:0 0 4px}.menu-tabs{display:flex;gap:8px;margin:12px 0 22px}.menu-tabs button{background:#2a2523;border:1px solid #5b504b;color:#eee;border-radius:9px;padding:10px 20px;font-weight:700}.menu-tabs button.selected{background:var(--red);border-color:var(--red)}input,select,textarea{background:#151313;border:1px solid #655b55;color:#fff;border-radius:9px;padding:12px 13px;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:#ff8e75}.product-tools{display:flex;gap:10px;margin-bottom:15px}.product-tools input{max-width:340px}.product-tools select{max-width:250px}.product-list,.category-list{display:grid;gap:10px}.product-row,.category-row{background:var(--panel);border:1px solid #403a36;border-radius:12px;padding:14px 17px;display:flex;align-items:center;gap:15px}.product-row img{height:65px;width:75px;object-fit:cover;border-radius:8px}.product-row .placeholder{height:65px;width:75px;display:grid;place-items:center;border-radius:8px;background:#37302c;color:#d38a7a;font-size:25px}.product-info{flex:1;min-width:0}.product-info strong,.category-row strong{display:block;font-size:17px}.product-info small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-price{font-weight:800;font-size:18px}.product-row button,.category-row button{border:1px solid #70635d;background:transparent;color:white;padding:8px 13px;border-radius:8px}.product-row button:hover,.category-row button:hover{border-color:var(--red)}.category-add{display:flex;gap:9px;margin-bottom:17px}.category-add input{max-width:440px}.category-row strong{flex:1}.category-row small{color:var(--muted)}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid label,.dialog-body label{display:block;font-weight:bold;font-size:14px}.settings-grid input,.dialog-body input,.dialog-body select,.dialog-body textarea{margin-top:7px}.settings-grid .wide{grid-column:1/-1}.editor-bottom{border-top:1px solid var(--line);padding:25px 0 60px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:40px;color:var(--muted)}#status.error{color:#ff938b}#status.success{color:#a9e3b8}dialog{border:1px solid #65524a;background:#211f1e;color:white;border-radius:16px;padding:0;width:min(620px,calc(100% - 24px));max-height:90vh;box-shadow:0 25px 75px #0009}dialog::backdrop{background:#000a}.dialog-head,.dialog-actions{display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;flex:1}.dialog-head button{border:0;background:transparent;color:white;font-size:30px;line-height:1}.dialog-body{padding:20px 22px;overflow-y:auto;max-height:62vh;display:grid;gap:16px}.dialog-body .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-actions{border-bottom:0;border-top:1px solid var(--line)}.dialog-actions span{flex:1}.danger{color:#ff9b92}.image-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.image-row img{height:80px;width:95px;object-fit:cover;border-radius:8px}.upload-control{border:1px solid #70635d;padding:9px 13px;border-radius:8px;cursor:pointer}.image-row small{color:var(--muted)}.empty-state{color:var(--muted);padding:25px;background:var(--panel);border-radius:10px}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);padding:32px;background:#211f1e;border:1px solid #453b37;border-radius:18px;text-align:center;box-shadow:0 24px 70px #0005}.login-card>img{width:88px;height:88px;object-fit:cover;border-radius:50%;margin:0 auto 16px}.login-card h1{font-size:30px;margin:0 0 14px}.login-card p{color:var(--muted);margin:0 0 25px;line-height:1.55}.login-card label{display:block;text-align:left;font-weight:700;margin:16px 0}.login-card input{display:block;margin-top:7px}.login-card button{width:100%;border:0;border-radius:8px;padding:14px;background:var(--red);color:#fff;font-weight:700;margin:8px 0 18px}.login-card>a{color:#ffb58d}.login-card .login-error{background:#5c2623;color:#fff;padding:10px;border-radius:8px;margin:0}@media(max-width:650px){.intro{align-items:start;flex-direction:column;padding-top:35px}.save-top{display:none}.header-controls .outline{padding:9px}.panel-title{align-items:start}.panel-title .primary{font-size:13px;padding:9px}.product-tools,.category-add{flex-direction:column}.product-tools input,.product-tools select,.category-add input{max-width:none}.settings-grid,.dialog-body .two{grid-template-columns:1fr}.product-row{gap:8px;padding:10px}.product-row img,.product-row .placeholder{width:50px;height:54px}.product-price{font-size:15px}.product-info strong{font-size:15px}.editor-tabs button{padding:12px 10px;font-size:13px}}

/* Las pistas del grid y las filas deben poder encogerse en teléfonos. */
.product-list,.category-list{grid-template-columns:minmax(0,1fr);min-width:0}
.product-row,.category-row{min-width:0;max-width:100%}
.product-info{overflow:hidden}
.editor-tabs{overflow-x:auto;scrollbar-width:thin;max-width:100%}
.editor-tabs button{flex:none;white-space:nowrap}
.bulk-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.bulk-actions .upload-control{display:inline-flex;align-items:center;font-weight:700}
.hint{color:var(--muted);font-size:14px;line-height:1.6}
.bulk-preview{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px;margin-top:24px}
.bulk-preview h3{margin-top:0}.bulk-preview ul{max-height:180px;overflow:auto;padding-left:22px;color:#ffaaa0}
.bulk-preview table{border-collapse:collapse;width:100%;font-size:13px;margin:16px 0}.bulk-preview td,.bulk-preview th{border-bottom:1px solid var(--line);padding:8px;text-align:left}
.bulk-preview .sample-scroll{overflow:auto}.bulk-preview button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:650px){
  .editor-wrap{width:calc(100% - 28px)}
  .header-row{gap:8px;min-width:0}.editor-brand{min-width:0;gap:7px}.editor-brand img{width:40px;height:40px;flex:none}.editor-brand strong{font-size:18px}.editor-brand small{font-size:8px;letter-spacing:.08em}
  .header-controls{gap:5px;flex:none}.header-controls .outline{padding:8px 7px;font-size:11px}.header-controls a{max-width:78px;white-space:normal;text-align:center}
  .panel-title{flex-wrap:wrap}.panel-title .primary{margin-left:0}
  .product-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;padding:10px}
  .product-row img,.product-row .placeholder{width:42px;height:48px;grid-row:span 2}
  .product-info{grid-column:2/4;min-width:0;overflow:hidden}.product-info strong,.product-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .product-price{grid-column:2;align-self:center}.product-row button{grid-column:3;align-self:center}
  .category-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.category-row strong{grid-column:1/-1;overflow-wrap:anywhere}
  .category-row button{padding:8px;font-size:12px}.category-row small{align-self:center}
  .bulk-preview{padding:14px}
}
