.product-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}.photo-edit-item{padding:10px;border:1px solid #dce4d5;border-radius:10px;background:#f7f8f2;min-width:0}.photo-edit-item img{width:100%;height:100px;object-fit:contain;display:block;background:white;border-radius:6px}.photo-edit-item span{font:600 12px/1.5 system-ui;display:block;margin:8px 0}.photo-edit-item button{width:100%;margin-top:6px;font-size:12px!important;padding:8px!important;white-space:normal}.catalog-photo[data-gallery]{position:relative;cursor:zoom-in}.catalog-photo .gallery-open{position:absolute;bottom:10px;right:10px;background:#183e2e;color:#fff;border:0;border-radius:20px;padding:8px 12px;min-height:36px;font:600 11px/1.4 system-ui;cursor:pointer}.product-gallery-dialog{position:fixed;inset:0;margin:auto;background:#f7f8f2;color:#183e2e;border:0;border-radius:16px;padding:18px;width:min(900px,calc(100% - 20px));max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;font:14px/1.6 system-ui}.product-gallery-dialog::backdrop{background:#10291ee8}.product-gallery-dialog h2{font:600 20px/1.4 system-ui;margin:0 50px 14px 0;overflow-wrap:anywhere}.pg-close{position:absolute;top:12px;right:12px;border:0;border-radius:50%;background:#e6eddb;color:#183e2e;font-size:26px;width:44px;height:44px;cursor:pointer}.pg-stage{position:relative;background:#fff;border-radius:12px;overflow:hidden;touch-action:pan-y}.pg-stage img{display:block;width:100%;height:min(55dvh,540px);object-fit:contain}.pg-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}.pg-controls button{border:1px solid #c5d0bd;background:#fff;color:#183e2e;border-radius:8px;padding:10px 14px;font:inherit;min-height:44px;cursor:pointer}.pg-controls button:disabled{opacity:.4;cursor:default}.pg-thumbs{display:flex;gap:8px;overflow:auto;padding:4px 0 8px;-webkit-overflow-scrolling:touch}.pg-thumb{width:72px;height:72px;padding:3px;border:2px solid transparent;border-radius:8px;background:white;flex-shrink:0;cursor:pointer}.pg-thumb[aria-pressed=true]{border-color:#183e2e}.pg-thumb img{width:100%;height:100%;object-fit:contain}.product-gallery-dialog :focus-visible{outline:3px solid #91ad67;outline-offset:2px}@media(max-width:600px){.product-photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}.product-gallery-dialog{padding:15px}.pg-stage img{height:48dvh}.product-gallery-dialog h2{font-size:17px}.pg-controls button{font-size:13px;padding:10px}.pg-thumb{width:62px;height:62px}}
