

/* Start:/local/templates/ugla-shop/components/bitrix/news.detail/collections_2/style.css?17842037735842*/
main > .block--group:first-child {
  margin-top: 120px !important;
}
.block--collection ~ .block--products {
  /* margin-top: -50px; */
}
.collection {
  display: flex;
  align-items: stretch;
  column-gap: 140px;

  .collection__gallery {
    width: 690px;
    min-width: 690px;
    display: flex;
    align-items: stretch;
    column-gap: 20px;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .collection__carousel {
      width: 98px;
      min-width: 98px;
      height: 420px;
      overflow: hidden;

      .swiper {
        max-height: 100%;
      }

      .swiper-slide {
        height: 80px;
        min-height: 80px;
        max-height: 80px;
        cursor: pointer;
      }

      .collection__carousel-item {
        width: 100%;
        height: 80px;
        overflow: hidden;

        img {
          width: 98px;
          height: 80px;
          scale: 1;
          transition: .3s;
        }

        &:hover img {
          scale: 1.05;
        }
      }
    }

    .collection__slider {
      width: 572px;
      min-width: 572px;
      height: 420px;
      
      .collection__slider-item {
        overflow: hidden;
        cursor: pointer;

        img {
          width: 572px;
          height: 420px;
        }
      }
    }
  }

  .collection__description {
    display: flex;
    flex-direction: column;
    row-gap: 40px;

    .collection__logo {
      margin-top: auto;

      .icon {
        width: 38px;
        height: 40px;
      }
    }
  }
}

.collection__carousel-item, .collection__slider-item {
  position: relative;
  z-index: 0;
}
.collection__carousel-item .icon, .collection__slider-item .icon {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection__carousel-item .icon svg {
  width: 40px;
  height: 40px;
}
.collection__slider-item .icon svg {
  width: 100px;
  height: 100px;
}


/* swiper navigation */
.collection__carousel {
    position: relative;
}

.collection__carousel .swiper-button-next,
.collection__carousel .swiper-button-prev {
    z-index: 10;
    height: 30px;
    left: 0;
    right: 0;
    margin: 0;
    color: #fff;
    width: auto;
	user-select: none;
}

.collection__carousel .swiper-button-prev {
    top: 0;
    background: linear-gradient(180deg, black, transparent);
}

.collection__carousel .swiper-button-prev:after {
    transform: rotate(90deg);
}

.collection__carousel .swiper-button-next:after,
.collection__carousel .swiper-button-prev:after {
    font-size: 20px;
}

.collection__carousel .swiper-button-next {
    bottom: 0;
    background: linear-gradient(0deg, black, transparent);
    top: auto;
}

.collection__carousel .swiper-button-next:after {
    transform: rotate(90deg);
}

.collection__slider .swiper-button-prev,
.collection__slider .swiper-button-next {
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
	user-select: none;
}

@media screen and (max-width: 1100px) {
  .collection {
    column-gap: 20px;

    .collection__gallery {
      width: 582px;
      min-width: 582px;

      .collection__carousel {
        width: 82px;
        min-width: 82px;
        height: 352px;

        .swiper-slide {
          height: 67px;
          min-height: 67px;
          max-height: 67px;
          cursor: pointer;
        }
  
        .collection__carousel-item {
          width: 100%;
          height: 67px;
          overflow: hidden;
  
          img {
            width: 82px;
            height: 67px;
          }
        }
      }

      .collection__slider {
        width: 480px;
        min-width: 480px;
        height: 352px;
        
        .collection__slider-item {
          img {
            width: 480px;
            height: 352px;
          }
        }
      }
    }

    .collection__logo {
      display: none;
    }
  }
}

@media screen and (max-width: 768px) {
  .collection {
    flex-direction: column;
    row-gap: 40px;

    .collection__gallery {
      flex-direction: column;
      row-gap: 4px;
      width: 100%;
      min-width: 100%;

      .collection__carousel {
        width: 100%;
        min-width: 100%;
        height: auto;

        .swiper-slide {
          height: auto;
          min-height: auto;
          max-height: 100%;
          cursor: pointer;
        }
  
        .collection__carousel-item {
          width: auto;
          height: auto;
          overflow: hidden;
  
          img {
            width: auto;
            height: auto;
          }
        }
      }

      .collection__slider {
        width: 100%;
        min-width: 100%;
        height: auto;
        order: -1;
        
        .collection__slider-item {
          img {
            width: 100%;
            height: auto;
          }
        }
      }
    }
  }

  .block--products {
    margin-top: -50px;
  }


	/* swiper navigation */
    .collection__carousel .swiper-button-next,
    .collection__carousel .swiper-button-prev {
        width: 30px;
        height: auto;
        top: 0;
        bottom: 0;
        left: auto;
        right: auto;
    }

    .collection__carousel .swiper-button-prev {
        left: 0;
        background: linear-gradient(90deg, black, transparent);
    }
    
    .collection__carousel .swiper-button-prev:after {
        transform: rotate(0deg);
    }
    
    .collection__carousel .swiper-button-next:after,
    .collection__carousel .swiper-button-prev:after {
        font-size: 20px;
    }
    
    .collection__carousel .swiper-button-next {
        right: 0;
        background: linear-gradient(270deg, black, transparent);
    }

    .collection__carousel .swiper-button-next:after {
        transform: rotate(0deg);
    }
}
/* End */


/* Start:/local/templates/ugla-shop/components/bitrix/catalog.section.list/list/style.css?17842037599271*/
.filter-sort-mobile {
  display: none;
}
.catalog__sidebar .filter-mobile {
  display: none;
}
.catalog__sidebar .sort-mobile {
  display: none;
}

@media screen and (max-width: 1024px) {
  .block--sections {
    > .container {
      display: flex;
      flex-direction: column;
      row-gap: 0;

      .block__title {
        margin-bottom: 8px !important;
      }

      .filter-sort-mobile {
        order: -1;
      }
    }
  }

  .block--catalog {
    .filter-sort-mobile {
      opacity: 0;
      visibility: hidden;

      position: fixed;
      z-index: -1;
      left: 0;
      top: 0;
      width: 100%;
      padding-top: 20px;
      padding-bottom: 10px;
      padding-left: 15px;
      padding-right: 15px;
      transition: .3s;
      width: var(--container-width);
      max-width: 100%;

      &.filter-sort-mobile--show {
        opacity: 1;
        visibility: visible;
        top: 60px;
        z-index: 99;
        background-color: #fff;
      }
    }
  }

  .sections {
    display: none;
  }
  .catalog__sidebar .filter-mobile {
    display: flex;
    width: 100%;
    padding: 24px;
    background-color: #fff;
    justify-content: space-between;
  }
  .catalog__sidebar .filter-mobile .icon {
    order: -1;
  }
  .catalog__sidebar .filter-mobile::after {
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/local/templates/ugla-shop/assets/images/icons/close.svg');
  }
  .catalog__sidebar .sort-mobile {
    display: flex;
    padding: 24px;
    margin-bottom: 24px;
    margin-left: -24px;
    margin-right: -24px;
    background-color: #fff;
    max-width: calc(100% + 48px);
    justify-content: space-between;
  }
  .catalog__sidebar .sort-mobile .icon {
    order: -1;
  }
  .catalog__sidebar .sort-mobile::after {
    content: '';
    width: 24px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('/local/templates/ugla-shop/assets/images/icons/close.svg');
  }

  .filter-sort-mobile {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 0 30px;
      /* margin-top: -24px; */
      /* margin-bottom: 24px; */


    .button {
      column-gap: 4px;
      font-size: 14px;

      .icon {
        width: 14px;
        height: 14px;
      }

      &.filter-mobile .icon {
        order: -1;
      }
    }
  }
  
  /* Фильтр */
  body.catalog-filter-shown {
    overflow: hidden;

    main {
      z-index: 2;
    }
  }


  .catalog-filter-shown {
    .catalog__sidebar {
      display: block;
      position: fixed;
      z-index: 99;
      left: 0;
      top: 98px;
      height: calc(100vh - 98px) !important;
    }

    &:not(.page-scrolled) #bx-panel .header-marquee ~ .wrapper .catalog__sidebar {
      margin-top: 39px;
    }
    &:not(.page-scrolled) #bx-panel ~ .wrapper .catalog__sidebar {
      margin-top: 30px;
    }

    &.page-scrolled {
      .filter-sort-mobile {
        display: none;
      }

      .catalog__sidebar {
        top: 65px;
        height: calc(100vh - 65px) !important;
      }
    }
  }
  .catalog-filter-shown .catalog__sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--popup-background);
  }
  .catalog-filter-shown .catalog__sort {
    display: none;
  }
  .catalog-filter-shown .catalog__filter {
    padding-top: 0;
  }
  .catalog-filter-shown .catalog__filter .bx-filter {
    height: calc(100vh - 145px);
    overflow: hidden;
    overflow-y: auto;
    padding-bottom: 60px;
  }

  /* Сортировка */
  body.catalog-sort-shown {
    overflow: hidden;
  }
  .catalog-sort-shown .catalog__sidebar {
    display: block;
    position: fixed;
    z-index: 99;
    right: 0;
    top: 70px;
  }
  .catalog-sort-shown .catalog__sidebar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--popup-background);
  }
  .catalog-sort-shown .catalog__filter {
    display: none;
  }
  .catalog-sort-shown .catalog__sort {
    padding-top: 0;
  }
  .catalog-sort-shown .catalog__sort .sort__values {
    height: auto !important;
  }

  .block--sections .sections {
    display: none;
  }

  .catalog-sections-shown {
    overflow: hidden;

    &::before {
      content: '';
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      background-color: var(--popup-background);
      z-index: 2;
      width: calc(100% - 375px);
    }

    main {
      z-index: 1;
    }

    .header__buttons {
      .header__search, .header__wishlist, .header__basket, .header__login {
        display: none;
      }

      .header__mobile {
        .icon {
          &.icon--mobile-menu-2 {
            display: none;
          }
          &.icon--close {
            display: flex;
          }
        }
      }
    }

    .block--sections {
      .sections {
        position: fixed;
        left: 0;
        top: 98px;
        width: 375px;
        max-width: 100%;
        height: calc(100vh - 98px);
        background-color: #fff;
        z-index: 99;
        display: block;
        overflow: hidden;
        overflow-y: auto;
        padding: 15px;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        row-gap: 30px;

        .sections__item {
          display: flex !important;
        }

        .sections__more {
          display: none;
        }
      }
    }

    &.page-scrolled .block--sections {
      .sections {
        top: 65px;
        height: calc(100vh - 65px);
      }
    }

    .block--catalog {
      .filter-sort-mobile {
        display: none;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .catalog-sort-shown .fixedbasket, .catalog-filter-shown .fixedbasket {
    display: none;
  }
}

@media screen and (max-width: 520px) {
  .catalog-sections-shown {
    &::before {
      display: none;
    }

    .block--sections {
      .sections {
        width: 100%;
      }
    }
  }

  .catalog__sidebar {
    width: 100% !important;
  }
}



.category-tree {
  width: 100%;
  max-width: 395px;
}

.category-tree__parent-toggle {
  padding: 20px;
  align-items: center;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(222, 222, 222, 1);
}

.category-tree__parent-label a {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.category-tree__toggle-icon {
  transition: transform 0.3s ease;
  transform: rotate(180deg);
    cursor: pointer;
}

.category-tree__toggle-icon.opened {
  transform: rotate(0deg);
}

.category-tree__parent-toggle.active {
  background: rgba(222, 222, 222, 1);
}

div.category-tree__parent-toggle.active a {
  color: #000 !important;
}

.category-tree__parent-link {
  text-transform: lowercase;
}

.category-tree__parent-link::first-letter {
  text-transform: uppercase
  
}

.category-tree__sub {
  display: flex;
  flex-flow: column;
  gap: 20px;
  margin-bottom: 15px;
  margin-top: 20px;
}


.category-tree__sub-item {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  padding-left: 20px;
  margin-top: 0;
}

.category-tree__sub-item.active {
  color: #CB2032;
}

@media (min-width: 1025px) {
    .category_links-mobile {
        display: none;
    }
}

/* Кнопка открытия мобильного каталога */
.catalog-toggle-btn {
    display: none;
    /* position: fixed; */
    /* z-index: 1000; */
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@media (max-width: 1024px) {
    .catalog-toggle-btn {
        display: block;
    }
}

/* Выезжающая панель */
.catalog-mobile-panel {
    position: fixed;
    top: 65px;   
    left: -100%;
    width: 100%;
    max-width: 400px;
    height: calc(100% - 85px); 
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding-bottom: 150px;
    scrollbar-color: #cb2032 transparent;
    scrollbar-width: thin;
}


.catalog-mobile-panel.open {
    left: 0;
}

.catalog-mobile-panel__header {
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    padding: 10px 20px;          
    border-bottom: none;         
}

.catalog-mobile-panel__title {
    font-size: 18px;
    font-weight: 600;
}

.catalog-mobile-panel__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.catalog-mobile-panel__body {
    padding: 0 20px 20px;
    flex: 1;
    overflow-y: auto;
}

/* Блокируем скролл body при открытой панели */
body.catalog-mobile-panel-open {
    overflow: hidden;
}

/* Прячем десктопное дерево на мобильных */
/* @media (max-width: 1024px) {
    .category-tree {
        display: none;
    }
} */
/* End */


/* Start:/local/templates/ugla-shop/components/bitrix/system.pagenavigation/common/style.css?17842037881384*/
.pagenavigator {
  margin-top: 120px;
}

.pagenavigator__list {
  display: flex;
  column-gap: 10px;
  align-items: center;
  justify-content: start;
}
.pagenavigator__list, .pagenavigator__item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagenavigator__link, .pagenavigator__current, .pagenavigator__dots {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pagenavigator-color);
  border: 1px solid var(--pagenavigator-border);
  background-color: var(--pagenavigator-background);
  font-size: calc(16px + 8 * ((100vw - 375px) / 1575));
}
.pagenavigator__link:hover {
  color: var(--pagenavigator-action-color);
  border-color: var(--pagenavigator-action-border);
}
.pagenavigator__current {
  color: var(--pagenavigator-action-color);
  border-color: var(--pagenavigator-action-border);
  background-color: var(--pagenavigator-action-background);
}
.pagenavigator__dots {
  background-color: transparent;
  border-color: transparent;
}

@media screen and (max-width: 768px) {
  .pagenavigator {
    margin-top: 50px;
    
    .pagenavigator__list {
      column-gap: 5px;
      row-gap: 5px;
      flex-wrap: wrap;

      .pagenavigator__link, .pagenavigator__current, .pagenavigator__dots {
        width: 44px;
        height: 44px;
      }
    }
  }
}
/* End */
/* /local/templates/ugla-shop/components/bitrix/news.detail/collections_2/style.css?17842037735842 */
/* /local/templates/ugla-shop/components/bitrix/catalog.section.list/list/style.css?17842037599271 */
/* /local/templates/ugla-shop/components/bitrix/system.pagenavigation/common/style.css?17842037881384 */
