/* =========================================================
   Products Section
   ========================================================= */

.products-section {
    width: 100%;

    padding-top: 18px;
    padding-bottom: 36px;
}


/* =========================================================
   Header
   ========================================================= */

.products-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 14px;
}

.products-section__title {
    margin: 0;

    color: #20201e;

    font-family:
        "Inter",
        "Hind Siliguri",
        sans-serif;

    font-size: 1.1rem;
    font-weight: 650;
    line-height: 1.2;

    letter-spacing: -0.015em;
}


/* =========================================================
   Product Grid
   ========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: stretch;

    gap: 16px 10px;

    width: 100%;
    min-width: 0;
}


/* =========================================================
   Empty State
   ========================================================= */

.products-section__empty {
    width: 100%;

    padding: 32px 16px;

    border: 1px solid #ebe8e1;
    border-radius: 12px;

    background: #ffffff;

    text-align: center;
}

.products-section__empty strong {
    display: block;

    color: #20201e;

    font-size: 0.95rem;
    font-weight: 600;
}

.products-section__empty p {
    margin: 5px 0 0;

    color: #77736d;

    font-size: 0.8rem;
}


/* =========================================================
   Pagination
   ========================================================= */

.products-pagination {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    margin-top: 28px;
}

.products-pagination__side {
    display: flex;
    justify-content: flex-start;

    min-width: 0;
}

.products-pagination__side--end {
    justify-content: flex-end;
}

.products-pagination__current {
    color: #77736d;

    font-size: 0.75rem;

    white-space: nowrap;
}

.products-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 7px 12px;

    border: 1px solid #dedbd1;
    border-radius: 8px;

    background: #ffffff;
    color: #20201e;

    font-size: 0.76rem;
    font-weight: 550;

    text-decoration: none;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.products-pagination__link:hover {
    border-color: #294d3b;

    background: #f3f6f3;

    transform: translateY(-1px);
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {

    .products-section {
        padding-top: 14px;
        padding-bottom: 28px;
    }

    .products-section__header {
        margin-bottom: 11px;
    }

    .products-section__title {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px 9px;
    }
}


/* =========================================================
   Tablet
   ========================================================= */

@media (min-width: 700px) {

    .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px 14px;
    }
}


/* =========================================================
   Laptop
   ========================================================= */

@media (min-width: 900px) {

    .product-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 24px 16px;
    }
}


/* =========================================================
   Large Desktop
   ========================================================= */

@media (min-width: 1200px) {

    .product-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 26px 18px;
    }

    .products-section {
        padding-top: 22px;
        padding-bottom: 48px;
    }
}