/* Product overlays use the visible viewport, including Safari toolbar changes and existing zoom. */
:root{--product-vw:100vw;--product-vh:100dvh;--product-vx:0px;--product-vy:0px;--product-gap:24px}
html .product-quick-view,html .product-modal-backdrop{box-sizing:border-box!important;position:fixed!important;inset:auto!important;left:var(--product-vx)!important;top:var(--product-vy)!important;width:var(--product-vw)!important;height:var(--product-vh)!important;display:grid!important;place-items:center!important;align-content:center!important;padding:var(--product-gap)!important;overflow:hidden!important}
html .product-quick-view__panel,html .product-modal,html dialog.product-popup{box-sizing:border-box!important;width:min(1180px,calc(var(--product-vw) - var(--product-gap)*2))!important;max-width:calc(var(--product-vw) - var(--product-gap)*2)!important;max-height:calc(var(--product-vh) - var(--product-gap)*2)!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html dialog.product-popup{position:fixed!important;inset:auto!important;left:calc(var(--product-vx) + var(--product-vw)/2)!important;top:calc(var(--product-vy) + var(--product-vh)/2)!important;transform:translate(-50%,-50%)!important}
html .product-quick-view__panel *,html .product-modal *,html .product-popup *{box-sizing:border-box;min-width:0}
html .product-quick-view__content,html .modal-product-copy,html .popup-info{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere}
html .product-quick-view__content h2,html .modal-product-copy h2,html .popup-info h2{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
html .product-quick-view__sharing,html .modal-actions,html .popup-actions{max-width:100%;min-width:0;flex-wrap:wrap}
html #public-product-details,html #public-product-details *,html .product-detail,html .product-detail .split>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
html main:has(#public-product-details) .page-hero h1,html .product-detail h1,html .product-detail-head h1{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}
@media(max-width:850px){
 :root{--product-gap:12px}
 html .product-quick-view__panel,html .product-modal{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;align-items:start!important;border-radius:18px!important}
 html .product-quick-view__image,html .modal-product-image,html .popup-photo-side{position:static!important;align-self:auto!important;min-height:0!important;height:auto!important;max-width:100%!important;margin:0!important;padding:16px 20px 0!important}
 html .product-quick-view__image>button,html .popup-photo-button,html .modal-product-image .product-image-frame{display:grid!important;place-items:center!important;width:100%!important;min-height:0!important;height:clamp(150px,30vh,260px)!important;height:clamp(150px,calc(var(--product-vh)*.30),260px)!important;max-height:calc(var(--product-vh)*.42)!important;aspect-ratio:auto!important;margin:0!important;padding:10px!important}
 html .modal-product-image{display:block!important;width:100%!important}
 html .product-quick-view__image img,html .modal-product-image img,html .popup-photo{display:block!important;object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important;max-height:100%!important;margin:auto!important;padding:0!important}
 html .popup-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important}
 html .product-quick-view__content,html .modal-product-copy,html .popup-info{height:auto!important;max-height:none!important;overflow:visible!important;padding:24px 20px max(28px,env(safe-area-inset-bottom))!important}
 html .product-quick-view__content h2,html .modal-product-copy h2,html .popup-info h2{font-size:clamp(24px,6.5vw,34px)!important;line-height:1.15!important}
 html .product-quick-view__sharing,html .modal-actions,html .popup-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
 html .product-quick-view__sharing>* ,html .modal-actions>*,html .popup-actions>*{min-width:0!important;white-space:normal!important;min-height:44px!important;justify-content:center!important}
 html .product-quick-view__panel input,html .product-modal input,html .product-popup input,html .product-popup textarea{font-size:16px!important}
 html .product-quick-view__facts,html .reference-spec-table,html .popup-pack{grid-template-columns:minmax(0,1fr)!important}
 html .modal-close{position:absolute!important;right:12px!important;top:12px!important}
}
@media(max-height:500px){:root{--product-gap:8px}}

@media(min-width:851px){html .product-quick-view__image{display:grid!important;place-items:center!important;align-self:stretch!important;height:auto!important;min-height:0!important;padding:28px!important}html .product-quick-view__image>button{display:grid!important;place-items:center!important;width:100%!important;height:auto!important;aspect-ratio:1/1;min-height:0!important;max-height:calc(var(--product-vh) - 112px)!important}html .product-quick-view__image img{object-fit:contain!important;object-position:center!important;width:100%!important;height:100%!important;max-height:100%!important;margin:auto!important}}

/* Keep intrinsic image dimensions out of product layout sizing, including Safari grids. */
html .product-quick-view__image>button,
html .modal-product-image .product-image-frame,
html .popup-photo-button{
 position:relative!important;
 overflow:hidden!important;
 isolation:isolate;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:minmax(0,1fr)!important;
}
html .product-quick-view__image>button img,
html .modal-product-image .product-image-frame img,
html .popup-photo-button .popup-photo{
 position:absolute!important;
 inset:10px!important;
 display:block!important;
 width:calc(100% - 20px)!important;
 height:calc(100% - 20px)!important;
 max-width:calc(100% - 20px)!important;
 max-height:calc(100% - 20px)!important;
 min-width:0!important;
 min-height:0!important;
 aspect-ratio:auto!important;
 object-fit:contain!important;
 object-position:center!important;
 margin:0!important;
 padding:0!important;
}
@media(max-width:850px){
 html .product-quick-view__image,
 html .modal-product-image,
 html .popup-photo-side{overflow:hidden!important;min-height:0!important}
}
