/* =====================================================
   GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background: #f5f6f4;

    color: #080808;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =====================================================
   PAGE
===================================================== */

.products-page {
    width: 100%;

    min-height: 100vh;

    padding: 10px 0 70px;
}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.products-container {
    width: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding: 0 32px;
}


/* =====================================================
   FILTER BAR
===================================================== */

.products-filter-bar {
    width: 100%;

    min-height: 60px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 8px 16px;

    margin-bottom: 37px;

    background: #fff;

    border-radius: 32px;
}


/* =====================================================
   PRODUCT COUNT
===================================================== */

.products-count {
    flex-shrink: 0;

    color: #111;

    font-size: 20px;

    line-height: 1;

    font-weight: 500;
}


/* =====================================================
   FILTERS
===================================================== */

.product-filters {
    display: flex;

    align-items: center;

    gap: 13px;
}


/* =====================================================
   FILTER BUTTON
===================================================== */

.product-filter {
    border: 1px solid #d8d8d8;

    background: #fff;

    color: #625c58;

    border-radius: 25px;

    padding: 7px 15px;

    font-size: 15px;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}


/* =====================================================
   ACTIVE FILTER
===================================================== */

.product-filter.active {
    background: #050505;

    border-color: #050505;

    color: #fff;
}

.product-filter:hover:not(.active) {
    border-color: #999;

    color: #222;
}


/* =====================================================
   PRODUCTS GRID
===================================================== */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 21px;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product-card {
    min-width: 0;

    background: #fff;

    border-radius: 15px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    min-height: 515px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


/*
.product-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .07);
}
*/


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.product-image {
    width: 100%;

    height: 284px;

    overflow: hidden;

    flex-shrink: 0;

    background: #eee;
}

.product-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.025);
}


/* =====================================================
   PRODUCT CONTENT
===================================================== */

.product-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 28px 28px 27px;
}


/* =====================================================
   TITLE
===================================================== */

.product-content h2 {
    margin: 0 0 11px;

    color: #080808;

    font-size: 26px;

    line-height: 1.15;

    font-weight: 500;

    letter-spacing: -.5px;
}


/* =====================================================
   DESCRIPTION
===================================================== */

.product-content p {
    margin: 0;

    color: #6a625e;

    font-size: 17px;

    line-height: 1.38;

    font-weight: 400;
}


/* =====================================================
   LEARN MORE
===================================================== */

.product-link {
    margin-top: auto;

    padding-top: 23px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 12px;

    color: #080808;

    font-size: 15px;

    line-height: 1;

    font-weight: 500;

    text-decoration: none;
}

.product-link i {
    color: #d40000;

    font-size: 14px;

    transition: transform .2s ease;
}

.product-link:hover {
    color: #d40000;
}

.product-link:hover i {
    transform: translateX(3px);
}


/* =====================================================
   FILTERED OUT CARDS
===================================================== */

.product-card.hidden {
    display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199.98px) {

    .products-container {
        padding: 0 25px;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .product-image {
        height: 280px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .products-page {
        padding-top: 8px;
    }

    .products-container {
        padding: 0 16px;
    }


    /* ---------------------------------------------
       FILTER BAR
    --------------------------------------------- */

    .products-filter-bar {
        min-height: auto;

        padding: 12px 14px;

        margin-bottom: 25px;

        border-radius: 20px;

        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }

    .products-count {
        font-size: 18px;
    }


    .product-filters {
        width: 100%;

        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 2px;

        scrollbar-width: none;
    }

    .product-filters::-webkit-scrollbar {
        display: none;
    }

    .product-filter {
        flex-shrink: 0;

        font-size: 14px;
    }


    /* ---------------------------------------------
       GRID
    --------------------------------------------- */

    .products-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    /* ---------------------------------------------
       CARD
    --------------------------------------------- */

    .product-card {
        min-height: 0;
    }


    .product-image {
        height: 235px;
    }


    .product-content {
        min-height: 260px;

        padding: 24px 22px 22px;
    }


    .product-content h2 {
        font-size: 23px;
    }

    .product-content p {
        font-size: 16px;
    }

}