/* The phone site follows the website; all desktop styling stays intact. */
@media (max-width:720px) {
  :root { --page-gutter:10px; }
  html { scroll-padding-top:135px; -webkit-text-size-adjust:100%; }
  html body { min-width:0; padding-bottom:env(safe-area-inset-bottom); }
  html body nav.mobile-dock { display:none!important; }
  html body > .header,html body.hs-storefront > .header {
    display:grid!important; grid-template-columns:minmax(0,1fr) 40px 40px;
    position:sticky; top:6px; z-index:48; width:calc(100% - 20px);
    min-height:0; height:auto; margin:6px auto 12px; padding:8px 12px;
    gap:4px 8px; border-radius:20px; border:1px solid rgba(106,121,135,.09);
    background:rgba(255,255,255,.88); backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px); box-shadow:0 4px 20px #27354409;
  }
  html body > .header::after { display:none; }
  html body > .header .wordmark { grid-column:1; grid-row:1; min-width:124px; width:auto!important; display:block!important; justify-self:start; }
  html body > .header .wordmark .mobile-header-logo { display:none!important; }
  html body > .header .wordmark .desktop-header-wordmark { display:block!important; width:124px!important; margin:0; }
  html body > .header .wordmark .hs-original-wordmark { width:124px!important; height:auto!important; }
  html body > .header .member-entry {
    display:flex!important; grid-column:2; grid-row:1; min-width:40px;
    min-height:40px; padding:8px; align-items:center; justify-content:center;
  }
  html body > .header .member-entry > span { display:none; }
  html body > .header .mobile-menu-toggle {
    display:grid!important; grid-column:3; grid-row:1; width:40px; height:40px;
    place-items:center; padding:10px; background:transparent; border-radius:12px;
  }
  html body > .header .search {
    display:flex!important; grid-column:1/-1; grid-row:2; width:100%;
    max-width:none; min-width:0; min-height:42px; margin:0; padding:7px 12px;
    border-radius:24px; border:1px solid #e9eaed; background:#fff9;
  }
  html body > .header .search input { width:100%; font-size:16px; height:26px; }
  html body > .header .search kbd { display:none; }
  html body > .header #mobile-nav { display:none!important; }
  html body > .header .app-link { display:none!important; }
  html body > .header[data-mobile-menu=open] #mobile-nav {
    display:flex!important; grid-column:1/-1; grid-row:3; flex-wrap:wrap;
    justify-content:flex-start; gap:2px 23px; margin:4px 0 0;
    font-size:13px; font-weight:500;
  }
  html body > .header #mobile-nav a { min-height:40px; padding:10px 0; }
  html body > .header #mobile-nav [aria-current=page] { color:#e90032; }
  html body > .header[data-mobile-menu=open] .app-link {
    display:flex!important; grid-column:1/-1; grid-row:4; justify-content:center;
    min-height:40px; margin:4px 0; padding:9px 14px; font-size:12px;
  }
  html body .section { width:100%; max-width:100%; padding-left:10px; padding-right:10px; }
  html body .hero,html body .hero-toolbar { width:calc(100% - 20px); }
  html body .hero-toolbar { padding:6px 2px; }
  html body #brands { padding-top:14px; padding-bottom:12px; }
  html body .brand-rail { gap:14px; padding-bottom:10px; }
  html body .brand { flex-basis:72px; }
  html body .brand-ring { width:64px; height:64px; }
  html body #discover { padding-top:25px; }
  html body #discover .chinese { font-size:25px; letter-spacing:-1px; }
  html body .discover .filterbar {
    display:flex; align-items:center; gap:10px; margin:22px 0 14px;
    padding:8px; border-radius:18px; position:relative; top:auto;
  }
  html body .filters { display:flex; flex-wrap:wrap; gap:4px; width:100%; }
  html body .filters :is(button,a) { min-height:38px; padding:8px 12px; font-size:12px; }
  html body .filterbar .latest-label { margin-left:auto; font-size:11px; }
  html body #load-zone #hs-auto-control { position:static!important; transform:none; width:max-content; min-width:0; margin:14px auto; padding:8px 14px; display:flex; align-items:center; gap:10px; font-size:12px; }
  html body .masonry { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px!important; }
  html body .masonry > .wall-column { min-width:0; padding-top:0!important; }
  html body #feed .post { position:relative; min-width:0; padding:8px; margin-bottom:12px; border-radius:16px; }
  html body #feed .post-media { border-radius:11px; }
  html body #feed .post-brand { margin-top:9px; gap:5px; }
  html body #feed .post-brand img { width:22px; height:22px; }
  html body #feed .post-brand > button:first-child { font-size:11px; }
  html body #feed .caption { font-size:12px; line-height:1.65; }
  html body #feed .post-time { font-size: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; }
  .web-member-navigation { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin:0 10px 14px; padding:12px 14px; font-size:13px; border-bottom:1px solid #edf0f2; }
  .web-member-navigation a { min-height:36px; display:inline-flex; align-items:center; }
  html body .hs-footer-v2 { width:calc(100% - 24px); }
  /* Store pages keep the same website header and a quiet second-level tab row. */
  html body.hs-storefront .sf-header {
    position:relative; inset:auto; padding:0 10px 10px; margin:0;
    transform:none!important; opacity:1!important; pointer-events:auto;
  }
  html body.hs-storefront .sf-header-glass { display:none; }
  html body.hs-storefront .sf-header-row { min-height:44px; gap:16px; }
  html body.hs-storefront .sf-header :is(.sf-logo,.sf-search,.sf-desktop-links) { display:none!important; }
  html body.hs-storefront .sf-tabs { gap:24px; }
  html body.hs-storefront .sf-tabs button { padding:0 3px; font-size:14px; min-height:42px; }
  html body.hs-storefront #discover { scroll-margin-top:54px; width:100%; margin:0; padding:0 10px 30px; }
  html body.hs-storefront #feed.sf-grid { gap:10px!important; }
  html body.hs-storefront .sf-product { border-radius:16px; }
  html body.hs-storefront .sf-product-copy { padding:10px 6px 0; }
  html body.hs-storefront .sf-price { font-size:18px; }
  html body.hs-storefront .sf-shelf { margin-right:-10px; padding-right:10px; }
  html body.sf-vip .catalog-cart-launch { left:auto!important; right:12px!important; bottom:16px!important; min-width:108px; font-size:12px; }
  html body.sf-vip .catalog-cart-drawer { left:auto!important; right:10px!important; bottom:82px!important; max-width:calc(100% - 20px); }
  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 { scroll-behavior:auto; } }
}
