.i-product-image {
    float: right;
    width: 20%;
}

.i-product-details {
    float: right;
    width: 36%;
}

.i-product-price {
    float: right;
    width: 12%;
}

.i-product-quantity {
    float: right;
    width: 10%;
}

.i-product-removal {
    float: right;
    width: 10%;
}

.i-product-line-price {
    float: right;
    width: 12%;
}

.i-product-no-stock {
    float: right;
    width: 34%;
}

/* This is used as the traditional .clearfix class */
.group:before, .i-shopping-cart:before, .i-column-labels:before, .i-product:before, .totals-item:before,
.group:after,
.i-shopping-cart:after,
.i-column-labels:after,
.i-product:after,
.totals-item:after {
    content: '';
    display: table;
}

.group:after, .i-shopping-cart:after, .i-column-labels:after, .i-product:after, .totals-item:after {
    clear: both;
}

.group, .i-shopping-cart, .i-column-labels, .i-product, .totals-item {
    zoom: 1;
}



/* Body/Header stuff */

label {
    color: #aaa;
}

.i-shopping-cart {
    margin-top: -45px;
}

/* Column headers */
.i-column-labels label {
    padding-bottom: 10px;
    padding-top: 10px;
    border-bottom: 1px solid #eee;
    background-color: #ff9900;
    color: #fff;
}
.i-column-labels .i-product-image, .i-column-labels .i-product-removal {
    text-indent: -9999px;
}

/* Product entries */
.i-product {
    padding-bottom: 15px;
    padding-top: 15px;
    border-bottom: 1px solid #eee;
}
.i-product .i-product-image {
    text-align: center;
}
.i-product .i-product-image img {
    width: 100px;
}
.i-product .i-product-details .i-product-title {
    margin-left: 20px;
}
.i-product .i-product-details .i-product-description {
    margin: 5px 20px 5px 0;
    line-height: 1.4em;
}
.i-product .i-product-quantity input {
    width: 40px;
}
.i-product .remove-i-product, .i-product .add-to-cart-i-product {
    border: 0;
    padding: 4px 8px;
    font-size: 1rem;
    border-radius: 3px;
}
.i-product .remove-i-product {
    color: #ff4242;
}
.i-product .remove-i-product:hover {
    color: #2641ff;
}
.i-product .add-to-cart-i-product {
    color: #2641ff;
}
.i-product .add-to-cart-i-product:hover {
    color: #ff4242;
}

/* Totals section */
.totals .totals-item {
    float: left;
    clear: both;
    width: 100%;
    background-color: #e9e9e9;
    color: #596a73;
    padding: 5px 20px;
}
.totals .totals-item label {
    float: right;
    clear: both;
    width: 79%;
    text-align: left;
}
.totals .totals-item .totals-value {
    float: left;
    width: 21%;
    text-align: left;
}

/* Make adjustments for tablet */
@media screen and (max-width: 650px) {
    .i-shopping-cart {
        margin: 0;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .i-column-labels {
        display: none;
    }

    .i-product-image {
        float: left;
        width: auto;
    }
    .i-product-image img {
        margin: 0 0 10px 10px;
    }

    .i-product-details {
        float: none;
        margin-bottom: 10px;
        width: auto;
    }

    .i-product-price {
        clear: both;
        width: 70px;
    }

    .i-product-quantity {
        width: 100px;
    }
    .i-product-quantity input {
        margin-left: 20px;
    }

    .i-product-quantity:before {
        content: 'x';
    }

    .i-product-removal {
        width: auto;
    }

    .i-product-line-price {
        width: 70px;
    }
    .totals .totals-item {
        padding: 5px 10px;
    }
    .totals .totals-item label {
        width: unset;
        text-align: right;
    }
    .totals .totals-item .totals-value {
        width: unset;
        text-align: left;
    }
}
/* Make more adjustments for phone */
@media screen and (max-width: 350px) {
    .i-product-removal {
        float: left;
    }

    .i-product-line-price {
        clear: right;
        width: auto;
        margin-top: 10px;
    }

    .i-product .i-product-line-price:before {
        content: 'جمع کل: ';
    }

    .totals .totals-item label {
        width: 60%;
    }
    .totals .totals-item .totals-value {
        width: 40%;
    }
}