/* R10.40.12: centered desktop navigation, compact search icon beside checkout and wishlist.
   Loaded LAST. Public header only; does not alter admin or POS styling. */
@media (min-width:1181px){
  body.fazfood-public .theme-site-header .site-header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:clamp(12px,1.3vw,24px)!important;
  }
  body.fazfood-public .theme-site-header .brand{
    grid-column:1!important;grid-row:1!important;justify-self:start!important;
  }
  body.fazfood-public .theme-site-header #main-navigation.faz-main-nav{
    grid-column:2!important;grid-row:1!important;
    justify-self:center!important;justify-content:center!important;
    width:max-content!important;max-width:100%!important;margin-inline:auto!important;
    gap:clamp(15px,1.5vw,26px)!important;
  }
  body.fazfood-public .theme-site-header .faz-header-actions{
    grid-column:3!important;grid-row:1!important;
    justify-self:end!important;justify-content:flex-end!important;min-width:0!important;
    gap:clamp(4px,.45vw,9px)!important;
  }
  body.fazfood-public .faz-category-bar .faz-category-scroll{
    justify-content:center!important;justify-content:safe center!important;
  }
}
/* Specificity prevents the old R10.40.7 wide text-search override from returning. */
body.fazfood-public .theme-site-header .faz-header-actions > button.faz-search-toggle.ubp-header-search-icon{
  display:grid!important;place-items:center!important;flex:0 0 42px!important;
  width:42px!important;min-width:42px!important;max-width:42px!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  margin:0!important;padding:0!important;gap:0!important;
  background:transparent!important;border:1px solid transparent!important;
  border-radius:13px!important;box-shadow:none!important;
  color:#173a2e!important;line-height:1!important;text-transform:none!important;
  position:relative!important;
}
body.fazfood-public .theme-site-header .faz-header-actions > button.faz-search-toggle.ubp-header-search-icon img{
  display:block!important;width:21px!important;height:21px!important;object-fit:contain!important;
  margin:0!important;position:static!important;transform:none!important;filter:none!important;
}
body.fazfood-public .theme-site-header .faz-header-actions > button.faz-search-toggle.ubp-header-search-icon:is(:hover,:focus-visible){
  background:#edf3ed!important;border-color:#d5e3d7!important;
}
/* Other small actions share the same visual center; no oversized search button. */
body.fazfood-public .theme-site-header .faz-header-actions > .faz-icon-button:not(.faz-search-toggle){
  display:grid!important;place-items:center!important;flex:0 0 42px!important;
  width:42px!important;height:42px!important;min-height:42px!important;
  padding:0!important;margin:0!important;
}
@media (min-width:781px) and (max-width:1180px){
  body.fazfood-public .theme-site-header .faz-header-actions > button.faz-search-toggle.ubp-header-search-icon{
    display:grid!important;
  }
}
@media (max-width:780px){
  /* Search remains accessible in the mobile header. Keep room for the brand and cart. */
  body.fazfood-public .theme-site-header .faz-header-actions > button.faz-search-toggle.ubp-header-search-icon{
    display:grid!important;flex-basis:40px!important;
    width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
  }
  body.fazfood-public .theme-site-header .faz-header-actions > .faz-checkout-icon,
  body.fazfood-public .theme-site-header .faz-header-actions > .public-theme-toggle{
    display:none!important;
  }
  body.fazfood-public .theme-site-header .faz-header-actions > .faz-icon-button:not(.faz-search-toggle){
    flex-basis:38px!important;width:38px!important;height:40px!important;min-height:40px!important;
  }
  body.fazfood-public .theme-site-header .faz-header-actions{gap:2px!important;flex-shrink:0!important}
  body.fazfood-public .theme-site-header .site-header-inner{column-gap:6px!important}
}


/* R10.40.13: homepage promo-card centering and Our Story spacing/alignment */
body.sf-home-page.fazfood-public .faz-promo-row{
  align-items:stretch!important;
  justify-content:center!important;
}
body.sf-home-page.fazfood-public .faz-promo-row > a.faz-promo-card.ubp-promo-card{
  justify-self:center!important;
}
body.sf-home-page.fazfood-public .faz-promo-row > a.faz-promo-card.ubp-promo-card > .faz-promo-card-copy{
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
}
body.sf-home-page.fazfood-public .faz-about-band{
  padding-block:clamp(78px,8vw,118px)!important;
}
body.sf-home-page.fazfood-public .faz-about-grid{
  align-items:center!important;
}
body.sf-home-page.fazfood-public .faz-about-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:16px!important;
}
body.sf-home-page.fazfood-public .faz-about-copy > p{
  margin-bottom:6px!important;
}
body.sf-home-page.fazfood-public .faz-about-copy .faz-promise-list{
  margin-top:6px!important;
}
body.sf-home-page.fazfood-public .faz-about-copy > a.faz-hero-cta{
  align-self:center!important;
  justify-content:center!important;
  text-align:center!important;
  margin-top:18px!important;
  min-width:190px!important;
}
@media (min-width:981px){
  body.sf-home-page.fazfood-public .faz-about-copy{
    padding-inline:10px!important;
  }
}
@media (max-width:980px){
  body.sf-home-page.fazfood-public .faz-about-copy > a.faz-hero-cta{
    width:min(100%,240px)!important;
  }
}
