/* V19: recover exactly five columns and fill photo frames.
   Load after V18. Scope home rules so other listings are unchanged. */
@media (min-width: 1200px){
 body.os-metal-v2 .mm-home-wrap .mm-product-grid,
 body.os-metal-v2 .mm-home-wrap .mm-product-grid--four{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;width:100%!important;
 }
}
@media (min-width: 768px) and (max-width:1199px){
 body.os-metal-v2 .mm-home-wrap .mm-product-grid,
 body.os-metal-v2 .mm-home-wrap .mm-product-grid--four{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;
 }
}
@media (max-width:767px){
 body.os-metal-v2 .mm-home-wrap .mm-product-grid,
 body.os-metal-v2 .mm-home-wrap .mm-product-grid--four{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
 }
}
body.os-metal-v2 .mm-home-wrap .mm-product-grid > *{min-width:0!important;width:auto!important;max-width:100%!important;margin:0!important;grid-column:auto!important;}
body.os-metal-v2 .mm-home-wrap .mm-product-card{width:100%!important;min-width:0!important;overflow:hidden!important;}
body.os-metal-v2 .mm-home-wrap .mm-product-card__image{
 width:100%!important;height:210px!important;min-height:0!important;max-height:none!important;
 padding:0!important;margin:0!important;overflow:hidden!important;background:#14212c!important;
 display:block!important;
}
body.os-metal-v2 .mm-home-wrap .mm-product-card__image img{
 display:block!important;width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;
}
/* Product detail: keep main frame compact but fill it completely, no internal padding. */
body.os-metal-v2 .os-detail-main-image,body.os-metal-v2 .os-detail-thumbs{background:#101820!important;}
body.os-metal-v2 .os-detail-img{
 height:clamp(255px,31vw,390px)!important;min-height:0!important;aspect-ratio:auto!important;
 padding:0!important;overflow:hidden!important;background:#121d28!important;
}
body.os-metal-v2 .os-detail-img img,body.os-metal-v2 .os-detail-img img#osDetailMainImage{
 display:block!important;width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;
 margin:0!important;object-fit:cover!important;object-position:center!important;
}
body.os-metal-v2 .os-detail-thumb{
 flex:0 0 68px!important;width:68px!important;height:68px!important;max-width:68px!important;
 padding:0!important;overflow:hidden!important;background:#15212d!important;
}
body.os-metal-v2 .os-detail-thumb img{
 display:block!important;width:100%!important;height:100%!important;
 max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;
}
@media(max-width:767px){
 body.os-metal-v2 .mm-home-wrap .mm-product-card__image{height:155px!important;}
 body.os-metal-v2 .os-detail-img{height:clamp(230px,65vw,340px)!important;padding:0!important;}
 body.os-metal-v2 .os-detail-thumb{flex-basis:58px!important;width:58px!important;height:58px!important;max-width:58px!important;}
}
@media(max-width:480px){body.os-metal-v2 .os-detail-img{height:min(75vw,310px)!important;}}
