.mobile-tabbar, .mobile-menu-top { display: none; }
.mobile-search-dialog:not([open]) { display: none; }

@media (max-width: 760px) {
    :root { --mobile-nav-height: calc(64px + env(safe-area-inset-bottom, 0px)); }
    html { scroll-padding-top: calc(var(--mobile-header-height, 120px) + 16px); -webkit-text-size-adjust: 100%; }
    html.mobile-overlay-open { overflow: hidden; }
    .storefront { padding-bottom: var(--mobile-nav-height); background: #fff; }
    .storefront .container { width: calc(100% - 32px); }
    .storefront .store-topline { display: none; }
    .storefront .store-header { z-index: 100; padding-top: env(safe-area-inset-top, 0px); background: #fff; border-bottom: 1px solid #e9eef1; box-shadow: 0 2px 14px #16303e05; }
    .storefront .store-header-inner { padding: 10px 0; gap: 10px; }
    .storefront .store-header .brand { flex: 1; min-height: 44px; }
    .storefront .store-header .brand img { width: min(210px, 52vw); }
    .storefront .header-customer-actions { gap: 8px; }
    .storefront .cart-link { position: relative; justify-content: center; width: 44px; min-height: 44px; border-radius: 14px; background: #f5f8fa; }
    .storefront .cart-link b { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; font-size: 10px; border: 2px solid #fff; }
    .storefront .menu-toggle { width: 44px; height: 44px; border: 0; border-radius: 14px; background: #f5f8fa; }
    .storefront .menu-toggle[aria-expanded="true"] { color: #ce006b; background: #fff0f7; }
    .storefront .header-search { max-width: none; width: 100%; }
    .storefront .header-search input { width: 100%; height: 46px; min-height: 46px; padding: 12px 14px 12px 43px; border-color: #e7edf1; border-radius: 14px; font-size: 16px; background: #f5f8fa; }
    .storefront .header-search input::placeholder { font-size: 13px; }
    .storefront .header-search > svg { top: 14px; left: 14px; width: 19px; height: 19px; }
    .storefront a, .storefront button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    .storefront :is(input,select,textarea) { scroll-margin-top: calc(var(--mobile-header-height, 120px) + 25px); }
    .storefront .button { min-height: 46px; }
    .storefront :focus-visible { outline-color: #168eb8; outline-width: 2px; }
    .storefront .header-search input:focus { outline: none; }
    .storefront .skip-link { z-index: 140; }

    .mobile-tabbar { position: fixed; z-index: 110; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); min-height: var(--mobile-nav-height); padding: 5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left)); border-top: 1px solid #e3eaef; background: #ffffffed; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -3px 16px #14304007; }
    .mobile-tabbar > a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 54px; padding: 5px 2px; border-radius: 12px; color: #617984; font-size: 10px; font-weight: 650; line-height: 1.3; text-decoration: none; }
    .mobile-tabbar > a > svg { width: 22px; height: 22px; stroke-width: 1.8; }
    .mobile-tabbar > a[aria-current="page"], .mobile-tabbar > a[aria-expanded="true"] { background: #fff0f7; color: #d00068; }
    .mobile-menu-open .mobile-tabbar > a[aria-current="page"]:not([data-mobile-categories]) { background: transparent; color: #617984; }
    .mobile-tabbar .mobile-tab-support { color: #147856; }
    .mobile-tabbar .mobile-tab-support > svg { fill: currentColor; stroke: none; }
    .mobile-keyboard-open .mobile-tabbar, .mobile-search-open .mobile-tabbar { display: none; }
    .mobile-search-open .product-mobile-bar { display: none !important; }

    .storefront.has-store-navigation .mega-navigation.is-open { position: fixed; inset: var(--mobile-header-height, 120px) 0 var(--mobile-nav-height); max-height: none; padding-bottom: 15px; background: #fff; border: 0; overscroll-behavior: contain; animation: mobile-menu-reveal 180ms ease-out; }
    .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 16px 14px; }
    .mobile-menu-top > div { display: flex; flex-direction: column; gap: 3px; }
    .mobile-menu-top span { color: #68818d; font-size: 11px; }
    .mobile-menu-top strong { color: #142e3a; font-size: 21px; letter-spacing: -.4px; }
    .mobile-menu-top button, .mobile-search-heading button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: #f3f7f9; color: #294f62; }
    .storefront .mega-navigation .mega-menu-shell { gap: 8px; padding: 0 0 16px; }
    .storefront .mega-navigation .mega-item { border: 1px solid #e6edf1; border-radius: 15px; overflow: hidden; }
    .storefront .mega-navigation .mega-trigger, .storefront .mega-navigation .mega-fallback { min-height: 58px; padding: 14px 16px; font-size: 15px; border: 0; }
    .storefront .mega-navigation .mega-trigger.nav-all, .storefront .mega-navigation .mega-fallback.nav-all { padding-right: 16px; }
    .storefront .mega-navigation .mega-item.is-open > .mega-trigger { background: #fff4f9; color: #bf0061; }
    .storefront .mega-navigation .mega-panel { margin: 0; border: 0; border-radius: 0; }
    .storefront .mega-navigation .mega-intro { padding: 17px 16px 12px; background: #f7fafc; }
    .storefront .mega-navigation .mega-heading { font-size: 22px; }
    .mega-navigation .mega-description { font-size: 13px; }
    .storefront .mega-navigation .mega-category-list a { font-size: 13px; min-height: 48px; }
    .storefront .mega-navigation .mega-products { grid-template-columns: minmax(0,1fr); gap: 8px; }
    .storefront .mega-navigation .mega-product { flex-direction: row; align-items: center; gap: 14px; min-height: 91px; padding: 10px; border-radius: 12px; }
    .storefront .mega-navigation .mega-product-image { flex: 0 0 67px; width: 67px; height: 67px; }
    .storefront .mega-navigation .mega-product-name { font-size: 14px; line-height: 1.45; }
    .storefront .mega-navigation .mega-product-price { font-size: 15px; }
    .storefront .mega-navigation .mega-product-price small { font-size: 11px; }
    .storefront .mega-navigation .mega-product-arrow { display: block; margin-left: auto; }
    .storefront .mega-navigation .mega-feature { display: none; }
    .storefront .mega-navigation .mega-view-all, .storefront .mega-navigation .mega-category-link { font-size: 13px; min-height: 46px; }
    .storefront .mega-navigation .mega-bottom { flex-direction: column; align-items: stretch; }
    .storefront .mega-navigation .nav-mobile-account { min-height: 52px; padding: 10px 14px; font-size: 14px; }

    .mobile-search-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: var(--mobile-viewport-height,100dvh); max-height: 100dvh; margin: 0; padding: calc(16px + env(safe-area-inset-top,0px)) 16px max(20px,env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-radius: 0; color: #142e3a; background: #fff; overscroll-behavior: contain; }
    .mobile-search-dialog::backdrop { background: #142e3a4d; }
    .mobile-search-heading { position: sticky; top: calc(-16px - env(safe-area-inset-top,0px)); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding-block: 6px; background: #fff; }
    .mobile-search-heading h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.6px; }
    .mobile-search-dialog .header-search { position: relative; display: block; margin: 0; }
    .mobile-search-dialog .header-search input { height: 52px; min-height: 52px; font-size: 16px; border-color: #b9d2df; background: #f5f9fb; }
    .mobile-search-dialog .header-search > svg { top: 17px; }
    .mobile-search-dialog .search-suggestions { position: static; margin-top: 18px; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
    .mobile-search-dialog .search-suggestions-heading { padding: 9px 0 14px; background: #fff; }
    .mobile-search-dialog .search-suggestions-heading strong { font-size: 14px; }
    .mobile-search-dialog .search-suggestions-heading > span { font-size: 11px; }
    .mobile-search-dialog .search-suggestions-list { max-height: none; padding: 0; overflow: visible; }
    .mobile-search-dialog .search-result { gap: 12px; min-height: 82px; padding: 12px 0; }
    .mobile-search-dialog .search-result img { width: 58px; height: 58px; border-radius: 10px; }
    .mobile-search-dialog .search-result-copy > strong { font-size: 14px; line-height: 1.45; }
    .mobile-search-dialog .search-result-price { font-size: 13px; }
    .mobile-search-dialog .search-suggestions-all { min-height: 52px; margin-top: 14px; padding: 14px; border-radius: 12px; font-size: 13px; }
    .mobile-search-dialog .search-suggestions-message { padding: 20px 0; font-size: 14px; }
    .mobile-search-discover { padding-top: 25px; }
    .mobile-search-discover > p { margin-bottom: 14px; color: #69818e; font-size: 14px; }
    .mobile-search-discover > div { display: grid; gap: 9px; }
    .mobile-search-discover a { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 14px 16px; border: 1px solid #e5edf1; border-radius: 13px; font-size: 15px; font-weight: 600; }
    .mobile-search-discover a > span { color: #d00068; }
}

@keyframes mobile-menu-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 359px) { .storefront .container { width: calc(100% - 24px); } .storefront .header-customer-actions { gap: 5px; } .storefront .store-header .brand img { width: 165px; } .mobile-tabbar { padding-inline: 4px; } .mobile-tabbar > a { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .storefront.has-store-navigation .mega-navigation.is-open { animation: none; } }
