/* MPLink website header — phone & tablet layout (loaded by the shared Header on every page, home included).
   Phone/tablet (<= 999px): logo only on the left, exactly three icons on the right: Ask AI · Account · Menu.
   The menu button is protected from being squeezed out on small or old phones (it never shrinks, never hides,
   and is always at least 44x44 so it is easy to tap). Desktop (>= 1000px) is unchanged. */
@media (max-width: 999px) {
  html .site-header .wrap,
  html .mp-chrome .site-header .wrap {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
    gap: 10px; padding: 0 12px 0 14px; min-width: 0; overflow: visible;
  }
  html .site-header .main-nav, html .mp-chrome .site-header .main-nav { display: none !important; }

  /* logo only, no name, with breathing room */
  html .site-header .brand, html .mp-chrome .site-header .brand { flex: 0 0 auto; margin: 0; padding: 0; gap: 0; }
  html .site-header .brand > span, html .mp-chrome .site-header .brand > span { display: none !important; }
  html .site-header .brand img, html .mp-chrome .site-header .brand img { width: 42px !important; height: 42px !important; display: block; }

  /* right side: three icons, nothing else */
  html .site-header .header-actions, html .mp-chrome .site-header .header-actions {
    display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto;
    gap: 8px; min-width: 0 !important; margin-left: auto;
  }
  html .site-header .header-actions .js-open-lang,
  html .site-header .header-actions .mp-cart,
  html .mp-chrome .site-header .header-actions .js-open-lang,
  html .mp-chrome .site-header .header-actions .mp-cart { display: none !important; }   /* language & cart stay available in the menu drawer */

  html .site-header .ask-ai-btn, html .mp-chrome .site-header .ask-ai-btn {
    flex: 0 0 auto; width: 42px; height: 42px; padding: 0 !important; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; gap: 0;
  }
  html .site-header .ask-ai-btn > span, html .mp-chrome .site-header .ask-ai-btn > span { display: none !important; }
  html .site-header .ask-ai-btn .ic, html .mp-chrome .site-header .ask-ai-btn .ic { width: 20px; height: 20px; }

  html .site-header .header-actions .icon-btn:not(.js-open-lang):not(.mp-cart),
  html .mp-chrome .site-header .header-actions .icon-btn:not(.js-open-lang):not(.mp-cart) { flex: 0 0 auto; width: 42px; height: 42px; }

  /* menu button: always visible, never shrinks, same round style as the other icons */
  html .site-header .hamburger, html .mp-chrome .site-header .hamburger {
    display: inline-flex !important; visibility: visible !important; opacity: 1 !important;
    flex: 0 0 auto; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; padding: 0; border-radius: 50%;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; cursor: pointer;
    position: relative; z-index: 2; -webkit-tap-highlight-color: transparent;
  }
  html .site-header .hamburger:active, html .mp-chrome .site-header .hamburger:active { background: rgba(255,255,255,.26); }
  html .site-header .hamburger svg, html .mp-chrome .site-header .hamburger svg { width: 24px; height: 24px; flex: none; display: block; }
  html .site-header .hamburger svg path, html .mp-chrome .site-header .hamburger svg path { stroke: #fff; }
}
/* very narrow phones (<= 360px): tighten a little so all four items always fit */
@media (max-width: 360px) {
  html .site-header .wrap, html .mp-chrome .site-header .wrap { padding: 0 8px 0 10px; gap: 6px; }
  html .site-header .brand img, html .mp-chrome .site-header .brand img { width: 38px !important; height: 38px !important; }
  html .site-header .header-actions, html .mp-chrome .site-header .header-actions { gap: 6px; }
  html .site-header .ask-ai-btn, html .site-header .header-actions .icon-btn:not(.js-open-lang):not(.mp-cart),
  html .mp-chrome .site-header .ask-ai-btn, html .mp-chrome .site-header .header-actions .icon-btn:not(.js-open-lang):not(.mp-cart) { width: 38px; height: 38px; }
  html .site-header .hamburger, html .mp-chrome .site-header .hamburger { width: 42px; height: 42px; min-width: 42px; }
}
/* desktop: the hamburger stays hidden */
@media (min-width: 1000px) { html .site-header .hamburger, html .mp-chrome .site-header .hamburger { display: none; } }
/* the phone drawer footer now holds Log in · Language · Cart: let them wrap instead of squeezing */
.mdrawer-foot { flex-wrap: wrap; }
.mdrawer-foot .btn { flex: 1 1 calc(50% - 12px); justify-content: center; text-align: center; }
