
/* FGB mobile pass v11.9.1 — phones & small tablets */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  img, video, iframe, table { max-width: 100%; }
  video { height: auto !important; }
  /* header: logo + nav stack; nav becomes a horizontal scroller instead of a 2-row wrap */
  header > div { gap: 12px !important; }
  header nav[aria-label="Main"] { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 14px !important; padding-bottom: 6px; scrollbar-width: thin; max-width: 100%; }
  header nav[aria-label="Main"] > a, header nav[aria-label="Main"] .nl-dd > a { white-space: nowrap; font-size: 0.86rem !important; }
  header nav[aria-label="Main"] .nl-menu { position: fixed !important; left: 12px !important; right: 12px !important; top: auto !important; min-width: 0 !important; }
  header img[alt^="Faizna Green Bites"] { width: 56px !important; height: 54px !important; }
  header span[style*="font-size:2.3rem"], header span[style*="font-size:2.1rem"] { font-size: 1.6rem !important; }
  /* topbar: stack */
  body > div > div:first-child > div { flex-direction: column; align-items: flex-start; gap: 4px !important; }
  /* sections: tighter padding */
  main section[style*="padding:56px 24px"], main section[style*="padding:64px 24px"], main section[style*="padding:72px 24px"], main section[style*="padding:80px 24px"] { padding-left: 16px !important; padding-right: 16px !important; padding-top: 40px !important; padding-bottom: 40px !important; }
  /* any fixed multi-column grid collapses to one column; auto-fit grids already adapt */
  main [style*="grid-template-columns:1fr 1fr"], main [style*="grid-template-columns:1.15fr 1fr"], main [style*="grid-template-columns:1fr 1.15fr"], main [style*="grid-template-columns:1.2fr 1fr"], main [style*="grid-template-columns:1fr 1.2fr"], main [style*="grid-template-columns:2fr 1fr"], main [style*="grid-template-columns:1fr 2fr"], main [style*="grid-template-columns:repeat(2,"], main [style*="grid-template-columns:repeat(3,"], main [style*="grid-template-columns:repeat(4,"], main [style*="grid-template-columns:repeat(5,"], main [style*="grid-template-columns:repeat(6,"], main [style*="grid-template-columns:repeat(7,"] { grid-template-columns: 1fr !important; }
  main [style*="grid-template-columns:repeat(auto-fit,minmax(150px,1fr))"], main [style*="grid-template-columns:repeat(auto-fit,minmax(160px,1fr))"] { grid-template-columns: 1fr 1fr !important; }
  /* big type steps down */
  main h1 { font-size: clamp(1.7rem, 7.5vw, 2.4rem) !important; line-height: 1.12 !important; }
  main h2 { font-size: clamp(1.35rem, 5.5vw, 1.8rem) !important; }
  main [style*="font-size:2.1rem"], main [style*="font-size:2.2rem"], main [style*="font-size:2.4rem"], main [style*="font-size:2.6rem"] { font-size: 1.6rem !important; }
  /* pills/buttons wrap and fill */
  main a[style*="border-radius:999px"], main button[style*="border-radius:999px"] { white-space: normal; text-align: center; }
  /* forms: single column, full-width controls, 16px inputs (no iOS zoom) */
  main form [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  main input, main select, main textarea { font-size: 16px !important; max-width: 100%; }
  /* footer columns stack */
  footer [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  footer [style*="display:flex;justify-content:space-between"] { flex-direction: column; align-items: flex-start; gap: 10px !important; }
  /* floating controls: keep clear of each other and of the bottom edge */
  #fgbTop { bottom: 92px !important; }
  /* tables scroll instead of overflowing */
  main table { display: block; overflow-x: auto; white-space: nowrap; }
  /* reCAPTCHA widget fits narrow screens */
  .g-recaptcha { transform: scale(0.88); transform-origin: 0 0; }
}
@media (max-width: 420px) {
  main h1 { font-size: clamp(1.5rem, 7.5vw, 2rem) !important; }
  main [style*="grid-template-columns:repeat(auto-fit,minmax(150px,1fr))"], main [style*="grid-template-columns:repeat(auto-fit,minmax(160px,1fr))"] { grid-template-columns: 1fr !important; }
  header span[style*="letter-spacing:0.3em"] { letter-spacing: 0.18em !important; font-size: 0.8rem !important; }
}

/* FGB laptop pass v11.9.8 — enlarged menu: own centred row under the logo on ≤1640px; topbar never clips */
@media (max-width: 1560px) and (min-width: 761px) {
  header > div { flex-wrap: wrap !important; row-gap: 10px !important; }
  header nav[aria-label="Main"] { flex-basis: 100% !important; order: 3; justify-content: center; gap: 14px 13px !important; }
  header > div > a[href$="home.html"], header > div > a[href$="/"] { order: 1; }
  header > div > a[href*="carts"] { order: 2; margin-left: auto; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  body > div > div:first-child > div { flex-wrap: wrap; gap: 4px 16px !important; }
  body > div > div:first-child > div > span { flex-wrap: wrap; }
}
