/* 3.2.8.255: fix genuine homepage category card layout and centering. */
/* Deliberately scoped to the front-page products section, not shop category pages. */
body.home #products.sn-catalog-section .sn-family-grid {
  display:flex!important; flex-flow:row wrap!important; justify-content:center!important;
  align-items:stretch!important; align-content:start!important;
  gap:14px!important; width:100%!important; max-width:100%!important;
  box-sizing:border-box!important; margin:0 auto!important; padding:0!important;
  direction:rtl!important; grid-template-columns:none!important;
}
body.home #products.sn-catalog-section .sn-family-grid > a {
  display:flex!important; flex-direction:column!important;
  flex:0 0 calc((100% - 42px)/4)!important;
  width:calc((100% - 42px)/4)!important;
  max-width:calc((100% - 42px)/4)!important;
  min-width:0!important; box-sizing:border-box!important;
  grid-column:auto!important; grid-row:auto!important;
  margin:0!important;
}
body.home #products.sn-catalog-section .sn-family-grid .sn-family-image {width:100%!important;min-width:0!important;height:172px!important}
body.home #products.sn-catalog-section .sn-family-grid .sn-family-image img {display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;max-width:100%!important}
@media(max-width:900px){
 body.home #products.sn-catalog-section .sn-family-grid{gap:12px!important}
 body.home #products.sn-catalog-section .sn-family-grid>a{flex:0 0 calc((100% - 12px)/2)!important;width:calc((100% - 12px)/2)!important;max-width:calc((100% - 12px)/2)!important}
 body.home #products.sn-catalog-section .sn-family-grid .sn-family-image{height:160px!important}
}
@media(max-width:520px){
 body.home #products.sn-catalog-section .sn-family-grid{gap:9px!important}
 body.home #products.sn-catalog-section .sn-family-grid>a{flex:0 0 calc((100% - 9px)/2)!important;width:calc((100% - 9px)/2)!important;max-width:calc((100% - 9px)/2)!important}
 body.home #products.sn-catalog-section .sn-family-grid .sn-family-image{height:122px!important}
}
@media(max-width:340px){
 body.home #products.sn-catalog-section .sn-family-grid>a{flex:0 0 100%!important;width:100%!important;max-width:100%!important}
}
