/**
 * Сторінка категорії: desktop-дельта з wf/css/category.css + tablet/mobile з wf-media.css.
 * Підключається ПІСЛЯ layout-base, щоб em-розміри Webflow не перебивались Next-патчами.
 * UX фільтрів/сортування — у catalog-ux.css.
 */

/* —— Desktop (category.css) —— */
html .section.catalogue {
  z-index: 0;
  margin-top: 3em;
  position: relative;
}

html .u-wrapper:not(.catalog) > .section.catalogue > .w-layout-blockcontainer.container-new.w-container {
  padding-bottom: 3em;
}

html .products__list-wrapper {
  margin-top: 3.125em;
}

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

html .product-card {
  flex: none;
}

html .product-card.catalog.new {
  border-radius: 0.347222em;
  min-width: 18em;
  max-width: 18.1em;
  position: relative;
}

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

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

/* ПК: 5 карток у ряд (як grid-template-columns у старому category.css) */
@media screen and (min-width: 992px) {
  html .section.catalogue .products__collection-list.catalog {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }

  html .section.catalogue .product-card.catalog.new {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* Планшет 768–991: 4 картки на всю ширину контейнера */
@media screen and (max-width: 991px) and (min-width: 768px) {
  html .section.catalogue .products__collection-list.catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  html .section.catalogue .product-card.catalog.new {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

html .product-card.catalog.new:hover {
  box-shadow: 0 0 5px #00000021;
}

html .accommodation__smallwrapper.new {
  grid-column-gap: 0.69em;
  background-color: #f6f6f6;
  border-radius: 0.694444em;
  padding: 0.69em 1.39em;
}

html .accommodation__smallwrapper.red.new,
html .accommodation__smallwrapper.w--current {
  background-color: var(--red, #c61717);
  color: #fff;
}

html .accommodation__smallwrapper.red .small-text,
html .accommodation__smallwrapper.w--current .small-text {
  color: #fff;
}

html .accommodation__smallwrapper.red img,
html .accommodation__smallwrapper.w--current img {
  filter: brightness(0) invert(1);
}

html .tad__icon-wrapper.new {
  width: 1.74em;
  max-width: 1.74em;
  height: 1.74em;
  max-height: 1.74em;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html .tad__icon-wrapper img,
html .tad__icon-wrapper .leader-nav-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html .catalog__show-more-button,
html .catalog__show-more-gradient {
  display: none;
}

html .catalog__main-wrapper-copy {
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 0%;
  display: flex;
}

html .catalog__main-wrapper-copy.new {
  margin-top: 2.77778em;
}

html .catalog_top-container {
  flex-direction: column;
  height: auto;
  display: flex;
}

html .catalog-heading-wrapper {
  grid-column-gap: 1.38889em;
  grid-row-gap: 1.38889em;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

html .h3.catalog.new {
  margin-bottom: 0;
  font-size: 2.22222em;
  display: flex;
  align-items: center;
}

html .catalog__items-wrapper.new {
  margin-top: 4.86111em;
}

html .catalog__top-wrapper {
  justify-content: space-between;
  align-items: center;
  display: flex;
  overflow: visible;
}

html .catalogue-sort-form-wrapper {
  margin-bottom: 0;
}

html .catalogue-sort-dropdown-toggle {
  grid-column-gap: 0.694444em;
  grid-row-gap: 0.694444em;
  border: 0.0694445em solid #0000001a;
  border-radius: 69.4444em;
  justify-content: space-between;
  align-items: center;
  padding: 0.694444em 1.38889em;
  display: flex;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

html .dropdown-icon {
  justify-content: center;
  align-items: center;
  width: 1.38889em;
  height: 1.38889em;
  margin: 0;
  display: flex;
}

html .s-text-dropdown.dropdowm {
  color: #0006;
  font-weight: 400;
}

html .s-text-dropdown.drop-down-list {
  color: #00000080;
  margin-bottom: 0;
  font-weight: 400;
  text-decoration: none;
}

html .item_sort {
  width: 100%;
  padding: 0.3em 1.04167em;
}

html .learn-more__accommodation-wrapper.main.new.items {
  grid-column-gap: 1.39em;
  grid-row-gap: 1.39em;
  flex-wrap: wrap;
  align-items: center;
  display: flex;
  margin: 0;
  line-height: 0;
}

html .collection-item.new {
  display: flex;
}

html .s-text.catalog-top {
  color: inherit;
}

/* —— Tablet ≤991 —— */
@media screen and (max-width: 991px) {
  html .tad__icon-wrapper.new {
    justify-content: center;
    align-items: center;
    display: flex;
  }

  html .catalog__items-wrapper {
    margin-top: 40px;
  }

  html .products__collection-list {
    grid-template-columns: 1fr 1fr;
  }

  html .learn-more__accommodation-wrapper {
    margin-top: 20px;
  }

  html .learn-more__accommodation-wrapper.main {
    grid-column-gap: 15px;
    grid-row-gap: 15px;
  }

  html .catalog__show-more-button,
  html .catalog__show-more-gradient {
    display: none;
  }
}

/* —— Mobile ≤767 —— */
@media screen and (max-width: 767px) {
  html .h3.catalog {
    margin-bottom: 20px;
    font-size: 28px;
  }

  html .catalog__items-wrapper {
    margin-top: 40px;
  }

  html .products__collection-list,
  html .products__collection-list.catalog {
    grid-template-columns: 1fr 1fr;
  }

  html .section.catalogue .products__collection-list.catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
  }

  html .section.catalogue .product-card.catalog.new {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  html .accommodation__smallwrapper {
    height: 100%;
  }

  html .learn-more__accommodation-wrapper.main {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    display: grid;
  }

  html .collection-list-wrapper.new.scroll-wrap {
    overflow: visible;
  }

  html .catalog__main-wrapper-copy {
    margin-top: 30px;
    margin-bottom: 0;
  }
}

/* —— Phone ≤479 —— */
@media screen and (max-width: 479px) {
  html .section.catalogue {
    overflow: visible;
  }

  html .h3.catalog {
    margin-bottom: 30px;
  }

  html .h3.catalog.new {
    font-size: 6.4em;
    line-height: 120%;
  }

  html .tad__icon-wrapper.new {
    width: 7em;
    max-width: none;
    height: 100%;
    max-height: none;
  }

  html .catalog__items-wrapper {
    margin-top: 40px;
  }

  html .products__list-wrapper {
    margin-top: 8em;
  }

  html .products__collection-list,
  html .products__collection-list.catalog {
    grid-column-gap: 1.33333em;
    grid-row-gap: 1.33333em;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: 1fr;
    display: grid;
  }

  html .product-card.catalog.new {
    border-radius: 2.66667em;
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  html .small-text.accommodation.new,
  html .small-text.accommodation-new.new {
    font-size: 4.8em;
  }

  html .accommodation__smallwrapper.red.new {
    padding-top: 3.2em;
    padding-bottom: 3.2em;
    font-size: 1em;
  }

  html .accommodation__smallwrapper.new {
    grid-column-gap: 2.66667em;
    border-radius: 2.66667em;
    padding: 3.2em 5.33333em;
    width: 100%;
  }

  html .learn-more__accommodation-wrapper.main {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    display: flex;
  }

  html .learn-more__accommodation-wrapper.main.new {
    grid-column-gap: 2em;
    grid-row-gap: 2em;
    max-height: 330px;
    overflow: auto;
  }

  html .learn-more__accommodation-wrapper.main.new.items {
    max-height: 330px;
    padding-right: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  html .catalog__show-more-gradient,
  html .catalog__show-more-gradient.new,
  html .catalog__show-more-gradient.new.fade {
    background-image: linear-gradient(#fff0, #fff);
    width: 100%;
    height: 20em;
    display: block;
    position: absolute;
    inset: auto 0% 0%;
    pointer-events: none;
  }

  html .collection-list-wrapper.new.scroll-wrap {
    overflow: auto;
  }

  html .catalog__main-wrapper-copy {
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
  }

  html .catalog__main-wrapper-copy.new {
    margin-top: 6.66667em;
    margin-bottom: 0;
  }

  html .s-text.catalog-top {
    font-size: 3.5em;
  }

  html .catalogue-main-wrapper {
    height: 100%;
  }

  html .catalog-heading-wrapper {
    grid-column-gap: 5.33333em;
    grid-row-gap: 5.33333em;
    justify-content: flex-start;
    align-items: flex-start;
  }

  html .catalog__top-wrapper {
    grid-column-gap: 6.66667em;
    grid-row-gap: 6.66667em;
    flex-flow: column;
    justify-content: space-between;
    align-items: stretch;
  }

  html .catalogue-sort-dropdown-wrapper {
    width: 100%;
  }

  html .catalogue-sort-dropdown-toggle {
    padding: 2.66667em 5.33333em;
  }

  html .dropdown-icon {
    width: 5.33333em;
    height: 5.33333em;
  }

  html .text-hide-suplay,
  html .sentinel {
    display: none;
  }
}
