
/* ===== Mobile fixes (owner, 2026-12-04): the moving top strip
   (carousel) must never blank out on scroll + a bigger logo on
   mobile versions =====
   1) CAROUSEL PAINT (root cause, verified in a rendered probe at
      390px after a 900px scroll): the header stayed pinned and
      the strip's layout box stayed in place — the logo row never
      moved up — but the strip painted completely BLANK: no navy
      background, no moving text, no social icons. A three-step
      bisect in the same probe cleared the strip's paint
      containment, its overflow:clip and its composited layers —
      the blanking persisted through all three, because as a
      CHILD of the pinned header the strip's paint is assigned
      to the scrolled page layer and carried off-screen. The
      final fix (bisect step 4 below) makes the strip
      position:fixed in its own right at <=900px, like the
      page's other fixed elements that paint fine while
      scrolled. The containment / will-change / overflow changes
      from the bisect stay in place: they are harmless, the
      classic overflow:hidden clips the wide track exactly as
      before, and body{overflow-x:clip} still guards the page
      width. The marquee animation itself is untouched and
      keeps running.
   2) BIGGER LOGO (mobile versions only, desktop unchanged): the
      header logo grows a step at <=1024px — phones 52px -> 62px
      tall, the 641-900 band 68px -> 76px, the 901-1024 band
      58px -> 64px — artwork and aspect ratio untouched, width
      caps lifted to match so it is never squeezed. The <=900px
      header row is a centred grid, so the bigger logo stays
      exactly in the middle; the pin script re-measures the
      taller header automatically. */
.topbar{contain:none}
.topbar .marquee-track{will-change:auto}
/* Bisect step 2 (same probe, same scroll): the blanking persisted
   without paint containment, so the remaining suspect from that
   pass is overflow:clip itself — on the strip and on .items —
   combined with the animated track inside the fixed header
   (Chrome drops the clipped layer's paint on scroll). Both go
   back to the classic overflow:hidden the strip was originally
   built with, which clips the wide track exactly the same;
   body{overflow-x:clip} still guards the page width. */
.topbar{overflow:hidden}
.topbar .items{overflow:hidden}
/* Bisect step 3 (same probe, same scroll): with containment AND
   overflow:clip both gone the strip still blanked, and promoting
   the strip / its marquee viewport to their own composited
   layers changed nothing either — as a CHILD of the pinned
   header the strip's paint is assigned to the scrolled page
   layer and carried off-screen (its layout box stays put; only
   the paint goes). Other fixed elements on this page (the
   WhatsApp button, the drawers) paint fine while scrolled, so
   the strip now gets the same treatment: at <=900px it is
   position:fixed in its own right — its own viewport layer,
   independent of the header's — the header sits directly below
   it (top:52px, or 34px at <=640px where the strip is slimmer),
   and body padding reserves both heights (CSS gives the strip's
   share up front; the pin script below measures both elements
   and sets the exact total). On the checkout view, where the
   strip is hidden by design, the header returns to top:0. */
@media (max-width:900px){
  .topbar{position:fixed;top:0;left:0;right:0;z-index:62}
  header.site, header.site.hdr-pinned{top:52px}
  body{padding-top:52px}
  body.bn-active header.site, body.bn-active header.site.hdr-pinned{top:0}
}
@media (max-width:640px){
  header.site, header.site.hdr-pinned{top:34px}
  body{padding-top:34px}
}
/* KEEP-ALIVE PAINT (final mechanism): the strip carries a
   perpetual, invisible background-color animation (#123F86 <->
   #123F87, one blue unit). An element with a running paint
   animation is re-rasterised by the compositor every frame, at
   rest and at every scroll position, in any browser that runs
   CSS animations at all — its texture can never be the stale
   one a scroll drops. This replaces guesswork about which
   invalidation a given webview honours: the strip simply never
   stops repainting, exactly like its own marquee track never
   stops moving. The colour difference is imperceptible (the
   strip reads as the same solid navy) and the strip is small,
   so the per-frame repaint costs nothing measurable. */
@keyframes mq-keepalive{from{background-color:#123F86}to{background-color:#123F87}}
.topbar{animation:mq-keepalive .6s linear infinite alternate}
/* REPAINT NUDGE (supporting mechanism, proven in the probe):
   with the strip fixed and even with its animation stopped, the
   scrolled capture STILL showed the strip blank — until any
   unrelated change forced a repaint (opening the burger menu
   brought the whole strip back, fully painted, at the same
   scroll position). So the failure is repaint invalidation: in
   this compositor a scroll alone never invalidates the strip's
   paint, so its texture is dropped and nothing redraws it. A
   transform flip cannot fix that (transforms recomposite the
   existing texture without repainting it), so the fallback
   script below watches the scroll position with a rAF loop and
   flips the strip's background colour by one blue unit on
   every frame the page moves — a real paint change that
   forces the strip's layer to re-rasterise in the same frame.
   The strip stays painted while scrolling, and its marquee
   animation (untouched) keeps running. */
@media (max-width:1024px){
  .logo-link img{height:64px !important;max-height:64px}
}
@media (max-width:900px){
  .logo-link{max-width:230px !important}
  .logo-link img{height:76px !important;max-width:230px !important;max-height:none !important}
}
@media (max-width:640px){
  .logo-link{max-width:205px !important}
  .logo-link img{height:62px !important;max-width:205px !important}
}
@media (max-width:360px){
  .logo-link img{height:58px !important}
}
