@keyframes animation-predictive-search-fade-in {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.predictive-search-section {
  opacity: 0;
  transform: translateY(15px);
  animation: animation-predictive-search-fade-in 500ms ease forwards;
}

.predictive-search__header {
  --header-height: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(221, 221, 221, 1);
  padding-bottom: 12px;
}

.predictive-search__title {
  display: flex;
  align-items: center;
  height: var(--header-height);
  font-size: var(--body4-font-size);
  color: rgba(var(--color-text), 1);
  overflow: hidden;
}

.predictive-search__count {
  display: flex;
  align-items: center;
  height: var(--header-height);
  overflow: hidden;
}

.predictive-search__results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
  column-gap: 20px;
}

@media (min-width: 980px) and (max-width: 1200px) {
  .predictive-search__results {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 600px) and (max-width: 980px) {
  .predictive-search__results {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .predictive-search__results {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
}

.predictive-search__result-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.predictive-search__product {
  display: flex;
  gap: 10px;
}

@media (max-width: 959px) {
  .predictive-search__product {
    flex-direction: row;
    gap: 16px;
  }
}

.predictive-search__product-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--body3-font-size);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(var(--color-text), 1);
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  white-space: normal;
  -webkit-box-orient: vertical;
}

@media (max-width: 959px) {
  .predictive-search__product-title {
    font-size: var(--body5-font-size);
    line-height: 1.3125;
  }
}

.predictive-search__product-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.predictive-search__product-image-wrap {
  position: relative;
  display: flex;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
}

.predictive-search__product-image {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 959px) {
  .predictive-search__product-image {
    width: 80px;
    height: 80px;
  }
}

.predictive-search__product-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--body3-font-size);
  font-weight: 500;
  line-height: 1.5909;
  color: rgba(var(--color-sale), 1);
  word-break: break-all;
  white-space: normal;
}

@media (max-width: 959px) {
  .predictive-search__product-price {
    font-size: var(--body2-font-size);
    line-height: 1.6;
  }
}

.predictive-search__product-save-price {
  text-decoration: line-through;
  font-size: var(--body5-font-size);
  font-weight: 500;
  line-height: 1.6;
  word-break: break-all;
  white-space: normal;
  opacity: 0.5;
}

.predictive-search__footer {
  display: flex;
  align-items: center;
  margin-block-start: 4px;
  padding: 20px 0;
}

.predictive-search__more {
  gap: 8px;
  text-decoration: none !important;
}
