/* Shared mobile shell, including landscape. Preserve desktop and account visibility. */
@media (max-width: 960px) {
  html body header,
  html body header.header-hide,
  html body header.header-shrink {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-top-width: 3px !important;
  }
  html body header nav,
  html body.ltg-home-modern header nav,
  html body:not(.ltg-home-modern) header nav {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: none !important;
    height: 69px !important;
    min-height: 69px !important;
    padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)) !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }
  html body header .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 7px !important;
    order: 0 !important;
  }
  html body header .brand img {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 38px !important;
    object-fit: contain !important;
  }
  html body header .brand > div {
    min-width: 0 !important;
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  html body header .brand .sub { display: none !important; }
  html body header .nav-actions {
    flex: 0 0 auto !important;
    order: 1 !important;
    gap: 0 !important;
    margin: 0 !important;
  }
  html body header .nav-actions > :not(.cart-icon-wrap) { display: none !important; }
  html body header .cart-icon-wrap,
  html body header #navBurger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    touch-action: manipulation;
  }
  html body header #navBurger {
    order: 2 !important;
    flex-direction: column !important;
    padding: 10px !important;
    gap: 5px !important;
  }
  html body header #navBurger span { width: 20px !important; height: 2px !important; }
  html body header #navBurger.is-open { background: var(--v60-orange, #ef512c) !important; }
  html body header #navBurger.is-open span { background: #fff !important; }
  html body header #navBurger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  html body header #navBurger.is-open span:nth-child(2) { opacity: 0 !important; }
  html body header #navBurger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }
  html body header #navlinks:not(.mobile-open) { display: none !important; }
  html body header #navlinks.mobile-open {
    position: fixed !important;
    inset: 72px max(10px, env(safe-area-inset-right)) auto max(10px, env(safe-area-inset-left)) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: auto !important;
    max-height: calc(100vh - 84px) !important;
    max-height: calc(100dvh - 84px - env(safe-area-inset-bottom)) !important;
    padding: 12px !important;
    gap: 6px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 0 0 18px 18px !important;
  }
  html body header #navlinks.mobile-open > * { flex-shrink: 0 !important; }
  html body header #navlinks.mobile-open a,
  html body header #navlinks.mobile-open button {
    min-height: 44px !important;
    box-sizing: border-box !important;
  }
  html body header #navlinks.mobile-open > a,
  html body header #navlinks.mobile-open .nav-dropdown-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 10px 12px !important;
  }
  html body header #navlinks.mobile-open .nav-dropdown { display: block !important; width: 100% !important; }
  html body header #navlinks.mobile-open .nav-dropdown-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
  }
  html body header #navlinks.mobile-open .nav-dropdown.open .nav-dropdown-menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  html body #site { padding-top: 72px !important; }
}

/* The old body touch-action:none also disabled touch scrolling inside the menu. */
body.mobile-nav-open { touch-action: auto !important; }
header #navlinks.mobile-open { touch-action: pan-y !important; }
header #navBurger:focus-visible,
header .cart-icon-wrap:focus-visible {
  outline: 2px solid var(--v60-orange, #ef512c) !important;
  outline-offset: 3px !important;
}
@media (min-width: 961px) and (max-width: 1279px) {
  html:is([lang="si"], [lang="ta"]) body header #navBurger,
  html:is([lang="si"], [lang="ta"]) body header .cart-icon-wrap {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
}
