﻿.p-product-list {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(3,minmax(0,1fr));
    column-gap: 38px;
    row-gap: 38px;
}

.p-product-item {
    background-color: #fff;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.p-product-img:hover img {
    transform: scale(1.03);
}

.p-product-img {
    overflow: hidden;
    height: 387px;
    display: flex;
    align-content: center;
    justify-content: center;
    position: relative;
}

    .p-product-img::before {
        content: '';
        position: absolute;
        pointer-events: none;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
        border: 6px solid #FFE696;
        z-index: 2;
    }

.p-product-decor {
}

.p-product-img img {
    transition: all .3s;
}

.p-product-content {
    padding: 0 38px;
    padding-bottom: 23px;
    padding-top: 14px;
}

    .p-product-content .title:hover {
        color: var(--color-3);
    }

    .p-product-content .title {
        margin: 0;
        font-family: 'pathMe';
        font-weight: 100;
        font-size: 20px;
        text-align: center;
        text-transform: capitalize;
        color: var(--color-text-default);
        transition: all .3s;
    }

        .p-product-content .title span {
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            display: -webkit-box;
        }

    .p-product-content .description {
        margin: 0;
        font-size: 14px;
        font-weight: 100;
        text-align: center;
        color: #8B8B8B;
        margin-top: 7px;
    }

        .p-product-content .description span {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            display: -webkit-box;
        }

.p-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    user-select: none;
    margin-top: 11px;
}

    .p-product-btn .item {
        text-align: center;
        padding: 10px 22px;
        background-color: var(--color-3);
        border-radius: 55px;
    }

    .p-product-btn .item-price {
        background-color: #F4F4F4;
        color: var(--color-8);
        font-family: 'pathSB';
        font-size: 16px;
        margin-right: 5px;
    }

    .p-product-btn .item-addcart {
        font-family: 'pathMe';
        font-size: 12px;
        color: #493D23;
        margin-left: 5px;
        transition: all .3s;
    }

        .p-product-btn .item-addcart:hover {
            color: var(--color-3);
            background-color: var(--color-4);
        }

/* Mobile & tablet */
@media (max-width: 1023px) {
    .p-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 30px;
        row-gap: 30px;
    }

    .p-product-content {
        padding: 0 20px;
        padding-bottom: 23px;
        padding-top: 14px;
    }
}

/* Tablet */
@media (min-width: 740px) and (max-width: 1023px) {
}

/* Mobile */
@media (max-width: 739px) {

    .p-product-img {
        height: 160px;
    }

    .p-product-content {
        padding: 12px;
        padding-bottom: 51px;
    }

        .p-product-content .title {
            font-size: 15px;
        }

            .p-product-content .title span {
                -webkit-line-clamp: 2;
            }

        .p-product-content .description {
            font-size: 12px;
        }

    .p-product-btn {
        flex-direction: column;
    }

        .p-product-btn .item-price {
            font-size: 14px;
            margin-right: 0;
            padding: 7px 16px;
        }
        .p-product-btn .item-addcart {
            margin-left: 0;
            position: absolute;
            bottom: 0;
            width: 100%;
            left: 0;
            border-radius: 0;
        }
        .p-product-list {
        column-gap: 15px;
        row-gap: 15px;
    }
}
