.products {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    width: 100%;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 40px 40px;
    box-sizing: border-box;
    max-width: 2560px;
    padding: 0 40px;
    width: 100%;
}

.product-element {
    gap: 20px 0;
    max-width: 464px;
    width: calc((100% - 160px) / 5); /* 5 колонок на десктопе */
}

.product-element-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px 0;
    width: 100%;
}

.product-element .name {
    color: var(--la-grey-basic);
    font-family: 'Geologica';
    font-size: 15px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    width: 100%;
}

.product-element .price {
    color: var(--la-grey-basic);
    font-family: 'Geologica';
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.product-element a {
    text-decoration: none;
}

.product-element .image {
    aspect-ratio: 1;
    border-radius: 10px;
    max-width: 464px;
    width: 100%;
    overflow: hidden;
}

.product-element .image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.owl-carousel .product-element .image:hover img {
    transform: scale(1.2);
}

/* Анимации */
.prod-el-animated {
    animation-duration: 1000ms;
    animation-fill-mode: backwards;
}

@keyframes fade-in {
    from { opacity: 0 }
    to { opacity: 1 }
}

.fade-in {
    animation-name: fade-in;
}

/* Кнопка "показать еще" */
.btn-show-more {
    display: none;
    align-items: center;
    align-self: center;
    justify-content: center;
    background: #e6e6e6;
    border-radius: 100px;
    border: none;
    color: var(--la-grey-basic);
    cursor: pointer;
    font-family: 'Geologica';
    font-size: 16px;
    line-height: 24px;
    padding: 10px 30px;
    text-decoration: none;
    transition: .1s;
}

.btn-show-more.visible {
    display: flex;
}

.btn-show-more:hover {
    background: var(--la-grey-basic);
    color: #f5f5f5;
}

/* ======================== */
/* Мобильная адаптация */
/* ======================== */

/* Планшеты: до 1024px — 3 колонки */
@media (max-width: 1024px) {
    .product-element {
        width: calc((100% - 80px) / 3);
    }
}

/* Мобильные: до 768px — 2 колонки */
@media (max-width: 768px) {
    .product-list {
        justify-content: flex-start; /* убираем центрирование */
        gap: 20px 15px;
    }

    .product-element {
        max-width: 300px;
        width: calc((100% - 15px) / 2);
    }

    /* Размещение второго элемента ряда справа */
    .product-element:nth-child(odd) {
        margin-left: 0;
    }
    .product-element:nth-child(even) {
        margin-left: auto;
    }

    .product-element .name {
        font-size: 14px;
        font-weight: 400;
    }
}

/* Мобильные: до 380px — 1 колонка */
@media (max-width: 380px) {
    .product-list {
        gap: 15px 0;
        flex-direction: column;
        align-items: center;
    }

    .product-element {
        max-width: 100%;
        width: 100%;
        margin-left: 0 !important;
    }

    .product-element .image {
        height: auto;
        width: 100%;
    }

    .product-element .name {
        font-size: 13px;
        line-height: 16px;
        margin-bottom: 5px;
        padding: 0 10px;
    }
}
