/* Бічна панель пошуку (як кошик) + live-результати */
.search_drawer {
  box-sizing: border-box;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: fixed;
  transform: translateX(100%);
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  opacity: 0;
  background-color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.search_drawer.search_drawer_active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.search_drawer .search_menu_title,
.search_drawer .search_drawer__head {
  flex-shrink: 0;
  padding: 25px;
  margin-bottom: 0;
  border-bottom: 1.5px solid #242321;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search_drawer_close {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.search_drawer_close img {
  display: block;
  width: 24px;
  height: auto;
}

.search_drawer__form {
  flex-shrink: 0;
  padding: 20px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search_drawer__field {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.search_drawer__field svg {
  flex-shrink: 0;
  width: 22px;
  height: auto;
  margin-bottom: 10px;
  opacity: 0.85;
}

.search_drawer__input {
  outline: none;
  border: none;
  width: 100%;
  border-bottom: 1px solid #2b2a27;
  padding-bottom: 10px;
  font-size: inherit;
  font-family: inherit;
}

.search_drawer__submit {
  width: 100%;
  margin: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.search_drawer__results-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
}

.search_drawer__results {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.search_drawer__hit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 8px 16px 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.search_drawer__hit:hover,
.search_drawer__hit:focus-visible {
  background-color: rgba(255, 209, 10, 0.08);
}

.search_drawer__hit-img-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #f4f4f2;
  overflow: hidden;
}

.search_drawer__hit-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.search_drawer__hit-body {
  flex: 1;
  min-width: 0;
}

.search_drawer__hit-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search_drawer__hit-price {
  font-size: 13px;
  opacity: 0.85;
}

.search_drawer__hint,
.search_drawer__empty {
  padding: 16px 24px;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.65;
}

.search_drawer__all {
  flex-shrink: 0;
  margin: 12px 24px 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  opacity: 0.9;
}

.search_drawer__all:hover {
  opacity: 1;
}

.search_drawer__all--hidden {
  display: none;
}

@media (max-width: 480px) {
  .search_drawer {
    width: 100%;
  }
}
