/* ================= Sakaar – Owner studio ================= */
.studio{background:#f6f1e8;z-index:135}
.st{display:grid;grid-template-columns:250px 1fr;min-height:100%}
.st-side{position:sticky;top:0;height:100vh;height:100dvh;background:var(--night);color:#e8d6c6;display:flex;flex-direction:column;padding:1.4rem 1rem;gap:1.6rem}
.st-brand{display:flex;align-items:center;gap:.6rem;font-family:var(--serif);font-size:1.4rem;font-weight:600;color:var(--ivory);cursor:pointer;padding:0 .4rem}
.st-brand img{width:42px}
.st-brand small{display:block;font-family:var(--sans);font-size:.56rem;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);margin-top:4px;font-weight:500}
.st-side nav{display:flex;flex-direction:column;gap:.25rem}
.st-side nav button{display:flex;align-items:center;gap:.8rem;padding:.75rem .9rem;border-radius:12px;font-size:.92rem;text-align:left;transition:background .3s,color .3s}
.st-side nav button svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.5;flex:none}
.st-side nav button:hover{background:rgba(240,214,144,.08)}
.st-side nav button.on{background:linear-gradient(135deg,rgba(240,214,144,.2),rgba(240,214,144,.06));color:var(--gold-2)}
.st-side nav em{margin-left:auto;font-style:normal;font-size:.7rem;background:var(--kumkum);color:#fff;border-radius:99px;padding:.15em .6em}
.st-view{margin-top:auto;font-size:.82rem;padding:.6rem .9rem;color:var(--gold-2);cursor:pointer}
.st-main{padding:2rem clamp(1rem,3vw,2.6rem) 5rem;min-width:0}
.st-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1.6rem}
.st-head h1{font-size:clamp(2rem,3.4vw,2.8rem);font-weight:500;margin-top:.2rem}
.muted{color:var(--muted);font-size:.88rem}
.panel{background:#fff;border-radius:20px;padding:1.4rem;border:1px solid rgba(36,18,26,.06);box-shadow:0 20px 40px -36px rgba(42,7,16,.4)}
.panel h3{font-size:1.4rem;margin-bottom:.8rem}
.panel.note{margin-top:1.2rem;background:linear-gradient(135deg,#fff,#fbf3e3)}
.panel.note p{color:var(--muted);max-width:70ch}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:1.4rem}
.stat{background:#fff;border-radius:18px;padding:1.2rem 1.3rem;border:1px solid rgba(36,18,26,.06);display:flex;flex-direction:column;gap:.15rem;animation:pop .7s var(--ease) both}
.stat:nth-child(2){animation-delay:.05s}.stat:nth-child(3){animation-delay:.1s}.stat:nth-child(4){animation-delay:.15s}.stat:nth-child(5){animation-delay:.2s}
@keyframes pop{from{opacity:0;transform:translateY(14px)}}
.stat b{font-family:var(--serif);font-size:2.2rem;font-weight:500;line-height:1}
.stat span{font-size:.78rem;letter-spacing:.12em;text-transform:uppercase}
.stat small{color:var(--muted);font-size:.78rem}
.stat.hl{background:linear-gradient(135deg,var(--wine),var(--maroon));color:var(--ivory);border:0}
.stat.hl small{color:#d9c3b4}
.stat.warn b{color:#b45309}
.st-cols{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}
@media (max-width:1100px){.st-cols{grid-template-columns:1fr}}
.mini{display:grid;grid-template-columns:48px 1fr auto;gap:.8rem;align-items:center;padding:.6rem 0;border-bottom:1px solid rgba(36,18,26,.06)}
.mini .th{width:48px}
.mini .th .artbox{width:100%;height:100%}
.mini b{font-weight:500;font-size:.92rem;display:block;line-height:1.25}
.mini small{color:var(--muted);font-size:.78rem}
.st-tools{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:1rem}
.st-tools input,.st-tools select{font:inherit;font-size:.9rem;padding:.7em 1em;border-radius:12px;border:1px solid rgba(36,18,26,.14);background:#fff;min-width:220px}
.st-tools .chips{flex:1}
.st-tools .chip em{font-style:normal;opacity:.6;margin-left:.3em}

/* product rows */
.plist{display:flex;flex-direction:column;gap:8px}
.prow{display:grid;grid-template-columns:30px 64px minmax(160px,1.6fr) 90px 150px auto auto 80px;gap:1rem;align-items:center;background:#fff;border-radius:16px;padding:.7rem 1rem .7rem .6rem;border:1px solid rgba(36,18,26,.06);transition:box-shadow .3s,opacity .3s,transform .4s var(--ease)}
.prow:hover{box-shadow:0 16px 30px -22px rgba(42,7,16,.45)}
.prow.is-hidden{opacity:.62}
.prow .ord{display:flex;flex-direction:column}
.prow .ord button{height:20px;display:grid;place-items:center;border-radius:6px;color:var(--muted)}
.prow .ord button:hover:not([disabled]){background:var(--cream);color:var(--ink)}
.prow .ord button[disabled]{opacity:.25}
.prow .ord svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
.prow .th{position:relative;width:64px;aspect-ratio:4/5;border-radius:10px;overflow:hidden;cursor:pointer;background:var(--cream)}
.prow .th img,.prow .th .artbox{width:100%;height:100%;object-fit:cover}
.prow .th em{position:absolute;right:3px;bottom:3px;font-style:normal;font-size:.6rem;background:rgba(0,0,0,.6);color:#fff;border-radius:6px;padding:.1em .4em}
.prow .th em.no{left:3px;right:3px;text-align:center;background:rgba(163,23,43,.85)}
.pn b{display:block;font-weight:500;line-height:1.25}
.pn small{color:var(--muted);font-size:.78rem}
.bdg{color:var(--gold-3)}
.pp{font-weight:500}
.stp{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.stp button{width:30px;height:30px;border-radius:9px;background:var(--cream);font-size:1rem;transition:background .2s}
.stp button:hover{background:var(--sand)}
.stp input{width:46px;text-align:center;font:inherit;font-weight:500;border:1px solid transparent;border-radius:8px;padding:.3em 0;background:transparent}
.stp input:focus{border-color:var(--gold);outline:none;background:#fff}
.stp small{width:100%;font-size:.66rem;color:var(--muted);letter-spacing:.08em;padding-left:2px}
.sw{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.8rem;user-select:none}
.sw input{position:absolute;opacity:0;width:0;height:0}
.sw i{width:38px;height:22px;border-radius:99px;background:#d8cfc2;position:relative;transition:background .35s;flex:none}
.sw i::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.2);transition:transform .45s var(--ease)}
.sw input:checked+i{background:#16a34a}
.sw.gold input:checked+i{background:var(--gold)}
.sw input:checked+i::after{transform:translateX(16px)}
.sw input:focus-visible+i{outline:2px solid var(--gold);outline-offset:2px}
.acts{display:flex;gap:4px;justify-content:flex-end}
.acts button{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;transition:background .2s,color .2s}
.acts button:hover{background:var(--cream)}
.acts button[data-del]:hover{background:#fee2e2;color:#b91c1c}
.acts svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6}
@media (max-width:1100px){.prow{grid-template-columns:26px 58px 1fr auto;grid-template-areas:"o t n a" "o t p s" "o t v f";row-gap:.4rem}.prow .ord{grid-area:o}.prow .th{grid-area:t;width:58px}.pn{grid-area:n}.pp{grid-area:p}.prow .stp{grid-area:s}.prow .acts{grid-area:a}.prow .sw:not(.gold){grid-area:v}.prow .sw.gold{grid-area:f}.prow .stp small{display:none}}

/* orders */
.olist{display:flex;flex-direction:column;gap:8px}
.orow{width:100%;display:grid;grid-template-columns:1.1fr 1.4fr .8fr auto;gap:1rem;align-items:center;text-align:left;background:#fff;border-radius:14px;padding:.9rem 1.1rem;border:1px solid rgba(36,18,26,.06);transition:box-shadow .3s,transform .4s var(--ease)}
.panel .orow{border-radius:0;border:0;border-bottom:1px solid rgba(36,18,26,.06);padding:.8rem .2rem}
.orow:hover{box-shadow:0 16px 30px -22px rgba(42,7,16,.45);transform:translateY(-1px)}
.orow small{display:block;color:var(--muted);font-size:.76rem;font-weight:400}
.oid{font-weight:500;font-size:.9rem}
.otot{font-weight:500;text-align:right}
@media (max-width:700px){.orow{grid-template-columns:1fr auto}.orow .ocu{grid-column:1}.orow .otot{text-align:left}}

/* drawer */
.st-drawer{position:fixed;inset:0;z-index:180;pointer-events:none}
.st-dscrim{position:absolute;inset:0;background:rgba(20,3,8,.45);opacity:0;transition:opacity .5s;backdrop-filter:blur(3px)}
.st-dpanel{position:absolute;top:0;right:0;bottom:0;width:min(620px,100vw);background:var(--ivory);display:flex;flex-direction:column;transform:translateX(104%);transition:transform .75s var(--ease);box-shadow:-40px 0 80px -40px rgba(0,0,0,.5);overflow:auto}
.st-drawer.on{pointer-events:auto}
.st-drawer.on .st-dscrim{opacity:1}
.st-drawer.on .st-dpanel{transform:none}
.dp-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem 1.5rem;background:rgba(251,245,234,.92);backdrop-filter:blur(12px);border-bottom:1px solid rgba(36,18,26,.08)}
.dp-head h2{font-size:1.9rem;font-weight:500}
.dp-body{padding:1.4rem 1.5rem;display:flex;flex-direction:column;gap:1.6rem;flex:1}
.dp-body h4{font-family:var(--sans);font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-3);font-weight:500;margin-bottom:.6rem}
.dp-foot{position:sticky;bottom:0;display:flex;gap:.6rem;align-items:center;justify-content:flex-end;padding:1rem 1.5rem;background:rgba(251,245,234,.95);backdrop-filter:blur(12px);border-top:1px solid rgba(36,18,26,.08)}
.dp-foot .muted{margin-right:auto}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.grid2 .full{grid-column:1/-1}
.f{display:flex;flex-direction:column;gap:.35rem}
.f label{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.f input,.f select,.f textarea,.notify textarea,.ship input{font:inherit;font-size:.95rem;padding:.75em .9em;border-radius:12px;border:1px solid rgba(36,18,26,.15);background:#fff;outline:none;transition:border-color .3s,box-shadow .3s;width:100%}
.f input:focus,.f select:focus,.f textarea:focus,.notify textarea:focus,.ship input:focus{border-color:var(--gold-3);box-shadow:0 0 0 4px rgba(212,173,90,.18)}
@media (max-width:560px){.grid2{grid-template-columns:1fr}}

/* photos */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin:.8rem 0}
.photos:empty{display:none}
.ph-t{position:relative;aspect-ratio:4/5;border-radius:12px;overflow:hidden;background:var(--cream);animation:pop .5s var(--ease) both}
.ph-t img{width:100%;height:100%;object-fit:cover}
.ph-t.up img{filter:blur(2px) brightness(.8)}
.ph-t .cover{position:absolute;left:6px;top:6px;font-size:.58rem;letter-spacing:.16em;text-transform:uppercase;background:var(--gold);color:var(--night);padding:.25em .55em;border-radius:6px}
.ph-t .spin{position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px;border-radius:50%;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .8s linear infinite}
.ph-a{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;padding:6px;background:linear-gradient(transparent,rgba(0,0,0,.55));opacity:0;transition:opacity .3s}
.ph-t:hover .ph-a,.ph-t:focus-within .ph-a{opacity:1}
@media (hover:none){.ph-a{opacity:1}}
.ph-a button{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.92);font-size:1rem;line-height:1}
.ph-a button[disabled]{opacity:.3}
.ph-a [data-x]{color:#b91c1c}
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:1.8rem 1rem;border:1.5px dashed rgba(36,18,26,.25);border-radius:18px;background:#fff;cursor:pointer;text-align:center;transition:border-color .3s,background .3s,transform .4s var(--ease)}
.drop svg{width:34px;height:34px;stroke:var(--gold-3);fill:none;stroke-width:1.4}
.drop small{color:var(--muted);font-size:.78rem}
.drop:hover,.drop.over{border-color:var(--gold-3);background:#fffaf0}
.drop.over{transform:scale(1.02)}

/* order panel */
.nextstep{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;background:#fff;border-radius:16px;padding:1rem 1.1rem;border:1px solid rgba(212,173,90,.5)}
.nextstep small{display:block;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.nextstep.done{border-color:#86efac;color:#166534}
.ship{display:flex;gap:.5rem;width:100%}
.notify{background:#fff;border-radius:16px;padding:1.1rem;display:flex;flex-direction:column;gap:.7rem;border:1px solid rgba(36,18,26,.06)}
.notify h4{margin:0}
.nbtns{display:flex;gap:.5rem;flex-wrap:wrap}
.btn-wa{background:#1faa59;color:#fff}
.btn-wa:hover{background:#178c49;transform:translateY(-2px)}
.btn-wa svg{width:18px;height:18px}
.btn.sm{padding:.65em 1.1em;font-size:.72rem}
.btn-danger{background:#b91c1c;color:#fff}
.sum{display:grid;grid-template-columns:1fr auto;gap:.4rem;margin-top:.8rem;font-size:.92rem}
.sum dt{color:var(--muted)}
.addr{line-height:1.6}

/* enquiries */
.elist{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.ecard{background:#fff;border-radius:18px;padding:1.2rem;display:flex;flex-direction:column;gap:.7rem;border:1px solid rgba(36,18,26,.06);animation:pop .6s var(--ease) both}
.ecard.done{opacity:.55}
.ecard header,.ecard footer{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap}
.ecard header small{display:block;color:var(--muted);font-size:.76rem}
.ecard footer{margin-top:auto}
.sform{display:flex;flex-direction:column;gap:1.4rem;align-items:flex-start}
.sform .grid2{width:100%}

/* confirm + lock */
.st-confirm{position:fixed;inset:0;z-index:220;display:grid;place-items:center;background:rgba(20,3,8,.5);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;padding:1rem}
.st-confirm.on{opacity:1;visibility:visible}
.cf-box{background:#fff;border-radius:22px;padding:1.8rem;max-width:420px;display:flex;flex-direction:column;gap:.8rem;transform:scale(.94);transition:transform .5s var(--ease)}
.st-confirm.on .cf-box{transform:none}
.cf-box h3{font-size:1.6rem}
.cf-box p{color:var(--muted)}
.cf-box div{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.4rem}
.st-lock{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;text-align:center;padding:2rem}
.st-lock img{width:90px}
.st-lock h2{font-size:2.2rem;font-weight:500}
.st-lock p{color:var(--muted)}

@media (max-width:860px){
  .st{grid-template-columns:1fr}
  .st-side{position:sticky;top:0;z-index:5;height:auto;flex-direction:row;align-items:center;padding:.6rem .8rem;gap:.6rem;overflow-x:auto}
  .st-brand span,.st-view{display:none}
  .st-side nav{flex-direction:row}
  .st-side nav button{padding:.55rem .7rem;font-size:.8rem;white-space:nowrap}
  .st-side nav button span{display:none}
  .st-side nav button.on span{display:inline}
  .st-main{padding-top:1.2rem}
  .st-tools input,.st-tools select{min-width:0;flex:1}
}

/* photos & videos tab */
.panel.md{margin-bottom:14px}
.panel.md h3 small{font-size:.8rem;color:var(--muted);font-weight:500;margin-left:.4rem}
.panel.md > .muted{margin:-.4rem 0 1rem}
.md-hero{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}
.md-acts{display:flex;flex-direction:column;gap:.6rem;align-items:flex-start}
.md-prev{position:relative;width:150px;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--soft);display:grid;place-items:center}
.md-prev.wide{width:min(420px,100%);aspect-ratio:16/9}
.md-prev.tall{width:100%;aspect-ratio:3/4}
.md-prev img,.md-prev video{width:100%;height:100%;object-fit:cover}
.md-empty{font-size:.8rem;color:var(--muted);display:flex;align-items:center;gap:.5rem}
.md-empty .spin{position:static;margin:0;width:18px;height:18px;border-width:2px;border-color:rgba(0,0,0,.15);border-top-color:var(--rani);border-radius:50%;animation:spin .8s linear infinite;border-style:solid}
.md-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.md-card{display:flex;flex-direction:column;gap:.45rem}
.md-card input,.md-card select{font:inherit;font-size:.82rem;padding:.55em .7em;border-radius:9px;border:1px solid var(--line);background:#fff;width:100%}
.md-add{border:1.5px dashed #d8c7b4;border-radius:14px;min-height:200px;color:var(--rani);font-weight:700;font-size:.86rem;transition:background .3s,border-color .3s}
.md-add:hover{background:var(--rani-l);border-color:var(--rani)}

.st-out{background:none;border:0;text-align:left;margin-top:0;color:#c9a9a2;cursor:pointer;font:inherit;font-size:.82rem}
.pill.s-pending{background:#fff3d6;color:#8a5a00}
.paybox{margin-top:.8rem;padding:.8rem;border:1px dashed #f0c869;border-radius:12px;background:#fffaf0}
.paybox b{display:block;font-size:.85rem;margin-bottom:.5rem}
.paybox .paym{display:flex;gap:.4rem}
.paybox .paym button{flex:1;padding:.55rem;border-radius:10px;border:1px solid rgba(36,18,26,.14);background:#fff;font-weight:500;cursor:pointer}
.paybox .paym button:hover{background:var(--maroon);color:var(--ivory)}
/* website editor */
.ws{margin-bottom:14px}
.ws h3 small{font-family:var(--sans);font-size:.8rem;color:var(--muted);margin-left:.3rem}
.ws-tog{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.7rem;margin-top:.6rem}
.ws-g{border-top:1px solid rgba(36,18,26,.08);padding:.7rem 0}
.ws-g summary{cursor:pointer;font-weight:500;font-size:.98rem;list-style:none;display:flex;justify-content:space-between}
.ws-g summary::after{content:'+';color:var(--gold-3);font-size:1.2rem;line-height:1}
.ws-g[open] summary::after{content:'−'}
.ws-g .grid2{margin-top:.8rem}
.ws-g .lnk{margin-top:.4rem;font-size:.8rem}
.ws textarea,.ws input{width:100%}
.ws-item{display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;align-items:start;padding:.8rem 0;border-top:1px solid rgba(36,18,26,.06)}
.ws-item .ws-body{display:flex;flex-direction:column;gap:.4rem;min-width:0}
.ws-item input,.ws-item textarea{padding:.6rem .75rem;border:1px solid rgba(36,18,26,.14);border-radius:10px;font:inherit;background:#fff}
.ws-ord{display:flex;flex-direction:column;gap:.2rem}
.ws-ord button,.ws-item .rm{width:30px;height:30px;border-radius:8px;border:1px solid rgba(36,18,26,.12);background:#fff;display:grid;place-items:center;cursor:pointer}
.ws-ord button svg,.ws-item .rm svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.6}
.ws-ord button:disabled{opacity:.3}
.ws-item.jn{grid-template-columns:150px 1fr auto}
.jn-ph{position:relative;aspect-ratio:4/5;border-radius:12px;background-size:cover;background-position:center;display:flex;align-items:flex-end;justify-content:center;padding:.5rem;background-color:#f3ece2}
.jn-ph .btn{font-size:.65rem;padding:.4rem .7rem;background:rgba(255,255,255,.9)}
.jn-ph .spin{position:absolute;inset:0;margin:auto}
.ws-bar{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1.2rem;margin-top:1rem;background:rgba(255,250,243,.95);backdrop-filter:blur(10px);border:1px solid rgba(36,18,26,.08);border-radius:16px;box-shadow:0 -10px 30px -20px rgba(42,7,16,.4);z-index:5}
.ws-bar .dirty{color:#b45309;font-weight:500}
@media (max-width:700px){.ws-item.jn{grid-template-columns:1fr}.jn-ph{aspect-ratio:16/9}}
