/* Product page (shopig.ir/{shop}/p/{code}). The rules of the static product.css, every one scoped to <body class="pg-product">
   (wire:navigate keeps old stylesheets: unscoped rules would leak into the other pages). */
body.pg-product{padding-top:calc(var(--sa-t) + 72px);padding-bottom:calc(88px + var(--sa-b))}
@media(min-width:992px){body.pg-product{padding-bottom:3rem}}
body.pg-product .bc{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;color:var(--mut)}
body.pg-product .bc a{color:var(--brand-d);text-decoration:none}
body.pg-product .bc i{font-size:.65rem}
body.pg-product .galw{position:relative}
body.pg-product .gal{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:26px;scrollbar-width:none}
body.pg-product .gal::-webkit-scrollbar{display:none}
body.pg-product .gs{flex:none;width:100%;aspect-ratio:1/1;scroll-snap-align:center;display:grid;place-items:center;font-size:3.5rem;color:rgba(76,29,149,.3)}
body.pg-product .gct{position:absolute;bottom:.8rem;left:.8rem;background:rgba(31,27,46,.7);color:#fff;font-size:.75rem;border-radius:99px;padding:.15rem .7rem}
body.pg-product .th{display:flex;gap:.5rem;margin:.7rem 0;overflow-x:auto;scrollbar-width:none}
body.pg-product .th::-webkit-scrollbar{display:none}
body.pg-product .th button{flex:none;width:64px;height:64px;border-radius:16px;border:2px solid transparent;display:grid;place-items:center;color:rgba(76,29,149,.35);padding:0}
body.pg-product .th button.on{border-color:var(--brand)}
body.pg-product .pr{font-weight:800;color:var(--brand-d)}
body.pg-product .pr small{font-weight:500;color:var(--mut)}
body.pg-product .vl{font-weight:700;font-size:.88rem;margin:1rem 0 .5rem;display:flex;justify-content:space-between}
body.pg-product .vl span{font-weight:500;color:var(--mut)}
body.pg-product .vc{display:flex;gap:.5rem;flex-wrap:wrap}
body.pg-product .vc button{border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:.55rem 1rem;font-size:.88rem;color:var(--ink)}
body.pg-product .vc button.on{border-color:var(--brand);background:var(--brand-s);color:var(--brand-d);font-weight:700}
body.pg-product .vc button.dis{opacity:.45;text-decoration:line-through;pointer-events:none}
body.pg-product .qty{display:inline-flex;align-items:center;background:var(--brand-s);border-radius:14px}
body.pg-product .qty button{width:40px;height:40px;border:0;background:transparent;color:var(--brand-d);font-size:1.2rem;font-weight:800}
body.pg-product .qty span{min-width:30px;text-align:center;font-weight:700}
body.pg-product h2.hb{font-size:1.5rem;margin-bottom:.8rem}
body.pg-product .prose h3{font-family:'Lalezar';font-weight:400;font-size:1.3rem;margin:1.3rem 0 .3rem;color:var(--brand-x)}
body.pg-product .prose h3:first-child{margin-top:0}
body.pg-product .prose p,body.pg-product .prose li{line-height:2.15;color:#3A3550}
body.pg-product .prose ul{padding-inline-start:1.2rem}
body.pg-product .sp{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 1rem;border-bottom:1px solid var(--line);font-size:.92rem}
body.pg-product .sp:last-child{border:0}
body.pg-product .sp span{color:var(--mut)}
body.pg-product .rl{width:170px;text-decoration:none;color:inherit;overflow:hidden;display:block}
body.pg-product .rl .im{aspect-ratio:1;display:grid;place-items:center;color:rgba(76,29,149,.3);font-size:2rem}
body.pg-product .rl .b{padding:.6rem .8rem}
body.pg-product .buybar{position:fixed;inset:auto 0 0 0;z-index:1030;background:rgba(255,252,250,.95);backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:.7rem 1rem calc(.7rem + var(--sa-b));display:flex;align-items:center;gap:1rem}
body.pg-product .gal{cursor:zoom-in}
body.pg-product .gz{position:absolute;top:.8rem;right:.8rem;background:rgba(255,255,255,.9);color:var(--brand-d);width:36px;height:36px;border-radius:12px;display:grid;place-items:center;pointer-events:none}
@media(min-width:992px){body.pg-product .galw,body.pg-product .th{max-width:340px}
body.pg-product .gs{font-size:2.6rem}}
body.pg-product .lb{position:fixed;inset:0;z-index:2100;background:rgba(20,12,40,.93);backdrop-filter:blur(10px);display:none;flex-direction:column}
body.pg-product .lb.on{display:flex}
body.pg-product .lbt{display:flex;justify-content:space-between;align-items:center;padding:calc(var(--sa-t) + 12px) 16px 12px;color:#fff;gap:.5rem}
body.pg-product .lbt>div{display:flex;gap:.5rem}
body.pg-product .lbb{width:44px;height:44px;border-radius:14px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.12);color:#fff;font-size:1.15rem;display:grid;place-items:center}
body.pg-product .lbb:active{background:rgba(255,255,255,.25)}
body.pg-product .lbv{flex:1;display:grid;place-items:center;overflow:hidden;touch-action:none}
body.pg-product .lbs{width:min(92vw,76vh);aspect-ratio:1;border-radius:24px;display:grid;place-items:center;font-size:6rem;color:rgba(76,29,149,.35);transition:transform .25s;cursor:zoom-in;user-select:none;-webkit-user-select:none}
body.pg-product .lbs.drag{transition:none}
body.pg-product .lbn{position:absolute;top:50%;margin-top:-22px}
body.pg-product .lbn.p{right:14px}
body.pg-product .lbn.n{left:14px}
body.pg-product .vc button{display:flex;flex-direction:column;align-items:center;min-width:64px;transition:.2s}
body.pg-product .vc button small{font-size:.72rem;opacity:.8}
body.pg-product .vc button.on{background:linear-gradient(135deg,#7C3AED,#5B21B6);border-color:transparent;color:#fff;font-weight:700;box-shadow:0 10px 20px -10px rgba(91,33,182,.85)}
body.pg-product .vc button.dis{background:#F4F1FA}
body.pg-product .vc button.on{background:#E3D4FF;border-color:var(--brand);color:var(--brand-d);font-weight:700;box-shadow:inset 0 0 0 1px var(--brand)}
@media(min-width:992px){body.pg-product .container{max-width:1000px}
body.pg-product .galw,body.pg-product .th{width:340px;max-width:340px}}

/* ---- real photos (the static page drew gradients) ---- */
body.pg-product [x-cloak]{display:none!important}
body.pg-product .gs img{display:block;width:100%;height:100%;object-fit:cover}
body.pg-product .th button{overflow:hidden}
body.pg-product .th button img{display:block;width:100%;height:100%;object-fit:cover}
body.pg-product .rl .im{position:relative;overflow:hidden}
body.pg-product .rl .im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.pg-product .lbs img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:inherit;pointer-events:none;-webkit-user-drag:none}
body.pg-product .pr s{font-weight:400;color:var(--mut);font-size:.8rem;margin-inline-start:.4rem}
