/* Shopig UI additions (loaded after shopig.css): tag colours, error boxes, notes */

/* ===== shop tags: one colour per meaning, the same on every page =====
   category = orange, province = blue, in-person purchase = green */
body .tg{display:inline-flex;align-items:center;gap:.25rem;border-radius:99px;padding:.16rem .7rem;font-size:.74rem;font-weight:700;line-height:1.7;white-space:nowrap;border:0}
body .tg-cat{background:#FFF1E3!important;color:#9A4A00!important}
body .tg-prov{background:#DBEAFE!important;color:#1E40AF!important}
body .tg-phy{background:#DCFCE7!important;color:#166534!important}

/* ===== errors and warnings: soft red box, accent edge, small ===== */
body .hint.er,
body .ferr,
body div.text-danger.small,
body .invalid-feedback{
  background:#FEF2F2;border:1px solid #FECACA;border-inline-start:4px solid #DC2626;color:#991B1B;
  border-radius:12px;padding:.4rem .75rem;font-size:.8rem;line-height:1.8;margin-top:.5rem;width:auto
}
body .hint.er,body .ferr{display:flex;align-items:flex-start;gap:.45rem}
body div.text-danger.small{display:block}

/* ===== note box (information the user must read) ===== */
.fnote{background:#FFFBEB;border:1px solid #FDE68A;border-inline-start:4px solid #F59E0B;color:#78350F;border-radius:14px;padding:.6rem .85rem;font-size:.82rem;line-height:2;margin-bottom:1rem}
.fnote b{color:#92400E}

/* ===== shop page: the filter row stays on one line ===== */
.shop-page .sr{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:nowrap}
.shop-page .sr .ft2{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.85rem}
.shop-page .sr .dcb{flex:none;white-space:nowrap;height:auto;min-height:0;padding:.45rem .9rem;font-size:.82rem;border-radius:14px;gap:.4rem}

/* ===== form groups: each question in its own soft block (settings and new-shop wizard) ===== */
.fgrp{background:#fff;border:1px solid var(--line);border-radius:18px;padding:.85rem 1rem 1rem;margin-top:.9rem}
.fgrp:first-of-type{margin-top:0}
.fgrp-t{font-weight:800;font-size:.92rem;margin-bottom:.6rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.fgrp-t small{font-weight:400;color:var(--mut);font-size:.74rem}
.fnote.sm{padding:.35rem .7rem;font-size:.78rem;line-height:1.9;margin:.5rem 0 0}

/* selectable chips (settings): the chosen ones are filled and carry a check mark */
.pks{display:flex;flex-wrap:wrap;gap:.45rem}
.pick{display:inline-flex;align-items:center;gap:.35rem;border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:99px;padding:.42rem .95rem;font-size:.85rem;cursor:pointer}
.pick.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:700}
.pick small{font-size:.66rem;background:rgba(255,255,255,.24);border-radius:99px;padding:0 .45rem}

/* ===== panel app bar: the shop switcher floats with air above and below ===== */
body.mgr .appbar .swt{align-self:center;height:44px;margin-block:0;padding-block:0;border-radius:16px}

/* ===== shop page: three numbers in one calm row (views, followers, products) ===== */
.shop-page .stat3{display:flex;align-items:stretch;margin:.1rem 0 .7rem}
.shop-page .stat3>div{flex:1;text-align:center;padding:.15rem .3rem}
.shop-page .stat3>div+div{border-inline-start:1px solid var(--line)}
.shop-page .stat3 b{display:block;font-size:1.05rem;line-height:1.5;color:var(--brand-d)}
.shop-page .stat3 small{display:block;font-size:.72rem;color:var(--mut)}

/* ===== shop page bottom bar: one colour per badge =====
   cart = orange (the corner badge of the cart button), filters = blue, messages / account (unread notices) = rose */
.shop-page .bdg.bf{background:#2563EB;color:#fff}
.shop-page .tabbar a:not(.fab) .bdg:not(.bf){background:#E11D48;color:#fff}



/* ===== "who is your counterpart" note (payment step, order result, my orders): neutral, friendly, informative ===== */
.paynote{display:flex;gap:.7rem;align-items:flex-start;background:#F5F3FF;border:1px solid #DDD6FE;border-inline-start:4px solid #7C3AED;border-radius:16px;padding:.8rem .95rem;margin-bottom:.9rem;color:#3B2A6B}
.paynote>i{flex:none;font-size:1.35rem;line-height:1.3;color:#7C3AED}
.paynote b{display:block;font-size:.9rem;margin-bottom:.15rem}
.paynote p{margin:0;font-size:.8rem;line-height:2}
.paynote.sm{padding:.6rem .8rem}
.paynote.sm>i{font-size:1.15rem}
.paynote.sm p{font-size:.76rem;line-height:1.9}

/* ===== bank details in the cart: a generic bank card (no bank brand) + the sheba under it ===== */
.bcard{position:relative;direction:ltr;width:100%;max-width:400px;margin:0 auto .8rem;aspect-ratio:1.586/1;min-height:176px;border-radius:20px;padding:1rem 1.1rem 1rem;color:#fff;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;
  background:radial-gradient(260px 170px at 100% 0,rgba(255,255,255,.2),transparent 62%),radial-gradient(240px 200px at 0 100%,rgba(255,138,31,.26),transparent 62%),linear-gradient(135deg,#2E1065,#5B21B6 55%,#7C3AED);
  box-shadow:0 22px 38px -22px rgba(46,16,101,.9)}
.bcard:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(115deg,rgba(255,255,255,.04) 0 2px,transparent 2px 14px);pointer-events:none}
.bcard>*{position:relative}
.bcard-top{display:flex;justify-content:space-between;align-items:center;gap:.6rem}
.bcard-bank{font-weight:700;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:75%}
.bcard-nfc{font-size:1.35rem;opacity:.85;transform:rotate(90deg)}
.bcard-chip{width:44px;height:33px;border-radius:7px;background:linear-gradient(135deg,#F6E3A1,#C9A227);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),inset 0 0 8px rgba(255,255,255,.35)}
.bcard-chip:after{content:"";display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,transparent 32%,rgba(0,0,0,.22) 32% 34%,transparent 34% 66%,rgba(0,0,0,.22) 66% 68%,transparent 68%),linear-gradient(0deg,transparent 46%,rgba(0,0,0,.22) 46% 54%,transparent 54%)}
.bcard-numrow{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.bcard-num{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(1.05rem,5.4vw,1.4rem);font-weight:700;letter-spacing:.08em;text-shadow:0 2px 6px rgba(0,0,0,.35);white-space:nowrap}
.bcard-cp{flex:none;width:34px;height:34px;border:0;border-radius:11px;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;font-size:.95rem}
.bcard-cp:active{background:rgba(255,255,255,.32)}
.bcard-bot{display:flex;justify-content:space-between;align-items:flex-end;gap:.6rem}
.bcard-bot>div{min-width:0;direction:rtl;text-align:right}
.bcard-bot small{display:block;font-size:.64rem;opacity:.75;letter-spacing:.02em}
.bcard-bot b{display:block;font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bcard-mark{flex:none;display:inline-flex}
.bcard-mark i{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.26)}
.bcard-mark i+i{margin-inline-start:-11px;background:rgba(255,255,255,.4)}
.bsh{display:flex;align-items:center;gap:.6rem;background:#fff;border:1px solid var(--line);border-radius:16px;padding:.6rem .9rem;margin-bottom:.9rem}
.bsh-l{flex:1;min-width:0}
.bsh-l small{display:block;font-size:.72rem;color:var(--mut);margin-bottom:.1rem}
.bsh-n{direction:ltr;text-align:right;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92rem;font-weight:700;letter-spacing:.03em;overflow-wrap:anywhere}
.bsh-c{flex:none;width:38px;height:38px;border:0;border-radius:12px;background:var(--brand-s);color:var(--brand-d);display:grid;place-items:center;font-size:1rem}

/* ===== ONE product card for the whole site: resources/views/components/product-card.blade.php =====
   image on top (4:5), name (2 lines), shop (optional), price pinned to the bottom so every price sits on one line.
   Change the look here, every list follows. */
.pcard{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;color:inherit;text-decoration:none;box-shadow:0 14px 30px -24px rgba(76,29,149,.55);transition:transform .15s}
.pcard:active{transform:scale(.98)}
@media(hover:hover){.pcard:hover{transform:translateY(-2px)}}
.pcard-im{position:relative;aspect-ratio:4/5;background:#F4F1FA;overflow:hidden}
.pcard-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.pcard-off{position:absolute;top:.55rem;inset-inline-start:.55rem;background:var(--bad);color:#fff;border-radius:99px;font-size:.7rem;font-weight:800;line-height:1.7;padding:0 .55rem;box-shadow:0 6px 12px -8px rgba(220,38,38,.9)}
.pcard-v{position:absolute;top:.55rem;inset-inline-end:.55rem;display:inline-flex;align-items:center;gap:.25rem;background:rgba(31,27,46,.62);color:#fff;border-radius:99px;font-size:.68rem;font-weight:700;line-height:1.7;padding:0 .5rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.pcard-v i{font-size:.72rem}
.pcard-out{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.62)}
.pcard-out span{background:#1F1B2E;color:#fff;border-radius:99px;font-size:.72rem;font-weight:700;padding:.15rem .8rem}
.pcard-bd{display:flex;flex-direction:column;flex:1;padding:.7rem .8rem .8rem}
.pcard-t{font-size:.88rem;font-weight:700;line-height:1.75;color:var(--ink);min-height:3.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-s{font-size:.7rem;color:var(--mut);margin-top:.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcard-p{margin-top:auto;padding-top:.5rem;min-height:3.1rem;display:flex;flex-direction:column;justify-content:flex-end}
.pcard-o{display:block;font-size:.72rem;color:var(--mut);text-decoration:line-through;line-height:1.5}
.pcard-f{line-height:1.6}
.pcard-f b{font-size:1rem;font-weight:800;color:var(--brand-d)}
.pcard-f small{font-size:.68rem;color:var(--mut);margin-inline-start:.2rem}
.pcard-low{display:block;font-size:.68rem;color:#B45309;margin-top:.1rem}
/* rails (horizontal lists): wider cards, and every card in a row has the same height
   (height:100% inside a flex row does not stretch, that made the cards uneven) */
.pcard-rail{width:176px;flex:none;height:auto;align-self:stretch}
.hs>.pcard,.sx-rail>.pcard{height:auto;align-self:stretch}
html body.pg-search .sx-rail .pcard{width:176px;height:auto;align-self:stretch}

/* shop page: a product that is already in the cart wears a badge on its photo */
.shop-page [data-pi].in-cart .pcard-im::after{content:"✓ در سبد خرید";position:absolute;inset-inline:.5rem;bottom:.5rem;text-align:center;background:var(--ok);color:#fff;border-radius:99px;font-size:.72rem;font-weight:800;line-height:1.9;padding:0 .5rem;box-shadow:0 6px 14px -8px rgba(22,163,74,.9)}
.shop-page [data-pi].in-cart .pcard{box-shadow:0 0 0 2px var(--ok)}

/* ordered products (order result page): photo, name, count, line price */
.orow{display:flex;align-items:center;gap:.75rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
.orow:last-child{border-bottom:0;padding-bottom:0}
.orow-im{flex:none;width:52px;height:52px;border-radius:14px;overflow:hidden;background:var(--brand-s);display:grid;place-items:center;color:rgba(76,29,149,.35)}
.orow-im img{width:100%;height:100%;object-fit:cover;display:block}
.orow-b{flex:1;min-width:0}
.orow-t{font-size:.88rem;font-weight:600;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.orow-m{font-size:.74rem;color:var(--mut)}
.orow-p{flex:none;font-size:.88rem;font-weight:800;color:var(--brand-d);text-align:end}
.orow-p small{font-size:.66rem;font-weight:400;color:var(--mut)}

/* home page: the way into the search page */
body.pg-home .hsrch{display:flex;align-items:center;gap:.6rem;max-width:520px;margin:.9rem auto 0;padding:.75rem 1rem;background:#fff;border:1px solid var(--line);border-radius:16px;color:var(--mut);text-decoration:none;font-size:.88rem;box-shadow:0 12px 26px -22px rgba(109,40,217,.7)}
body.pg-home .hsrch span{flex:1;text-align:start}
body.pg-home .hsrch i:first-child{color:var(--brand)}

/* ===== profile page (desktop): the way into the search page ===== */
.psrch{align-items:center;gap:.6rem;padding:.8rem 1rem;background:#fff;border:1.5px solid var(--line);border-radius:18px;color:var(--ink);text-decoration:none;font-weight:700;font-size:.92rem;box-shadow:0 12px 26px -22px rgba(109,40,217,.7);transition:border-color .2s}
.psrch i:first-child{color:var(--brand);font-size:1.1rem}
.psrch span{flex:1}
.psrch .bi-chevron-left{color:#B5AFC9}
.psrch:hover{border-color:var(--brand);color:var(--brand-d)}

/* ===== avatar (profile): the round photo and its picker ===== */
.ringav{overflow:hidden}
.ringav img{display:block;width:100%;height:100%;object-fit:cover}
.avp{display:flex;align-items:center;gap:1rem}
.avp .ringav{width:84px;height:84px;font-size:2.2rem}

/* ===== shop page: social buttons in the colours of their brands (one calm row under the main actions) ===== */
.soc2{display:flex;justify-content:center;gap:.6rem;margin-top:.7rem}
.soc2 a{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:1.25rem;text-decoration:none;box-shadow:0 10px 18px -12px rgba(0,0,0,.55);transition:transform .12s}
.soc2 a:active{transform:scale(.92)}
.sk-ig,.ri .ic.ic-ig{background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%)!important;color:#fff!important}
.sk-tg,.ri .ic.ic-tg{background:#229ED9!important;color:#fff!important}
.ri .ic.ic-wa{background:#25D366!important;color:#fff!important}

/* ===== product sheet: share button on the photo ===== */
.galw .gshare{position:absolute;top:.6rem;left:.6rem;z-index:2;width:38px;height:38px;border:0;border-radius:12px;background:rgba(255,255,255,.92);color:var(--brand-d);display:grid;place-items:center;font-size:1.05rem;box-shadow:0 8px 16px -10px rgba(0,0,0,.5)}
.galw .gshare:active{background:#fff;transform:scale(.94)}

/* ===== quantity: the "+" is dimmed when the stock is reached (a tap tells why) ===== */
.qty button.lim{opacity:.38}
.ci-lim{font-size:.74rem;color:#B45309;margin-top:.2rem}

/* ===== cart: the line that was just added blinks once ===== */
@keyframes cinew{0%{box-shadow:0 0 0 0 rgba(22,163,74,.5);background:#F0FBF4}100%{box-shadow:0 0 0 14px rgba(22,163,74,0);background:#fff}}
.ci.ci-new{animation:cinew 1.4s ease-out 1}

/* ===== product page: the photo has a calm fixed height, the full photo opens on tap ===== */
body.pg-product .galw .gal .gs{aspect-ratio:auto;height:clamp(230px,38dvh,330px)}
body.pg-product .galw .gal .gs img{object-position:center 30%}

/* ===== panel: product row with quick actions ===== */
.pcw{background:#fff;border:1px solid #E3DEF0;border-radius:22px;margin-bottom:.7rem;overflow:hidden}
.pcw>.pc{border:0;border-radius:0;margin:0;box-shadow:none}
.pca{display:flex;border-top:1px solid var(--line)}
.pca-b{flex:1;display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem .5rem;border:0;background:#FAF8FF;color:var(--brand-d);font-size:.84rem;font-weight:700;text-decoration:none}
.pca-b+.pca-b{border-inline-start:1px solid var(--line)}
.pca-b:active{background:var(--brand-s)}
.pca-b:disabled{opacity:.45}



/* ===== bank card: small labels (card number / account / sheba) ===== */
.bcard-nw{min-width:0;flex:1}
.bcard-lbl{display:block;font-size:.64rem;opacity:.75;letter-spacing:.02em;margin-bottom:.1rem}
.bsh+.bsh{margin-top:-.45rem}


/* ===== bank box: the card, and under it the account number and the sheba as rows of the same box, each with a badge ===== */
.bbox{background:#fff;border:1px solid var(--line);border-radius:24px;padding:.7rem;margin-bottom:.9rem;box-shadow:0 14px 28px -24px rgba(76,29,149,.6)}
.bbox .bcard{margin-bottom:.4rem}
.bbox .bsh{border:0;border-top:1px dashed var(--line);border-radius:0;margin:0;padding:.7rem .3rem .2rem;background:none}
.bbox .bsh+.bsh{margin-top:0}
.bbox .bsh-n{font-size:1rem;unicode-bidi:isolate}
.bbg{display:inline-flex;align-items:center;gap:.25rem;border-radius:99px;font-size:.68rem;font-weight:800;line-height:1.7;padding:0 .6rem;margin-bottom:.25rem}
.bbg-sheba{background:#DCFCE7;color:#166534}
.bbg-acc{background:#FFF1E3;color:#9A4A00}
/* the same badge on the dark card, for the card number */
.bcard-lbl{display:inline-flex;align-items:center;gap:.25rem;direction:rtl;background:rgba(255,255,255,.22);border-radius:99px;padding:0 .6rem;font-size:.66rem;font-weight:800;opacity:1;letter-spacing:0;margin-bottom:.3rem}

/* ===== receipt preview (cart payment step, order page): a calm fixed height, the picture is never cropped ===== */
.rpv{position:relative;margin-top:.6rem}
.rpv-img{display:block;width:100%;height:clamp(150px,24dvh,200px);object-fit:contain;background:#F4F1FA;border:1px solid var(--line);border-radius:16px;cursor:zoom-in}
.rpv-x{position:absolute;top:.45rem;left:.45rem;width:30px;height:30px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:1.1rem;line-height:1;display:grid;place-items:center;padding:0}
