body.search-overlay-open {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  z-index: 350;
  inset: 0;
  visibility: hidden;
  overflow-y: auto;
  padding: 65px 20px 55px;
  background: #f5f5f4;
  border-radius: 0 0 18px 18px;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  transition: visibility 0s linear 240ms, opacity 240ms ease, transform 240ms ease;
}

.search-overlay.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.search-overlay__container {
  position: relative;
  width: 100%;
  max-width: 1384px;
  margin: 0 auto;
}

.search-overlay__form {
  display: flex;
  width: min(100% - 140px, 640px);
  height: 48px;
  margin: 0 auto 47px;
  border-bottom: 1px solid #5a5854;
}

.search-overlay__form input {
  flex: 1;
  min-width: 0;
  padding: 0;
  color: #1D1D1B;
  background: transparent;
  border: 0;
  outline: 0;
  font: 400 16px Manrope, Arial, sans-serif;
  text-transform: uppercase;
}

.search-overlay__form input::placeholder {
  color: #999;
}

.search-overlay__form button {
  flex: 0 0 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.search-overlay__form button img {
  width: 22px;
  height: 22px;
}

.search-overlay__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.search-overlay__close span::before,
.search-overlay__close span::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 11px;
  width: 20px;
  height: 1.5px;
  background: #1D1D1B;
}

.search-overlay__close span::before {
  transform: rotate(45deg);
}

.search-overlay__close span::after {
  transform: rotate(-45deg);
}

.search-overlay h2 {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

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

.search-product {
  display: flex;
  min-width: 0;
  min-height: 306px;
  overflow: hidden;
  background: #fff;
  border-radius: 13px;
  flex-direction: column;
  transition: box-shadow 180ms ease;
  padding: 16px;
}

.search-product__image {
  display: grid;
  height: 275px;
  margin-bottom: 16px;
  place-items: center;
}

.search-product[hidden] {
  display: none;
}

.search-product__image img {
  display: block;
  width: 100%;
  max-width: 275px;
  height: 170px;
  object-fit: contain;
}

.search-product__body {
  display: flex;
  min-height: 110px;
  padding: 0 18px 18px;
  flex-direction: column;
}

.search-product__body small {
  color: #5A5854;
  font-size: 12px;
  font-weight: 300;
}

.search-product__body strong {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.search-product__body b {
  margin-top: auto;
  padding-top: 4px;
  color: #1D1D1B;
  font-size: 14px;
  font-weight: 500;
}

.search-overlay__empty {
  margin: 60px 0;
  color: #777;
  text-align: center;
}

@media (hover: hover) {
  .search-product:hover {
    box-shadow: 0 8px 24px rgba(29, 29, 27, 0.09);
  }
  .search-overlay__close:hover {
    background: #e9e9e7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .search-overlay {
    transition: none;
  }
}