/* components/cart-item/cart-item.wxss */ @import "variables"; .item { background-color: white; // background-color: red; height: 300rpx; margin-bottom: $primary-gap; border-radius: $primary-border-radius; display: flex; justify-content: space-between; padding: $primary-gap; .left { height: 300rpx; display: flex; justify-content: space-between; flex-direction: column; .pic { border-radius: $primary-border-radius; overflow: hidden; min-width: 200rpx; width: 200rpx; height: 200rpx; margin-right: $primary-gap; image { width: 100%; height: 100%; } } .delete { height: 100rpx; line-height: 120rpx; margin-left: $primary-gap/2; .delete-button { color: $danger-color; font-size: $large-font-size; } } } .right { height: 200rpx; display: flex; flex-direction: column; justify-content: space-around; height: 300rpx; max-width: 440rpx; .name { font-size: 40rpx; font-weight: 700; max-width: 500rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .price { font-size: $large-font-size; font-weight: 700; text-align: end; color: $primary-color; } .count { display: flex; align-items: center; width: 100%; text-align: end; justify-content: flex-end; float: right; .stepper { margin-right: $primary-gap/2; } .unit { font-size: $large-font-size; text-align: end; } } .stock { color: $gray-color; text-align: end; } .total-price { font-size: $large-font-size; font-weight: 700; text-align: end; color: $primary-color; } } }