﻿.home-product {
    background: url(/Design/img/bg_haisan.jpg) no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.home-dacsan-link {
    margin: 0 auto;
    margin-top: 30px;
    width: fit-content;
    background-color: var(--default-color-3);
    color: #fff;
    text-transform: capitalize;
    border-radius: 55px;
    font-family: 'AsapSB';
    font-size: 18px;
    padding: 14px 24px;
    user-select: none;
    transition: all ease .3s;
}

    .home-dacsan-link:hover {
        opacity: .8;
    }

.home-product .grid.wide {
    max-width: 1300px;
}

.home-product-container {
    padding: 60px 0;
}

.home-product-filter {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    margin-top: 25px;
}

.home-product-wrap {
    margin-top: 60px;
}

    .home-product-wrap .pager {
        margin: 0 auto;
        margin-top: 40px;
    }

        .home-product-wrap .pager span,
        .home-product-wrap .pager a {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border-width: 2px;
            font-family: 'RobotoB';
            user-select: none;
        }

        .home-product-wrap .pager span {
        }

        .home-product-wrap .pager a {
            color: #fff;
        }

.home-product-filter .item:hover,
.home-product-filter .item.active {
    background-color: var(--default-color-2);
}

.home-product-filter .item {
    margin: 6px;
    border: 2px solid var(--default-color-2);
    color: #fff;
    border-radius: 55px;
    font-family: 'AsapB';
    padding: 9px 16px;
    cursor: pointer;
    user-select: none;
    text-transform: capitalize;
    font-size: 16px;
    transition: all ease .3s;
}

.home-product-list .list-wrap {
    display: grid;
    grid-auto-rows: minmax(min-content,max-content);
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 20px;
    height: 734px;
}

.home-product-list {
    display: none;
}

    .home-product-list.show {
        display: block;
    }

.home-product-item:hover {
    background-color: var(--default-color-2);
}

.home-product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px 0 #ffffff4a;
    padding: 5px;
    cursor: pointer;
    user-select: none;
    transition: all ease .3s;
}

    .home-product-item.show {
        display: block;
        pointer-events: all;
    }

.home-product-img {
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
}

    .home-product-img img {
    }

.home-product-content {
    padding: 20px 6px;
}

.home-product-item:hover .home-product-name {
    color: #fff;
}

.home-product-name {
    text-align: center;
    margin: 0;
    font-family: 'AsapB';
    color: var(--default-color-2);
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    transition: all ease .3s;
}

.home-product-item:hover .home-product-price {
    color: #fff;
    opacity: 1;
}

.home-product-price {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    text-align: center;
    margin-top: 15px;
    font-family: 'RobotoB';
    color: #333;
    font-size: 16px;
    opacity: .8;
    transition: all ease .3s;
}

/*RS*/

@media(max-width:1023px) {
    .home-product-list .list-wrap {
        column-gap: 10px;
        row-gap: 10px;
        height: auto;
    }
}

@media(min-width:740px) and (max-width:1023px) {
    .home-product-img {
        height: 150px;
    }

    .home-product-content {
        padding: 14px 4px;
    }

    .home-product-name {
        font-size: 14px;
    }

    .home-product-price {
        margin-top: 10px;
        font-size: 13px;
        opacity: 1;
    }

    .home-product-container {
        padding: 50px 0;
    }

    .home-product-wrap {
        margin-top: 45px;
    }

        .home-product-wrap .pager {
            margin-top: 20px;
        }
}

@media(max-width:739px) {
    .home-product-container {
        padding: 30px 0;
    }

    .home-product-filter .item {
        margin: 4px;
        padding: 9px 14px;
        font-size: 13px;
    }

    .home-product-wrap {
        margin-top: 35px;
    }

    .home-product-list .list-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 10px;
        height: auto;
        width: 100%;
    }

    .home-product-img {
        height: 140px;
    }

    .home-product-content {
        padding: 10px 0;
    }

    .home-product-name {
        font-size: 15px;
    }

    .home-product-price {
        margin-top: 10px;
        color: #333;
        font-size: 12px;
        opacity: 1;
    }

    .home-product-wrap .pager {
        margin-top: 25px;
    }
}