.product-catalog {
  padding: 20px 0 100px;
  background: #fff;
}

.product-catalog__header {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}

.product-catalog__title {
  margin-bottom: 12px;
  color: #111;
  font-size: 30px;
  font-weight: 600;
}

.product-catalog__description {
  margin-bottom: 24px;
  color: #666;
  font-size: 14px;
}

.product-catalog__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.product-catalog__search input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 18px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product-catalog__search input:focus {
  border-color: #313363;
  box-shadow: 0 0 0 3px rgba(49, 51, 99, .1);
}

.product-catalog__search .fa {
  position: absolute;
  right: 18px;
  color: #313363;
  font-size: 17px;
  pointer-events: none;
}

.product-catalog__summary {
  min-height: 22px;
  margin: -30px 0 24px;
  color: #777;
  font-size: 13px;
  text-align: right;
}

.product-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 26px;
}

.product-card {
  min-width: 0;
  text-align: center;
}

.product-card__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.product-card__image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.035);
}

.product-card__variants {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin-top: 12px;
}

.product-card__variant {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 3px;
  transition: border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  text-decoration: none;
}

.product-card__variant:hover,
.product-card__variant.is-active {
  border-color: #313363;
  box-shadow: 0 0 0 1px #313363;
}

.product-card__variant img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__name {
  margin: 8px 0 0;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover {
  color: #313363;
  text-decoration: none;
}

.product-catalog__empty {
  display: none;
  padding: 60px 20px;
  color: #666;
  text-align: center;
}

.product-catalog__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}

.product-catalog__pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #d2d2d2;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.product-catalog__pagination button:hover,
.product-catalog__pagination button:focus,
.product-catalog__pagination button.is-active {
  border-color: #313363;
  background: #313363;
  color: #fff;
  outline: none;
}

.product-catalog__pagination button:disabled {
  border-color: #e4e4e4;
  background: #f7f7f7;
  color: #aaa;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .product-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .product-catalog {
    padding: 10px 0 70px;
  }

  .product-catalog__header {
    margin-bottom: 38px;
  }

  .product-catalog__title {
    font-size: 24px;
  }

  .product-catalog__summary {
    margin-top: -22px;
    text-align: left;
  }

  .product-catalog__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-card__image-wrap {
    max-height: 390px;
  }
}
