/* Shared mobile shell repair. Loaded by inc/header.php before the storefront menu markup. */
@media screen and (max-width: 980px) and (hover: none),
       screen and (max-width: 980px) and (pointer: coarse) {
  html, html body { max-width: 100% !important; overflow-x: hidden !important; }

  /* Keep the shared five item dock fixed and prevent SVGs from expanding in page flow. */
  html body nav.app-bottom-nav {
    display: grid !important;
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 2200 !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px)) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    border: 1px solid #e8e5df !important;
    border-width: 1px 0 0 !important;
    border-radius: 18px 18px 0 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -7px 24px rgba(18, 22, 30, .10) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body nav.app-bottom-nav > a,
  html body nav.app-bottom-nav > button {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 68px !important;
    margin: 0 !important;
    padding: 3px 1px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: transparent !important;
    color: #73777e !important;
    font: inherit !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: none !important;
  }

  html body nav.app-bottom-nav > a > svg,
  html body nav.app-bottom-nav > button > svg,
  html body nav.app-bottom-nav .app-cart-tab .app-nav-icon-wrap > svg {
    position: static !important;
    display: block !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    margin: 0 !important;
    overflow: visible !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  html body nav.app-bottom-nav > a > svg path,
  html body nav.app-bottom-nav > a > svg circle,
  html body nav.app-bottom-nav > button > svg path,
  html body nav.app-bottom-nav > button > svg circle {
    fill: none !important;
    stroke: currentColor !important;
  }

  html body nav.app-bottom-nav > a > span:last-child,
  html body nav.app-bottom-nav > button > span:last-child {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 2px !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: clamp(8px, 2.5vw, 10px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body nav.app-bottom-nav > a.active:not(.app-cart-tab),
  html body nav.app-bottom-nav > button.active:not(.app-cart-tab) {
    background: #fbf6e9 !important;
    color: #171717 !important;
  }

  html body nav.app-bottom-nav .app-cart-tab { margin: 0 !important; padding: 0 1px !important; }
  html body nav.app-bottom-nav .app-cart-tab > .app-nav-icon-wrap {
    position: absolute !important;
    top: -17px !important;
    left: 50% !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 3px solid #fff !important;
    border-radius: 18px !important;
    background: #171a20 !important;
    color: #fff !important;
    box-shadow: 0 5px 16px rgba(18, 22, 30, .18) !important;
    transform: translateX(-50%) !important;
  }
  html body nav.app-bottom-nav .app-cart-tab > span:last-child { margin-top: 17px !important; color: #171a20 !important; }

  html body nav.app-bottom-nav .app-badge {
    position: absolute !important;
    top: 1px !important;
    left: calc(50% + 8px) !important;
    z-index: 3 !important;
    display: grid !important;
    place-items: center !important;
    min-width: 17px !important;
    width: auto !important;
    height: 17px !important;
    padding: 0 4px !important;
    border: 2px solid #fff !important;
    border-radius: 99px !important;
    background: #ee7e18 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }
  html body nav.app-bottom-nav .app-badge:empty,
  html body nav.app-bottom-nav .app-badge[data-count="0"] { display: none !important; }

  /* Use one category layer so the legacy full page layer cannot cover storefront pages. */
  html body .lom-mobile-category-screen,
  html body .lom-mobile-category-screen.open {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body .app-category-sheet {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2300 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html body .app-category-sheet.open { visibility: visible !important; pointer-events: auto !important; }
  html body .app-category-sheet .app-sheet-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(17, 22, 31, .42) !important;
    opacity: 0 !important;
    transition: opacity .2s ease !important;
  }
  html body .app-category-sheet.open .app-sheet-backdrop { opacity: 1 !important; }
  html body .app-category-sheet .app-sheet-panel {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 82vh !important;
    max-height: 82dvh !important;
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: 24px 24px 0 0 !important;
    background: #fff !important;
    box-shadow: 0 -16px 40px rgba(17, 22, 31, .18) !important;
    transform: translateY(105%) !important;
    transition: transform .22s ease !important;
  }
  html body .app-category-sheet.open .app-sheet-panel { transform: translateY(0) !important; }
  html body .app-category-sheet .app-sheet-head { display: flex !important; align-items: center !important; justify-content: space-between !important; min-height: 46px !important; padding: 0 2px 8px !important; }
  html body .app-category-sheet .app-sheet-head h2 { margin: 0 !important; color: #1c2027 !important; font-size: 20px !important; line-height: 1.2 !important; }
  html body .app-category-sheet .app-sheet-head button { width: 38px !important; min-width: 38px !important; height: 38px !important; border: 0 !important; border-radius: 50% !important; background: #f2f3f5 !important; color: #252a31 !important; font-size: 23px !important; }
  html body .app-category-sheet .app-sheet-search { position: relative !important; display: grid !important; grid-template-columns: 42px minmax(0, 1fr) !important; align-items: center !important; width: 100% !important; min-width: 0 !important; margin: 0 0 10px !important; border: 1px solid #e3e5e9 !important; border-radius: 13px !important; background: #f7f8fa !important; }
  html body .app-category-sheet .app-sheet-search .m21-search-icon { display: grid !important; place-items: center !important; width: 42px !important; height: 44px !important; }
  html body .app-category-sheet .app-sheet-search svg { position: static !important; width: 20px !important; height: 20px !important; fill: none !important; stroke: #737b87 !important; }
  html body .app-category-sheet .app-sheet-search input { width: 100% !important; min-width: 0 !important; height: 44px !important; margin: 0 !important; padding: 0 10px 0 0 !important; border: 0 !important; outline: 0 !important; background: transparent !important; font-size: 15px !important; }
  html body .app-category-sheet .app-sheet-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-content: start !important; gap: 8px !important; width: 100% !important; max-height: none !important; min-height: 0 !important; padding: 2px 1px 8px !important; overflow-x: hidden !important; overflow-y: auto !important; }
  html body .app-category-sheet .app-sheet-list a { position: relative !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; min-width: 0 !important; min-height: 72px !important; padding: 10px !important; border: 1px solid #e8e9ec !important; border-radius: 14px !important; background: #fff !important; color: #20242a !important; text-decoration: none !important; }
  html body .app-category-sheet .app-sheet-list a b { font-size: 12px !important; line-height: 1.25 !important; }
  html body .app-category-sheet .app-sheet-list a small { margin-top: 4px !important; color: #7c828b !important; font-size: 9px !important; }
  html body .app-category-sheet .app-sheet-list a em { position: absolute !important; right: 9px !important; bottom: 6px !important; color: #aa7b13 !important; font-size: 18px !important; }
}
