/* =====================================================
   Checkout - Order Summary
===================================================== */

.wc-block-components-sidebar{
    background:#fff;
    border:1px solid #ececec;
    border-radius:18px;
    padding:22px;
    box-shadow:0 12px 35px rgba(0,0,0,.06);
}

.wc-block-components-sidebar h2{
    font-size:20px;
    font-weight:700;
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

/* هر محصول */

.wc-block-components-order-summary-item{

    display:grid !important;

    grid-template-columns:70px 1fr;

    grid-template-areas:
        "image info"
        "image total";

    gap:10px 15px;

    align-items:center;

    padding:18px 0;

    border-bottom:1px solid #f2f2f2;

}

/* تصویر */

.wc-block-components-order-summary-item__image{

    grid-area:image;

    width:70px;

}

.wc-block-components-order-summary-item__image img{

    width:70px;

    height:70px;

    border-radius:12px;

    object-fit:cover;

    border:1px solid #ececec;

}

/* Badge تعداد */

.wc-block-components-order-summary-item__quantity{

    width:24px;

    height:24px;

    font-size:11px;

    background:#CD1640;

    color:#fff;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    top:-6px;

    right:-6px;

}

/* اطلاعات محصول */

.wc-block-components-order-summary-item__description{

    grid-area:info;

    min-width:0;

}

.wc-block-components-product-name{

    font-size:15px;

    font-weight:700;

    color:#222;

    margin-bottom:8px;

}

.wc-block-components-order-summary-item__individual-price{

    font-size:13px !important;

    color:#777 !important;

}

.wc-block-components-product-metadata{

    font-size:12px;

    color:#888;

    margin-top:6px;

}

/* قیمت کل */

.wc-block-components-order-summary-item__total-price{

    grid-area:total;

    text-align:right !important;

}

.wc-block-components-order-summary-item__total-price .price{

    display:block;

}

.wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value{

    font-size:18px !important;

    font-weight:700;

    color:#CD1640;

    line-height:1.5;

    white-space:normal !important;

    overflow-wrap:anywhere;

    word-break:break-word;

}

/* حذف استایل‌های فلکس پیشفرض */

.wc-block-cart-item__total-price-and-sale-badge-wrapper{

    display:block !important;

}

/* جمع کل */

.wc-block-components-totals-wrapper{

    margin-top:18px;

    border-top:1px solid #eee;

    padding-top:18px;

}

.wc-block-components-totals-item{

    padding:10px 0;

    font-size:14px;

}

.wc-block-components-totals-item__label{

    color:#666;

}

.wc-block-components-totals-item__value{

    font-weight:700;

}

.wc-block-components-totals-footer-item{

    margin-top:15px;

    padding:16px;

    border-radius:14px;

    background:#fafafa;

    border:1px solid #eee;

}

.wc-block-components-totals-footer-item__label{

    font-size:15px;

    font-weight:700;

}

.wc-block-components-totals-footer-item__value{

    color:#CD1640;

    font-size:20px;

    font-weight:700;

}

/* دکمه پرداخت */

.wc-block-components-checkout-place-order-button{

    height:50px;

    border-radius:14px !important;

    background:#CD1640 !important;

    color:#fff !important;

    font-size:15px !important;

    font-weight:700;

}

.wc-block-components-checkout-place-order-button:hover{

    background:#b21238 !important;

}

/* موبایل */

@media(max-width:768px){

    .wc-block-components-order-summary-item{

        grid-template-columns:60px 1fr;

    }

    .wc-block-components-order-summary-item__image img{

        width:60px;

        height:60px;

    }

    .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value{

        font-size:16px !important;

    }

}