/* Floating product photographs, matching the storefront controls. */
#productImageViewer682{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;width:min(820px,calc(100vw - 48px));height:min(700px,calc(100dvh - 72px));max-width:none;max-height:none;border:1px solid var(--line,#e2e4ef);border-radius:16px;background:var(--paper-card,#fff);color:var(--ink,#1a1d2e);box-shadow:0 24px 80px #10162c66;overflow:hidden;font-family:Vazirmatn,sans-serif}
#productImageViewer682:not([open]){display:none}#productImageViewer682[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto}#productImageViewer682::backdrop{background:#161c3499;backdrop-filter:blur(3px)}
.image-viewer-head682{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}.image-viewer-head682>div{min-width:0}.image-viewer-head682 h2{font-size:14px;line-height:1.8;font-weight:800;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-viewer-head682 p{font-size:10px;color:var(--ink-soft);margin:2px 0 0;line-height:1.7}
#productImageViewer682 button{font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--paper-card,#fff);color:var(--ink-soft);flex-shrink:0}#productImageViewer682 button:hover{background:var(--primary-light,#edf2ff);color:var(--primary,#3b5bdb);border-color:var(--primary,#3b5bdb)}#productImageViewer682 button:disabled{opacity:.4;cursor:not-allowed}#productImageViewer682 :is(button,[tabindex]):focus-visible{outline:2px solid var(--primary,#3b5bdb);outline-offset:2px}#productImageViewer682 button svg{display:block;width:18px;height:18px;flex:0 0 18px}.image-viewer-close682{background:var(--paper,#f0f2f8)!important}
.image-viewer-toolbar682{display:flex;align-items:center;gap:6px;padding:7px 14px;background:var(--paper,#f0f2f8)}.image-viewer-toolbar682 output{font-size:12px;font-weight:700;color:var(--primary);min-width:46px;text-align:center}.image-viewer-toolbar682 .image-viewer-reset682{font-size:10px;padding-inline:11px}.image-viewer-toolbar682>span{font-size:10px;color:var(--ink-soft);margin-inline-start:auto}
.image-viewer-stage682{position:relative;min-width:0;min-height:0;margin:10px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;touch-action:none;user-select:none;direction:ltr}.image-viewer-stage682.is-zoomed{cursor:grab}.image-viewer-stage682.is-dragging{cursor:grabbing}.image-viewer-image682{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;pointer-events:none;user-select:none;will-change:transform}
#productImageViewer682 .image-viewer-prev682,#productImageViewer682 .image-viewer-next682{position:absolute;top:50%;transform:translateY(-50%);background:#ffffffed;box-shadow:0 3px 12px #17223c18;z-index:1}#productImageViewer682 .image-viewer-prev682{right:12px}#productImageViewer682 .image-viewer-next682{left:12px}#productImageViewer682 [hidden]{display:none!important}
.image-viewer-thumbs682{display:flex;gap:8px;min-width:0;max-width:100%;overflow:auto;padding:2px 14px 8px;overscroll-behavior:contain}#productImageViewer682 .image-viewer-thumbs682 button{padding:5px;width:54px;height:54px;border-radius:9px}#productImageViewer682 .image-viewer-thumbs682 button.active{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-light)}.image-viewer-thumbs682 img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:5px}.image-viewer-help682{font-size:9px;line-height:1.8;text-align:center;color:var(--ink-soft);margin:0;padding:2px 12px 8px}.image-viewer-error682{position:absolute;left:12px;right:12px;bottom:12px;padding:12px;border-radius:8px;background:var(--paper);font-size:12px;text-align:center;color:var(--ink-soft)}
.product-gallery-open682{display:block;position:relative;width:100%;aspect-ratio:1;padding:0;border:0;background:#fff;cursor:zoom-in;color:inherit}.gallery-stage-open682{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in;position:relative}.gallery-stage-open682>span{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--paper-card,#fff);color:var(--primary);border:1px solid var(--line);border-radius:9px;box-shadow:0 2px 8px #0001}.gallery-stage-open682 svg{width:20px;height:20px}.gallery-stage-open682 .gallery-main-image{height:100%;width:100%;object-fit:contain}
@media(max-width:600px){#productImageViewer682{width:min(420px,calc(100vw - 32px));height:min(580px,calc(100dvh - 64px),calc(100vw + 150px));border-radius:14px}#productImageViewer682[data-single-photo=true]{height:min(520px,calc(100dvh - 64px),calc(100vw + 110px))}.image-viewer-head682{padding:8px 10px;gap:8px}.image-viewer-head682 h2{font-size:12px}.image-viewer-head682 p{font-size:10px}.image-viewer-toolbar682{padding:5px 10px;gap:5px;justify-content:center}.image-viewer-toolbar682>span,.image-viewer-help682{display:none}.image-viewer-stage682{margin:8px 10px}.image-viewer-thumbs682{padding:0 10px 8px;gap:6px}#productImageViewer682 .image-viewer-thumbs682 button{width:48px;height:48px;padding:4px}.image-viewer-toolbar682 output{font-size:11px;min-width:42px}#productImageViewer682 .image-viewer-prev682{right:5px}#productImageViewer682 .image-viewer-next682{left:5px}}
@media(max-height:500px){.image-viewer-head682{padding:6px 12px}.image-viewer-head682 p,.image-viewer-help682{display:none}.image-viewer-toolbar682{padding:6px 12px}.image-viewer-stage682{margin:6px 12px}#productImageViewer682 .image-viewer-thumbs682 button{width:44px;height:44px}.image-viewer-thumbs682{padding-bottom:6px}}
@media(prefers-reduced-motion:reduce){#productImageViewer682,#productImageViewer682 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
