/* Use the full width of the product header; recommendations sit beside the details. */
@media(min-width:1181px){
 .pdp-discovery-layout>.pdp-main{display:contents}
 .pdp-discovery-layout>.pdp-main>.pdp-top{grid-column:1/-1;grid-row:1}
 .pdp-discovery-layout>.pdp-main>.pdp-information{grid-column:1;grid-row:2}
 .pdp-discovery-layout>.pdp-recommendations{grid-column:2;grid-row:2}
}
@media(min-width:761px){.pdp-main .pdp-top{grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:clamp(22px,2.4vw,46px)}}
.pdp-main .pdp-gallery,.pdp-main .pdp-gallery:has(>.marketplace-links){
 grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:9px;min-width:0
}
.pdp-main .gallery-main,.pdp-server-gallery .gallery-main{
 grid-row:1;height:clamp(400px,35vw,590px);max-height:none;border:1px solid #b9c8bf;border-radius:15px;
 box-shadow:0 3px 16px #18362b0c;background:#fff;isolation:isolate;position:relative
}
.pdp-main .gallery-open{display:block;position:absolute;inset:0;padding:0;background:#fff;width:100%;height:100%;border-radius:inherit}
.photo-framing{display:block;position:relative;overflow:hidden;background:#fff;container-type:size}
.photo-framing>img{display:block;width:100%;height:100%;object-fit:contain;margin:0;padding:0}
@supports(width:1cqw){
 .photo-framing>img[data-fitted]{position:absolute;width:var(--fitted-width);height:var(--fitted-height);max-width:none;max-height:none;top:50%;left:50%;transform:translate(var(--fitted-x),var(--fitted-y))}
}
.gallery-open>.photo-framing,.pdp-server-gallery .gallery-main>.photo-framing{position:absolute;inset:12px 12px 55px}
.pdp-server-gallery .gallery-main>.photo-framing{bottom:12px}
.pdp-main .gallery-number{top:12px;left:12px;background:#f2f6f3ed;color:#28473a;font:600 11px/1.2 system-ui;padding:5px 9px;border-radius:14px}
.pdp-main .gallery-arrows{inset:auto auto 8px 12px;transform:none;gap:7px;justify-content:start}
.pdp-main .gallery-arrows .icon-button{width:40px;height:40px;background:#f4f7f4;border-color:#c5d3c9;color:#264437}
.pdp-main .gallery-arrows[hidden]{display:none}
.pdp-main .zoom-hint{left:auto;bottom:10px;right:12px;width:auto;min-height:36px;padding:0 12px;border:1px solid #c5d3c9;border-radius:20px;color:#294b3a;background:#f5f8f5;font-size:12px;font-weight:650}
.pdp-main .gallery-thumbnails,.viewer-thumbnails{grid-row:2;display:flex;flex-direction:row;justify-content:flex-start;min-width:0;max-width:100%;overflow-x:auto;gap:8px;padding:3px 2px 5px;scroll-snap-type:x proximity}
.pdp-main .gallery-thumb,.viewer-thumbnails .gallery-thumb{width:72px;height:72px;border-radius:9px;border:1px solid #becbc3;padding:4px;overflow:hidden;scroll-snap-align:start}
.pdp-main .gallery-thumb.active,.viewer-thumbnails .gallery-thumb.active{border:2px solid #294e3e;padding:3px;box-shadow:0 0 0 1px #294e3e30}
.gallery-thumb>.photo-framing{height:100%;width:100%;border-radius:5px}
.gallery-thumb>.thumb-index{background:#fffffff0;color:#294638;font-weight:650}
.pdp-main .gallery-caption{grid-column:1;grid-row:3;margin:0;color:#53665c;text-align:left;font-size:12px}
.pdp-main .pdp-gallery>.marketplace-links{grid-column:1;grid-row:4}
.gallery-open:focus-visible,.gallery-thumb:focus-visible,.gallery-arrows button:focus-visible{outline:3px solid #246546;outline-offset:-3px}
#image-viewer{width:min(1280px,96vw);max-height:96dvh;overflow:auto}
#image-viewer .zoom-stage{height:clamp(220px,64dvh,820px);padding:8px;overflow:auto}
#zoom-stage>.photo-framing{height:100%;width:100%}
#zoom-stage.zoomed>.photo-framing{height:200%;width:200%}
#zoom-stage .photo-framing>img:not([data-fitted]){width:100%;height:100%;max-width:100%;object-fit:contain;margin:0}
#image-viewer .viewer-thumbnails{padding:3px 14px 8px}
#image-viewer .viewer-thumbnails .gallery-thumb{width:54px;height:54px}
@media(max-width:760px){
 .pdp-main .pdp-top{padding:12px;gap:16px}.pdp-main .gallery-main,.pdp-server-gallery .gallery-main{height:clamp(295px,94vw,480px);border-radius:12px}
 .gallery-open>.photo-framing{inset:8px 7px 52px}.pdp-main .gallery-thumb{width:60px;height:60px}
 .pdp-main .gallery-thumbnails{gap:7px}.pdp-main .gallery-caption{font-size:11px}
}

.gallery-thumb>span.photo-framing{position:relative;inset:auto;padding:0;background:#fff}

.product-photo>.catalog-fit,.discovery-photo>.catalog-fit{width:100%;height:100%;min-width:0;flex:1}

.nl-photo{position:relative;padding:0}.nl-photo>.catalog-fit{position:absolute;inset:7%}
.nl-photo,.nl-photo>.catalog-fit{background:#fff}
.product-photo .catalog-fit>img,.nl-photo .catalog-fit>img{object-fit:contain;transition:none}
.product-photo:hover .catalog-fit>img[data-fitted],.nl-tile a:hover .catalog-fit>img[data-fitted]{transform:translate(var(--fitted-x),var(--fitted-y))}
#zoom-stage.zoomed .photo-framing>img[data-fitted]{width:var(--fitted-width);height:var(--fitted-height);max-width:none;object-fit:contain}
