/* Заголовок секции "Блог" */
* {
    margin: 0;
}

.blog-news-title {
    font-weight: 500;
    text-align: center;
    margin-bottom: 50px;
}

/* Контейнер для секции с блогом и новинами */
.blog-news-section {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

/* Колонка для раздела (новости или блог) */
.column {
    flex: 1;
    background: #fff;
    border-radius: 30px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 30px 40px;
}

/* Заголовок секции внутри колонки */
.column h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #495057;
    font-weight: 500;
    margin-bottom: 40px;
}

/* Контейнер для карточек внутри колонки */
.cards {
    /* padding: 15px; */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Карточки новостей */
.news-section .card {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

/* Карточки блога, двухколоночный макет */
.blog-section .cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Изображения в карточках блога */
.blog-section .card img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 12px;
}

/* Изображения в карточках новостей */
.card img {
    width: 140px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Контейнер для контента карточки */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Контент карточки новостей, занимая всю высоту */
.news-section .card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Дата новости или поста */
.card-content .date {
    font-size: 14px;
    font-weight: 500;
    color: #1E8194;
}

/* Заголовок новости или поста */
.card-content .title {
    font-size: 14px;
    font-weight: 500;
}

.card-content__text h5 {
    color: #495057;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 8px;
}

.card-content__text h6 {
    color: #495057;
    font-weight: 500;
    line-height: 20px;
}

.card-content__text p{
    font-size: 14px;
    color: #6C757D;

}

/* Описание новости или поста */
/* .card-content .description {
    font-size: 12px;
    color: #555;
} */

/* Эффект наведения на карточки */
.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-radius: 15px;
    padding: 8px;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.viewed-products-section {
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    width: 1150px;
    margin-top: 50px;
}

.viewed-products-scrollbar {
    display: none;
}

.viewed-products-section h2 {
    font-weight: 500;
    text-align: center;
}

.viewed-products-wrapper {
    display: flex;
    padding: 20px;
    gap: 30px;
    box-sizing: border-box;
}

.viewed-products-wrapper {
    padding: 20px;
}

.viewed-products-wrapper .swiper-slide {
    flex: 0 0 calc(25% - 20px); /* 3 слайда на ряд */
    box-sizing: border-box;
}

.viewed-products-next,
.viewed-products-prev {
    position: absolute;
    top: 55%;
    transform: translateY(-55%);
    z-index: 10;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.viewed-products-next {
    right: -50px; /* Позиционирование кнопки "вправо" */
}

.viewed-products-prev {
    left: -50px; /* Позиционирование кнопки "влево" */
}


@media (max-width: 1280px) {
    .viewed-products-section {
        width: 90%;
    }

    .breadcrumb-container, .category-container {
        padding: 0 32px;
    }
}

@media (max-width: 1024px) {
    .viewed-products-next {
        position: absolute;
        top: 60%;
        transform: translateY(-60%);

    }
    .viewed-products-section {
        width: 90%; /* Снижаем ширину для секций слайдера */
    }

    .viewed-products-wrapper {
        padding: 20px 0;
        gap: 0px;
    }

    .viewed-products-wrapper .swiper-slide {
        flex: 0 0 auto; /* 3 слайда на ряд */
        height: auto;
    }

    .viewed-products-next {
        right: -35px;
    }
    .viewed-products-prev {
        left: -35px;
    }

    .blog-news-container {
        padding: 0 16px;
    }

    .blog-section .cards {
        grid-template-columns: 1fr;
    }

    .column {
        padding: 12px 24px;
    }

    .news-section .card{
        flex-direction: column;
    }

    .news-section .card img {
        width: 100%;
        height: auto;
    }

    .breadcrumb-container {
        padding: 0 16px;
    }

    .card:hover {
        box-shadow: none;
        transform: none;
        background-color: rgba(0, 0, 0, 0.03);
    }



}

@media (max-width: 768px) {
    .viewed-products-section {
        width: 100%;
    }

    .viewed-products-next,
    .viewed-products-prev {
        display: none;
    }

    .viewed-products-section .swiper-scrollbar {
        position: relative;
    }

    .viewed-products-section{
        padding: 0 16px;
        box-sizing: border-box;
    }

    .column {
        padding: 12px;
    }

    .column h2 {
        font-size: 24px;
    }

    .column h2 img {
        width: 20px;
        height: 20px;
    }

    .card {
        padding: 4px;
    }

    .blog-news-section {
        gap: 10px;
    }
    .column {
        border-radius: 15px;
    }

    .card-content__text h5 {
        font-size: 16px;
    }

    .card-content {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .swiper-scrollbar {
        width: 100%;
    }

    .viewed-products-section h2{
        font-size: 24px;
        text-align: start;
    }

    .blog-news-title {
        font-size:  32px;
        margin-bottom: 20px;
    }

    .blog-news-section {
        flex-direction: column;
        gap: 20px;
    }

    .section-catalog-link {
        display: none;
    }
    
}

@media (min-width: 1025px) {
    .swiper-scrollbar {
        display: none !important;
      }
}

@media (max-width: 768px) {
    .swiper-scrollbar {
      display: block !important;
    }
  }
