/* Preserve the previous mobile website template; add only current navigation and shopping. */
@media (max-width:720px) {
  html { scroll-padding-top:72px; }
  html:has(body.hs-storefront) { scroll-padding-top:132px; }
  :root { --page-gutter:10px; }
  html body .section { padding-left:10px; padding-right:10px; }
  html body nav.mobile-dock.web-upgrade-dock { left:8px; right:8px; width:calc(100% - 16px); }
  html body nav.mobile-dock.web-upgrade-dock > a { flex:1 1 0; min-width:0; min-height:52px; padding:6px 0; }
  html body nav.mobile-dock.web-upgrade-dock > a > span { font-size:10px; line-height:1.4; }
  /* Logo, website search and the original member control share one row. */
  html body > .header,html body.hs-storefront > .header {
    position:sticky; top:0; z-index:50; display:flex!important; align-items:center;
    width:100%; min-height:64px; height:64px; margin:0; padding:6px 10px 18px;
    gap:10px; border:0; border-radius:0; background:transparent!important;
    box-shadow:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
    opacity:var(--web-nav-visibility,1); transform:translateY(calc(-1 * var(--web-nav-travel,0px)));
    transition:opacity .12s linear,transform .12s linear;
  }
  html body > .header::before { content:''; display:block; position:absolute; inset:0; z-index:-1; pointer-events:none; border:0; border-radius:0;
    background:rgba(255,255,255,.32); backdrop-filter:blur(20px) saturate(135%); -webkit-backdrop-filter:blur(20px) saturate(135%);
    mask-image:linear-gradient(#000 0%,#000 58%,transparent 100%); -webkit-mask-image:linear-gradient(#000 0%,#000 58%,transparent 100%);
  }
  html body > .header::after { display:none; }
  html body > .header .wordmark { flex:0 0 auto; min-width:36px; width:auto!important; margin:0; }
  html body > .header .search { display:flex!important; flex:1 1 auto; min-width:0; max-width:none; width:auto; min-height:40px; height:40px; margin:0; padding:6px 10px; background:rgba(255,255,255,.10); }
  html body > .header .search input { font-size:16px; height:26px; }
  html body > .header .search kbd { display:none; }
  html body > .header .member-entry { display:flex!important; flex:0 0 40px; align-items:center; justify-content:center; width:40px; min-width:40px; height:40px; padding:8px; background:transparent; }
  html body > .header .member-entry > span { display:none; }
  html body > .header :is(#mobile-nav,.app-link,.mobile-menu-toggle) { display:none!important; }
  html body .header[inert],html body .sf-header[inert] { pointer-events:none; }
  /* The store shares the same top row; only its product/brand text tabs remain beneath it. */
  html body.hs-storefront .sf-header { position:sticky; inset:64px 0 auto; z-index:49; padding:0 10px 14px; margin:0; opacity:var(--web-nav-visibility,1)!important; transform:translateY(calc(-1 * var(--web-nav-travel,0px)))!important; }
  html body.hs-storefront .sf-header-glass { background:rgba(255,255,255,.24); opacity:1; }
  html body.hs-storefront .sf-header-row { min-height:42px; }
  html body.hs-storefront .sf-header :is(.sf-logo,.sf-search,.sf-desktop-links) { display:none!important; }
  html body.hs-storefront #discover { margin:0; padding-left:10px; padding-right:10px; }
  html body.hs-storefront .sf-shelf { margin-right:-10px; padding-right:10px; }
  .web-content-shopping { display:inline-flex; align-items:center; gap:5px; min-height:34px; padding:5px 8px; margin-top:7px; font-size:11px; color:#3e5263; border:1px solid #e9ecef; border-radius:12px; background:#fff; }
  .web-content-shopping svg { width:16px; height:16px; }
  .web-content-shopping-link { display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:10px 14px; border:1px solid #e5e9ed; border-radius:14px; font-size:13px; }
  html body dialog.sf-detail { inset:12px 0; width:calc(100% - 16px); max-height:calc(100dvh - 24px); border-radius:20px; }
  html body .sf-detail-layout { display:block; padding:0 14px 22px; }
  html body .sf-detail-top { padding:8px 14px; }
  html body .sf-detail-copy h1 { font-size:18px; line-height:1.6; }
  html body .sf-detail-price { font-size:25px; }
  html body .sf-buy-bar { position:relative; inset:auto; padding:16px 0 0; background:transparent; border:0; backdrop-filter:none; }
  html body .sf-mobile-main-photo { display:block; width:100%; border:0; padding:0; background:#fff; }
  html body .sf-mobile-detail-heading { margin:24px 0 12px; font-size:14px; font-weight:600; }
  html body .sf-mobile-photos { display:flex; gap:10px; overflow-x:auto; padding-bottom:8px; touch-action:pan-x pan-y; }
  html body .sf-mobile-photo { flex:0 0 144px; height:164px; padding:0; background:#fff; border:1px solid #edf0f2; border-radius:12px; overflow:hidden; }
  html body .sf-mobile-photo img { width:100%; height:100%; object-fit:contain; }
  html body .sf-mobile-videos video { display:block; width:100%; max-height:70dvh; margin:12px 0; background:#111; }
  html body .sf-mobile-shop-info { margin-top:22px; padding-top:10px; border-top:1px solid #edf0f2; }
  dialog.web-photo-viewer { width:100vw; max-width:none; height:100dvh; max-height:none; padding:0; border:0; background:#111; }
  .web-photo-viewer-rail { display:flex; width:100%; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; }
  .web-photo-viewer-page { flex:0 0 100%; width:100%; height:100%; scroll-snap-align:start; display:grid; place-items:center; }
  .web-photo-viewer-page img { width:100%; height:100%; object-fit:contain; }
  .web-photo-viewer-close { position:fixed; top:calc(12px + env(safe-area-inset-top)); right:12px; min-width:44px; min-height:44px; z-index:2; color:#fff; border:1px solid #fff7; border-radius:50%; background:#1119; font-size:25px; }
  @media (prefers-reduced-motion:reduce) { html body > .header,html body.hs-storefront .sf-header { transition:none; transform:none!important; } }
}
