/* Sainik · Portal Layouts v46 — extra Header (hl), Category (cl) and Item (il) designs. Active only when chosen in Admin > Design Studio. */
/* ===== HEADER layouts: placement of logo / name / live dot / account button ===== */
html[data-hl="center"] body .hd{justify-content:center!important;padding:10px 64px!important}
html[data-hl="center"] body .hd .brand{flex:none;justify-content:center;text-align:center}
html[data-hl="center"] body .hd-r,html[data-hl="stack"] body .hd-r{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
html[data-hl="stack"] body .hd{flex-direction:column!important;padding:14px 56px 12px!important;gap:4px}
html[data-hl="stack"] body .hd-r{top:12px;transform:none}
html[data-hl="stack"] body .hd .brand{flex:none;flex-direction:column;text-align:center;gap:4px}
html[data-hl="stack"] body .portal-logo,html[data-hl="tall"] body .portal-logo{width:calc(var(--logo-size)*1.4);height:calc(var(--logo-size)*1.4)}
html[data-hl="mirror"] body .hd{flex-direction:row-reverse!important}
html[data-hl="mirror"] body .hd .brand{flex-direction:row-reverse;text-align:right}
html[data-hl="logoR"] body .hd .brand{flex-direction:row-reverse}
html[data-hl="logoR"] body .hd .brand>span{text-align:left}
html[data-hl="split"] body .hd{display:grid!important;grid-template-columns:auto 1fr auto;align-items:center}
html[data-hl="split"] body .hd .brand{display:contents}
html[data-hl="split"] body .hd .brand>span{text-align:center}
html[data-hl="tall"] body .hd{align-items:flex-end!important;min-height:108px;padding:14px 16px 16px!important}
html[data-hl="tall"] body .hd-r{align-self:flex-start}
html[data-hl="tall"] body #hbn{font-size:1.25em}
html[data-hl="slim"] body .hd{padding:5px 12px!important;min-height:0!important}
html[data-hl="slim"] body .portal-logo{width:calc(var(--logo-size)*.7);height:calc(var(--logo-size)*.7)}
html[data-hl="slim"] body #hbt{display:none}
html[data-hl="slim"] body #hav{width:32px;height:32px;font-size:14px}
html[data-hl="floatc"] body .hd{margin:8px 10px 2px!important;top:8px!important;border-radius:22px!important;box-shadow:0 10px 24px rgba(0,0,0,.28)!important}
html[data-hl="badge"] body .hd{margin-bottom:22px!important}
html[data-hl="badge"] body .portal-logo{background:#fff;border:3px solid var(--p);border-radius:50%;padding:5px;box-sizing:content-box;box-shadow:0 5px 14px rgba(0,0,0,.35);transform:translateY(16px)}
html[data-hl="clear"] body .hd{background:color-mix(in srgb,var(--portal-bg) 88%,transparent)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:none!important;border-radius:0!important;border-bottom:1px solid color-mix(in srgb,var(--portal-text) 14%,transparent)!important}
html[data-hl="clear"] body #hbn,html[data-hl="clear"] body #hbt{color:var(--portal-text)!important}
html[data-hl="clear"] body #hav{color:var(--portal-text)!important;border-color:var(--portal-text)!important;background:transparent!important}

/* ===== CATEGORY styles (and placement) ===== */
:is(html,.pvx)[data-cl="underline"] .ct{background:transparent!important;box-shadow:none!important;border-radius:0!important;border-bottom:3px solid transparent!important;padding:6px 12px!important;min-width:0!important}
:is(html,.pvx)[data-cl="underline"] .ct.on{background:transparent!important;color:var(--p)!important;border-bottom-color:var(--p)!important}
:is(html,.pvx)[data-cl="circle"] .ct{background:transparent!important;box-shadow:none!important;padding:2px 6px!important;min-width:68px!important;font-size:11px}
:is(html,.pvx)[data-cl="circle"] .ct span{width:56px!important;height:56px!important;margin:0 auto 4px!important;border-radius:50%!important;background:var(--portal-card)!important;box-shadow:0 3px 10px rgba(0,0,0,.14)!important;display:flex!important;align-items:center;justify-content:center;font-size:26px!important;overflow:hidden}
:is(html,.pvx)[data-cl="circle"] .ct.on span{background:var(--p)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--p) 30%,transparent)!important}
:is(html,.pvx)[data-cl="circle"] .ct.on{color:var(--p)!important;background:transparent!important}
:is(html,.pvx)[data-cl="square"] .ct{width:78px;min-width:78px!important;padding:10px 4px!important;border-radius:14px!important;border:2px solid transparent!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important}
:is(html,.pvx)[data-cl="square"] .ct.on{background:color-mix(in srgb,var(--p) 12%,var(--portal-card))!important;color:var(--p)!important;border-color:var(--p)!important}
:is(html,.pvx)[data-cl="outline"] .ct{display:inline-flex!important;align-items:center;gap:6px;flex-direction:row!important;background:transparent!important;border:2px solid var(--p)!important;color:var(--p)!important;border-radius:30px!important;padding:6px 14px!important;min-width:0!important;box-shadow:none!important}
:is(html,.pvx)[data-cl="outline"] .ct span{display:inline!important;font-size:18px!important;margin:0!important;width:auto!important;height:auto!important;background:none!important}
:is(html,.pvx)[data-cl="outline"] .ct.on{background:var(--p)!important;color:#fff!important}
:is(html,.pvx)[data-cl="dark"] .ct{background:#1f2937!important;color:#fff!important;border-radius:12px!important;box-shadow:0 3px 8px rgba(0,0,0,.25)!important}
:is(html,.pvx)[data-cl="dark"] .ct.on{background:var(--p)!important}
:is(html,.pvx)[data-cl="flat"] .ct{background:color-mix(in srgb,var(--p) 9%,transparent)!important;box-shadow:none!important;border-radius:10px!important;padding:6px 12px!important;min-width:0!important}
:is(html,.pvx)[data-cl="flat"] .ct span{display:inline!important;font-size:15px!important;margin:0 4px 0 0!important;width:auto!important;height:auto!important;background:none!important}
:is(html,.pvx)[data-cl="flat"] .ct.on{background:var(--p)!important;color:#fff!important}
:is(html,.pvx)[data-cl="card"] .ct{min-width:88px!important;padding:12px 10px!important;border-radius:20px!important;box-shadow:0 6px 16px rgba(0,0,0,.14)!important}
:is(html,.pvx)[data-cl="card"] .ct.on{background:linear-gradient(160deg,var(--p),color-mix(in srgb,var(--p) 55%,#000))!important;color:#fff!important;transform:translateY(-2px)}
:is(html,.pvx)[data-cl="tag"] .ct{border-radius:4px 16px 4px 16px!important;border-left:5px solid var(--p)!important;padding:8px 16px!important;min-width:0!important}
:is(html,.pvx)[data-cl="tag"] .ct.on{background:var(--p)!important;color:#fff!important;border-left-color:#FFD400!important}
:is(html,.pvx)[data-cl="glass"] .ct{background:rgba(255,255,255,.4)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.7)!important;border-radius:18px!important;box-shadow:0 4px 14px rgba(0,0,0,.1)!important}
:is(html,.pvx)[data-cl="glass"] .ct.on{background:color-mix(in srgb,var(--p) 85%,transparent)!important;color:#fff!important}
html[data-cl="wrap"] .chips,.pvx[data-cl="wrap"] .chips{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:8px!important}
:is(html,.pvx)[data-cl="wrap"] .ct{flex:1 1 22%!important;min-width:0!important;padding:8px 4px!important;font-size:11px}

/* ===== ITEM card styles (and placement) ===== */
:is(html,.pvx)[data-il="list"] .fg{grid-template-columns:1fr!important}
:is(html,.pvx)[data-il="list"] .fc2{flex-direction:row!important;align-items:stretch;border-radius:16px!important}
:is(html,.pvx)[data-il="list"] .fe{width:104px!important;height:auto!important;min-height:96px;flex:none;border-radius:0!important;font-size:46px!important}
:is(html,.pvx)[data-il="big"] .fg{grid-template-columns:1fr!important}
:is(html,.pvx)[data-il="big"] .fe{height:168px!important;font-size:84px!important}
:is(html,.pvx)[data-il="big"] .fn{font-size:16px!important}
:is(html,.pvx)[data-il="three"] .fg{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}
:is(html,.pvx)[data-il="three"] .fc2{border-radius:12px!important}
:is(html,.pvx)[data-il="three"] .fe{height:70px!important;font-size:36px!important}
:is(html,.pvx)[data-il="three"] .fi{padding:6px!important}
:is(html,.pvx)[data-il="three"] .fn{font-size:11px!important;min-height:28px!important;margin-bottom:4px!important}
:is(html,.pvx)[data-il="three"] .fr2{flex-direction:column;align-items:stretch;gap:4px;text-align:center}
:is(html,.pvx)[data-il="three"] .fp{font-size:13px!important}
:is(html,.pvx)[data-il="round"] .fc2{text-align:center;padding-top:12px;border-radius:22px!important}
:is(html,.pvx)[data-il="round"] .fe{width:96px!important;height:96px!important;border-radius:50%!important;margin:0 auto;font-size:48px!important;box-shadow:0 5px 14px rgba(0,0,0,.2)!important}
:is(html,.pvx)[data-il="round"] .fr2{flex-direction:column;gap:6px}
:is(html,.pvx)[data-il="overlay"] .fc2{position:relative;border-radius:22px!important;min-height:178px}
:is(html,.pvx)[data-il="overlay"] .fe{position:absolute!important;inset:0;height:100%!important;font-size:80px!important;border-radius:0!important}
:is(html,.pvx)[data-il="overlay"] .fi{position:relative;margin-top:auto;padding:30px 10px 10px!important;background:linear-gradient(transparent,rgba(0,0,0,.82));flex:none!important}
:is(html,.pvx)[data-il="overlay"] .fn,:is(html,.pvx)[data-il="overlay"] .fp{color:#fff!important;min-height:0!important}
:is(html,.pvx)[data-il="border"] .fc2{background:transparent!important;box-shadow:none!important;border:2px solid color-mix(in srgb,var(--portal-text) 18%,transparent)!important;border-radius:14px!important}
:is(html,.pvx)[data-il="polaroid"] .fc2{padding:8px 8px 4px!important;border-radius:6px!important;box-shadow:0 6px 16px rgba(0,0,0,.2)!important;transform:rotate(-1.2deg)}
:is(html,.pvx)[data-il="polaroid"] .fc2:nth-child(even){transform:rotate(1.2deg)}
:is(html,.pvx)[data-il="polaroid"] .fe{border-radius:3px!important}
:is(html,.pvx)[data-il="magazine"] .fc2:first-child{grid-column:1/-1}
:is(html,.pvx)[data-il="magazine"] .fc2:first-child .fe{height:170px!important;font-size:86px!important}
:is(html,.pvx)[data-il="magazine"] .fc2:first-child .fn{font-size:16px!important}
:is(html,.pvx)[data-il="tag"] .fp{background:var(--p);color:#fff!important;padding:3px 10px 3px 14px;border-radius:4px 14px 14px 4px;clip-path:polygon(8px 0,100% 0,100% 100%,8px 100%,0 50%)}
:is(html,.pvx)[data-il="soft"] .fc2{background:color-mix(in srgb,var(--p) 6%,var(--portal-card))!important;border:1px solid color-mix(in srgb,var(--p) 22%,transparent)!important;border-radius:28px!important;box-shadow:0 8px 20px color-mix(in srgb,var(--p) 14%,transparent)!important}
:is(html,.pvx)[data-il="soft"] .fe{margin:8px 8px 0;border-radius:22px!important}

/* ===== mini mock base (admin previews only) ===== */
.pvx-w{height:98px;overflow:hidden;border-radius:10px}
.pvx{width:250%;transform:scale(.4);transform-origin:0 0;font-family:Poppins,sans-serif;--p:#D91A1A;--portal-card:#fff;--portal-text:#5A0B0B;--item-color:#5A0B0B;--price-color:#5A0B0B;background:#FFF6DA;padding:8px}
.pvx .chips{display:flex;gap:8px;overflow:hidden;padding:0}
.pvx .ct{flex:none;border:0;background:#fff;border-radius:16px;padding:8px 14px;min-width:70px;font:600 12px Poppins,sans-serif;color:#5A0B0B;box-shadow:0 1px 6px #0001;text-align:center}.pvx .ct span{display:block;font-size:24px}.pvx .ct.on{background:var(--p);color:#fff}
.pvx .fg{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pvx .fc2{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 3px 12px #0001;display:flex;flex-direction:column}
.pvx .fe{background:linear-gradient(135deg,#ffe8b0,#ffc04d);height:104px;display:flex;align-items:center;justify-content:center;font-size:58px;position:relative}
.pvx .fi{padding:10px;flex:1;display:flex;flex-direction:column;justify-content:space-between}.pvx .fn{font-weight:700;font-size:13px;margin-bottom:6px;color:#5A0B0B}
.pvx .fr2{display:flex;align-items:center;justify-content:space-between;gap:6px}.pvx .fp{font-weight:800;font-size:16px;color:#5A0B0B}.pvx .add{padding:6px 10px;font:800 12px Poppins,sans-serif;border-radius:10px;border:2px solid var(--p);color:var(--p);background:#fff}
