  /* 5th Axis — Search Overlay (Algolia) */

  .axis5th-search-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
  }

  .axis5th-search-trigger--icon {
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
  }

  .axis5th-search-trigger--box {
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    padding: 0.55rem 0.9rem;
    width: 260px;
    max-width: 100%;
    text-align: left;
  }

  .axis5th-search-trigger__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
  }

  .axis5th-search-trigger--box .axis5th-search-trigger__icon {
    opacity: 0.7;
  }

  .axis5th-search-trigger__placeholder {
    flex: 1;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .axis5th-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem);
    padding-top: 0;
    /* The script keeps `top` at the bottom of the header while the panel is open. */
    top: 164px;
    opacity: 1;
    overscroll-behavior: contain;
    transition: opacity .3s;
  }
  .axis5th-search-overlay.is-open {
    display: block;
  }

  /* Lock the page's scroll while the panel is open. This must be on <html> (the
     element that scrolls), not <body>: overflow on <body> turns it into the
     scroll container for the sticky header, which then stops sticking and
     scrolls away while the panel is open. */
  html.axis5th-search-open {
    overflow: hidden !important;
    scrollbar-gutter: stable;
  }

  .axis5th-search-overlay__panel {
    position: relative;
    max-width: 1360px;
    margin: 0 auto;
  }

  .axis5th-search-overlay__close {
    position: absolute;
    top: 6px;
    right: 0;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 44px;
    height: 48px;
    display: flex;
    justify-content: center;
    padding: 7px 10px 10px 10px;
    background: #dd2828;
    border: 1px solid #dd2828;
    color: #ffffff;
  }

  .axis5th-search-overlay__close:hover {
    color: #fff;
    background-color: var(--e-global-color-primary);
  }

  .axis5th-search-overlay__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--e-global-color-primary);
    box-shadow: 0 0 0 3px rgba(196, 25, 31, 0.12), 0 8px 28px rgba(196, 25, 31, 0.18);
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    margin-top: 1rem;
    width: 96%;
  }

  .axis5th-search-overlay__field-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #9a9a9a;
  }

  .axis5th-search-overlay__input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1rem;
    color: #1a1a1a;
    min-width: 0;
    padding: 0.65rem 0.5rem;
  }

  .axis5th-search-overlay__input::placeholder {
    color: #9a9a9a;
  }

  .axis5th-search-overlay__clear {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: #9a9a9a;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.35rem;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: static !important;
    right: auto !important;
  }

  .axis5th-search-overlay__clear.is-visible {
    display: inline-flex;
  }

  .axis5th-search-overlay__clear:hover {
    color: #fff;
    background-color: var(--e-global-color-primary) !important;
  }

  .axis5th-search-overlay__submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--e-global-color-primary);
    color: #ffffff;
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .axis5th-search-overlay__submit:hover {
    opacity: 0.9;
    background: var(--e-global-color-primary);
  }

  /* ── Suggested searches — always-visible inline row ─────────────────── */

  .axis5th-search-overlay__suggested {
    margin-top: 1.5rem;
  }

  .axis5th-search-overlay__suggested-label {
    font-family: var(--e-global-typography-57475c0-font-family), sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--e-global-color-primary);
    margin: 0 0 0.75rem;
  }

  .axis5th-search-overlay__suggested-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Filters row */
  .axis5th-search-overlay__filters {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .axis5th-search-overlay__filters.is-visible {
    display: flex;
  }

  .axis5th-search-overlay__suggested-item,
    .axis5th-search-overlay__filter-chip {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .axis5th-search-overlay__suggested-item:hover,
    .axis5th-search-overlay__filter-chip:hover {
    border-color: var(--e-global-color-primary) !important;
    color: #fff !important;
    background-color: var(--e-global-color-primary) !important;
  }

  .axis5th-search-overlay__filter-chip.is-active {
    background: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    color: #ffffff;
  }

  .axis5th-search-overlay__status {
    display: none;
    color: #6c6c6c;
    font-size: 0.875rem;
    margin-top: 2rem;
  }

  .axis5th-search-overlay__status.is-visible {
    display: block;
  }

  .axis5th-search-overlay__results {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ececec;
  }

  .axis5th-search-overlay__results.is-visible {
    display: grid;
  }

  .axis5th-search-overlay__column {
    padding: 0 1.5rem;
    border-right: 1px solid #ececec;
    min-width: 0;
  }

  .axis5th-search-overlay__column:first-child {
    padding-left: 0;
  }

  .axis5th-search-overlay__column:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .axis5th-search-overlay__column-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .axis5th-search-overlay__column-title {
    font-family: var(--e-global-typography-57475c0-font-family), sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--e-global-color-primary);
    margin: 0;
  }

  .axis5th-search-overlay__column-viewall {
    font-size: 14px;
    font-weight: 500;
    color: #9a9a9a;
    text-decoration: none;
    white-space: nowrap;
  }

  .axis5th-search-overlay__column-viewall:hover {
    color: var(--e-global-color-primary);
  }

  .axis5th-search-overlay__column-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .axis5th-search-overlay__column.is-empty .axis5th-search-overlay__column-list,
  .axis5th-search-overlay__column.is-empty .axis5th-search-overlay__column-header {
    display: none;
  }

  .axis5th-search-overlay__item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.55rem 0.65rem;
    border-bottom: 0;
    border-radius: 2px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .axis5th-search-overlay__column-list li:last-child .axis5th-search-overlay__item-link {
    border-bottom: 0;
    padding-bottom: 0.55rem;
  }

  .axis5th-search-overlay__item-link:hover {
    background: rgba(196, 25, 31, 0.08);
    color: #1a1a1a;
  }

  .axis5th-search-overlay__column[data-axis5th-column="products"] .axis5th-search-overlay__item-link:hover {
    background: rgba(196, 25, 31, 0.1);
  }

  .axis5th-search-overlay__item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .axis5th-search-overlay__item-sku {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #6c6c6c;
  }

  .axis5th-search-overlay__item-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .axis5th-search-overlay__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .axis5th-search-overlay__column[data-axis5th-column="categories"] .axis5th-search-overlay__item-thumb,
  .axis5th-search-overlay__column[data-axis5th-column="pages"] .axis5th-search-overlay__item-thumb,
  .axis5th-search-overlay__column[data-axis5th-column="blog"] .axis5th-search-overlay__item-thumb {
    display: none;
  }

  @media (max-width: 900px) {
    .axis5th-search-overlay__results {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      row-gap: 2rem;
    }

    .axis5th-search-overlay__column {
      padding: 0 1rem;
    }

    .axis5th-search-overlay__column:nth-child(2n) {
      border-right: 0;
      padding-right: 0;
    }

    .axis5th-search-overlay__column:nth-child(2n + 1) {
      padding-left: 0;
    }
  }

  @media (max-width: 560px) {
    .axis5th-search-overlay__results {
      grid-template-columns: 1fr;
    }

    .axis5th-search-overlay__column {
      padding: 0;
      border-right: 0;
      border-bottom: 1px solid #ececec;
      padding-bottom: 1.5rem;
      margin-bottom: 0.5rem;
    }

    .axis5th-search-overlay__column:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .axis5th-search-overlay__field {
      flex-wrap: nowrap;
    }

    .axis5th-search-overlay__submit {
      width: 44px;
      height: 44px;
    }
  }