.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 40px;
    justify-content: start;
    margin: 0 auto;
    max-width: calc(4 * 200px + 3 * 40px);
}

.swiper-container {
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    aspect-ratio: 2/3;
}

.swiper-slide {
    aspect-ratio: 2/3;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--button-text-color);
    background-color: var(--button-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    margin: 0;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

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

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 200px);
        max-width: calc(3 * 200px + 2 * 40px);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 200px);
        max-width: calc(2 * 200px + 1 * 40px);
    }

    .swiper-container {
        max-height: 70vh;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: repeat(2, 150px);
        max-width: calc(2 * 150px + 1 * 40px);
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 130px);
        max-width: calc(2 * 130px + 1 * 25px);
        gap: 25px;
    }
}

@media (max-width: 344px) {
    .products-grid {
        grid-template-columns: repeat(2, 120px);
        max-width: calc(2 * 120px + 1 * 25px);
    }
}

.card:hover {
    transform: none !important;
}
