/* ===== Mobile-first fixes (loaded last) ===== */

/* Footer: no dead space, app buttons side by side */
footer{padding:36px 0 28px}
body.sticky-on footer{padding-bottom:88px}
footer .cols{margin-bottom:6px}
.app-dl{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
.app-dl>span{flex:0 0 100%}
.store{flex:0 0 auto;gap:8px;padding:6px 12px;min-height:42px;white-space:nowrap}
.store svg{width:20px;height:20px;flex:none}
.store span{white-space:nowrap}
footer .accept{margin-top:18px}

/* Location bar: neat on every width */
.locbar .wrap{gap:6px 12px}
.loc-t{margin-right:auto}

@media(max-width:899px){
  /* Sticky header = logo + icons + search only (not the whole category / location stack) */
  header.top,header.top>.wrap{display:contents}
  .hd{position:sticky;top:0;z-index:55;background:#fff;border-bottom:1px solid var(--line);padding:8px 14px 10px;flex-wrap:wrap;gap:8px 10px}
  .hd .logo{flex:1 1 auto;min-width:0}.hd .logo span{font-size:17px;white-space:nowrap}.hd .logo img{width:38px;height:38px}
  .hd .icons{margin-left:0;gap:2px}.hd .ic{width:40px;height:40px}
  .hd .search{display:block;order:5;flex:1 0 100%}
  .hd .search input{height:42px;font-size:16px;padding:0 16px;width:100%}
  .catbar{border-top:0}
  /* Delivery bar: two tidy rows */
  .locbar .wrap{padding:7px 14px;display:flex;flex-wrap:wrap;align-items:center}
  .loc-t{flex:1 1 100%;margin:0;font-size:12.5px;line-height:1.35}.loc-t small{display:none}
  .locbar .loc-detect{order:2;flex:0 0 auto}
  .locbar form{order:3;flex:1 1 auto;min-width:0}.locbar form label{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}
  .locbar select{flex:1;min-width:0;width:100%;font-size:16px;padding:5px 8px;height:36px}
  /* Floating helpers: small round icons so they never cover content */
  .fabs{right:10px;bottom:12px;gap:8px}
  .fab{width:48px;height:48px;padding:0;justify-content:center;font-size:0;gap:0}
  .fab svg{width:22px;height:22px}
  .fab-b{display:none}
  /* Category picture tiles: even grid */
  .cats.pics{align-items:start}.cat.pic{width:100%;align-self:start}
  /* Trust strip */
  .trust-strip{gap:6px 14px;padding:10px 12px;font-size:12.5px}.trust-strip i{display:none}
  /* Footer columns: brand + newsletter full width, links in two columns */
  footer .cols>div:first-child,footer .cols>div:last-child{grid-column:1/-1}
  footer .cols{gap:22px 18px}
  footer a{padding:6px 0}
  /* Forms: 16px stops iOS zooming into fields */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{font-size:16px}
  /* Tap-friendly buttons */
  .btn{min-height:44px}
  .wrap{padding-left:14px;padding-right:14px}
  h1{overflow-wrap:anywhere}
  img,video{max-width:100%}
}
@media(max-width:560px){
  .hcta{padding:20px 18px}
  .hcta>div:last-child .btn{flex:1 1 140px}
  .nf-actions .btn{flex:1 1 40%}
}

@media(max-width:959px){
  .plp{grid-template-columns:minmax(0,1fr)}.plp-main{min-width:0}
  .plp-bar{top:var(--hd,104px);gap:10px}
  .plp-sort{min-width:0}.plp-sort select{max-width:100%}
}

@media(max-width:699px){.bs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bs-i{min-width:0;padding:16px 10px}.bs-i img{max-width:100%}}
@media(max-width:959px){.plp-bar{flex-wrap:wrap}.plp-sort{margin-left:auto;flex:0 1 auto;min-width:0}.plp-sort select{width:100%;max-width:170px}}

@media(max-width:899px){
  .locbar form label{font-size:0}.locbar select{font-size:16px;height:34px}
  .locbar .wrap{flex-wrap:nowrap;flex-direction:row;flex-wrap:wrap}
  .locbar .loc-detect{padding:5px 11px}
}
@media(max-width:899px){.row{align-items:baseline;gap:8px}.row h2{margin-right:auto}}

@media(max-width:899px){
  .locbar form{flex:1 1 130px}.locbar select{width:100%;min-width:0}
  .plp-sort{flex-wrap:nowrap;white-space:nowrap}
}

@media(min-width:800px){footer .cols{grid-template-columns:1.6fr 1fr 1fr 1.3fr;gap:28px 40px}}
.store{padding:6px 10px;gap:7px}
