/**
 * Experiment: pdp_hide_mobile_search
 * Hypothesis: Removing the mobile search bar on product pages brings the product and the buy button higher up and keeps visitors focused on buying, which increases purchases.
 * Groups: Control | Test (parameter: variant = control | test)
 * Primary metric: purchase
 * Pages: product
 * Activate: manual (pdp-hide-mobile-search.js exposes only below 992px, where the bar exists)
 */

@media (max-width: 991.98px) {
  /* Hide the search bar under the logo row (mobile/tablet only; desktop search is a different element). */
  html.sx-pdp_hide_mobile_search--test .interly-mobile-search {
    display: none;
  }

  /* The child theme moves the mobile menu down 66px (calc(100% + 66px)) to clear the search bar.
     Without the bar that leaves a gap above the menu, so restore the parent theme's offset. */
  html.sx-pdp_hide_mobile_search--test [data-blockname="header"] .interly-mobilemenu {
    top: calc(100% + 1px);
  }
}
