/* Shared storefront fixes; keep the Payload admin outside this namespace. */
.fcj .topBanner .fcj-banner-picture { display: block; }
.fcj .topBanner .fcj-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}

/* The source header switches at 950px; cover the entire tablet range. */
@media (max-width: 991px) {
  .fcj .web_head { padding: 0; height: auto; }
  .fcj .web_head .top_bar { padding: 16px 20px; }
  .fcj .web_head .top_bar .layout {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    height: auto;
    padding: 0;
  }
  .fcj .web_head .logo { float: none; width: auto; flex: 0 1 auto; margin: 0; }
  .fcj .web_head .logo img { display: block; max-width: 180px; height: 48px; width: auto; }
  .fcj .web_head .header-right { display: none; }
  .fcj .fcj-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: transparent;
    color: var(--headBackgroundText, #444);
    font-size: 24px;
    z-index: 20;
  }
  .fcj .web_head .nav_wrap { display: none; height: auto; }
  .fcj .web_head .nav_wrap.fcj-open {
    display: block !important;
    position: relative;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
  }
  .fcj .web_head .nav_wrap .layout { width: 100%; padding: 0 20px; }
  .fcj .nav_wrap .head_nav { display: block !important; float: none; width: 100%; }
  .fcj .nav_wrap .head_nav > li { display: block; width: 100%; margin: 0; }
  .fcj .nav_wrap .head_nav > li > a { display: block; padding: 12px 0; line-height: 24px; }
  .fcj .nav_wrap .head_nav li ul {
    display: block !important;
    position: static !important;
    width: 100%;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }
  .fcj .nav_wrap .head_nav li ul li { width: 100%; padding: 0; }
  .fcj .nav_wrap .head_nav li ul a { display: block; padding: 10px 16px; line-height: 24px; }
  .fcj .nav_wrap .searchForm { display: block; padding: 12px 0; }
  .fcj .nav_wrap .searchForm form { display: flex; width: 100%; }
  .fcj .nav_wrap .searchForm input:not([type="hidden"]) { width: auto; min-width: 0; height: 44px; flex: 1; }
  .fcj .nav_wrap .searchForm button {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    height: 44px;
    padding: 0;
    line-height: 1;
  }
  .fcj .nav_wrap .searchForm button .iconfont { position: static; line-height: 1; }
}

@media (max-width: 767px) {
  .fcj .topBanner .fcj-banner-image { height: clamp(180px, 48vw, 260px); max-height: none; }
  .fcj .topBanner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgb(0 0 0 / 30%), transparent);
    pointer-events: none;
  }
  .fcj .topBanner .topBannerText { z-index: 1; padding: 0 20px; }
  .fcj .topBanner .topBannerTitle {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 5.6vw, 28px);
    line-height: 1.35;
    text-shadow: 0 1px 5px rgb(0 0 0 / 65%);
  }
  .fcj .topBanner .topBannerSubtitle { color: #fff; text-shadow: 0 1px 5px rgb(0 0 0 / 65%); }
  .fcj .fcj-search form { flex-wrap: wrap; }
  .fcj .fcj-search input { min-width: 0; width: 100%; }
  .fcj .fcj-search-grid > a { min-width: 0; overflow-wrap: anywhere; }
}
