/* P‑Console 0.20.0 — המוצרים לפי סניפים, שינוי קישור לכל הסניף, מתן שמות בסריקה (assets/units.js).
   הצבעים והכפתורים של ארזוני (var(--…), .btn); טקסט במרכז (UI-UX D33); צדדים לוגיים (אנגלית / רוסית משמאל לימין). */

/* ── קבוצה לכל סניף ── */
#stack.pxpc-brs,#pcStack.pxpc-brs{display:flex;flex-direction:column;align-items:stretch;gap:14px;column-count:auto;column-width:auto}
#stack.pxpc-brs>.pxpc-br,#pcStack.pxpc-brs>.pxpc-br{margin:0;break-inside:auto}
#stack.pxpc-brs>.grp-note,#pcStack.pxpc-brs>.grp-note{margin:0}
.pxpc-br{border:1px solid var(--border);border-radius:20px;background:var(--surface-sunken);padding:6px 6px 6px}
.pxpc-br[hidden]{display:none}
.pxpc-brh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;padding:6px 8px}
.pxpc-brt{display:flex;align-items:center;gap:10px;flex:1 1 220px;min-width:0;min-height:44px;padding:4px 6px;border:0;background:none;color:var(--foreground);font:inherit;font-size:var(--step-1);font-weight:700;cursor:pointer;text-align:start;justify-content:flex-start!important}
.pxpc-brt>svg{width:20px;height:20px;flex:none;color:var(--sand-deep)}
.pxpc-brt .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pxpc-brt .ct{flex:none;padding:2px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:var(--step--1);font-weight:600;color:var(--ink-soft)}
.pxpc-brt .cv{display:inline-flex;margin-inline-start:auto;color:var(--muted-fg);transition:transform .2s}
.pxpc-brt .cv svg{width:18px;height:18px}
.pxpc-brt[aria-expanded="false"] .cv{transform:rotate(90deg)}
html[dir="ltr"] .pxpc-brt[aria-expanded="false"] .cv{transform:rotate(-90deg)}
.pxpc-bra{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.pxpc-bra .btn.small{min-height:40px}
.pxpc-brb{padding:6px 2px 2px}
.pxpc-brb[hidden]{display:none}
.pxpc-brb.stack{display:flex;flex-direction:column;gap:16px}
@media (min-width:900px){
	.pxpc-br{padding:8px 10px 10px}
	.pxpc-brb.stack{display:block;column-count:2;column-gap:16px}
	.pxpc-brb.stack>*{break-inside:avoid;margin:0 0 16px}
}
@media (min-width:1200px){.pxpc-brb.stack{column-count:auto;column-width:380px}}
@media (max-width:600px){.pxpc-bra{width:100%;flex-direction:column;gap:6px}.pxpc-bra .btn{width:100%}}

/* ── הכרטיס "תנו שם לכל מוצר" ── */
.pxpc-nmb{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 16px;padding:16px;border:1px solid var(--border);border-radius:20px;background:var(--surface);text-align:center;box-shadow:var(--shadow-sm)}
.pxpc-nmb .ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--surface-sunken);color:var(--sand-deep);flex:none}
.pxpc-nmb .ic svg{width:22px;height:22px}
.pxpc-nmb .tx{flex:1 1 260px;min-width:0}
.pxpc-nmb .t{margin:0;font-weight:700;font-size:var(--step-1)}
.pxpc-nmb .s{margin:4px 0 0;color:var(--ink-soft);font-size:var(--step--1);line-height:1.55}
.pxpc-nmb .p{margin:6px 0 0;color:var(--sand-deep);font-size:var(--step--1);font-weight:700}
.pxpc-nmb .btn{flex:0 1 auto}
.pxpc-nmb.pxpc-nmb-done{padding:10px 14px;background:var(--surface-sunken);box-shadow:none}
.pxpc-nmb.pxpc-nmb-done .ic{width:32px;height:32px;background:var(--positive-soft);color:var(--positive)}
.pxpc-nmb.pxpc-nmb-done .ic svg{width:18px;height:18px}
@media (max-width:600px){.pxpc-nmb{flex-direction:column}.pxpc-nmb .tx{flex:0 0 auto;width:100%}.pxpc-nmb .btn{width:100%}}

/* ── המסך (sheet) ── */
html.pxpc-us-on,html.pxpc-us-on body{overflow:hidden}
.pxpc-us{position:fixed;inset:0;z-index:99990;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(17,17,17,.5)}
.pxpc-us-in{position:relative;width:100%;max-width:520px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:var(--surface);color:var(--foreground);border-radius:20px;padding:22px 20px 20px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.pxpc-us-x{position:absolute;top:10px;inset-inline-end:10px;width:40px;height:40px;border:0;border-radius:50%;background:var(--surface-sunken);color:var(--foreground);font-size:22px;line-height:40px;padding:0;cursor:pointer;z-index:2}
.pxpc-us h2{margin:0 36px 4px;font-size:var(--step-2);line-height:1.3}
.pxpc-us-sub{margin:0 0 12px;color:var(--ink-soft);font-size:var(--step--1);font-weight:600}
.pxpc-us-note{margin:0 0 14px;color:var(--ink-soft);font-size:var(--step--1);line-height:1.55}
.pxpc-us .err{margin:8px 0 0;text-align:center}
@media (max-width:600px){
	.pxpc-us{padding:0;align-items:stretch}
	.pxpc-us-in{max-width:none;max-height:none;height:100%;border-radius:0;padding:18px 16px calc(20px + env(safe-area-inset-bottom))}
}

/* שינוי קישור לכל הסניף */
.pxpc-bl-list{display:grid;gap:12px}
.pxpc-bl-g{border:1px solid var(--border);border-radius:16px;padding:14px;background:var(--surface);text-align:center}
.pxpc-bl-h b{display:block;font-size:var(--step-1)}
.pxpc-bl-h .m{display:block;margin-top:2px;color:var(--muted-fg);font-size:var(--step--1)}
.pxpc-bl-now{margin:8px 0 10px;padding:8px 10px;border-radius:10px;background:var(--surface-sunken);color:var(--ink-soft);font-size:var(--step--1);overflow-wrap:anywhere}
.pxpc-bl-now span{display:block;direction:ltr;unicode-bidi:plaintext}
.pxpc-bl-l{display:block;margin:0 0 6px;font-size:var(--step--1);font-weight:600;color:var(--ink-soft)}
.pxpc-bl-g .input{width:100%;box-sizing:border-box;text-align:left}
.pxpc-bl-go{width:100%;margin-top:10px}
.pxpc-bl-ok{margin:8px 0 0;padding:10px 12px;border-radius:9px;background:var(--positive-soft);color:var(--positive);font-size:var(--step--1);font-weight:600}

/* מתן שמות בסריקה */
.pxpc-nm-cam{position:relative;margin:4px auto 10px;width:100%;max-width:420px;aspect-ratio:1/1;max-height:52vh;border-radius:18px;overflow:hidden;background:#111}
.pxpc-nm-cam video{display:block;width:100%;height:100%;object-fit:cover}
.pxpc-nm-aim{position:absolute;inset:18% 18% 26%;border-radius:18px;box-shadow:0 0 0 999px rgba(0,0,0,.28);border:3px solid rgba(255,255,255,.9);pointer-events:none}
.pxpc-nm-say{position:absolute;inset-inline:10px;bottom:10px;margin:0;padding:8px 10px;border-radius:12px;background:rgba(17,17,17,.62);color:#fff;font-size:var(--step--1);font-weight:600;line-height:1.45}
.pxpc-nm-cam.off{aspect-ratio:auto;min-height:150px;display:flex;align-items:center;justify-content:center;background:var(--surface-sunken)}
.pxpc-nm-cam.off video,.pxpc-nm-cam.off .pxpc-nm-aim{display:none}
.pxpc-nm-cam.off .pxpc-nm-say{position:static;background:none;color:var(--ink-soft);padding:16px}
.pxpc-nm-nfc{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 8px;color:var(--ink-soft);font-size:var(--step--1)}
.pxpc-nm-nfc[hidden]{display:none}
.pxpc-nm-nfc svg{width:18px;height:18px;flex:none;color:var(--sand-deep)}
.pxpc-nm-toast{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 8px;padding:10px 12px;border-radius:12px;font-size:var(--step--1);font-weight:700}
.pxpc-nm-toast[hidden]{display:none}
.pxpc-nm-toast svg{width:18px;height:18px;flex:none}
.pxpc-nm-toast.ok{background:var(--positive-soft);color:var(--positive)}
.pxpc-nm-toast.no{background:var(--negative-soft);color:var(--negative)}
.pxpc-nm-foot{display:flex;justify-content:center;margin-top:6px}
.pxpc-nm-foot[hidden],.pxpc-nm-scan[hidden],.pxpc-nm-card[hidden],.pxpc-nm-list[hidden]{display:none}
.pxpc-nm-foot .btn{min-width:220px}

.pxpc-nm-prod{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 16px;padding:12px;border-radius:16px;background:var(--surface-sunken)}
.pxpc-nm-prod img,.pxpc-nm-prod .ph{width:72px;height:72px;flex:none;border-radius:14px;object-fit:contain;background:var(--surface);border:1px solid var(--border)}
.pxpc-nm-prod .ph{display:inline-flex;align-items:center;justify-content:center;color:var(--muted-fg)}
.pxpc-nm-prod .ph svg{width:30px;height:30px}
.pxpc-nm-prod .tt{min-width:0;text-align:center}
.pxpc-nm-prod .k{margin:0;color:var(--muted-fg);font-size:var(--step--1)}
.pxpc-nm-prod .nm{margin:2px 0 0;font-weight:700;font-size:var(--step-1);overflow-wrap:anywhere}
.pxpc-nm-prod .br{display:inline-flex;align-items:center;gap:4px;margin:4px 0 0;color:var(--sand-deep);font-size:var(--step--1);font-weight:600}
.pxpc-nm-prod .br svg{width:15px;height:15px}
.pxpc-nm-l{display:block;margin:0 0 8px;font-weight:700;font-size:var(--step-1)}
.pxpc-nm-f{display:flex;align-items:center;gap:8px}
.pxpc-nm-f .input{flex:1 1 auto;min-width:0;box-sizing:border-box;font-size:18px;text-align:center}
.pxpc-nm-f .sfx{flex:none;color:var(--ink-soft);font-weight:600;white-space:nowrap}
.pxpc-nm-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0 4px}
.pxpc-nm-chip{min-height:40px;padding:0 16px;border:1px solid #D5B398;border-radius:20px;background:#fff;color:#1E1B17;font:inherit;font-size:var(--step--1);font-weight:600;cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.pxpc-nm-chip:hover,.pxpc-nm-chip:focus-visible{background:#111!important;border-color:#111!important;color:#fff!important}
.pxpc-nm-acts{display:flex;gap:10px;margin-top:16px}
.pxpc-nm-acts .pxpc-nm-skip{flex:1 1 0}
.pxpc-nm-acts .pxpc-nm-save{flex:2 1 0}

.pxpc-nm-list{display:grid;gap:8px;text-align:start}
.pxpc-nm-gh{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 0 2px;color:var(--sand-deep);font-weight:700;font-size:var(--step--1)}
.pxpc-nm-gh svg{width:16px;height:16px}
.pxpc-nm-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:8px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--foreground);font:inherit;cursor:pointer;text-align:start;justify-content:flex-start!important}
.pxpc-nm-row:hover{border-color:var(--border-strong);background:var(--surface-sunken)}
.pxpc-nm-row img,.pxpc-nm-row .ph{width:44px;height:44px;flex:none;border-radius:10px;object-fit:contain;background:var(--surface-sunken)}
.pxpc-nm-row .ph{display:inline-flex;align-items:center;justify-content:center;color:var(--muted-fg)}
.pxpc-nm-row .ph svg{width:22px;height:22px}
.pxpc-nm-row .tx{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.pxpc-nm-row .tx .t{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pxpc-nm-row .tx small{color:var(--muted-fg);font-size:var(--step--1)}
.pxpc-nm-row .st{flex:none;display:inline-flex;color:var(--positive)}
.pxpc-nm-row .st svg{width:20px;height:20px}
.pxpc-nm-back{margin-top:10px}

/* 0.21.0: הסניף בכרטיס השם (כל המוצרים) — בחירה = חול (UI-UX: נבחר = חול, לא נבחר = לבן) */
.pxpc-nm-prod .pr{margin:2px 0 0;color:var(--muted-fg);font-size:var(--step--1)}
.pxpc-nm-note{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:var(--surface-sunken);color:var(--ink-soft);font-size:var(--step--1);line-height:1.55}
.pxpc-nm-pl{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--border)}
.pxpc-nm-l2{display:flex;align-items:center;justify-content:center;gap:6px;margin:0 0 8px;font-weight:700}
.pxpc-nm-l2 svg{width:18px;height:18px;color:var(--sand-deep)}
.pxpc-nm-places{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.pxpc-nm-places .pxpc-nm-chip{display:inline-flex;align-items:center;gap:6px}
.pxpc-nm-places .pxpc-nm-chip svg{width:14px;height:14px}
.pxpc-nm-chip[aria-pressed="true"]{background:#D5B398;border-color:#D5B398;color:#F7F7F7}
.pxpc-nm-chip[disabled]{cursor:default;opacity:1}
.pxpc-nm-chip[disabled]:hover{background:#D5B398!important;border-color:#D5B398!important;color:#F7F7F7!important}
.pxpc-nm-fixed{flex-basis:100%;margin:2px 0 0;color:var(--muted-fg);font-size:var(--step--1)}
.pxpc-nm-new{margin-top:10px}
.pxpc-nm-new[hidden]{display:none}
.pxpc-nm-new .input{width:100%;box-sizing:border-box;text-align:center}
.pxpc-nm-f .sfx[hidden]{display:none}
