/* نمایشگر تمام‌صفحه‌ی عکس و پرواز به سبد — برای همه‌ی قالب‌ها */
html.agv-open { overflow: hidden; }
.agv { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; color: #fff;
  background: rgba(8, 14, 12, .78); -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  opacity: 0; transition: opacity .22s ease; font-family: inherit; direction: rtl; }
.agv.in { opacity: 1; }
.agv-top { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 14px 6px; }
.agv-count { font-size: 13px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 99px; padding: 3px 12px; }
.agv-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.agv-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; overscroll-behavior: contain; }
.agv.zoomed .agv-track { overflow: hidden; touch-action: none; }
.agv-track::-webkit-scrollbar { display: none; }
.agv-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 8px 14px; overflow: hidden; }
.agv-z { width: 100%; height: 100%; display: grid; place-items: center; transform-origin: center; will-change: transform; }
.agv-z img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 22px; background: #fff; user-select: none; -webkit-user-drag: none;
  box-shadow: 0 30px 80px rgba(0,0,0,.45); transform: scale(.94); transition: transform .35s cubic-bezier(.2,.75,.25,1); }
.agv.in .agv-z img { transform: none; }
.agv-dots { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.agv-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .25s; padding: 0; }
.agv-dots button.on { width: 24px; background: #fff; }
.agv-hint { text-align: center; font-size: 12px; color: rgba(255,255,255,.65); padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
.agv.zoomed .agv-hint, .agv.zoomed .agv-dots { opacity: 0; }
.agv-badge { position: absolute; bottom: 12px; inset-inline-start: 12px; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; z-index: 3;
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9); color: #14201c; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pg-gal-slide img { cursor: zoom-in; }

.ag-fly { position: fixed; z-index: 210; object-fit: contain; background: #fff; border-radius: 18px; pointer-events: none;
  box-shadow: 0 16px 40px rgba(20,32,28,.28); padding: 6px; }
.ag-bump { animation: agBump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes agBump { 30% { transform: scale(1.28) rotate(-6deg); } 60% { transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .agv, .agv-z img { transition: none; } .ag-bump { animation: none; } }
