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

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

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

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

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

        .product-name {
            width: 336px;
            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;
        }
    }
}