.products-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 20px;
    margin-top: 160px;
    margin-bottom: 70px;

}



/* product loop========================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-block: 32px;
}

.product-card {
    min-width: 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card__image {
    width: 100%;
    overflow: hidden;
}

.product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card__content {
    padding: 18px;
}

.product-card__title {
    margin: 0;
    color: #404b87;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.product-card:hover .product-card__title {
    color: #cf0000;
}


/* Tablet */

@media (max-width: 900px) {

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}

/* product loop========================== */


/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    grid-column: 1 / -1;
}

.pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination ul.page-numbers li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 10px 17px;
    margin: 3px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
    color: #222;
    border-radius: 5px;
}

.pagination a:hover {
    background-color: #ffa9a9;
}

.pagination .current {
    background-color: #c50000;
    color: #fff;
    padding: 10px 20px;
}
