
/* ===== Homepage mobile fixes (owner, 2026-12-05) — phones only
   (<=640px). Tablet (641-900px) and PC rendering are untouched:
   the search pill, banner and menu there stay exactly as before.
   1) SEARCH ICON ONLY: the always-visible full-width search pill
      leaves the mobile header row. Only a search icon stays in
      the menu row (left, beside the burger — that also balances
      the cart + account icons on the right, so the logo stays
      centred). Tapping the icon floats the white search box in
      as an overlay panel just under the header; tapping the
      icon again, tapping outside, pressing Esc, or submitting
      hides it. Typing still filters live, ?q= still applies.
   2) BANNER = YOUTUBE THUMBNAIL SHAPE: the mobile banner frame
      is exactly 16:9, full width, photo filling it edge to
      edge (object-fit:cover, focal point right so the family
      stays in frame and the headline keeps the left side).
   3) MENU AUTO-HIDE ON SCROLL: the open burger menu closes by
      itself when the page scrolls (script-01.js); the panel
      itself may scroll internally on short screens without
      closing. ===== */

/* Search toggle exists in the DOM at every width but only ever
   shows on phones. */
.search-toggle{display:none}

@media (max-width:640px){
  /* --- 1) Search icon in the menu row + floating search box --- */
  .header-in{padding-bottom:8px}
  .burger{grid-column:1;grid-row:1;justify-self:start}
  .search-toggle{
    display:inline-flex;grid-column:1;grid-row:1;justify-self:end;
    width:42px !important;height:42px !important;color:#454545;
  }
  .burger{width:42px !important;height:42px !important}
  .header-actions .icon-btn{width:42px !important;height:42px !important}
  .logo-link{grid-column:2;grid-row:1}
  .header-actions{grid-column:3;grid-row:1}
  header.site.search-open .search-toggle{color:#FC7203}
  /* The pill becomes a floating overlay under the header. It is
     taken out of the header flow (absolute), so the header row
     is one line tall again; hidden state is visibility+opacity
     so it can float in/out smoothly. */
  .header-search{
    position:absolute;left:12px;right:12px;top:calc(100% + 8px);
    height:46px;z-index:65;margin:0;
    box-shadow:0 14px 34px rgba(18,63,134,.22);
    opacity:0;visibility:hidden;transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
  }
  header.site.search-open .header-search{
    opacity:1;visibility:visible;transform:none;pointer-events:auto;
  }
  .header-search input{font-size:16px;padding:0 18px}
  .header-search button{width:56px}

  /* --- 2) Banner: YouTube-thumbnail 16:9 frame, full width --- */
  section.hero{
    aspect-ratio:16/9;width:100%;height:auto;
    min-height:0;max-height:none;position:relative;overflow:hidden;
  }
  section.hero>img{
    position:absolute;inset:0;width:100%;height:100%;
    min-height:0;object-fit:cover;object-position:68% center;
  }
  section.hero .hero-in{position:absolute;inset:0;z-index:2;display:flex;align-items:center}
  /* Copy scaled to the taller 16:9 frame (56.25vw tall): the
     3-line headline + Shop Now button sit on the left, centred,
     readable like thumbnail text, never spilling out. */
  .hero .hero-copy{max-width:60%}
  .hero .hero-copy h1{font-size:4.9vw;line-height:1.26;margin:0 0 2.2vw}
  .hero .hero-copy .btn-shopnow{padding:1.7vw 5vw;font-size:3.4vw}

  /* --- 3) Menu panel: may scroll internally on short screens;
     page scroll closes it (script-01.js). --- */
  nav.main.open{
    max-height:calc(100dvh - 118px);overflow-y:auto;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  }
}
