/* v12.10.268 — carduri uniforme și cuprins fără coadă neagră. */
@media(max-width:620px){
  body.m2-home-visible{--m2-home-header-space:170px;}
  body.m2-home-visible .m2-main{
    min-height:100svh!important;
    height:auto!important;
    padding-bottom:calc(8px + env(safe-area-inset-bottom))!important;
  }
  body.m2-home-visible .m2-home-cover{
    margin:0 auto!important;
  }
  body.m2-home-visible .m2-home-magazine-page{
    min-height:max(620px,calc(100svh - var(--m2-home-header-space) - 8px - env(safe-area-inset-bottom)))!important;
  }

  /* Versiunile vechi comprimau zece produse în înălțimea unui singur ecran.
     Fiecare card primește acum același cadru minim, iar scriptul îl mărește
     când pozițiile salvate sau textul au nevoie de mai mult spațiu. */
  body:not(.m2-editor) .m2-page[data-m2-page-layout="two_horizontal"] .m2-card,
  body:not(.m2-editor) .m2-page[data-m2-page-layout="two_vertical"] .m2-card,
  body:not(.m2-editor) .m2-page[data-m2-page-layout^="grid_"] .m2-card,
  body:not(.m2-editor) .m2-page[data-m2-page-layout="grid_3"] .m2-card:first-child{
    height:390px!important;
    min-height:390px!important;
  }
  body:not(.m2-editor) .m2-page[data-m2-page-layout="one_product"] .m2-card{
    height:clamp(430px,calc(100svh - 280px),590px)!important;
    min-height:clamp(430px,calc(100svh - 280px),590px)!important;
  }
  body:not(.m2-editor) .m2-card[data-m2-fit-uniform="1"]{
    overflow:hidden!important;
  }
}

@media(max-width:390px){
  body.m2-home-visible{--m2-home-header-space:164px;}
}

