.shop-photo-open{position:absolute;inset:0;z-index:3;width:100%;height:100%;border:0;padding:0;background:transparent;cursor:zoom-in;border-radius:inherit;touch-action:manipulation}
.shop-photo-open:focus-visible{outline:3px solid var(--brand,#2868dc);outline-offset:-4px}
.shop-photo-hint{position:absolute;right:10px;bottom:10px;width:34px;height:34px;display:grid;place-items:center;border:1px solid #dce7f4;border-radius:10px;background:#fffffff2;color:#2868dc;box-shadow:0 2px 10px #16334f12;transition:transform .15s}
.shop-photo-hint svg{width:21px;height:21px}
.shop-photo-open:hover .shop-photo-hint{transform:scale(1.08)}
.shop-photo-failure{position:relative;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%}
.shop-photo-retry{border:0;border-radius:10px;padding:10px 16px;min-height:44px;background:var(--brand,#2868dc);color:var(--theme-button-text,#fff);font:inherit;font-size:14px;cursor:pointer;touch-action:manipulation}
.shop-photo-retry:focus-visible{outline:3px solid var(--text,#16334f);outline-offset:3px}
.shop-photo-viewer{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1100px,calc(100% - 48px));max-width:none;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:0;border:1px solid #dce7f4;border-radius:22px;background:#fff;color:#16334f;box-shadow:0 24px 90px #10264340;overflow:hidden}
.shop-photo-viewer::backdrop{background:#10243bd1;backdrop-filter:blur(5px)}
.shop-photo-shell{display:flex;flex-direction:column;min-height:0}
.shop-photo-header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e4ebf5;background:#fff}
.shop-photo-header h2{min-width:0;margin:0;font-size:18px;line-height:1.4;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#16334f}
.shop-photo-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:#2868dc;color:#fff;cursor:pointer;touch-action:manipulation}
.shop-photo-close:hover{background:#1955c7}
.shop-photo-close:active{transform:scale(.96)}
.shop-photo-close:focus-visible{outline:3px solid #16334f;outline-offset:3px}
.shop-photo-close svg{width:24px;height:24px}
.shop-photo-stage{position:relative;display:grid;place-items:center;min-height:180px;height:min(720px,calc(100vh - 126px));height:min(720px,calc(100dvh - 126px));background:#f5f8fc;padding:12px;box-sizing:border-box;overflow:hidden}
.shop-photo-image-slot{width:100%;height:100%;min-height:0;display:grid;place-items:center}
.shop-photo-image-slot img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;opacity:0}
.shop-photo-stage[data-state="ready"] img{opacity:1}
.shop-photo-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#526e8b;font-size:14px;pointer-events:none}
.shop-photo-spinner{width:38px;height:38px;border:3px solid #dbe7fa;border-top-color:#2868dc;border-radius:50%;animation:shop-photo-spin .75s linear infinite}
.shop-photo-error{position:absolute;margin:0;padding:20px;text-align:center;color:#526e8b}
.shop-photo-viewer [hidden]{display:none!important}
@keyframes shop-photo-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.shop-photo-viewer{width:calc(100% - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.shop-photo-header{padding:10px 12px;gap:10px}.shop-photo-header h2{font-size:16px}.shop-photo-stage{height:calc(100vh - 88px);height:calc(100dvh - 88px);min-height:0;padding:8px}}
@media(max-height:400px){.shop-photo-stage{min-height:0}.shop-photo-header{padding:6px 12px}}
@media(prefers-reduced-motion:reduce){.shop-photo-spinner{animation:none}.shop-photo-hint{transition:none}}
