/* =====================================================
   GLOBAL
===================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f6f4;
    color: #080808;
}


/* =====================================================
   PAGE
===================================================== */

.products-page {
    width: 100%;

    min-height: 100vh;

    padding: 10px 0 70px;
}


/* =====================================================
   MAIN CONTAINER
===================================================== */

.products-container {
    width: 100%;

    max-width: 1560px;

    margin: 0 auto;

    padding: 0 14px;
}


/* =====================================================
   FILTER BAR
===================================================== */

.products-filter-bar {
    width: 100%;

    min-height: 64px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 22px;

    margin-bottom: 32px;

    background: #fff;

    border-radius: 32px;

    box-shadow: 0 1px 10px rgba(0, 0, 0, .05);
}


/* =====================================================
   PRODUCT COUNT
===================================================== */

.products-count {
    flex-shrink: 0;

    color: #111;

    font-size: 18px;

    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: 6px 14px;

    font-size: 14px;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;
    text-decoration:none;

    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-card1 {
    height: 100%;
    min-width: 0;

    border-radius: 15px;

    overflow: visible;

    display: flex;

    flex-direction: column;
     align-content:stretch;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.product-card .shadow {
    border-radius:12px;
}


/*
.product-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .07);
}
*/


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.product-image {
    width: 100%;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius:16px;
    border-bottom-right-radius:16px;
}

.product-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-right-radius:16px;
    border-bottom-left-radius:16px;

    transition: transform .4s ease;
}

.product-card1:hover .product-image img {
    transform: scale(1.025);
}


/* =====================================================
   PRODUCT CONTENT
===================================================== */

.product-content {
    flex: 1;

    display: flex;

    flex-direction: column;

    padding: 22px 24px 20px;
}


/* =====================================================
   TITLE
===================================================== */

.product-content h2 {
    margin: 0 0 9px;

    color: #080808;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 500;

    letter-spacing: -.3px;
}

.products-page .product-card1 {
    padding: 10px;
}

/*    .products-page .product-card1:hover {
        box-shadow: none;
        transform: none;
    }*/

    .products-page .product-card1 .shadow:hover {
            box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
            transform: translateY(-3px);
    }

    .products-page .product-shadow{
        border-top-left-radius: 12px;
        border-top-right-radius:12px;
        border-bottom-left-radius:16px;
        border-bottom-right-radius:16px;
        height:100%;
        align-content:stretch;
        display: flex;
        flex-direction: column;
    }

    .products-page .shadow {
        box-shadow: 0 2px 14px rgba(0, 0, 0, .07) !important;
    }

    .products-page .product-image {
        flex-shrink: 0;
    }

    .products-page .product-content {
        flex: 1;
    }


/* =====================================================
   DESCRIPTION
===================================================== */

.product-content p {
    margin: 0;

    color: #6f6a66;

    font-size: 15px;

    line-height: 1.45;

    font-weight: 400;
}


/* =====================================================
   LEARN MORE
===================================================== */

.product-link {
    margin-top: auto;

    margin-left: auto;

    align-self: flex-end;

    padding-top: 18px;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #111;

    font-size: 14px;

    line-height: 1;

    font-weight: 600;

    text-decoration: none;
}

.product-link i {
    color: #d40000;

    font-size: 13px;

    font-weight: 700;

    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 12px;
    }

    .product-image {
        height: auto;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767.98px) {

    .products-page {
        padding-top: 8px;
    }

    .products-container {
        padding: 0 10px;
    }


    /* ---------------------------------------------
       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
    --------------------------------------------- */

    .products-page .product-card1 {
        padding: 6px;
    }

    .product-card {
        min-height: 0;
    }


    .product-image {
        height: auto;
    }


    .product-content {
        padding: 20px 18px 18px;
    }


    .product-content h2 {
        font-size: 20px;
    }

    .product-content p {
        font-size: 14px;
    }

}