#product-main-photo[data-source]{cursor:zoom-in}
#image-original-dialog{padding:0;border:1px solid #555;background:#191919;color:white;max-width:96vw;max-height:94vh;width:max-content}
#image-original-dialog::backdrop{background:#000b}
#image-original-dialog>button{position:sticky;top:0;display:block;margin:8px 8px 8px auto;padding:10px 16px;background:#fff;color:#111;border:0;cursor:pointer;z-index:1}
#image-original-dialog>div{overflow:auto;max-height:82vh;max-width:94vw}
#image-original-dialog img{display:block;max-width:none;height:auto}

/* Gorros only: square, complete product scenes with a neutral edge-to-edge field. */
.category-pilot .product-image:has(img[data-source^="/assets/catalog-studio/gorros/"]){height:auto;aspect-ratio:1;background:#e5e6e4}
.category-pilot .product-image img[data-source^="/assets/catalog-studio/gorros/"]{width:100%;height:100%;aspect-ratio:1;object-fit:contain;background:#e5e6e4}
.catalog-product .detail-photo:has(img[data-source^="/assets/catalog-studio/gorros/"]){background:#e5e6e4}
.catalog-product .detail-photo img#product-main-photo[data-source^="/assets/catalog-studio/gorros/"]{height:auto;min-height:0;width:100%;aspect-ratio:1;object-fit:contain;background:#e5e6e4}

/* Sets only: full, square scenes preserve every component and avoid artificial bands. */
.category-pilot .product-image:has(img[data-source^="/assets/catalog-studio/sets/"]){height:auto;aspect-ratio:1;background:#e5e6e4}
.category-pilot .product-image img[data-source^="/assets/catalog-studio/sets/"]{width:100%;height:100%;aspect-ratio:1;object-fit:contain;background:#e5e6e4}
.catalog-product .detail-photo:has(img[data-source^="/assets/catalog-studio/sets/"]){background:#e5e6e4}
.catalog-product .detail-photo img#product-main-photo[data-source^="/assets/catalog-studio/sets/"]{height:auto;min-height:0;width:100%;aspect-ratio:1;object-fit:contain;background:#e5e6e4}

/* Herramientas only: preserve full products, mechanisms and scales. */
.category-pilot .product-image:has(img[data-source^="/assets/catalog-studio/herramientas/"]){height:auto;aspect-ratio:1;background:#e5e6e4}
.category-pilot .product-image img[data-source^="/assets/catalog-studio/herramientas/"]{width:100%;height:100%;aspect-ratio:1;object-fit:contain;background:#e5e6e4}
.catalog-product .detail-photo:has(img[data-source^="/assets/catalog-studio/herramientas/"]){background:#e5e6e4}
.catalog-product .detail-photo img#product-main-photo[data-source^="/assets/catalog-studio/herramientas/"]{height:auto;min-height:0;width:100%;aspect-ratio:1;object-fit:contain;background:#e5e6e4}
