.gallery-photo{width:100%;height:100%}
.model-stage{position:absolute;inset:0;overflow:hidden;border-radius:inherit}
.product-gallery .model-stage model-viewer{display:block;width:100%;height:100%;background:transparent;--poster-color:transparent;--progress-bar-color:rgba(0,0,0,.4);--progress-bar-height:5px}
.model-stage model-viewer::part(default-progress-bar){display:none}
.model-reset{position:absolute;top:16px;right:16px;z-index:2;border:1px solid #dddddd;background:#ffffffeb;padding:10px 14px;min-height:42px;border-radius:24px;font-size:12px;display:flex;align-items:center;gap:7px}
.model-reset:hover{background:white;border-color:#666666}
.model-reset svg{height:16px;width:16px}
.model-status{position:absolute;inset:auto 18px 20px;text-align:center;font-size:13px;line-height:1.5;color:#666666;background:#f6f6f6ed;border-radius:6px;padding:12px 18px;z-index:3}
.product-gallery .model-status:not(.is-error){inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0;padding:24px;border-radius:0;background:#f7f8f9;color:#000;opacity:1;transition:opacity .8s ease-in-out}
.model-status[hidden]{display:none!important}
.product-gallery .model-status.is-ready{opacity:0;pointer-events:none}
.model-loading-cube{display:block;width:clamp(56px,5.2vw,100px);height:auto;flex:none;margin-bottom:40px}
.model-loading-track{width:clamp(160px,15vw,288px);max-width:80%;height:4px;overflow:hidden;border-radius:4px;background:#a9a9a9;margin-bottom:30px;flex:none}
.model-loading-track span{display:block;width:100%;height:100%;background:#73c900;transform:scaleX(var(--load-progress,0));transform-origin:left;transition:transform .2s linear}
.model-loading-track.is-indeterminate span{width:25%;transform:none;animation:model-library-loading 1.4s ease-in-out infinite alternate}
.model-status:not(.is-error) [data-model-status]{margin:0;font-size:16px;line-height:1.5;font-weight:400}
.model-status.is-error .model-loading-cube,.model-status.is-error .model-loading-track{display:none}
@keyframes model-library-loading{from{transform:translateX(0)}to{transform:translateX(300%)}}
@media(max-width:680px){.model-loading-cube{width:21.3vw;max-width:84px}.model-loading-track{width:54vw;height:2px;margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.product-gallery .model-status:not(.is-error),.model-loading-track span{transition:none}.model-loading-track.is-indeterminate span{animation:none}}
.product-gallery[data-view-mode=model] .gallery-tools,.product-gallery[data-view-mode=model] .gallery-caption{visibility:hidden;pointer-events:none}
.model-status button{margin-top:10px;border:1px solid #e4e4e4;border-radius:20px;padding:8px 16px;background:white;min-height:40px;font-size:13px}
.gallery-modes{display:flex;width:max-content;max-width:100%;margin:18px auto 0;gap:3px;background:#f1f1f1;border-radius:30px;padding:4px}
.gallery-modes button{border:0;background:transparent;color:#666666;font-size:13px;font-weight:500;padding:12px 23px;min-height:44px;border-radius:25px;display:flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.gallery-modes button[aria-pressed=true]{background:white;color:#222222;box-shadow:0 1px 5px #22222217}
.gallery-modes svg{width:17px;height:17px}
.model-hint{text-align:center;font:12px/1.6 "Segoe UI",Arial,sans-serif;color:#666666;margin-top:12px;min-height:20px}
.model-hint .touch-hint{display:none}
@media(pointer:coarse){.model-hint .touch-hint{display:inline}.model-hint .mouse-hint{display:none}}
@media(max-width:680px){.gallery-modes{margin-top:14px}.gallery-modes button{padding:10px 21px}.model-reset{top:12px;right:12px;padding:9px 12px}.model-hint{font-size:11px}}
