index.scss 1.29 KB
.product-list {
    width: 100%;
    border-top: 2px solid #ddd;

    .product-item {
        width: 374px;
        height: 560px;
        float: left;
        border-bottom: 2px solid #ddd;
        border-right: 2px solid #ddd;

        &:nth-child(2n) {
            width: 375px;
            border-right: none;
        }

        .product-price {
            height: 60px;
            text-align: left;
            font-family: DINAlternate-Bold;
            font-size: 28px;
            color: #000;
            letter-spacing: 0;
            margin-top: 28px;
            margin-left: 40px;
            display: block;
        }

        .product-img {
            width: 300px;
            height: 300px;
            display: block;
            margin: 0 auto;
        }

        .product-name {
            display: block;
            font-family: SFProText-Regular;
            font-size: 28px;
            color: #000;
            letter-spacing: 0;
            text-align: center;
            line-height: 40px;
            padding: 10px 40px 0;
            box-sizing: border-box;
            margin: 0 auto;
            overflow : hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
    }
}