@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500&display=swap');
:root{--plum:#553746;--muted:#776e70;--line:#e6dce0}*{box-sizing:border-box}body{margin:0;background:#f7f3f0;color:#392b33;font:14px 'DM Sans',Arial,sans-serif}header{display:flex;justify-content:space-between;align-items:center;padding:13px 5%;background:#fff;border-bottom:1px solid var(--line)}a{color:var(--plum);text-decoration:none}.admin-brand{display:flex;align-items:center;gap:20px}.admin-brand img{width:120px}.admin-brand span,.eyebrow{font-size:9px;letter-spacing:2px;color:#9a7b87}header>a:last-child{font-size:12px}main{max-width:1250px;margin:auto;padding:40px 30px 80px}h1,h2{font-family:'Playfair Display',Georgia,serif;font-weight:400}h1{font-size:35px;margin:10px 0}h2{font-size:27px;margin:0}p{color:var(--muted);line-height:1.8;font-size:12px}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid #704c60;background:linear-gradient(145deg,#806073,#553746);color:#fff;padding:12px 17px;border-radius:10px;box-shadow:0 3px 0 #352030;font-size:12px;font-weight:600}button:hover{filter:brightness(1.08)}button:active{transform:translateY(2px);box-shadow:0 1px 0 #352030}button:disabled{opacity:.45;cursor:wait}.secondary{background:#fff;color:var(--plum);border-color:#d9c6d1;box-shadow:0 2px 0 #d9c6d1}button:focus-visible,a:focus-visible{outline:3px solid #ba8faa;outline-offset:4px}[hidden]{display:none!important}label{display:grid;gap:8px;font-size:11px;font-weight:600;margin-bottom:20px}input:not([type=checkbox]),textarea,select{width:100%;background:#fff;border:1px solid #d9cbd3;border-radius:7px;padding:12px;color:#392b33;min-height:42px}input:focus,textarea:focus,select:focus{outline:2px solid #bc94aa}small{font-size:10px;font-weight:400;color:var(--muted);line-height:1.6}.auth-card{max-width:420px;margin:35px auto;padding:35px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 7px 0 #e0d1d6,0 22px 50px #55374612}.auth-card h1{font-size:31px}.auth-card form{margin-top:25px}.auth-card button{width:100%}.error{color:#a02247;min-height:18px;margin:15px 0;font-size:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.admin-nav{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0}.stats>div{padding:20px;background:#fff;border-radius:14px;border:1px solid var(--line);box-shadow:0 3px 0 #e2d4da}.stats strong{display:block;font-size:28px}.stats span{font-size:11px;color:var(--muted)}.search-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.search-row label{width:360px;max-width:75%}#admin-count{font-size:12px;color:var(--muted)}.admin-products{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.admin-product{padding:15px;background:#fff;border:1px solid var(--line);border-radius:14px;display:grid;grid-template-columns:76px 1fr;gap:14px}.admin-product>img{width:76px;height:105px;object-fit:cover;border-radius:7px}.admin-product h3{font-size:13px;line-height:1.5;margin:0 0 6px}.admin-product p{font-size:10px;margin:4px 0}.admin-product strong{font-size:14px}.admin-product .actions{grid-column:1/-1;display:flex;gap:8px}.admin-product button{flex:1;padding:9px;font-size:11px}.danger{background:#fff;color:#a13251;box-shadow:none;border:1px solid #d9bac6}.status{display:inline-block;padding:4px 7px;border-radius:5px;background:#f3edf0;font-size:9px!important}.status.sold{color:#ac3554;background:#ffeef1}.status.low{color:#865b16;background:#fff6db}dialog{border:1px solid var(--line);border-radius:17px;padding:27px;max-height:92dvh;width:min(780px,calc(100% - 25px));color:#392b33;box-shadow:0 25px 100px #23152060}dialog::backdrop{background:#352534b3;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-title{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:26px}.dialog-title .eyebrow{margin:0 0 6px}.close{background:#f5edf2;color:var(--plum);border:0;box-shadow:none;padding:5px;width:33px;height:33px;font-size:22px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.wide{grid-column:1/-1}fieldset{border:1px solid var(--line);border-radius:9px;margin:0 0 20px;padding:16px}legend{font-size:12px;font-weight:600;padding:0 6px}.checks{display:flex;flex-wrap:wrap;gap:10px 18px}.checks label,.check-line{display:flex;align-items:center;gap:7px;margin-bottom:5px;font-size:11px}input[type=checkbox]{accent-color:var(--plum);width:17px;height:17px}.photos{display:flex;gap:12px;flex-wrap:wrap}.photo-item{width:110px}.photo-item img{width:110px;height:120px;object-fit:cover;border-radius:6px}.photo-item div{display:flex;gap:3px;margin-top:6px}.photo-item button{font-size:11px;padding:5px 8px;box-shadow:none;border-radius:5px}.upload-label{display:inline-flex;border:1px dashed #aa8a9c;border-radius:8px;padding:13px;margin:18px 0 0;color:var(--plum);cursor:pointer}.upload-label input{max-width:230px;font-size:10px;border:0!important;padding:0!important;min-height:0!important}.photos-field>p{font-size:10px}.dialog-footer{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.category-row{display:grid;grid-template-columns:1fr auto auto auto;gap:7px;align-items:center;margin:12px 0}.category-row button{padding:8px;box-shadow:none;border-radius:6px}.category-row input{font-size:12px}#password-dialog{max-width:470px}#settings{max-width:600px}#admin-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:14px 24px;border-radius:10px;background:var(--plum);color:#fff;font-size:12px;display:none;z-index:20;max-width:90%;text-align:center}#admin-toast.show{display:block}@media(max-width:850px){.admin-products{grid-template-columns:1fr 1fr}.page-heading{align-items:flex-start}.page-heading h1{font-size:29px}}@media(max-width:550px){header{padding:10px 18px}.admin-brand{gap:8px}.admin-brand img{width:95px}.admin-brand span{font-size:7px;letter-spacing:1px}header>a:last-child{font-size:10px}main{padding:24px 17px}.page-heading{flex-direction:column;gap:10px}.page-heading h1{font-size:29px}.admin-nav{gap:8px}.admin-nav button{font-size:10px;padding:10px}.stats{gap:8px}.stats>div{padding:13px}.stats strong{font-size:23px}.stats span{font-size:9px}.admin-products{grid-template-columns:1fr}.editor-grid{grid-template-columns:1fr}.wide{grid-column:auto}dialog{padding:20px}.auth-card{padding:25px;margin:25px auto}.category-row{gap:5px}.category-row button{font-size:11px}.photos{gap:8px}}
