/* tt-mobile.css — phone layout fixes for the v2 pages (2026-11-16).
   Desktop is untouched: everything sits inside one max-width:760px block.

   1. Stacked columns. Sections built as side-by-side columns carry
      flex-basis widths ("flex:1 1 640px"). When .stack-m turns them into a
      column on a phone, that basis becomes a HEIGHT: a two-line heading got a
      640px box, which is where the screens of empty space came from.
   2. Sticky blocks inside content (the about page's "How I authenticate"
      heading, the watch page's info column) slid over the text below them.
   3. Three floating controls (bottom bar, concierge pill, WhatsApp) covered
      ~200px of every screen and cut off "Source a watch". The bottom bar
      stays; the concierge becomes a small round button; WhatsApp hides
      where a bar already offers "Text me".
   4. Collection toolbar: one compact row (Filters, count, sort) instead of a
      330px sticky block.
   5. Watch page price bar: one row.
   6. Gallery angle numbers: one swipeable row.
   7. Footer: duplicate links folded, two columns.
   8. Section spacing sized for a phone.
*/
@media (max-width: 760px) {

  /* 1 */
  .tt .stack-m > * { flex-basis: auto !important; }

  /* 2 */
  .tt div[style*="position:sticky"],
  .tt div[style*="position: sticky"] { position: static !important; }

  /* 3 */
  body:has(.mbar) #tt-wa-btn,
  body:has(.bar.pad) #tt-wa-btn { display: none !important; }
  .cg-fab {
    left: auto !important; right: 14px !important;
    width: 52px !important; height: 52px !important; min-width: 0 !important;
    padding: 0 !important; gap: 0 !important; font-size: 0 !important;
    justify-content: center !important; border-radius: 50% !important;
  }
  body:has(.mbar) .cg-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
  body:has(.bar.pad) .cg-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  .mbar a { white-space: nowrap; font-size: 15px !important; padding-left: 8px !important; padding-right: 8px !important; }

  /* 4 */
  section[aria-label="Filter and sort"] { padding: 8px 16px !important; }
  section[aria-label="Filter and sort"] > div { flex-wrap: nowrap !important; gap: 10px !important; }
  section[aria-label="Filter and sort"] > div > div:first-of-type,
  section[aria-label="Filter and sort"] .savedlink,
  section[aria-label="Filter and sort"] [role="group"][aria-label="View"],
  section[aria-label="Filter and sort"] label[for="c-sort"] { display: none !important; }
  section[aria-label="Filter and sort"] .fbtn { flex: 0 0 auto; min-height: 44px; padding-left: 14px !important; padding-right: 14px !important; }
  section[aria-label="Filter and sort"] .num { font-size: 14px !important; margin-left: auto; color: #9AA3B2 !important; }
  section[aria-label="Filter and sort"] > div > div:last-of-type { flex: 0 1 auto; min-width: 0; }
  section[aria-label="Filter and sort"] .sel { max-width: 46vw; font-size: 14px !important; }

  /* 5 */
  .tt .bar.pad { padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)) !important; }
  .tt .bar.pad > div { flex-wrap: nowrap !important; gap: 12px !important; }
  .tt .bar.pad > div > div:first-child { display: none !important; }
  .tt .bar.pad > div > div:last-child { width: 100%; justify-content: space-between !important; gap: 12px !important; }
  .tt .bar.pad .num { font-size: 21px !important; }
  .tt .bar.pad .btn { min-height: 44px !important; padding-left: 16px !important; padding-right: 16px !important; white-space: nowrap; }

  /* 6 */
  .tt [role="tablist"][aria-label="Angle"] {
    flex-wrap: nowrap !important; overflow-x: auto; gap: 2px !important;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tt [role="tablist"][aria-label="Angle"]::-webkit-scrollbar { display: none; }
  .tt [role="tablist"][aria-label="Angle"] .thumb { flex: 0 0 auto; min-width: 40px; min-height: 40px; }

  /* 7 */
  footer.pad { padding: 40px 20px 112px !important; }
  footer.pad img { height: 56px !important; }
  footer.pad > .stack-m nav[aria-label="Footer"] { gap: 6px 18px !important; margin-top: 18px; }
  footer.pad > .stack-m nav[aria-label="Footer"] a { font-size: 15px !important; }
  footer .tt-footlinks { grid-template-columns: 1fr 1fr !important; gap: 18px 16px !important; margin-top: 28px !important; padding-top: 24px !important; }
  footer .tt-footlinks a { padding: 3px 0 !important; font-size: 15px !important; }

  /* 8 */
  .tt section.pad:not(#top):not([aria-label="Filter and sort"]) {
    padding-top: 64px !important; padding-bottom: 64px !important;
  }
  /* The first section under the fixed header still needs room for it. */
  .tt section.pad[style*="padding:200px"],
  .tt section.pad[style*="padding:180px"],
  .tt section.pad[style*="padding:170px"],
  .tt section.pad[style*="padding:160px"] { padding-top: 112px !important; }
  .tt .stack-m { gap: 28px !important; margin-bottom: 40px !important; }

  /* 9. Home: lighter on a phone. Four watches in the preview ("Browse all"
     follows), the three "why me" panels as a sideways swipe, and the
     concierge button waits until you are past the hero so it never covers
     the hero's arrows (tt-extras.js sets .ttx-past-hero). */
  .tt #collection .grid4 > article:nth-child(n+5) { display: none !important; }
  .tt #approach .grid3 {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tt #approach .grid3::-webkit-scrollbar { display: none; }
  .tt #approach .grid3 > * {
    flex: 0 0 84% !important; scroll-snap-align: start;
    border-right: 0 !important; padding-right: 0 !important;
  }
  body:has(#top.tth):not(.ttx-past-hero) .cg-fab { opacity: 0; pointer-events: none; }
  .cg-fab { transition: opacity .3s ease; }
}

/* ── All screen sizes ───────────────────────────────────────────────────── */
/* Watch photo "drag to tilt": the photo's fade-in animation kept its final
   transform (none) and overrode the tilt, so dragging did nothing. Fade the
   opacity only, and let the tilt drive the transform. */
.tt .viewer > .fade { animation-name: ttFadeOnly !important; }
@keyframes ttFadeOnly { from { opacity: 0; } to { opacity: 1; } }
