:root{font-family:system-ui,sans-serif;color:#35291f;background:#f9f6f1;font-size:16px;--accent:#69462f}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid #d8c8b8;border-radius:10px;padding:.75rem 1rem;background:white;color:inherit}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--accent);border-color:var(--accent);color:white}.danger{color:#a22727}a{color:inherit}header{display:flex;gap:1.5rem;align-items:center;padding:1.2rem 5%;border-bottom:1px solid #e7ddd2;background:white}.logo{font-family:Georgia,serif;font-size:1.8rem;text-decoration:none;margin-right:auto}.logo small{font:400 .85rem system-ui;display:block;color:#78675c}main{max-width:1150px;margin:2rem auto;padding:0 1.2rem;min-height:75vh}h1{font:400 2.5rem Georgia,serif;margin:.6rem 0}h2{font:400 1.6rem Georgia,serif}p{line-height:1.6;color:#756357}.card{padding:2rem;background:white;border:1px solid #e7ddd2;border-radius:18px}.login{max-width:460px;margin:4rem auto}.eyebrow{font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;color:#876b51}label{display:block;margin:1rem 0;font-weight:500}input:not([type=checkbox]),textarea,select{display:block;border:1px solid #d9cbbb;background:white;border-radius:9px;padding:.8rem;width:100%;margin-top:.4rem;color:inherit}small{font-size:.85rem;font-weight:400;color:#756357}.login .primary{width:100%;margin-top:.5rem}.tabs{display:flex;gap:.5rem;margin-bottom:2rem}.tabs .active{background:#35291f;color:white;border-color:#35291f}.heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.toolbar{display:flex;gap:.7rem;margin:1.5rem 0;align-items:center}.toolbar input{flex:1;margin:0}.toolbar select{width:auto;margin:0}.product-list{display:grid;gap:.65rem}.product-row{display:flex;gap:1.1rem;align-items:center;padding:1rem;background:white;border:1px solid #e7ddd2;border-radius:12px}.product-row img{width:75px;height:85px;object-fit:contain;background:#faf8f5;border-radius:8px}.product-row .info{flex:1;min-width:0}.product-row h3{font-size:1rem;margin:0 0 .25rem;overflow-wrap:anywhere}.product-row p{margin:0;font-size:.9rem}.status{display:inline-block;padding:.2rem .5rem;background:#e9f0e7;color:#315a31;border-radius:6px;font-size:.8rem;margin-top:.4rem}.status.hidden{background:#eee8df;color:#79634a}.row-actions{display:flex;gap:.5rem;flex-wrap:wrap}.settings{max-width:650px}.settings form{max-width:450px}dialog{width:min(900px,95vw);max-height:94vh;overflow:auto;border:1px solid #d8c8b8;border-radius:18px;padding:1.5rem;color:inherit}dialog::backdrop{background:#24180cb3}.editor-grid{display:grid;grid-template-columns:230px 1fr;gap:2rem}.image-preview{height:260px;background:#f5f0e8;border-radius:12px;display:grid;place-items:center;margin-top:1rem}.image-preview img{width:100%;height:260px;object-fit:contain}.upload{border:1px dashed #b99b7b;border-radius:9px;padding:.8rem;cursor:pointer;font-size:.9rem}.upload input{font-size:.8rem;max-width:210px;padding:0;margin-top:.5rem}.two{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.checks{display:flex;flex-wrap:wrap;gap:.3rem .8rem}.checks label,.check{font-size:.9rem;font-weight:400}.checks label{margin:.3rem 0}.check input{accent-color:var(--accent)}fieldset{border:1px solid #e7ddd2;border-radius:9px;padding:1rem}.form-actions{display:flex;justify-content:flex-end;gap:.7rem;border-top:1px solid #e7ddd2;padding-top:1rem;margin-top:1rem}#message{position:sticky;top:1rem;z-index:3;background:#e6eedf;color:#25471b;padding:1rem;border:1px solid #b7cbaa;border-radius:10px}#message.error,.error{background:#fff0eb;color:#942b18;padding:.8rem;border-radius:8px}footer{text-align:center;color:#8d7a66;padding:2rem} [hidden]{display:none!important}@media(max-width:700px){header{gap:.7rem;padding:1rem}.logo{font-size:1.5rem}header a:not(.logo){font-size:.85rem}.heading{align-items:flex-start;flex-wrap:wrap}h1{font-size:2rem}.toolbar{flex-wrap:wrap}.toolbar input{flex-basis:100%}.toolbar select{flex:1}.product-row{flex-wrap:wrap;padding:.8rem;gap:.7rem}.product-row img{width:55px;height:65px}.row-actions{width:100%;justify-content:flex-end}.row-actions button{font-size:.85rem;padding:.6rem}.editor-grid{grid-template-columns:1fr;gap:.5rem}.image-preview,.image-preview img{height:180px}.upload input{max-width:100%}.two{grid-template-columns:1fr}.card{padding:1.3rem}main{padding:0 .8rem}.login{margin:2rem auto}}

.image-preview{position:relative;overflow:hidden;min-width:0}.image-preview img{position:absolute;inset:16px;width:calc(100% - 32px);height:calc(100% - 32px);max-width:calc(100% - 32px);max-height:calc(100% - 32px);object-fit:contain;margin:auto}.product-row img{flex-shrink:0;max-width:75px;object-fit:contain}

.photo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:1rem 0}.photo-tile{min-width:0;border:1px solid #dfd1c1;border-radius:10px;padding:.5rem;background:#fcfaf7;display:flex;flex-direction:column;gap:.4rem}.photo-tile img{display:block;width:100%;height:95px;object-fit:contain;background:repeating-conic-gradient(#eee7dd 0% 25%,#faf8f4 0% 50%) 50%/16px 16px;border-radius:6px}.photo-tile button{padding:.4rem;font-size:.8rem}.photo-tile small{text-align:center}.upload small{line-height:1.6}@media(max-width:700px){.photo-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
