/* ELIFLI CAKERY V20.14.194
   ONLY FIX: desktop live-search results must NOT overlap the hero.
   The open results panel becomes part of normal page flow and pushes hero down.
*/
@media (min-width:901px){

  /* Keep the normal closed search exactly as before. */
  body.home-page .mhome-search-wrap{
    box-sizing:border-box!important;
  }

  /* When results are open, let the search container grow vertically. */
  body.home-page .mhome-search-wrap:has(.elifli-global-search-panel.open){
    height:auto!important;
    min-height:46px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 42px!important;
    grid-template-rows:46px auto!important;
    align-items:center!important;
    padding:0 12px 10px 22px!important;
    border-radius:24px!important;
    overflow:visible!important;
    margin-bottom:14px!important;
  }

  body.home-page .mhome-search-wrap:has(.elifli-global-search-panel.open) > input{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    height:46px!important;
    padding:0 10px 0 0!important;
  }

  body.home-page .mhome-search-wrap:has(.elifli-global-search-panel.open) > span{
    grid-column:2!important;
    grid-row:1!important;
    position:static!important;
    justify-self:center!important;
  }

  /* Critical change: panel is no longer absolute/overlaying the hero. */
  body.home-page .mhome-search-wrap .elifli-global-search-panel.open{
    position:static!important;
    grid-column:1 / -1!important;
    grid-row:2!important;
    width:100%!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    margin:0!important;
    max-height:210px!important;
    overflow-y:auto!important;
    border-radius:14px!important;
    box-shadow:0 10px 26px rgba(64,35,42,.10)!important;
  }

  body.home-page .mhome-search-wrap .elifli-global-search-item{
    min-height:58px!important;
    grid-template-columns:42px minmax(0,1fr) 22px!important;
    gap:9px!important;
    padding:6px 10px!important;
  }

  body.home-page .mhome-search-wrap .elifli-global-search-thumb{
    width:40px!important;
    height:40px!important;
    border-radius:9px!important;
  }

  body.home-page .mhome-search-wrap .elifli-global-search-copy strong{
    font-size:13px!important;
  }

  body.home-page .mhome-search-wrap .elifli-global-search-copy small{
    font-size:10px!important;
  }
}
