/* همه قوانین فقط داخل .tws-shop اعمال می‌شوند و به هدر و بقیه سایت دست نمی‌زنند */
.tws-shop{position:relative;width:100%;max-width:none;background:#efeaff;direction:ltr;isolation:isolate;
  --tws-glow:#7c3aed;--tws-tip:#2d1b69;--tws-tipc:#fff;--tws-accent:#7c3aed;--tws-top:0px;--tws-cycle:5s}
.tws-shop *,.tws-shop *::before,.tws-shop *::after{box-sizing:border-box}
.tws-shop .tws-stage{position:relative;width:100%}
.tws-shop .tws-scene{position:relative;display:flex;justify-content:center;align-items:center;width:100%}
.tws-shop .tws-frame{position:relative;width:100%}
.tws-shop picture{display:block}
.tws-shop .tws-frame img{display:block;width:100%;height:auto;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}
.tws-shop .tws-hint,.tws-shop .tws-progress,.tws-shop .tws-skip{display:none}

/* ---------- نقاط کلیک‌پذیر ---------- */
.tws-shop .tws-hot{position:absolute;display:block;border-radius:10px;text-decoration:none;cursor:pointer;outline:0;
  left:var(--x);top:var(--y);width:var(--w);height:var(--h);
  transition:box-shadow .25s,background .25s,transform .25s}
.tws-shop.tws-m .tws-hot{left:var(--mx,var(--x));top:var(--my,var(--y));width:var(--mw,var(--w));height:var(--mh,var(--h))}
.tws-shop .tws-hot:hover,.tws-shop .tws-hot:focus-visible{transform:scale(1.03);
  box-shadow:0 0 0 2px rgba(255,255,255,.9),0 0 28px 6px var(--tws-glow)}
.tws-shop .tws-glass{position:absolute;inset:0;border-radius:inherit;overflow:hidden;pointer-events:none;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,0) 45%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.tws-shop .tws-shine{position:absolute;top:-30%;bottom:-30%;left:-45%;width:38%;opacity:0;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0) 0%,var(--tws-shine,rgba(255,255,255,.75)) 50%,rgba(255,255,255,0) 100%);
  transform:translateX(0) skewX(-22deg)}
.tws-shop.tws-no-shine .tws-shine{display:none}
.tws-shop.tws-enabled.tws-active .tws-shine,
.tws-shop.tws-ready:not(.tws-enabled) .tws-shine{animation:tws-shine var(--tws-cycle) ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes tws-shine{
  0%{transform:translateX(0) skewX(-22deg);opacity:0}
  3%{opacity:1}
  19%{opacity:1}
  22%,100%{transform:translateX(430%) skewX(-22deg);opacity:0}}

.tws-shop .tws-tip{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);background:var(--tws-tip);color:var(--tws-tipc);
  font-family:inherit;font-weight:600;font-size:13px;line-height:1.2;padding:7px 12px;border-radius:14px;white-space:nowrap;text-align:center;
  opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;direction:rtl;z-index:3}
.tws-shop .tws-tip small{display:block;font-weight:400;font-size:11px;opacity:.8;margin-top:3px}
.tws-shop .tws-hot:hover .tws-tip,.tws-shop .tws-hot:focus-visible .tws-tip,.tws-shop.tws-labels-always .tws-tip{opacity:1;transform:translate(-50%,0)}

/* ---------- حالت اسکرولی ---------- */
.tws-shop.tws-enabled{height:var(--tws-h,500vh)}
.tws-shop.tws-enabled .tws-stage{position:sticky;top:var(--tws-top);height:calc(100vh - var(--tws-top));overflow:hidden}
.tws-shop.tws-enabled .tws-scene{position:absolute;inset:0;width:auto;overflow:hidden;pointer-events:none;will-change:opacity}
.tws-shop.tws-enabled .tws-s1{z-index:1}
.tws-shop.tws-enabled .tws-s2{z-index:2;opacity:0}
.tws-shop.tws-enabled .tws-frame{flex:none;will-change:transform}
.tws-shop.tws-enabled .tws-hot{opacity:0;pointer-events:none}
.tws-shop.tws-enabled.tws-active .tws-hot{opacity:1;pointer-events:auto}

.tws-shop.tws-enabled .tws-progress{display:block;position:absolute;top:0;left:0;right:0;height:3px;z-index:6;pointer-events:none;background:rgba(255,255,255,.25)}
.tws-shop .tws-progress i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(0);background:var(--tws-accent)}

.tws-shop.tws-enabled .tws-hint{display:flex;flex-direction:column;align-items:center;gap:6px;position:absolute;
  bottom:calc(22px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);z-index:5;pointer-events:none;color:#fff;direction:rtl;transition:opacity .3s}
.tws-shop.tws-enabled.tws-m .tws-hint{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
.tws-shop .tws-hint span{background:rgba(45,27,105,.85);padding:8px 16px;border-radius:999px;font-family:inherit;font-weight:600;font-size:13px;line-height:1}
.tws-shop .tws-hint i{width:10px;height:10px;border-right:3px solid #fff;border-bottom:3px solid #fff;transform:rotate(45deg);animation:tws-bob 1.4s ease-in-out infinite}
@keyframes tws-bob{0%,100%{transform:translateY(0) rotate(45deg)}50%{transform:translateY(7px) rotate(45deg)}}

.tws-shop.tws-enabled .tws-skip{display:block;position:absolute;right:18px;bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:7;
  appearance:none;-webkit-appearance:none;cursor:pointer;direction:rtl;color:#fff;font-family:inherit;font-weight:600;font-size:12px;line-height:1;
  padding:9px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:rgba(45,27,105,.55);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s,opacity .3s}
.tws-shop.tws-enabled .tws-skip:hover{background:rgba(45,27,105,.85)}
.tws-shop.tws-enabled.tws-m .tws-skip{bottom:calc(72px + env(safe-area-inset-bottom,0px))}

/* ---------- کمک ویرایش ---------- */
.tws-shop.tws-edit .tws-hot{opacity:1!important;pointer-events:auto!important;outline:2px dashed #ff2d95;background:rgba(255,45,149,.14)}

@media (prefers-reduced-motion:reduce){.tws-shop .tws-shine,.tws-shop .tws-hint i{animation:none!important}}
