/* Сторінка «Обране» та кнопки збереження на картках.
   Базові правила Webflow для цих класів лежали в CSS сторінок, яких /vibrane не підключає. */

.h3-new {
  color: #000;
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Inter accent', sans-serif;
  font-size: 1.80556em;
  line-height: 120%;
}

.h3-new.favorite,
.h3-new.comparison {
  font-size: 2.22222em;
}

.favorite-top-wrapper {
  grid-column-gap: 0.347222em;
  grid-row-gap: 0.347222em;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.38889em;
  display: flex;
}

.favorite-main-wrapper {
  margin-top: 3.125em;
}

html .favorite-main-wrapper .products__collection-list.catalog {
  grid-column-gap: 1.04167em;
  grid-row-gap: 1.04167em;
  flex-wrap: wrap;
  justify-content: flex-start;
  display: flex;
}

html .favorite-main-wrapper .product-card.catalog.new .leader-card-wrapper {
  height: auto;
  min-height: 100%;
}

html .favorite-main-wrapper .product-card.catalog.new .leader-card-bot-wrapper {
  margin-top: auto;
}

@media screen and (min-width: 992px) {
  html .favorite-main-wrapper .products__collection-list.catalog {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }

  html .favorite-main-wrapper .product-card.catalog.new {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  html .favorite-main-wrapper .products__collection-list.catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  html .favorite-main-wrapper .product-card.catalog.new {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  html .favorite-main-wrapper .products__collection-list.catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  html .favorite-main-wrapper .product-card.catalog.new {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

.favorite-empty-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 40px;
}

/* Оверлей обраного/порівняння на картці. `inset` фіксує кут незалежно від позиції блоку в розмітці. */
.saved_item_wrapper.absolute_wrapper {
  z-index: 12;
  grid-column-gap: 0.35em;
  align-items: center;
  padding-top: 1em;
  padding-left: 1em;
  display: flex;
  position: absolute;
  inset: 0 auto auto 0;
}

.leader-card-heart {
  cursor: pointer;
  border: 0;
  border-radius: 69.4444em;
  background-color: #fff;
  opacity: 1;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  padding: 0;
  /* Видиму кнопку пари вмикає інлайн-стиль у ProductCardLists. */
  display: none;
}

.leader-card-heart img {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.leader-card-heart:hover img {
  opacity: 1;
}

@media screen and (max-width: 991px) {
  .favorite-main-wrapper {
    margin-top: 2em;
  }
}

@media screen and (max-width: 767px) {
  .favorite-top-wrapper {
    margin-top: 1em;
  }

  .favorite-main-wrapper {
    margin-top: 1.6em;
  }

  .favorite-empty-wrapper {
    margin: 16px 0 32px;
  }

  .section.fs-new {
    margin-top: 1.5em;
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
  .leader-card-heart {
    width: 4.4em;
    height: 4.4em;
  }
}

@media screen and (max-width: 479px) {
  .h3-new {
    font-size: 5.33333em;
  }

  .h3-new.favorite,
  .h3-new.comparison {
    font-size: 6.4em;
  }

  .favorite-top-wrapper {
    margin-top: 4em;
  }

  .favorite-main-wrapper {
    margin-top: 8em;
  }

  .leader-card-heart {
    width: 8em;
    height: 8em;
  }
}
