/* Booply Billing styles */
html{-webkit-text-size-adjust:100%}
body{margin:0}
[hidden]{display:none!important}
img{max-width:100%}
/* Layout: catalogue on the left, a sticky bill "counter slip" on the right; stacks on phones with a bottom total bar */
:root{
  /* Booply brand: logo red, white, near-black ink, mustard from the product tags */
  --bg:#f7f4f2; --surface:#ffffff; --sunk:#f3eeeb; --line:#e8dfdb;
  --ink:#1c1a1b; --muted:#6f6668; --accent:#e02045; --accent-ink:#ffffff;
  --plum:#e02045; --plum-soft:#fde7ec; --on-brand:#ffffff; --mustard:#e9bf74; --danger:#b3161b; --ok:#1f7a4d;
  --f-display:"Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --f-body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r:12px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#161314; --surface:#211d1e; --sunk:#2b2627; --line:#3b3436;
  --ink:#f4efed; --muted:#b0a5a7; --accent:#ef3d5f; --accent-ink:#ffffff;
  --plum:#ff7a92; --plum-soft:#3a2223; --on-brand:#ffffff; --mustard:#f7b443; --danger:#ff7b80; --ok:#5fd39a; color-scheme:dark }}
:root[data-theme="dark"]{
  --bg:#161314; --surface:#211d1e; --sunk:#2b2627; --line:#3b3436;
  --ink:#f4efed; --muted:#b0a5a7; --accent:#ef3d5f; --accent-ink:#ffffff;
  --plum:#ff7a92; --plum-soft:#3a2223; --on-brand:#ffffff; --mustard:#f7b443; --danger:#ff7b80; --ok:#5fd39a; color-scheme:dark }
/* brand surfaces always use the solid logo red with white text */
.bill-h{background:var(--accent)!important;color:var(--on-brand)!important}
.btn.plum{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-brand)}
.brand{align-items:center}
.brand h1.logo{margin:0;line-height:0}
.brand h1.logo img{height:84px;width:auto;max-width:none;background:#ffffff;border-radius:14px;padding:4px 6px;display:block}
@media (max-width:960px){.brand h1.logo img{height:58px;border-radius:10px;padding:3px 4px}}
.tot .grand b{color:var(--accent)}
.tot .grand{border-top:3px solid var(--mustard)}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.45}
.wrap{max-width:1280px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:20px 110px}
header.top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.brand{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.brand h1{font-family:var(--f-display);font-weight:800;font-size:clamp(26px,4vw,34px);margin:0;letter-spacing:-.02em;color:var(--plum)}
.brand span{color:var(--muted);font-size:14px}
button{font:inherit;cursor:pointer;color:inherit}
.btn{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 14px;font-weight:600;font-size:14px}
.btn:hover{border-color:var(--plum)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.plum{background:var(--plum);color:var(--surface);border-color:var(--plum)}
.btn:disabled{opacity:.5;cursor:not-allowed}
:focus-visible{outline:2px solid var(--plum);outline-offset:2px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px;align-items:start}
@media (max-width:960px){.layout{grid-template-columns:minmax(0,1fr)}}
/* catalogue */
.tools{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.search{flex:1 1 220px;min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:9px 16px;font:inherit;color:var(--ink)}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.chip{border:1px solid var(--line);background:transparent;border-radius:999px;padding:5px 12px;font-size:13px;font-weight:600;color:var(--muted)}
.chip[aria-pressed="true"]{background:var(--plum);border-color:var(--plum);color:var(--surface)}
.chip small{font-family:var(--f-mono);font-weight:500;opacity:.75;margin-left:4px}
.cat-h{font-family:var(--f-display);font-weight:600;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:18px 0 8px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.card .t{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.card .n{font-weight:600;line-height:1.3;min-width:0}
.card .type{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.card .p{font-family:var(--f-mono);font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.sizes{display:flex;flex-wrap:wrap;gap:5px}
.sz{border:1px solid var(--line);background:var(--sunk);border-radius:8px;padding:4px 8px;font-size:12px;font-weight:600;font-family:var(--f-mono)}
.sz[aria-pressed="true"]{background:var(--plum-soft);border-color:var(--plum);color:var(--plum)}
.card .add{display:flex;justify-content:space-between;align-items:center;gap:8px}
.flag{font-size:11px;color:var(--danger);font-weight:600}
.empty{color:var(--muted);padding:30px 0;text-align:center}
/* bill */
.bill{position:sticky;top:calc(env(safe-area-inset-top,0px) + 12px);background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
@media (max-width:960px){.bill{position:static}}
.bill-h{background:var(--plum);color:var(--surface);padding:14px 18px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
:root[data-theme="dark"] .bill-h{color:var(--bg)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .bill-h{color:var(--bg)}}
.bill-h h2{margin:0;font-family:var(--f-display);font-size:20px;font-weight:800}
.bill-h .no{font-family:var(--f-mono);font-size:13px}
.sec{padding:14px 18px;border-bottom:1px dashed var(--line);display:grid;gap:8px}
.sec:last-child{border-bottom:0}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
label.f{display:grid;gap:3px;font-size:12px;font-weight:600;color:var(--muted)}
.inp{border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:7px 10px;font:inherit;font-size:14px;color:var(--ink);width:100%;min-width:0}
textarea.inp{resize:vertical;min-height:38px}
.items{display:grid;gap:8px;max-height:340px;overflow:auto}
.it{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--sunk)}
.it:last-child{border-bottom:0;padding-bottom:0}
.it .nm{font-size:14px;font-weight:600;line-height:1.3}
.it .meta{font-size:12px;color:var(--muted);font-family:var(--f-mono)}
.it .amt{font-family:var(--f-mono);font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.qty button{border:0;background:var(--sunk);width:28px;height:26px;font-weight:700}
.qty span{min-width:28px;text-align:center;font-family:var(--f-mono);font-size:13px}
.rm{border:0;background:none;color:var(--danger);font-size:12px;font-weight:600;padding:0 4px}
.tot{display:grid;gap:4px;font-variant-numeric:tabular-nums}
.tot div{display:flex;justify-content:space-between;font-size:14px}
.tot div b{font-family:var(--f-mono);font-weight:600}
.tot .grand{font-size:18px;font-weight:700;border-top:1px solid var(--line);padding-top:6px;margin-top:4px}
.tot .grand b{font-size:20px;color:var(--plum)}
.disc{display:grid;grid-template-columns:1fr 90px;gap:6px}
.note{font-size:12px;color:var(--muted)}
.mini-empty{color:var(--muted);font-size:14px;padding:6px 0}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.actions .btn.primary{flex:1}
/* mobile total bar */
.mbar{display:none}
@media (max-width:960px){.mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);
  padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));justify-content:space-between;align-items:center;gap:10px}
  .mbar b{font-family:var(--f-mono);font-size:18px}}
/* overlay */
.ov{position:fixed;inset:0;z-index:40;background:color-mix(in srgb,var(--ink) 55%,transparent);display:flex;justify-content:center;align-items:flex-start;overflow:auto;
  padding:calc(16px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
.panel{background:var(--surface);border-radius:16px;width:100%;max-width:860px;border:1px solid var(--line);overflow:hidden}
.panel-h{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line)}
.panel-h h3{margin:0;font-family:var(--f-display);font-size:18px}
.pdfview{background:var(--sunk);padding:16px;display:grid;gap:12px;justify-items:center;max-height:75vh;overflow:auto}
.pdfview canvas{width:100%;max-width:760px;height:auto;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.18);border-radius:2px}
.status{font-size:13px;color:var(--muted)}
.status.err{color:var(--danger)} .status.ok{color:var(--ok)}
.settings{padding:16px;display:grid;gap:10px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:60;background:var(--ink);color:var(--bg);padding:8px 16px;border-radius:999px;font-size:14px;font-weight:600}
.hist{display:grid;gap:6px;padding:16px;max-height:60vh;overflow:auto}
.hrow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:8px 12px}
.hrow .m{font-family:var(--f-mono);font-size:13px}
.hrow .c{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (prefers-reduced-motion:no-preference){.card,.btn,.chip{transition:border-color .15s,background .15s}}

/* ---- v2 responsive layer ---- */
.card .foot{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.card .foot .sizes{flex:1;min-width:0}
.addbtn{padding:7px 16px;flex:none}
.qty{justify-self:start}
.it .rmcell{text-align:right}
/* laptop: bill panel fits the screen, totals + button always visible */
.bill{display:flex;flex-direction:column;max-height:calc(100vh - 110px - env(safe-area-inset-top,0px));min-height:420px}
.bill-body{overflow:auto;flex:1 1 auto;min-height:0}
.bill-foot{border-top:1px solid var(--line);background:var(--surface)}
.items{max-height:none;overflow:visible}
.mbar .bar-btns{display:flex;gap:8px}
.back{display:none}
@media (max-width:960px){
  .wrap{padding-block:12px 96px}
  header.top{margin-bottom:10px}
  .brand span{display:none}
  .brand h1{font-size:26px}
  header.top .btn{padding:6px 12px;font-size:13px}
  .stick{position:sticky;top:env(safe-area-inset-top,0px);z-index:15;background:var(--bg);padding-block:8px 6px;margin-bottom:4px}
  body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:16;background:var(--bg)}
  .tools{margin-bottom:8px}
  .chips{flex-wrap:nowrap;overflow-x:auto;margin-bottom:0;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:none}
  .cat-h{margin:14px 0 6px}
  .grid{grid-template-columns:minmax(0,1fr);gap:8px}
  .card{padding:10px 12px;gap:8px}
  .card .n{font-size:14.5px}
  .sz{padding:5px 9px}
  .inp,.search{font-size:16px}
  /* two screens on phone: products / bill */
  body.v-bill main{display:none}
  body:not(.v-bill) .bill{display:none}
  .bill{max-height:none;border-radius:14px}
  .bill-body{overflow:visible}
  .back{display:inline-flex}
  .bill-foot .actions{display:none}
  .mbar{display:flex}
  .mbar .sum{min-width:0}
  .mbar .btn{padding:10px 16px}
  .ov{padding:0}
  .panel{border-radius:0;min-height:100%;border:0;max-width:none!important}
  .panel-h{position:sticky;top:0;background:var(--surface);z-index:1;padding-top:calc(12px + env(safe-area-inset-top,0px))}
  .pdfview{max-height:none;padding:10px}
  .hrow{grid-template-columns:minmax(0,1fr) auto}
  .hrow .btn{grid-column:1 / -1}
}
@media (max-width:380px){ .row2{grid-template-columns:minmax(0,1fr)} }

/* ---- v3 product photos ---- */
.card{padding:0;overflow:hidden;gap:0}
.card .body{padding:12px 14px;display:flex;flex-direction:column;gap:10px;flex:1;min-width:0}
.card .foot{margin-top:auto}
.pic{display:block;position:relative;width:100%;aspect-ratio:4/3;max-width:100%;border:0;padding:0;margin:0;background:var(--sunk);overflow:hidden;border-bottom:1px solid var(--line)}
button.pic{cursor:zoom-in}
.pic img{width:100%;height:100%;object-fit:cover;display:block}
.pic .cnt{position:absolute;right:8px;bottom:8px;background:color-mix(in srgb,var(--ink) 70%,transparent);color:var(--bg);font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;font-family:var(--f-mono)}
.pic.ph{display:grid;place-items:center;align-content:center;gap:2px;color:var(--muted)}
.pic.ph b{font-family:var(--f-display);font-weight:800;font-size:30px;color:var(--plum);opacity:.35;line-height:1}
.pic.ph small{font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.it{grid-template-columns:40px minmax(0,1fr) auto}
.it .th{width:40px;height:40px;border-radius:8px;object-fit:cover;background:var(--sunk);grid-row:span 2;align-self:start}
.it .th.ph{display:grid;place-items:center;font-family:var(--f-display);font-weight:800;color:var(--plum);opacity:.5}
.it .qty{grid-column:2}
.it .rmcell{grid-column:3}
.gal{padding:12px 16px 16px;display:grid;gap:10px}
.gal .big{width:100%;max-height:70vh;object-fit:contain;background:var(--sunk);border-radius:10px}
.gal .thumbs{display:flex;gap:8px;overflow-x:auto}
.gal .thumbs button{border:2px solid transparent;padding:0;border-radius:8px;overflow:hidden;width:64px;height:64px;flex:none;background:var(--sunk)}
.gal .thumbs button[aria-pressed="true"]{border-color:var(--plum)}
.gal .thumbs img{width:100%;height:100%;object-fit:cover}
@media (max-width:960px){
  .card{flex-direction:row}
  .pic{width:104px;flex:none;aspect-ratio:auto;min-height:104px;border-bottom:0;border-right:1px solid var(--line)}
  .card .body{padding:10px 12px;gap:8px}
  .gal .big{max-height:none}
}

/* ---- hosted version: auth, nav, reports, admin ---- */
a{color:var(--accent)}
a.btn{text-decoration:none;display:inline-flex;align-items:center;color:var(--ink)}
a.btn.primary{color:var(--accent-ink)}
.who{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
.who b{color:var(--ink)}
.nav{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.nav .btn[aria-current="page"]{border-color:var(--accent);color:var(--accent)}
body.auth{min-height:100vh;display:grid;place-items:center;padding:24px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}
.auth-card{width:100%;max-width:420px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;display:grid;gap:14px}
.auth-card h1{margin:0;font-family:var(--f-display);font-size:22px}
.auth-logo{width:120px;height:auto;background:#fff;border-radius:12px;padding:4px;justify-self:start}
.auth-form{display:grid;gap:12px}
.auth-form fieldset{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:10px;margin:0}
.auth-form legend{font-size:12px;font-weight:700;color:var(--muted);padding:0 6px}
.auth-form .btn{padding:11px 16px;font-size:15px}
.err{background:var(--plum-soft);color:var(--danger);border-radius:10px;padding:10px 12px;margin:0;font-weight:600;font-size:14px}
.ok{color:var(--ok);font-weight:600}
code{font-family:var(--f-mono);font-size:.9em;background:var(--sunk);padding:1px 5px;border-radius:5px}

/* reports */
.rep-h{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.rep-h h2{margin:0;font-family:var(--f-display);font-size:24px}
.range{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}
.range .inp{width:auto}
.quick{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:18px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.tile .l{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.tile .v{font-family:var(--f-mono);font-size:22px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:4px}
.tile.hi{border-color:var(--accent)}
.tile.hi .v{color:var(--accent)}
.tile .s{font-size:12px;color:var(--muted)}
.grid2{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:960px){.grid2{grid-template-columns:minmax(0,1fr)}}
.box{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:16px}
.box-h{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.box-h h3{margin:0;font-size:15px}
.tbl-wrap{overflow-x:auto}
table.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:8px 12px;background:var(--sunk);white-space:nowrap}
.tbl td{padding:8px 12px;border-top:1px solid var(--sunk);vertical-align:middle}
.tbl .n{text-align:right;font-family:var(--f-mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.tbl tr.zero td{color:var(--muted)}
.tbl tr.cx td{color:var(--muted);text-decoration:line-through}
.tbl tr.cx td.keep{text-decoration:none}
.tbl tfoot td{font-weight:700;border-top:2px solid var(--line)}
.bar{height:6px;border-radius:3px;background:var(--accent);opacity:.85;min-width:2px}
.pill{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;background:var(--sunk);color:var(--muted)}
.pill.cx{background:var(--plum-soft);color:var(--danger)}
.pill.adm{background:var(--plum-soft);color:var(--accent)}
.lnk{border:0;background:none;color:var(--accent);font-weight:600;padding:0;font-size:13px}
.formrow{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end}
.formrow .f{flex:1 1 140px}
.settings h4{margin:8px 0 0;font-size:14px}
.muted{color:var(--muted)}
@media (max-width:960px){ .rep-h h2{font-size:20px} .tile .v{font-size:19px} }

/* ---- products & prices (admin) ---- */
.plist{display:grid;gap:8px}
.prow{display:grid;grid-template-columns:64px minmax(0,1.2fr) minmax(0,2fr) auto;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.prow.dirty{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.prow.removed{opacity:.6}
.prow .th{width:64px;height:64px;border-radius:10px;object-fit:cover;background:var(--sunk);display:grid;place-items:center;font-family:var(--f-display);font-weight:800;color:var(--accent);opacity:1}
.prow .nm{font-weight:600;line-height:1.3}
.prow .meta{font-size:12px;color:var(--muted);margin-top:2px}
.prices{display:flex;flex-wrap:wrap;gap:6px}
.pr{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--bg)}
.pr span{font-family:var(--f-mono);font-size:12px;font-weight:600;padding:0 7px;color:var(--muted);background:var(--sunk);align-self:stretch;display:grid;place-items:center;white-space:nowrap}
.pr input{width:72px;border:0;background:transparent;font:inherit;font-family:var(--f-mono);font-size:14px;padding:6px 7px;color:var(--ink);font-variant-numeric:tabular-nums}
.pr input:focus{outline:2px solid var(--accent);outline-offset:-2px}
.pr.ch{border-color:var(--accent)}
.prow .acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.prow .acts .btn{padding:6px 12px;font-size:13px}
.savebar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--ink);color:var(--surface);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;
  padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.savebar .btn:not(.primary){background:transparent;color:var(--surface);border-color:color-mix(in srgb,var(--surface) 40%,transparent)}
.vars{display:grid;gap:6px;margin:8px 0}
.var{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;align-items:center}
.photos{display:flex;gap:10px;flex-wrap:wrap}
.pph{width:110px;display:grid;gap:4px;font-size:12px}
.pph img{width:110px;height:110px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:var(--sunk)}
.pph.main img{border:2px solid var(--accent)}
.pph .row{display:flex;justify-content:space-between;gap:4px}
.btn.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 45%,transparent)}
.confirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--plum-soft);border-radius:10px;padding:8px 10px;font-size:13px}
@media (max-width:960px){
  .prow{grid-template-columns:56px minmax(0,1fr);gap:10px}
  .prow .th{width:56px;height:56px}
  .prow .prices,.prow .acts{grid-column:1 / -1}
  .prow .acts{justify-content:flex-start}
  .pr input{width:64px;font-size:16px}
}
.settings label.btn{display:inline-flex;width:max-content;align-items:center}
#edPhotosSec .photos{margin-bottom:10px}
@media (max-width:960px){ .pr input{width:84px} }

/* stock line on product cards */
.stk{font-size:12px;color:var(--muted);margin:2px 0 4px}
.stk.out{color:#b3261e;font-weight:600}
