#toast{position:fixed;left:50%;bottom:80px;transform:translate(-50%,20px);background:#171717;color:#fff;padding:11px 20px;border-radius:30px;opacity:0;transition:.25s;z-index:200;pointer-events:none}#toast.show{opacity:1;transform:translate(-50%,0)}
.pic img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.pic{background-size:contain;background-position:center;background-repeat:no-repeat}
.pd{display:grid;grid-template-columns:1fr 1fr;gap:35px}.pd .big{height:380px;background-color:#faf7ef;border-radius:16px;display:grid;place-items:center;font-size:140px;padding:28px;box-sizing:border-box;overflow:hidden;touch-action:manipulation}
label{display:block;margin:10px 0;font-weight:700}textarea.field{min-height:80px}.dk{border-color:#171717;color:#171717;margin-left:0;background:#fff}
.wish.full{display:inline-flex;align-items:center;gap:6px}.wish.full.on{border-color:var(--red);color:var(--red)}
.ci{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:10px;margin:8px 0}.ci .e{font-size:34px}.ci .m{flex:1}.ci small{display:block;color:#777;font-weight:400}.q button{padding:4px 10px;border-radius:6px}
table{width:100%;border-collapse:collapse;background:#fff;font-size:14px}td,th{border-bottom:1px solid var(--line);padding:9px;text-align:left;vertical-align:top}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.tabs a{padding:9px 14px;border:1px solid var(--line);border-radius:20px;background:#fff;font-size:13px;font-weight:700}.tabs a.on{background:var(--red);color:#fff;border-color:var(--red)}
.mcard{width:320px;max-width:100%;border-radius:18px;background:linear-gradient(135deg,#d9ae3c,#805d10);color:#fff;padding:24px;margin:10px 0}.mcard b{font-size:22px;display:block}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.side a{display:block;padding:7px 0}.side a.on{color:var(--red);font-weight:800}.chips a{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:6px 12px;margin:0 6px 6px 0;font-size:13px}.chips a.on{background:var(--red);color:#fff;border-color:var(--red)}
.ok{color:var(--green)}.bad{color:var(--red)}.box{border:1px solid var(--line);border-radius:14px;padding:18px;margin:14px 0;background:#fff}.mini{padding:6px 10px;font-size:12px;border-radius:7px}
.imgUp{display:flex;gap:10px;margin:10px 0}
.authCard{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:34px 30px;box-shadow:0 10px 40px rgba(0,0,0,.08);margin:40px auto}
.authCard h1{font-size:28px;margin:0 0 8px}
.authCard .muted{margin:0 0 18px}
.authX{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:50%;background:#eee;border:none;color:#666;font-size:16px;cursor:pointer;display:grid;place-items:center;padding:0}
.authX:hover{background:#e2e2e2}
.needHelp{display:inline-block;margin:2px 0 18px;color:#171717;font-weight:700;font-size:14px}
.authCard button:not(.authX){width:100%;padding:15px;font-size:16px;border-radius:10px}
.authBack{display:block;text-align:center;margin-top:14px;font-weight:700;text-decoration:underline}
.authHint{margin:-4px 0 8px;font-size:12px}
@media(max-width:520px){.authCard{padding:26px 20px}}
.imgSlot{position:relative;flex:1;height:78px;border:2px dashed var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;background:var(--soft);margin:0;font-weight:400;transition:.15s}
.imgSlot:hover{border-color:var(--red)}
.imgSlot img{width:100%;height:100%;object-fit:cover;display:block}
.imgAdd{font-size:11px;font-weight:700;color:#888;text-align:center;line-height:1.4}
.imgRm{position:absolute;top:3px;right:3px;background:#000a;color:#fff;width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;z-index:2;line-height:1}
.pdGallery{display:flex;flex-direction:column;gap:10px}
.pdThumbs{display:flex;gap:8px}
.pdThumb{padding:0;width:64px;height:64px;border-radius:10px;overflow:hidden;border:2px solid var(--line);background:#faf7ef;opacity:.65;cursor:pointer}
.pdThumb.on{border-color:var(--red);opacity:1}
.pdThumb img{width:100%;height:100%;object-fit:cover;display:block}
.varRow{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:10px}
.varRow label{margin:0;font-size:12px;font-weight:700;color:#555}
.varRow .field{margin:4px 0 0}
.varRow button{height:44px;align-self:end}
@media(max-width:800px){.pd,.grid2{grid-template-columns:1fr}
/* Product photos are close to square, but the mobile box used to be a
   short, very wide rectangle (full screen width × 240px tall) — with
   background-size:contain (see .pic above) that left big empty cream bars
   on the left/right of a square photo, since the box's own wide shape
   showed through around it. Making the box square (matching the photo's
   own shape) instead of a fixed short height lets the picture fill the
   box properly with no dead space on the sides (Sep 2026 fix). Still a
   background-image, not an <img> tag — see the comment above picGallery()
   in app.js for why that switch was deliberately avoided. */
.pd .big{height:auto;aspect-ratio:1/1;font-size:90px}
table{display:block;overflow-x:auto}.varRow{grid-template-columns:1fr 1fr}}
/* Delivery-tier editor rows (Admin > Settings > Delivery Pricing) — same
   look as .varRow's label/button styling, but its own 3-column grid (km
   field, fee field, delete button) instead of .varRow's 6-column layout
   built for the 5-field product-variant editor. Reusing .varRow directly
   here mis-sized/cramped this row (Sep 2026 bugfix). */
.dtRow{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-bottom:10px}
.dtRow label{margin:0;font-size:12px;font-weight:700;color:#555}
.dtRow .field,.dtRow .pv-field{margin:4px 0 0}
.dtRow button{height:44px;align-self:end}
@media(max-width:480px){.dtRow{grid-template-columns:1fr 1fr auto}}
/* Dashboard v2 — grouped sidebar sections, colored stat cards, quick actions, mini bar+line chart */
.navGroupLabel{font-size:10.5px;font-weight:800;letter-spacing:.06em;color:#787878;text-transform:uppercase;padding:14px 12px 4px}
.navGroupLabel:first-child{padding-top:2px}
.statCard{border:none;border-radius:14px;padding:16px;background:var(--sc,var(--red));box-shadow:0 4px 16px -6px rgba(23,23,23,.28);position:relative;overflow:hidden;cursor:pointer;transition:.12s}
.statCard:hover{transform:translateY(-2px);box-shadow:0 8px 22px -6px rgba(23,23,23,.38)}
.statCard small{color:rgba(255,255,255,.88);font-weight:700;display:block;font-size:12px;padding-right:36px}
.statCard b{display:block;font-size:26px;margin-top:6px;color:#fff}
.statCard .scSub{display:block;font-size:11px;margin-top:6px;color:rgba(255,255,255,.82);font-weight:600}
.statCard .scIcon{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:16px}
.statGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin:14px 0}
.qaGrid{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.qaGrid button{padding:12px 18px;border-radius:10px;font-weight:800}
.attnList{list-style:none;margin:0;padding:0}
.attnList li{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);cursor:pointer}
.attnList li:last-child{border-bottom:none}
.attnList li:hover{color:var(--red)}
.box[data-nav]{cursor:pointer;transition:.12s}
.box[data-nav]:hover{box-shadow:0 6px 18px -6px rgba(23,23,23,.22);transform:translateY(-1px)}
tr[data-nav]{cursor:pointer}
tr[data-nav]:hover{background:#f7f7f7}
.miniStat{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:13px}
.miniStat:last-child{border-bottom:none}
.chipRow{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.chipRow a{padding:8px 14px;border-radius:20px;background:var(--soft);font-weight:700;font-size:12.5px}
.chipRow a.on{background:var(--red);color:#fff}
.kanbanCol{background:var(--soft);border-radius:12px;padding:10px;min-height:120px}
.kanbanCol h4{margin:0 0 8px;font-size:13px}
.kanbanCard{background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px;margin-bottom:8px;font-size:12.5px}
.kanbanCard button{margin-top:6px;width:100%}
@media(max-width:800px){.statGrid{grid-template-columns:repeat(2,1fr)}}
/* Product Add/Edit redesign (Sep 2026) — scoped entirely to .pvRoot (the
   Products tab's add/edit form) so it never touches the storefront or any
   other admin tab, which all still use the plain .field/.box/button classes
   above untouched. Colours match what the owner asked for: "colourful, no
   plain white visible" — page background + cards both carry a tint. */
.pvRoot{background:linear-gradient(160deg,#c4b5fd 0%,#93c5fd 22%,#7dd3fc 42%,#f9a8d4 65%,#fcd34d 100%);border-radius:20px;padding:18px}
.pvRoot .pv-field{display:block;width:100%;padding:10px 12px;margin-top:6px;border:1.5px solid #ddd6fe;border-radius:10px;font-size:13px;font-family:inherit;box-sizing:border-box;background:#f5f3ff;color:#1f2024}
.pvRoot label.pv-label{margin:0;font-size:11.5px;font-weight:700;color:#5b3ca8}
.pvRoot .pv-hint{margin:0 0 10px;font-size:12px;color:#5b3ca8;opacity:.8}
.pvRoot .pv-btn{border:0;border-radius:10px;padding:11px 18px;font-weight:800;cursor:pointer;font-size:13px;color:#fff}
.pvRoot .pv-btn.purple{background:#7c3aed}
.pvRoot .pv-btn.orange{background:#f97316}
.pvRoot .pv-btn.red{background:#ef4444}
.pvRoot .pv-btn.blue{background:#3b82f6}
.pvRoot .pv-btn.green{background:#16a34a}
.pvRoot .pv-btn.pink{background:#ec4899}
.pvRoot .pv-btn.teal{background:#0f766e}
.pvRoot .pv-btn.ghost{background:#ede9fe;color:#5b21b6;border:1.5px solid #ddd6fe}
.pvRoot .pv-card{background:linear-gradient(160deg,#faf5ff,#f0f5ff);border:1px solid #e9d5ff;border-radius:18px;padding:18px;box-shadow:0 10px 26px -16px rgba(124,58,237,.35)}
.pvRoot .pv-sec{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.pvRoot .pv-badge{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-size:13px;color:#fff;font-weight:800;flex:0 0 auto}
.pvRoot .pv-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px 16px}
.pvRoot table.pv-t{width:100%;border-collapse:collapse;font-size:12.5px;background:transparent}
.pvRoot table.pv-t th{text-align:left;padding:8px 6px;color:#8b5cf6;font-weight:700;font-size:10.5px;text-transform:uppercase;letter-spacing:.3px;border-bottom:1px solid #e9d5ff}
.pvRoot table.pv-t td{padding:9px 6px;border-bottom:1px solid #f1e9ff}
.pvRoot .pv-soon{display:inline-block;font-size:9px;font-weight:800;background:#fde68a;color:#78350f;border-radius:20px;padding:2px 7px;margin-left:6px;letter-spacing:.3px;text-transform:uppercase;vertical-align:middle}
.pvPackRow,.pvRoot .varRow{display:grid;grid-template-columns:1.3fr .7fr .9fr 1fr .9fr auto;gap:8px;align-items:center;margin-bottom:8px}
.pvRoot .varRow{grid-template-columns:repeat(4,minmax(0,1fr));padding:10px;border:1px solid #e9d5ff;border-radius:12px;background:#faf8ff;position:relative}
.pvRoot .varRow .pv-mini-x{grid-column:1/-1;justify-self:end;height:30px;width:auto;padding:0 12px}
.pvRoot .varRow label{margin:0;font-size:11.5px;font-weight:700;color:#5b3ca8}
.pvRoot .varRow .pv-field{margin:4px 0 0}
.pvRoot .varRow button{height:44px;align-self:end}
.pv-mini-x{background:#ef4444;color:#fff;border:0;border-radius:8px;width:34px;height:34px;cursor:pointer;font-size:13px}
@media(max-width:900px){.pvRoot .pv-grid3,.pvPackRow,.pvRoot .varRow{grid-template-columns:1fr}}
/* Finance & Accounts — Overview dashboard (Sep 2026). Reuses .statCard/.statGrid
   from the Dashboard v2 block above for the 5 big gradient cards; everything
   below is new, scoped to fin* classes so it can't leak anywhere else. */
.finHead{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.finHeadR{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.finRangeRow{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.finRangeBtn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 14px;font-weight:700;font-size:12.5px;cursor:pointer}
.finRangeBtn.on{background:var(--red);color:#fff;border-color:var(--red)}
.finMiniGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:4px 0 18px}
.finMini{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;cursor:default}
.finMiniIco{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;flex:0 0 auto}
.finMini small{display:block;font-size:10.5px;color:#777;font-weight:700}
.finMini b{display:block;font-size:15px;margin-top:2px}
.finMiniArrow{margin-left:auto;color:#bbb;font-size:18px}
.finChartsRow{display:grid;gap:14px;margin-bottom:14px}
.finChartsRow3{grid-template-columns:repeat(4,1fr)}
.finTypeTag{display:inline-block;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700;background:#eee}
.finTypeTag.ok{background:#dcfce7;color:#166534}
.finTypeTag.bad{background:#fee2e2;color:#991b1b}
/* Dependency-free charts (plain SVG for bar/line combos, CSS conic-gradient
   for donuts) — see svgBarLine()/finDonut() in app.js. No external library,
   so nothing here can ever fail to load on the live site. */
.finChartHost{display:flex;flex-direction:column;height:100%}
.finSvg{width:100%;flex:1;min-height:0;display:block}
.finLegend2{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;font-size:11px;color:#555;padding-top:4px;flex:0 0 auto}
.finLegendItem{display:inline-flex;align-items:center;gap:5px}
.finLegendDot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;display:inline-block}
.finDonutWrap{display:flex;gap:14px;align-items:center;height:100%}
.finDonut{width:120px;height:120px;border-radius:50%;position:relative;flex:0 0 auto}
.finDonut::after{content:'';position:absolute;inset:24%;background:#fff;border-radius:50%;box-shadow:inset 0 0 0 1px #f0f0f0}
.finLegend{flex:1;max-height:210px;overflow-y:auto;font-size:12px;min-width:0}
.finLegendRow{display:flex;align-items:center;gap:7px;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.finLegendRow b{margin-left:auto;padding-left:8px}
@media(max-width:1100px){.finChartsRow3{grid-template-columns:1fr 1fr}.finMiniGrid{grid-template-columns:repeat(2,1fr)}.statGrid{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:640px){.finChartsRow3{grid-template-columns:1fr}.finMiniGrid{grid-template-columns:1fr}.finHead{flex-direction:column}.finHeadR{align-items:flex-start;width:100%}.finDonutWrap{flex-direction:column}}

/* Orders dashboard (Sep 2026) — colorful stat cards (reuses .statCard/
   .statGrid from the Finance dashboard above), a live filter bar, a
   restyled orders table, and a slide-in order detail side panel. */
.statCard[data-ofcard]{user-select:none}
.statCard[data-ofcard].on{box-shadow:0 0 0 3px #171717,0 8px 22px -6px rgba(23,23,23,.38)}
.ordPill{display:inline-block;padding:4px 10px;border-radius:20px;font-size:11.5px;font-weight:800;white-space:nowrap}
.ordAvatar{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:13px;flex:0 0 auto}
.ordIconBtn{width:30px;height:30px;border-radius:8px;border:0;color:#fff;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;padding:0}
.ordDrawerOverlay{position:fixed;inset:0;background:rgba(15,15,20,.45);z-index:300;opacity:0;pointer-events:none;transition:opacity .25s}
.ordDrawerOverlay.open{opacity:1;pointer-events:auto}
.ordDrawer{position:fixed;top:0;right:0;height:100%;width:430px;max-width:92vw;background:#f4f4f8;z-index:301;transform:translateX(100%);transition:transform .28s cubic-bezier(.4,0,.2,1);box-shadow:-10px 0 30px rgba(0,0,0,.18);overflow-y:auto;display:flex;flex-direction:column}
.ordDrawer.open{transform:translateX(0)}
.ordDHead{background:linear-gradient(135deg,#7c3aed,#3b82f6);color:#fff;padding:20px 20px 22px;flex:0 0 auto;position:relative}
.ordDClose{position:absolute;top:18px;right:18px;background:rgba(255,255,255,.22);border:0;color:#fff;width:32px;height:32px;border-radius:50%;font-size:15px;cursor:pointer}
.ordDBody{padding:16px 16px 28px;display:flex;flex-direction:column;gap:12px}
.ordDCard{background:#fff;border-radius:14px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.ordCallBtn{width:36px;height:36px;border-radius:50%;border:0;display:flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer;color:#fff;text-decoration:none;flex:0 0 auto}
.ordStepper{display:flex;align-items:flex-start;justify-content:space-between;margin-top:10px}
.ordStep{flex:1;text-align:center;position:relative;padding-top:0}
.ordStep .dot{width:22px;height:22px;border-radius:50%;background:#e5e7eb;margin:0 auto 4px;display:flex;align-items:center;justify-content:center;font-size:10.5px;color:#9ca3af;font-weight:800;position:relative;z-index:1}
.ordStep.done .dot{background:#16a34a;color:#fff}
.ordStep.cur .dot{background:#3b82f6;color:#fff;box-shadow:0 0 0 4px #dbeafe}
.ordStep small{font-size:9px;color:#6b7280;display:block;line-height:1.2}
.ordStep:not(:last-child)::after{content:'';position:absolute;top:11px;left:55%;width:90%;height:2px;background:#e5e7eb;z-index:0}
.ordStep.done:not(:last-child)::after{background:#16a34a}
.ordActBtn{padding:11px;border-radius:10px;border:0;font-weight:800;font-size:12.5px;cursor:pointer;color:#fff;width:100%;text-align:center}
@media(max-width:480px){.ordDrawer{width:100vw}}

/* ===== Product page v2 (Oct 2026): brand line, price row, info rows, tabs ===== */
.pdBrand{margin:0 0 2px}.pdBrand b{font-size:15px}.pdBrand a{color:#b3261e;font-weight:600;font-size:13.5px;margin-left:6px}
.pdHead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.pdHead h1{margin:0 0 4px}
.pdTools{display:flex;align-items:center;gap:8px;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
.pdShareBtn{width:34px;height:34px;border-radius:50%;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;text-decoration:none}
.pdWish{padding:6px 12px!important;font-size:13px!important;width:auto!important}
.pdRevLine{margin:2px 0 8px;font-size:13.5px}.pdRevLine a{color:#555}
.pdPriceRow{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:6px 0 10px;padding-top:8px;border-top:1px solid #e5e5e5}
.pdPriceRow .price{font-size:26px;font-weight:800}.pdPriceRow .old{text-decoration:line-through;color:#888;font-size:15px}
.pdBadge{position:static!important;background:#d9312b;color:#fff;border-radius:6px;padding:4px 9px;font-size:13px;font-weight:800}
.pdTag{background:#d9312b;color:#fff;border-radius:18px;padding:5px 14px;font-size:13px;font-weight:600}
.pdStock{margin:4px 0;font-weight:700}.pdIn{color:#1f4fa3}.pdOut{color:#b3261e}
.pdInfo p{margin:7px 0;font-size:15px}.pdInfo b{color:#222}.pdInfo span{color:#555}
.pdAdd{width:100%;max-width:520px;padding:15px!important;font-size:17px!important;border-radius:12px!important;margin-top:6px}
.pdPts{margin-top:12px;display:inline-block;background:#fdf3d8;border:1px solid #d9b45a;border-radius:8px;padding:9px 14px;font-size:14px}
.pdTabsWrap{margin-top:26px}.pdTabBtns{display:flex;gap:8px;border-bottom:2px solid #e5e5e5}
.pdTabBtn{background:#f1f1f1;color:#333;border:0;border-radius:10px 10px 0 0;padding:11px 22px;font-weight:800;cursor:pointer;width:auto}
.pdTabBtn.on{background:#2557a7;color:#fff}.pdTabBody{padding:16px 4px;font-size:15px;line-height:1.6}
@media(max-width:700px){.pdHead{flex-direction:column}.pdTools{justify-content:flex-start}}
/* ===== Top Brands (home) ===== */
.topBrands{max-width:1200px;margin:18px auto;padding:0 14px}
.tbHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.tbHead h2{margin:0;font-size:22px}
.tbMore{background:#d9312b;color:#fff;border:0;border-radius:6px;padding:8px 16px;font-weight:700;cursor:pointer;width:auto}
.tbRow{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity}
.tbRow.wrap{flex-wrap:wrap;overflow:visible}
.tbItem{flex:0 0 auto;scroll-snap-align:start;text-decoration:none;color:#222}
.tbCircle{width:92px;height:92px;border-radius:50%;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.12);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;text-align:center;padding:8px}
.tbCircle img{max-width:100%;max-height:60%;object-fit:contain}.tbCircle b{font-size:13px;line-height:1.15}
.tbCircle em{font-style:normal;font-size:10.5px;font-weight:700;border-top:1px solid #333;margin-top:3px;padding-top:2px;line-height:1.1}
.tbCircle img:only-child{max-height:80%}
@media(min-width:700px){.tbCircle{width:110px;height:110px}}
/* admin brand editor */
.tbEdRow{display:flex;gap:10px;align-items:center;margin:8px 0;padding:8px;border:1px solid #e5e5e5;border-radius:10px;background:#fff}
.tbLogo{width:60px;height:60px;border-radius:50%;border:2px dashed #bbb;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;flex-shrink:0;text-align:center;font-size:11px;color:#777}
.tbLogo img{width:100%;height:100%;object-fit:contain}.tbEdF{flex:1;display:grid;gap:6px}.tbEdB{display:flex;flex-direction:column;gap:4px}
.pdTabBtn{background:#e9edf3!important;color:#333!important;opacity:1!important}.pdTabBtn.on{background:#2557a7!important;color:#fff!important}

/* N11 picture fit: data-picfit on <html> = blur (default) | contain | cover */
.product .pic,.pdGallery .pic{position:relative;overflow:hidden}
html:not([data-picfit="contain"]):not([data-picfit="cover"]) .pic[style*="background-image"]{background-size:contain}
html:not([data-picfit="contain"]):not([data-picfit="cover"]) .pic[style*="background-image"]::before{content:"";position:absolute;inset:-12px;background-image:inherit;background-size:cover;background-position:center;filter:blur(16px) brightness(1.05);z-index:0}
html:not([data-picfit="contain"]):not([data-picfit="cover"]) .pic[style*="background-image"]::after{content:"";position:absolute;inset:0;background-image:inherit;background-size:contain;background-position:center;background-repeat:no-repeat;z-index:1}
[data-picfit="cover"] .pic{background-size:cover!important}
[data-picfit="contain"] .pic{background-size:contain!important}
/* hero banner button + welcome screen */
.slide.flat .heroBtn{position:absolute;left:6%;bottom:14%;background:var(--red,#c8102e);color:#fff;padding:11px 22px;border-radius:999px;font-weight:700;text-decoration:none;z-index:3;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.welOv{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.welBox{background:#fff;border-radius:18px;max-width:420px;width:100%;max-height:92vh;overflow:auto;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.4);text-align:center}
.welImg{display:block;width:100%;max-height:56vh;object-fit:cover;border-radius:18px 18px 0 0}
.welBody{padding:18px 20px 20px}.welBody h2{margin:0 0 8px;font-size:22px;color:#171111}.welBody p{margin:0 0 14px;color:#444;line-height:1.5}
.welBtn{display:inline-block;background:#c8102e;color:#fff;padding:12px 28px;border-radius:999px;font-weight:700;text-decoration:none}
.welSkip{display:block;margin:12px auto 0;background:none;border:0;color:#777;font-size:13px;cursor:pointer;text-decoration:underline}
.welX{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:16px;cursor:pointer;z-index:2}

/* product page main photo: plain white behind the whole photo (no blurred side bars) */
html .pdGallery .pic::before,html .pdGallery .pic::after{display:none!important}
html .pdGallery .pic{background-color:#fff!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
/* ---- N16: Add/Edit Product — clean white-card layout (scoped to #pvForm / .pvProd) ---- */
.pvRoot.pvProd{background:#f4f6fb;padding:18px;border-radius:16px}
.pvProd .pvHead{margin-bottom:14px}.pvProd .pvHead h2{margin:0;font-size:26px;color:#0f1b3d;letter-spacing:-.3px}
.pvProd .pvCrumb{color:#6b7488;font-size:13px;margin-top:2px}
.pvProd .pv-card{background:#fff;border:1px solid #e6e9f2;border-radius:14px;box-shadow:0 2px 8px rgba(15,27,61,.05);padding:18px}
.pvProd .pv-field{background:#fff;border:1.5px solid #d9deea;color:#1b2440;border-radius:8px}
.pvProd .pv-field:focus{outline:0;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.15)}
.pvProd label.pv-label,.pvProd .pv-label{color:#1b2440;font-size:12.5px;font-weight:700}
.pvProd .pv-hint{color:#6b7488;opacity:1}
.pvProd .pv-badge{border-radius:10px;width:34px;height:34px;font-size:16px}
.pvProd .req{color:#e11d48}.pvProd .opt{font-weight:400;color:#8a93a8;font-size:11.5px}
.pvProd .pdGrid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;align-items:start}
.pvProd .pdRight .imgUp{display:flex;gap:10px;margin-top:6px;flex-wrap:wrap}
.pvProd .imgSlot{width:150px;height:130px;border:2px dashed #c3cadb;border-radius:12px;background:#fafbfe;display:grid;place-items:center;text-align:center;color:#6b7488;font-size:12.5px;cursor:pointer;position:relative;overflow:hidden}
.pvProd .imgSlot:hover{border-color:#6366f1;background:#f5f6ff}
.pvProd .rsBox{display:flex;align-items:stretch;margin-top:6px}
.pvProd .rsBox .pv-field{margin:0;border-radius:0 8px 8px 0;flex:1;min-width:0}
.pvProd .rsBox span{display:grid;place-items:center;padding:0 12px;background:#f1f3f9;border:1.5px solid #d9deea;color:#4b556d;font-weight:700;font-size:13px}
.pvProd .rsBox span:first-child{border-right:0;border-radius:8px 0 0 8px}
.pvProd .rsBox .pv-field:first-child{border-radius:8px 0 0 8px}
.pvProd .rsBox .pv-field:first-child+span{border-left:0;border-radius:0 8px 8px 0}
.pvProd .swRow{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px;color:#4b556d;font-weight:600;cursor:pointer;position:relative}
.pvProd .swRow input{position:absolute;opacity:0;width:0;height:0}
.pvProd .sw{width:46px;height:26px;border-radius:26px;background:#cfd5e4;position:relative;transition:.2s;flex:0 0 auto}
.pvProd .sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.pvProd .swRow input:checked+.sw{background:#0d9488}.pvProd .swRow input:checked+.sw::after{left:23px}
.pvProd details.pvMore{margin-top:12px;border:1px solid #e6e9f2;border-radius:10px;padding:10px 12px;background:#fafbfe}
.pvProd details.pvMore summary{cursor:pointer;font-weight:700;color:#4b556d;font-size:13px}
.pvProd .pv-btn.ghost{background:#fff;color:#1b2440;border:1.5px solid #c3cadb}
.pvProd .pv-btn.purple{background:#5b45e6}.pvProd .pv-btn.green{background:#0d7a68}
@media(max-width:900px){.pvProd .pdGrid{grid-template-columns:1fr}.pvProd .swRow{margin-left:0;width:100%}.pvProd .pv-sec{flex-wrap:wrap}}

/* ---- Product form: professional size/flavour cards (v20261016f) ---- */
.pvRoot .varRow.vr2{display:block;padding:0;border:1px solid #e4def5;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(60,30,120,.06);margin-bottom:14px;overflow:hidden}
.vr2 .vrHead{display:flex;align-items:center;gap:10px;padding:10px 14px;background:linear-gradient(90deg,#f5f1ff,#faf8ff);border-bottom:1px solid #ece6fb}
.vr2 .vrHead b{font-size:14px;color:#2b1d5a;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vr2 .vrNo{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#7c3aed;color:#fff;font-size:12px;font-weight:800}
.vr2 .vrTag{font-size:10px;font-weight:800;letter-spacing:.06em;padding:3px 8px;border-radius:99px;background:#dcfce7;color:#15803d}
.vr2 .vrTag.man{background:#e5e7eb;color:#4b5563}
.pvRoot .varRow.vr2 .vrHead .pv-mini-x{grid-column:auto;width:auto;height:28px;padding:0 12px;border-radius:8px;font-weight:700}
.vr2 .vrGrp{padding:12px 14px;border-bottom:1px dashed #eee9fa}
.vr2 .vrGrp:last-child{border-bottom:0}
.vr2 .vrGT{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#7c3aed;margin-bottom:8px}
.vr2 .vrGT small{font-weight:600;color:#9ca3af;text-transform:none;letter-spacing:0}
.vr2 .vrG{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px}
.pvRoot .vr2 .vrG label{font-size:12px;font-weight:600;color:#374151}
.vr2 .vrG label small{font-weight:400;color:#9ca3af}
.vr2 .vrG .pv-field{margin-top:4px;width:100%}
#vAdd{width:100%;justify-content:center;border-radius:12px!important;padding:12px 16px!important}

/* ---- Product form: clean professional theme (v20261016g) ---- */
.pvRoot{background:#f4f6fa;border:1px solid #e5e8ef;border-radius:16px;padding:22px}
.pvRoot .pvHead h2,.pvRoot h2#ft{color:#111827;letter-spacing:-.01em}
.pvRoot .pv-card{background:#fff;border:1px solid #e5e8ef;border-radius:14px;padding:20px 22px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.pvRoot .pv-sec{padding-bottom:12px;margin-bottom:16px;border-bottom:1px solid #eef0f5}
.pvRoot .pv-sec h3{font-size:15px!important;font-weight:700;color:#111827}
.pvRoot .pv-badge{border-radius:10px;width:30px;height:30px}
.pvRoot .pv-field,.pvRoot select.pv-field{background:#fff;border:1px solid #d0d5dd;border-radius:9px;padding:10px 12px;font-size:13.5px;color:#111827;transition:border-color .15s,box-shadow .15s}
.pvRoot .pv-field:hover{border-color:#98a2b3}
.pvRoot .pv-field:focus{outline:0;border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.14)}
.pvRoot .pv-field::placeholder{color:#9aa3b2}
.pvRoot label.pv-label,.pvRoot .vr2 .vrG label{color:#344054;font-weight:600;font-size:12.5px}
.pvRoot .pv-hint{color:#667085;opacity:1}
.pvRoot .pv-btn{border-radius:9px}
.pvRoot .pv-btn.ghost{background:#fff;color:#344054;border:1px solid #d0d5dd}
.pvRoot .varRow.vr2{border:1px solid #e0e4ec;box-shadow:0 1px 2px rgba(16,24,40,.05);background:#fff}
.vr2 .vrHead{background:#f8f9fc;border-bottom:1px solid #e8ebf2}
.vr2 .vrNo{background:#4f46e5}
.vr2 .vrGT{color:#4f46e5}
.vr2 .vrGrp{border-bottom:1px solid #f0f2f7}
.vrChip{font-size:11.5px;font-weight:600;padding:4px 10px;border-radius:99px;background:#f2f4f7;color:#667085;white-space:nowrap;max-width:46%;overflow:hidden;text-overflow:ellipsis}
.vrChip.ok{background:#ecfdf3;color:#067647}
.vrChip.bad{background:#fef3f2;color:#b42318}
.vr2 .vrHead b{flex:1 1 auto}
.pvRoot .pv-card[style*="linear-gradient(135deg"]{background:#111827!important;border:0}
#vAdd{background:#fff!important;color:#4f46e5!important;border:1.5px dashed #a5b4fc!important}
#vAdd:hover{background:#eef2ff!important}
.pvRoot .swRow span{color:#344054}
@media(max-width:700px){.vrChip{display:none}.pvRoot{padding:12px}.pvRoot .pv-card{padding:14px}}
.pvRoot .pv-card[style*="linear-gradient(135deg"] .pv-sec{border-bottom-color:rgba(255,255,255,.14)}
.pvRoot .pv-card[style*="linear-gradient(135deg"] .pv-sec h3{color:#fff}

/* ---- Product form: Shopify-style layout (v20261016h) ---- */
.pvRoot .pdMedia{display:block}
.pvRoot .pdMedia .pv-label{display:none}
.pvRoot .pdMedia .imgUp{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,150px));gap:12px}
.pvRoot .pdMedia .imgSlot{aspect-ratio:1/1;min-height:0;border:1.5px dashed #c7cdd9;border-radius:12px;background:#fafbfc}
.pvRoot .sbStack{display:flex;flex-direction:column;gap:14px}
.pvRoot .sbStack .pv-label{margin:0}
.pvRoot .pvSaveBar{position:sticky;bottom:12px;z-index:20;box-shadow:0 8px 24px rgba(16,24,40,.14);border-color:#d0d5dd;background:#fff}
.pvRoot .pv-btn.green{background:#4f46e5}
.pvRoot .pv-btn.purple{background:#fff;color:#4f46e5;border:1px solid #c7d2fe}
.pvRoot .pv-btn#pbcGen{background:#eef2ff;color:#4f46e5;border:1px solid #c7d2fe}
.pvRoot .pvHead{margin-bottom:16px}
@media(max-width:1000px){#pvForm>div[style*="grid-template-columns"]{grid-template-columns:1fr!important}}
.pvRoot #loyFields{grid-template-columns:1fr!important}
.pvRoot #loyFields .pv-hint{margin-top:2px!important}
.pvRoot .pv-sec .swRow{margin-left:auto;font-size:12px;gap:8px;text-align:right}
.pvRoot .pv-sec .swRow span{max-width:110px;line-height:1.2}
.pvRoot .pv-sec .swRow span{max-width:none;white-space:nowrap;font-size:11.5px}
.pvRoot .pv-sec:has(.swRow) h3{font-size:14px!important}
