/*стили для шаблона карточки товара*/

.main-content {
    color: var(--color-text);
}

section {
    margin-bottom: 110px;
}

.cover {
    grid-template-columns: 5fr 5.5fr;
}

.cover__content {
    padding: 35px 0;
}

.cover__title {
    font-family: var(--title-family);
    text-transform: uppercase;
    font-size: clamp(20px, 3vw, 50px);
    line-height: clamp(22px, 3vw, 52px);
    font-weight: 400;
}

.cover__text {
    margin-bottom: 130px;
    font-size: 20px;
    line-height: 22px;
    font-weight: 400;
    color: rgb(var(--color-accent-rgb));
}

.cover__description {
    font-size: 20px;
    line-height: 22px;
    color: #8E8E8E;
}

.btn {
    padding: 20px 30px;
    font-size: 24px;
    line-height: 26px;
    font-weight: 500;
}

.btn:hover {
    transform: scale(1.05);
}

/* контейнер для слайдера */
.cover__img {
    display: flex;
    flex-direction: column; /* колонки: контент сверху, точки снизу */
    justify-content: center; /* вертикальное центрирование контента */
    align-items: center;
    min-width: 0;
    height: 581px;
    padding: 35px;
    background-color: #252525;
}

/* сам Swiper */
.product-slider {
    flex: 1 1 auto;        /* занимает всё доступное пространство */
    display: flex;
    align-items: center;    /* вертикальное центрирование слайдов внутри этого блока */
    justify-content: center; /* горизонтальное центрирование */
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    background-color: #353535;
}

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

/* картинки */
.product-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto; 
}

/* точки и стрелки остаются снизу */
.swiper-pagination {
    flex-shrink: 0; /* чтобы не сжимались и не влияли на центрирование картинки */
}

.swiper-pagination-bullet-active {
    color: #0F9907;
    background-color: #0F9907;
}

/*стрелки слайдера*/
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 30px;
    font-weight: 600;
}

.swiper-button-next, .swiper-button-prev {
    color: rgb(var(--color-accent-rgb));
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    transform: scale(1.05);
}

.nav-item {
    flex: 1 1 0;
}

.nav-pills .nav-link {
    padding: 32px 25px ;
    background-color: #252525;
    border-radius: 0;
    font-size: 24px;
    line-height: 26px;
    color: #7B7B7B;
    white-space: nowrap;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
    background-color: rgb(var(--color-accent-rgb));
    color: var(--color-text);
}

.tab-pane {
    padding: 50px;
    background-color: #252525;
}

.details .title {
    margin-bottom: 60px;
}

.title {
    text-transform: uppercase;
    font-size: 36px;
    line-height: 38px;
    font-family: var(--title-family);
}

.text {
    font-size: 32px;
    line-height: 34px;
    color: #6B6B6B;
}

.catalog__item {
    width: 417px;
    padding: 20px;
    background-color: #252525;
}

.catalog__item-img {
    width: 100%;
    height: 315px;
    background-color: #353535;
}

.catalog__item-title {
    font-size: 24px;
    line-height: 22px;
    min-height: 44px; /* lh*2 */
}

.catalog__item-text {
    font-size: 16px;
    line-height: 20px;
    min-height: 40px; /* lh*2 */
    color: #6B6B6B;
}

.catalog__item .btn {
    font-size: 20px;
    line-height: 26px;
}


@media (max-width: 1300px) {
    .main-content {
        padding: 0 20px;
        /*margin-left: 0;*/
    }

    .cover {
        display: flex !important;
        flex-direction: column-reverse;
    }

    .cover__content {
        padding: 0;
    }

    .cover__img > div {
        min-height: 300px;
        padding: 20px;
    }

    .cover__text {
        margin-bottom: 30px;
    }

    .cover .btn {
        width: 100% !important;
    }

}

@media (min-width: 768px) {
    .slick-dots {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .details .nav-pills .nav-link {
        padding: 20px;
        font-size: 16px;
        line-height: 18px;
    }

    .details .tab-pane {
        padding: 20px;
    }

    .btn {
        justify-content: space-between !important;
        padding: 10px 30px;
        font-size: 14px !important;
        line-height: 16px !important;
    }

    .slider-arrows {
        display: none;
    }

    .form .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cover__text,
    .cover__description {
        font-size: 14px;
        line-height: 16px;
    }

    .cover__img {
        padding: 20px;
        height: 70vw;
    }

    .cover__img > div {
        min-height: 0;
    }
}