@import url("../../components/product-card/assets/styles.css");

.product-search-page {
  min-height: 100vh;
  padding: 8.5rem 0 5rem;
  background: #f7f8f8;
  color: #424242;
  font-family: SVN-Gilroy, Arial, sans-serif;
}

.product-search-page__container {
  width: min(87.5rem, calc(100% - 2rem));
  margin: 0 auto;
}

.product-search-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-search-page__heading {
  min-width: 0;
}

.product-search-page__eyebrow {
  margin-bottom: 0.5rem;
  color: #09b8b3;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 130%;
  text-transform: uppercase;
}

.product-search-page__title {
  max-width: 58rem;
  color: #1f2a2a;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 120%;
}

.product-search-page__count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(9, 184, 179, 0.18);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
  color: rgba(66, 66, 66, 0.72);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 140%;
}

.product-search-page__count strong {
  color: #ff6a3d;
  font-size: 1.125rem;
  font-weight: 800;
}

.product-search-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

.product-search-page .product-card {
  min-width: 0;
}

.product-search-page__empty {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid rgba(66, 66, 66, 0.08);
  border-radius: 0.875rem;
  background: #fff;
  color: rgba(66, 66, 66, 0.74);
  font-size: 1rem;
  font-weight: 600;
  line-height: 150%;
  text-align: center;
}

.product-search-page__pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.product-search-page__pagination ul.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: -0.25rem;
  padding: 0;
  list-style: none;
}

.product-search-page__pagination ul.page-numbers li {
  margin: 0.25rem;
}

.product-search-page__pagination a.page-numbers,
.product-search-page__pagination span.page-numbers {
  display: inline-flex;
  min-width: 2.625rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid rgba(66, 66, 66, 0.12);
  border-radius: 62.5rem;
  background: #fff;
  color: #424242;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0.375rem 1rem rgba(31, 42, 42, 0.06);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.product-search-page__pagination span.page-numbers.current,
.product-search-page__pagination a.page-numbers:hover {
  border-color: transparent;
  background: linear-gradient(92deg, #09b8b3 3.04%, #4dcbdf 99%);
  box-shadow: 0 0.5rem 1.25rem rgba(9, 184, 179, 0.22);
  color: #fff;
}

.product-search-page__pagination a.page-numbers:hover {
  transform: translateY(-0.0625rem);
}

.product-search-page__pagination a.page-numbers:focus-visible {
  outline: 0.125rem solid rgba(9, 184, 179, 0.35);
  outline-offset: 0.1875rem;
}

.product-search-page__pagination .dots {
  min-width: 1.75rem;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: rgba(66, 66, 66, 0.55);
}

.product-search-fallback-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(66, 66, 66, 0.08);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
}

.product-search-fallback-card__image-link {
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  background: #d0dbdb;
}

.product-search-fallback-card__image,
.product-search-fallback-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-search-fallback-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-search-fallback-card__title {
  margin-bottom: 0.625rem;
}

.product-search-fallback-card__title a {
  display: -webkit-box;
  overflow: hidden;
  color: #424242;
  font-size: 1rem;
  font-weight: 700;
  line-height: 130%;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-search-fallback-card__price {
  margin-bottom: 0.75rem;
  color: #ff6a3d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 130%;
}

.product-search-fallback-card__price del {
  margin-right: 0.375rem;
  color: #a4a4a4;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-search-fallback-card__price ins {
  color: #ff6a3d;
  text-decoration: none;
}

.product-search-fallback-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: rgba(66, 66, 66, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 150%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-search-fallback-card__link {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 62.5rem;
  background: linear-gradient(92deg, #09b8b3 3.04%, #4dcbdf 99%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

@media screen and (max-width: 1199.98px) {
  .product-search-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767.98px) {
  .product-search-page {
    padding: 5.75rem 0 3rem;
  }

  .product-search-page__container {
    width: 100%;
    padding: 0 1rem;
  }

  .product-search-page__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .product-search-page__eyebrow {
    font-size: 0.75rem;
  }

  .product-search-page__title {
    font-size: 1.5rem;
    line-height: 125%;
  }

  .product-search-page__count {
    width: 100%;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }

  .product-search-page__count strong {
    font-size: 1rem;
  }

  .product-search-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem 0.625rem;
  }

  .product-search-page__empty {
    min-height: 9rem;
    margin: 0;
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
  }

  .product-search-page__pagination {
    margin-top: 1.5rem;
  }

  .product-search-page__pagination ul.page-numbers {
    margin: -0.1875rem;
  }

  .product-search-page__pagination ul.page-numbers li {
    margin: 0.1875rem;
  }

  .product-search-page__pagination a.page-numbers,
  .product-search-page__pagination span.page-numbers {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }

  .product-search-page__pagination .dots {
    min-width: 1.25rem;
    padding: 0;
  }

  .product-search-fallback-card {
    border-radius: 0.75rem;
  }

  .product-search-fallback-card__body {
    padding: 0.75rem;
  }

  .product-search-fallback-card__title a {
    font-size: 0.75rem;
  }

  .product-search-fallback-card__price {
    font-size: 0.8125rem;
  }

  .product-search-fallback-card__excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .product-search-fallback-card__link {
    height: 2.25rem;
    font-size: 0.75rem;
  }
}
