/* Hero tighten 1.0.3-20261117.
   No divider under the title. Category filter sits with the stats
   (left of stats on desktop and Fold; full width above stats on phones).
   Tighter gaps so store tiles sit higher. Thin divider between the
   filter/stats row and the store grid. Become a Member stays hidden
   at max-width 900px. Shopper copy unchanged. */

.ios-hero.ios-h-tight .h-stats{
  margin-top:0 !important;
  padding-top:0 !important;
  border-top:0 none !important;
}
.ios-hero .ios-h-toolbar{
  display:flex;
  align-items:center;
  gap:20px 24px;
  width:100%;
  margin:10px 0 32px;
  padding:0 0 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  position:relative;
  z-index:2;
  box-sizing:border-box;
  min-width:0;
}
.ios-hero .ios-h-toolbar .cls_payment_drodwn,
.ios-hero .ios-h-toolbar .f_aisle_selector_JS{
  flex:0 0 260px;
  width:260px !important;
  max-width:100%;
  margin:0 !important;
  position:relative;
  z-index:3;
}
.ios-hero .ios-h-toolbar .h-stats{
  flex:1 1 auto;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  border-top:0 none !important;
  display:flex !important;
  align-items:center;
}
/* After the dropdown is moved into the toolbar, collapse the empty VC row
   so it no longer reserves 152px above the store tiles. */
.aisle_select_hld.ios-h-aisle-moved{
  display:none !important;
}
.aisle_select_hld.ios-h-aisle-moved .vc_empty_space,
.aisle_select_hld.ios-h-aisle-moved .vc_column-inner{
  padding-top:0 !important;
  padding-bottom:0 !important;
  margin:0 !important;
  min-height:0 !important;
  height:auto !important;
}
/* Tighten the first store/category row under the hero. */
body.ios-hero-tight .aisle_select_hld.ios-h-aisle-moved + .vc_row > .vc_column_container > .vc_column-inner,
body.ios-hero-tight section.ios-hero + .vc_row > .vc_column_container > .vc_column-inner{
  padding-top:0 !important;
}

/* Fold / small tablet: keep filter + stats on one row, show the stats. */
@media (min-width:641px) and (max-width:900px){
  .ios-hero.ios-h-tight .h-stats,
  .ios-hero .ios-h-toolbar .h-stats{
    display:flex !important;
    flex-wrap:nowrap;
  }
  .ios-hero .ios-h-toolbar{
    margin-top:8px;
    margin-bottom:28px;
    padding-bottom:12px;
    gap:12px 16px;
  }
  .ios-hero .ios-h-toolbar .cls_payment_drodwn,
  .ios-hero .ios-h-toolbar .f_aisle_selector_JS{
    flex:0 0 220px;
    width:220px !important;
  }
  .ios-hero.ios-h-tight .stat,
  .ios-hero .ios-h-toolbar .stat{
    flex:1 1 0;
    padding:0 12px !important;
    border-bottom:0 none !important;
    border-right:1px solid rgba(255,255,255,.08);
  }
  .ios-hero.ios-h-tight .stat:first-child{padding-left:8px !important}
  .ios-hero.ios-h-tight .stat:last-child{border-right:0;padding-right:0 !important}
  .ios-hero.ios-h-tight .stat-value{font-size:20px}
  .ios-hero.ios-h-tight .stat-label{font-size:10px;letter-spacing:.08em}
}

/* Phones: filter full width above stats, compact 2x2 stats, tighter gaps. */
@media (max-width:640px){
  .ios-hero .ios-h-toolbar{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    margin-top:8px;
    margin-bottom:28px;
    padding-bottom:12px;
  }
  .ios-hero .ios-h-toolbar .cls_payment_drodwn,
  .ios-hero .ios-h-toolbar .f_aisle_selector_JS{
    flex:0 0 auto;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
  }
  .ios-hero.ios-h-tight .h-stats,
  .ios-hero .ios-h-toolbar .h-stats{
    display:flex !important;
    flex-wrap:wrap;
    gap:0;
  }
  .ios-hero.ios-h-tight .stat,
  .ios-hero .ios-h-toolbar .stat{
    flex:1 1 50%;
    max-width:50%;
    box-sizing:border-box;
    padding:6px 10px !important;
    border-right:0 none !important;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .ios-hero.ios-h-tight .stat-value{font-size:18px}
  .ios-hero.ios-h-tight .stat-label{font-size:10px;letter-spacing:.08em;white-space:nowrap}
  .ios-hero.ios-h-tight .stat-value .pulse{left:-14px}
}

@media (prefers-reduced-motion:reduce){
  .ios-hero .stat-value .pulse{animation:none}
}

/* Categories / directory: remove the leftover blue line under the A-W
   jump row (border-bottom #0757b9 on .ios-directory-jump). This is not
   the hero filter/stats divider. Keep the grey .ios-directory-line under
   each letter group, and tighten the gap the blue line left. */
.ios-directory-jump{
  border-bottom:0 none !important;
  padding-bottom:8px !important;
  margin-bottom:12px !important;
}

/* Open aisle dropdown must sit above store tiles, hearts, badges and
   share icons. Hearts use z-index 5 and badges z-index 2; those win if
   the toolbar stays at z-index 2, because the panel's z-index 100 cannot
   escape that stacking context. Raise only while open, and stay well
   below the site header (9999) and modal/explainer layers. */
.ios-hero .ios-h-toolbar:has(.dd_open),
.ios-hero .ios-h-toolbar:has(.dd_open_caret),
.ios-hero .ios-h-toolbar:has(.aisle_drop_in_hld.dd_open){
  z-index: 200;
}
.ios-hero .ios-h-toolbar .aisle_drop_in_hld,
.ios-hero .ios-h-toolbar .aisle_drop_in_hld.dd_open{
  z-index: 201;
}
