

/* Start:/local/templates/kovri/components/bitrix/catalog/catalog-tabs/style.min.css?1769664262959*/
.grid .bx_content_section{margin-bottom:15px}.grid .bx_sidebar{margin-bottom:15px}.grid2x1 .bx_content_section{float:left;width:66%;margin-bottom:15px}.grid2x1 .bx_sidebar{float:right;width:33%;margin-bottom:15px;padding-left:5%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}@media(max-width:960px){.grid2x1 .bx_sidebar{padding-left:4%}}@media(max-width:640px){.grid2x1 .bx_content_section,.grid2x1 .bx_sidebar{width:100%;float:none}.grid2x1 .bx_sidebar{padding-left:3%}}@media(max-width:479px){.grid2x1 .bx_sidebar{padding-left:1%}}.catalog-block-header{font-size:14px;font-weight:bold;text-align:left;margin:5px 0;padding:5px 15px;border-bottom:2px solid #d9dee6;color:#000}body.bx-theme-blue .catalog-block-header{border-color:#006cc0}body.bx-theme-green .catalog-block-header{border-color:#63aa28}body.bx-theme-red .catalog-block-header{border-color:#da3737}body.bx-theme-yellow .catalog-block-header{border-color:#f4b236}
/* End */


/* Start:/local/templates/kovri/components/bitrix/catalog/catalog-tabs/bitrix/catalog.element/new/style.css?17757505624852*/
.collection {
    max-width: 1300px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 0 10px; /* добавлено для отступов на мобильных */
}

.slogan {
    font-size: 18px;
    font-style: italic;
    text-align: center;
}

.title {
    font-size: 32px;
    text-align: center;
    padding: 20px;
}

.content {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    flex-wrap: wrap; /* добавлено для адаптивного переноса */
    align-items: stretch;
}

.left, .right {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
	height: 100%;
}

.properties * {
    font-size: 20px;
    margin: 5px 0;
}

.properties{
    margin: 40px 0 0;
}

/* Слайдер */
.images-swiper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.images-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.images-swiper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    color: white;
}

.swiper-pagination .swiper-pagination-bullet {
    background: white;
}
/* --- Swiper: стрелки и пагинация --- */

/* По умолчанию (десктоп) показываем только стрелки */
.images-swiper .swiper-pagination {
    display: none; /* скрываем пагинацию */
}

.images-swiper .swiper-button-prev,
.images-swiper .swiper-button-next {
    display: block; /* показываем стрелки */
}

/* На мобильных устройствах (≤768px) показываем пагинацию и скрываем стрелки */
@media (max-width: 768px) {
    .images-swiper .swiper-pagination {
        display: block;
        bottom: 10px; /* расположение пагинации */
    }

    .images-swiper .swiper-button-prev,
    .images-swiper .swiper-button-next {
        display: none; /* скрываем стрелки */
    }
}

/* Модальное окно картинки */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

#modalImage {
    width: auto;
}

.image-popup {
    cursor: pointer;
}

/* Ковры */
.carpets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.carpet-card {
    position: relative;
    padding: 10px;
    text-align: center;
    overflow: hidden;
    background: #fff;
}

.carpet-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.carpet-name {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

.favorite-heart {
    font-size: 24px;
    color: rgba(92, 92, 92, 0.4); /* прозрачное сердечко */
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    text-align: end;
    padding: 5px;
}

.favorite-heart:hover svg{
    fill: #B01735D8;
}
.favorite-heart:hover svg path{
    stroke: #A8384ED9;
}

.favorite-heart.active svg{
    fill: #B01735;
}
.favorite-heart.active svg path{
    stroke: #B01735;
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .carpets-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 карточки на планшете */
    }
    .properties * {
        font-size: 18px;
    }
    .title {
        font-size: 28px;
    }
    .slogan {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .carpets-grid {
        grid-template-columns: 1fr; /* 1 карточка на мобильных */
    }
    .properties * {
        font-size: 16px;
    }
    .title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .images-swiper {
        max-width: 100%;
    }
    .title {
        font-size: 20px;
    }
    .slogan {
        font-size: 14px;
    }
}
/* всплывающее окно */
.favorite-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 50, 50, 0.9);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, bottom 0.3s;
    z-index: 9999;
}

.favorite-toast.show {
    opacity: 1;
    bottom: 50px;
}

/* всплывающее окно */
/* End */
/* /local/templates/kovri/components/bitrix/catalog/catalog-tabs/style.min.css?1769664262959 */
/* /local/templates/kovri/components/bitrix/catalog/catalog-tabs/bitrix/catalog.element/new/style.css?17757505624852 */
