#productList .product-visual img{cursor:zoom-in}
#productList .product-visual img:focus-visible{outline:3px solid #0284c7;outline-offset:3px}
#productImagePreview{width:min(700px,calc(100vw - 24px));max-width:700px;padding:0;border:1px solid #cbdce8;border-radius:12px;overflow:hidden;max-height:calc(100dvh - 24px)}
#productImagePreview .product-image-preview-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;padding:16px;max-height:calc(100dvh - 24px);box-sizing:border-box}
#productImagePreview .product-image-preview-head{display:flex;align-items:center;gap:12px;justify-content:space-between;min-width:0}
#productImagePreviewName{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere;min-width:0}
#productImagePreview #closeProductImagePreview{flex-shrink:0;width:36px;min-height:36px;padding:0;border-radius:6px;background:#e8edf4;color:#153e52;font-size:24px}
#productImagePreview .product-image-preview-stage{height:min(52dvh,460px);min-height:0;border:1px solid #d7e3ef;border-radius:8px;background:#f7fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:8px;box-sizing:border-box}
#productImagePreviewPhoto{width:100%;height:100%;object-fit:contain}
#productImagePreviewPhoto[hidden],#productImagePreviewError[hidden]{display:none}
#productImagePreviewError{padding:16px;font-size:14px;color:#526b7a}
#productImagePreview .product-image-preview-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#productImagePreviewCode{margin-right:auto;font-size:12px;overflow-wrap:anywhere;min-width:0}
#productImagePreview .product-image-preview-footer button{min-height:40px;padding:7px 14px;border-radius:6px}
@media(max-width:540px){#productImagePreview .product-image-preview-card{padding:12px;gap:10px}#productImagePreviewName{font-size:18px}#productImagePreviewCode{flex-basis:100%}#productImagePreview .product-image-preview-footer button{flex:1}}
@media(max-height:550px){#productImagePreview .product-image-preview-stage{height:40dvh}#productImagePreview .product-image-preview-card{gap:8px;padding:10px}#productImagePreviewName{font-size:16px}}
