/* The head flag reserves a shimmer before deferred scripts or image decoding finish. */
:is(.product-image,.pt-photo,.shop-main-image,.wk-photo,.pc-category-photo){position:relative;isolation:isolate}
.pd-image-shell{position:relative;isolation:isolate}
.pd-image-loading,.pd-images-enabled :is(.product-image,.pt-photo,.shop-main-image,.wk-photo,.pc-category-photo):has(>img:not([data-pd-ready])){overflow:hidden;background:#F6F1E7}
.pd-image-loading::after,.pd-images-enabled :is(.product-image,.pt-photo,.shop-main-image,.wk-photo,.pc-category-photo):has(>img:not([data-pd-ready]))::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(105deg,transparent 20%,rgba(255,255,255,.9) 50%,transparent 80%);transform:translateX(-100%);animation:pd-image-shimmer 1.25s ease-in-out infinite}
.pd-image-shell>img{transition:opacity .18s ease}
.pd-image-loading>img,.pd-image-error>img,.pd-images-enabled :is(.product-image,.pt-photo,.shop-main-image,.wk-photo,.pc-category-photo)>img:not([data-pd-ready]){opacity:0}
.pd-image-loading>img,.pd-images-enabled :is(.product-image,.pt-photo,.shop-main-image,.wk-photo,.pc-category-photo)>img:not([data-pd-ready]){transition:none}
.pd-image-shell:has(>img[data-pd-ready]):not(.pd-image-loading):not(.pd-image-error){background:#FFFFFF}
.pd-image-error::after{animation:none!important;transform:none!important;background:#F6F1E7!important}
.pd-image-error-text{position:absolute;inset:0;z-index:2;display:grid;place-content:center;padding:20px;text-align:center;font-size:14px;color:#20211F}
@keyframes pd-image-shimmer{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.pd-image-loading::after,.pd-images-enabled :is(.product-image,.pt-photo,.shop-main-image,.wk-photo,.pc-category-photo):has(>img:not([data-pd-ready]))::after{animation:none;transform:none;background:rgba(255,255,255,.3)}.pd-image-shell>img{transition:none}}

.pc-category-photo{display:block;overflow:hidden;border-radius:20px;margin-bottom:12px}.pc-category-tiles .pc-category-photo>img{margin-bottom:0}.design-views.pd-image-loading{border-radius:12px;min-height:180px}.design-views.pd-image-loading>section{visibility:hidden}.design-views.pd-image-error{background:#F6F1E7}
