/* LuxorOtoMarket mobile recovery module.
   Isolated to compact touch screens; desktop layout is not changed. */
@media screen and (max-width: 980px) and (hover: none),
       screen and (max-width: 980px) and (pointer: coarse) {
  html body.lom-storefront-mobile-scope {
    max-width: 100%;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
  }

  /* Shared header and dock are owned by mobile-shell-unified-v2.css. */

  /* The old full-page category layer is superseded by the working category sheet. */
  html body.lom-storefront-mobile-scope .lom-mobile-category-screen,
  html body.lom-storefront-mobile-scope .lom-mobile-category-screen.open {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .app-category-sheet.open { visibility: visible !important; pointer-events: auto !important; }
  html body.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .app-category-sheet.open .app-sheet-backdrop { opacity: 1 !important; }
  html body.lom-storefront-mobile-scope .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;
    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;
    box-sizing: border-box !important;
  }
  html body.lom-storefront-mobile-scope .app-category-sheet.open .app-sheet-panel { transform: translateY(0) !important; }
  html body.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .app-category-sheet .app-sheet-head h2 { margin: 0 !important; color: #1c2027 !important; font-size: 20px !important; line-height: 1.2 !important; }
  html body.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .app-category-sheet .app-sheet-search .m21-search-icon { display: grid !important; place-items: center !important; width: 42px !important; height: 44px !important; }
  html body.lom-storefront-mobile-scope .app-category-sheet .app-sheet-search svg { position: static !important; width: 20px !important; height: 20px !important; fill: none !important; stroke: #737b87 !important; }
  html body.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .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.lom-storefront-mobile-scope .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; }
  html body.lom-storefront-mobile-scope .app-category-sheet .app-sheet-list a b { font-size: 12px !important; line-height: 1.25 !important; }
  html body.lom-storefront-mobile-scope .app-category-sheet .app-sheet-list a small { margin-top: 4px !important; color: #7c828b !important; font-size: 9px !important; }
  html body.lom-storefront-mobile-scope .app-category-sheet .app-sheet-list a em { position: absolute !important; right: 9px !important; bottom: 6px !important; color: #aa7b13 !important; font-size: 18px !important; }

  /* Shared bottom menu is owned by mobile-shell-unified-v2.css. */

  /* Homepage: show the featured product slider first, then the copy panel. */
  html body.lom-body #home-main-design-refresh {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html body.lom-body #home-main-design-refresh > .lom-commerce-hero { order: 1 !important; }
  html body.lom-body #home-main-design-refresh > .lom-home-recommendations { order: 2 !important; }
  html body.lom-body #home-main-design-refresh > .lom-home-recently-viewed { order: 3 !important; }
  html body.lom-body #home-main-design-refresh > .lom-category-showcase { order: 4 !important; }
  html body.lom-body #home-main-design-refresh > .lom-promo-strip-rich,
  html body.lom-body #home-main-design-refresh > .lom-promo-strip { order: 5 !important; }
  html body.lom-body #home-main-design-refresh > .lom-mid-banner { order: 6 !important; }
  html body.lom-body #home-main-design-refresh > .lom-scroll-products-section { order: 7 !important; }
  html body.lom-body #home-main-design-refresh > .lom-service-cards { order: 8 !important; }
  html body.lom-body .lom-commerce-hero {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px 10px !important;
    overflow: visible !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }
  html body.lom-body .lom-commerce-hero > .lom-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  html body.lom-body .lom-commerce-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #171717 !important;
  }
  html body.lom-body .lom-hero-product {
    position: relative !important;
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 360px !important;
    min-height: 360px !important;
    max-height: 390px !important;
    margin: 0 !important;
    padding: 58px 12px 12px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: linear-gradient(145deg, #fff9e9 0%, #f1e4c3 100%) !important;
    box-shadow: 0 8px 24px rgba(35, 28, 14, .08) !important;
    box-sizing: border-box !important;
  }
  html body.lom-body .lom-hero-slides { position: absolute !important; inset: 0 !important; z-index: 1 !important; }
  html body.lom-body .lom-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 58px 12px 104px !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  html body.lom-body .lom-hero-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
  }
  html body.lom-body .lom-hero-badge {
    position: absolute !important;
    top: 13px !important;
    left: 13px !important;
    z-index: 5 !important;
    padding: 8px 11px !important;
    border-radius: 999px !important;
    background: #f47d12 !important;
    color: #fff !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
  }
  html body.lom-body .lom-hero-product-info {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 6 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "cat price" "name price" !important;
    align-items: center !important;
    gap: 3px 10px !important;
    min-height: 78px !important;
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #eee8dc !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 7px 20px rgba(22, 20, 16, .08) !important;
    box-sizing: border-box !important;
  }
  html body.lom-body .lom-hero-product-info small { grid-area: cat !important; min-width: 0 !important; color: #9c7412 !important; font-size: 8px !important; font-weight: 850 !important; }
  html body.lom-body .lom-hero-product-info h2 {
    grid-area: name !important;
    display: -webkit-box !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #191919 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
  html body.lom-body .lom-hero-product-info strong { grid-area: price !important; color: #171717 !important; font-size: 18px !important; font-weight: 850 !important; white-space: nowrap !important; }
  html body.lom-body .lom-hero-controls {
    position: absolute !important;
    top: 9px !important;
    right: 9px !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 7 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px !important;
    border: 1px solid #e8e5df !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 3px 10px rgba(20, 23, 30, .08) !important;
    transform: none !important;
  }
  html body.lom-body .lom-hero-nav {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #171a20 !important;
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }
  html body.lom-body .lom-hero-counter { display: flex !important; align-items: center !important; gap: 2px !important; min-width: 38px !important; justify-content: center !important; color: #9a7415 !important; font-size: 10px !important; }
  html body.lom-body .lom-hero-counter strong { color: #171717 !important; font-size: 12px !important; }
  html body.lom-body .lom-hero-copy {
    position: relative !important;
    order: 2 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 22px 20px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 23px !important;
    background: linear-gradient(120deg, #14233f 0%, #17233b 58%, #38291f 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(18, 27, 45, .12) !important;
    box-sizing: border-box !important;
  }
  html body.lom-body .lom-hero-copy .lom-eyebrow { display: block !important; color: #efbd43 !important; font-size: 8px !important; font-weight: 850 !important; letter-spacing: .12em !important; }
  html body.lom-body .lom-hero-copy h1 { margin: 8px 0 10px !important; color: #fff !important; font-size: clamp(23px, 6vw, 30px) !important; line-height: 1.08 !important; letter-spacing: -.03em !important; }
  html body.lom-body .lom-hero-copy h1 em { color: #f2bd44 !important; }
  html body.lom-body .lom-hero-copy > p { margin: 0 !important; color: rgba(255,255,255,.86) !important; font-size: 12px !important; line-height: 1.45 !important; }
  html body.lom-body .lom-home-hero-actions { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; margin-top: 14px !important; }
  html body.lom-body .lom-home-hero-actions a { min-height: 42px !important; padding: 0 14px !important; border-radius: 12px !important; font-size: 10px !important; }
  html body.lom-body .lom-home-antifreeze { max-width: 100% !important; margin-top: 12px !important; }
  html body.lom-body .lom-home-antifreeze > summary { min-height: 66px !important; padding: 9px !important; }

  /* Keep category media and SVG fallbacks within their cards. */
  html body.lom-body .lom-category-showcase .lom-category-showcase-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }
  html body.lom-body .lom-category-showcase .lom-showcat-card { display: flex !important; flex-direction: column !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; overflow: hidden !important; }
  html body.lom-body .lom-category-showcase .lom-showcat-media { position: relative !important; display: grid !important; place-items: center !important; width: 100% !important; height: 118px !important; min-height: 118px !important; max-height: 118px !important; overflow: hidden !important; background: #fff !important; }
  html body.lom-body .lom-category-showcase .lom-showcat-media > img { display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; object-position: center !important; }
  html body.lom-body .lom-category-showcase .lom-showcat-fallback svg { display: block !important; width: 42px !important; height: 42px !important; max-width: 42px !important; max-height: 42px !important; fill: none !important; stroke: currentColor !important; }
  html body.lom-body .lom-category-showcase .lom-showcat-overlay { display: none !important; }
}

@media screen and (max-width: 380px) and (hover: none),
       screen and (max-width: 380px) and (pointer: coarse) {
  html body.lom-body .lom-hero-product { height: 342px !important; min-height: 342px !important; }
  html body.lom-body .lom-hero-slide { padding-bottom: 104px !important; }
}
