body.ah-search-is-open {
  overflow: hidden;
}

.ah-search-overlay [hidden] {
  display: none !important;
}

.ah-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ah-search-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.ah-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  background: rgba(17, 24, 32, 0.66);
  border: 0;
  backdrop-filter: blur(3px);
}

.ah-search-overlay__panel {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(223, 229, 234, 0.9);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(5, 9, 13, 0.28);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}

.ah-search-overlay.is-open .ah-search-overlay__panel {
  transform: translateY(0);
}

.ah-search-overlay__header {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 44px;
  gap: 26px;
  align-items: center;
  min-height: 92px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #dfe5ea;
}

.ah-search-overlay__brand img {
  display: block;
  width: 168px;
  height: auto;
}

.ah-search-overlay__brand > span {
  color: #111518;
  font-size: 22px;
  font-weight: 900;
}

.ah-search-overlay__form {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  margin: 0;
  border-bottom: 2px solid #202930;
}

.ah-search-overlay__form > .material-icons {
  color: #f36d21;
  font-size: 25px;
}

.ah-search-overlay__form input {
  width: 100%;
  padding: 0;
  color: #111518;
  font-size: 20px;
  font-weight: 700;
  background: transparent;
  border: 0;
  outline: 0;
}

.ah-search-overlay__form input::placeholder {
  color: #8a959e;
  font-weight: 600;
}

.ah-search-overlay__clear,
.ah-search-overlay__close {
  display: grid;
  padding: 0;
  color: #52606a;
  background: transparent;
  border: 0;
  place-items: center;
}

.ah-search-overlay__clear {
  width: 36px;
  height: 36px;
}

.ah-search-overlay__close {
  width: 44px;
  height: 44px;
  border: 1px solid #dfe5ea;
  border-radius: 50%;
}

.ah-search-overlay__clear:hover,
.ah-search-overlay__clear:focus-visible,
.ah-search-overlay__close:hover,
.ah-search-overlay__close:focus-visible {
  color: #c94a12;
  background: #fff7f1;
}

.ah-search-overlay__body {
  min-height: 0;
  padding: 28px;
  overflow-y: auto;
  background: #f2f4f6;
}

.ah-search-overlay__results-head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ah-search-overlay__eyebrow {
  margin: 0 0 4px;
  color: #c94a12;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ah-search-overlay__results-head h2 {
  margin: 0;
  color: #111518;
  font-size: 24px;
  line-height: 1.2;
}

.ah-search-overlay__all {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 0;
  color: #202930;
  font-size: 13px;
  font-weight: 900;
  border-bottom: 2px solid transparent;
}

.ah-search-overlay__all:hover,
.ah-search-overlay__all:focus-visible {
  color: #c94a12;
  border-bottom-color: #f36d21;
}

.ah-search-overlay__all .material-icons {
  font-size: 18px;
}

.ah-search-overlay__products .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ah-search-overlay__status--loading {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ah-search-overlay__status--loading span {
  min-height: 430px;
  background: linear-gradient(100deg, #fff 20%, #f7f9fa 38%, #fff 56%);
  background-size: 220% 100%;
  border: 1px solid #dfe5ea;
  border-radius: 8px;
  animation: ah-search-loading 1.25s linear infinite;
}

.ah-search-overlay__empty,
.ah-search-overlay__error {
  max-width: 520px;
  padding: 64px 24px;
  margin: 30px auto;
  color: #65717b;
  text-align: center;
}

.ah-search-overlay__empty .material-icons,
.ah-search-overlay__error .material-icons {
  margin-bottom: 12px;
  color: #f36d21;
  font-size: 46px;
}

.ah-search-overlay__empty h3 {
  margin: 0 0 8px;
  color: #111518;
  font-size: 22px;
}

.ah-search-overlay__empty p,
.ah-search-overlay__error p {
  margin: 0;
}

.ah-search-overlay__sentinel {
  height: 1px;
}

@keyframes ah-search-loading {
  to { background-position-x: -220%; }
}

@media (max-width: 1279px) {
  .ah-search-overlay__products .products,
  .ah-search-overlay__status--loading {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .ah-search-overlay__panel {
    inset: 12px;
    width: calc(100% - 24px);
  }

  .ah-search-overlay__header {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
    padding: 14px 16px;
  }

  .ah-search-overlay__brand {
    display: none;
  }

  .ah-search-overlay__products .products,
  .ah-search-overlay__status--loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .ah-search-overlay__panel {
    inset: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
  }

  .ah-search-overlay__header {
    min-height: 72px;
  }

  .ah-search-overlay__form input {
    font-size: 16px;
  }

  .ah-search-overlay__body {
    padding: 20px 14px;
  }

  .ah-search-overlay__results-head {
    align-items: start;
  }

  .ah-search-overlay__results-head h2 {
    font-size: 20px;
  }

  .ah-search-overlay__all > span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ah-search-overlay__products .products,
  .ah-search-overlay__status--loading {
    grid-template-columns: minmax(0, 1fr);
  }
}
