/* 21-oct-2026 PRUEBA (Joel): todos los contenedores de FOTO en 4:5 (sin marcos 9:16). Fotos de producto sin recorte (contain); en modelo / empaque / moneda llenan el slide (cover). */
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card{--om-h:calc(min(100vw,var(--feed-w,100vw)) * 5 / 4)}
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery.gallery{height:auto!important;max-height:none!important;min-height:0!important;aspect-ratio:4/5!important;width:100%!important;margin-top:0!important;padding:0!important}
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide{height:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:4/5!important;padding:0!important;top:auto!important}
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide>img,
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide>video{position:absolute!important;inset:0!important;top:0!important;left:0!important;width:100%!important;height:100%!important;max-height:none!important;transform:none!important;object-fit:contain!important;object-position:center!important;margin:0!important}
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide.bn-closing>img,
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide.om-x>img,
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide.om-y>img,
html.bn-amz.bn-amz.bn-amz #feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide[data-om]>img{object-fit:cover!important}
/* miniaturas de rondas (banner / pop-up / carrito) */
#rd-banner .rd-r img{width:48px!important;height:60px!important;aspect-ratio:4/5;object-fit:cover}
#rd-pop img{width:80px!important;height:100px!important;aspect-ratio:4/5;object-fit:cover}
html #ac-cart .ac-item img{aspect-ratio:4/5!important;height:auto!important;object-fit:cover!important}
html.bn-amz.bn-amz.bn-amz.bn-amz #feed.feed.feed>article.feed-card.feed-card.feed-card>.gallery.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide.bn-closing.bn-closing img.bn-closing-img.bn-closing-img.bn-closing-img{position:absolute!important;inset:0!important;top:0!important;left:0!important;right:auto!important;bottom:auto!important;width:100%!important;height:100%!important;max-height:none!important;transform:none!important;object-fit:cover!important;margin:0!important}
/* fix 21-oct 8:40 PM: la foto se desplazaba var(--om-top) hacia abajo y la cola quedaba tapada → foto exactamente dentro del marco 4:5 */
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery>.gallery-slide:not(.video-slide) img.feed-photo{position:absolute!important;inset:0!important;top:0!important;left:0!important;right:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;transform:none!important;margin:0!important;object-fit:contain!important;object-position:center center!important}
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery>.gallery-slide.bn-closing img.bn-closing-img,
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery>.gallery-slide.om-x img,
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery>.gallery-slide.om-y img{position:absolute!important;inset:0!important;top:0!important;left:0!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;transform:none!important;margin:0!important;object-fit:cover!important}
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery>.gallery-slide{overflow:hidden!important}
html.bn-amz #feed#feed#feed.feed>article.feed-card{padding-top:var(--om-top,102px)!important;box-sizing:border-box!important}
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery{margin-top:0!important;top:auto!important;height:auto!important;aspect-ratio:4/5!important;max-height:none!important}
html.bn-amz #feed#feed#feed.feed>article.feed-card>.gallery>.gallery-slide{top:0!important;height:100%!important}
html.bn-amz #feed#feed#feed.feed>#rd-banner+article.feed-card{padding-top:0!important}
html.bn-amz #feed#feed#feed.feed>#rd-banner+article.feed-card>.gallery-dots{top:8px!important}
/* 21-oct 11:55 PM PRUEBA (Joel): favorito abajo a la derecha dentro del marco 4:5, margen 15px */
html.bn-amz #feed#feed#feed.feed>article.feed-card>.af-heart{top:calc(var(--om-top,102px) + var(--om-h,125vw) - 44px - 15px)!important;bottom:auto!important;right:15px!important;left:auto!important;transform:none}
html.bn-amz #feed#feed#feed.feed>#rd-banner+article.feed-card>.af-heart{top:calc(var(--om-h,125vw) - 44px - 15px)!important}
/* 21-oct 11:58 PM PRUEBA (Joel): disclaimer vertical — texto, línea fina gris, WhatsApp negro centrado */
html #feed .feed-card .bn-disc{display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;margin:10px 18px 6px!important}
html #feed .feed-card .bn-disc .bn-disc-t{flex:none!important;width:100%;text-align:center!important}
html #feed .feed-card .bn-disc::after{content:none}
html #feed .feed-card .bn-disc .bn-disc-bot{position:relative;margin-top:23px!important;border-color:#e2e2e2!important;background:#fff!important}
html #feed .feed-card .bn-disc .bn-disc-bot::before{content:'';position:absolute;top:-12px;left:50%;width:min(calc(100vw - 36px),354px);transform:translateX(-50%);height:1px;background:#e3e3e3}
/* 22-oct-2026 PRUEBA (Joel): TODA la página en 4:5, con o sin html.bn-amz. Incluye fotos crema viejas 9:16 y videos 9:16: contain (sin estirar, sin borrar fotos). */
html .feed-card .gallery,html .gallery,html [class*=product] .gallery,html .pdp-gallery{aspect-ratio:4/5!important;height:auto!important;max-height:none!important}
html .gallery>.gallery-slide,html .gallery-slide{aspect-ratio:4/5!important;height:100%!important;max-height:none!important;position:relative}
html .feed-card .gallery img,html .feed-card .gallery video,html .gallery-slide>img,html .gallery-slide>video,html .gallery-slide img.feed-photo{position:absolute!important;inset:0!important;top:0!important;left:0!important;width:100%!important;height:100%!important;max-height:none!important;aspect-ratio:auto!important;transform:none!important;object-fit:contain!important;object-position:center!important;margin:0!important}
html .gallery-slide.bn-closing>img,html .gallery-slide.om-x>img,html .gallery-slide.om-y>img,html .gallery-slide[data-om]>img{object-fit:cover!important}
html [class*=card]:not(.feed-card) img[src*="aldo-media"],html [class*=thumb] img[src*="aldo-media"],html [class*=list] img[src*="aldo-media"]{aspect-ratio:4/5!important;height:auto!important;object-fit:contain!important}
/* 22-oct-2026 4PM PRUEBA (Joel): sin GAP arriba — el marco 4:5 empieza pegado (se quita el viejo offset 102px del layout 9:16) */
html #feed#feed#feed.feed>article.feed-card,html.bn-amz #feed#feed#feed.feed>article.feed-card{--om-top:0px;padding-top:0!important}
html #feed#feed#feed.feed>article.feed-card>.gallery-dots{top:8px!important}
html #feed#feed#feed.feed>article.feed-card>.gallery{margin-top:0!important;top:0!important}
html .gallery-slide>img,html .gallery-slide>video{top:0!important;transform:none!important}
/* fotos crema 9:16 / cuadradas: cover centrado (las de lote son 4:5 nativas → sin recorte) */
html .gallery-slide>img,html .gallery-slide img.feed-photo,html .gallery-slide>video{object-fit:cover!important;object-position:center!important}
html.bn-amz #feed#feed#feed#feed.feed.feed>article.feed-card.feed-card.feed-card>.gallery.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide.gallery-slide img,html #feed#feed#feed#feed.feed>article.feed-card.feed-card>.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide img,html.bn-amz #feed#feed#feed#feed.feed.feed>article.feed-card.feed-card.feed-card>.gallery.gallery.gallery>.gallery-slide.gallery-slide.gallery-slide.gallery-slide video{position:absolute!important;inset:0!important;top:0!important;left:0!important;width:100%!important;height:100%!important;max-height:none!important;transform:none!important;margin:0!important;object-fit:cover!important;object-position:center!important}
/* 22-oct-2026 4:55PM PRUEBA (Joel): CAUSA RAÍZ de la franja crema ~58px entre "Pago seguro" y la foto siguiente = padding-bottom:58px que aldo-buynow-ui.js (línea 85) inyecta en "#feed .feed-card" (reserva del menú inferior del viejo layout de pantalla completa). Se quita en cada tarjeta y se reserva una sola vez al final del feed. */
html #feed#feed#feed.feed>article.feed-card,html.bn-amz #feed#feed#feed.feed>article.feed-card{padding-bottom:0!important;margin-bottom:0!important}
html #feed#feed#feed.feed>article.feed-card:last-of-type{padding-bottom:calc(var(--aldo-nav-h,58px) + env(safe-area-inset-bottom,0px))!important}
/* al saltar a una pieza (producto / #SKU / filtros) la foto queda justo bajo los chips, sin hueco dentro de la tarjeta */
html #feed#feed#feed.feed>article.feed-card{scroll-margin-top:var(--bn-top,102px)!important}
html #feed#feed#feed.feed>#rd-banner+article.feed-card{scroll-margin-top:var(--bn-top,102px)!important}

/* v16: miniaturas de busqueda 4:5 cover */
html body #aldoSearchList img{object-fit:cover!important;object-position:center top!important;aspect-ratio:4/5!important}
