.search-drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: none;
}

.search-drawer.is-open {
  display: block;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .54);
}

.search-panel {
  position: absolute;
  left: 50%;
  top: 92px;
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translate(-50%, -12px);
  opacity: 0;
  overflow: hidden;
  background: #fbfaf7;
  color: #111;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .32);
  transition: opacity .2s ease, transform .2s ease;
}

.search-drawer.is-open .search-panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

.search-head {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #e9e4dc;
  background: #fff;
}

.search-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.search-title-row h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.search-close {
  width: 42px;
  height: 42px;
  border: 1px solid #e9e4dc;
  border-radius: 999px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #e9e4dc;
  outline: none;
  padding: 0 18px;
  background: #fbfaf7;
  color: #111;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.search-input-wrap input:focus {
  border-color: #f43fbd;
  box-shadow: 0 0 0 4px rgba(244, 63, 189, .13);
}

.search-results {
  overflow: auto;
  padding: 14px;
}

.search-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #696b70;
  border: 1px dashed #d8d1c7;
  background: rgba(255,255,255,.72);
  padding: 24px;
}

.search-grid {
  display: grid;
  gap: 10px;
}

.search-result {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e9e4dc;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.search-result:hover,
.search-result:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17, 17, 17, .1);
  outline: none;
}

.search-result img {
  width: 76px;
  height: 88px;
  object-fit: cover;
  background: #f0ece6;
}

.search-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.search-info strong {
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.search-info span {
  color: #696b70;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-price {
  color: #111;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .search-panel {
    top: 0;
    width: 100%;
    min-height: 100%;
    max-height: 100%;
  }

  .search-result {
    grid-template-columns: 68px 1fr;
  }

  .search-price {
    grid-column: 2;
  }
}
