
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 35px;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}


/* ==================================================
   عنوان اصلی
================================================== */

h2 {
    margin: 0 0 30px;
    padding: 25px 30px;

    background: #fff;

    border-radius: 10px;
    border: 1px solid #eeeeee;

    font-size: 23px;
    font-weight: 600;

    color: #222;

    box-shadow: 0 3px 15px rgba(0,0,0,0.04);

    position: relative;
}


/* خط سبز کنار عنوان */

h2::before {
    content: "";

    position: absolute;

    right: 0;
    top: 18px;
    bottom: 18px;

    width: 4px;

    background: #83b735;

    border-radius: 5px 0 0 5px;
}


/* ==================================================
   تیترهای بخش‌ها
================================================== */

h3 {
    background: #fff;

    margin: 25px 0 0;

    padding: 18px 22px;

    border: 1px solid #eee;

    border-bottom: none;

    border-radius: 9px 9px 0 0;

    font-size: 17px;

    font-weight: 600;

    color: #222;
}


/* ==================================================
   اطلاعات مشتری
================================================== */

/* این قسمت باعث می‌شود اطلاعات مشتری
   ظاهر کارت پیدا کند */

h3 + p {
    margin: 0;

    padding: 14px 22px;

    background: #fff;

    border-left: 1px solid #eee;
    border-right: 1px solid #eee;

    font-size: 14px;

    color: #666;
}


/* آخرین اطلاعات مشتری */

h3 + p + p + p {
    border-bottom: 1px solid #eee;

    border-radius: 0 0 9px 9px;

    padding-bottom: 20px;
}


/* نام مشتری */

h3 + p strong {
    color: #222;
}


/* ==================================================
   جدول محصولات
================================================== */

table {
    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    background: #fff;

    border: 1px solid #e8e8e8;

    border-radius: 0 0 10px 10px;

    overflow: hidden;

    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}


/* عنوان جدول */

table th {
    background: #f8f8f8;

    padding: 17px 14px;

    font-size: 13px;

    font-weight: 600;

    color: #333;

    text-align: center;

    border-bottom: 1px solid #e5e5e5;
}


/* سلول‌ها */

table td {
    padding: 16px 14px;

    text-align: center;

    font-size: 14px;

    color: #555;

    border-bottom: 1px solid #eeeeee;

    vertical-align: middle;
}


/* آخرین ردیف */

table tr:last-child td {
    border-bottom: none;
}


/* هاور */

table tr:hover td {
    background: #fcfcfc;
}


/* ==================================================
   تصویر محصول
================================================== */

table td img {
    width: 70px !important;

    height: 70px;

    object-fit: cover;

    border-radius: 7px;

    border: 1px solid #eee;

    padding: 3px;

    background: #fff;

    transition: 0.25s ease;
}


/* بزرگ شدن تصویر هنگام هاور */

table td img:hover {
    transform: scale(1.08);

    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}


/* ==================================================
   نام محصول
================================================== */

table td:nth-child(2) {

    font-weight: 600;

    color: #333;

}


/* ==================================================
   تعداد
================================================== */

table td:nth-child(3) {

    font-weight: bold;

    color: #555;

}


/* ==================================================
   قیمت
================================================== */

table td:nth-child(4),
table td:nth-child(5) {

    font-weight: 600;

    color: #333;

}


/* مبلغ نهایی هر محصول */

table td:nth-child(5) {

    color: #83b735;

}


/* ==================================================
   مبلغ کل سفارش
================================================== */

h3:last-of-type {

    margin-top: 25px;

    padding: 22px 25px;

    background: #fff;

    border: 1px solid #e7e7e7;

    border-radius: 10px;

    text-align: left;

    font-size: 20px;

    color: #222;

    box-shadow: 0 3px 15px rgba(0,0,0,0.04);

}


/* مبلغ داخل تیتر آخر */

h3:last-of-type {

    color: #333;
}


/* ==================================================
   دکمه برگشت
================================================== */

.back-button {

    display: inline-block;

    margin-top: 25px;

    padding: 12px 25px;

    background: #83b735;

    color: #fff;

    text-decoration: none;

    border-radius: 6px;

    font-size: 14px;

    transition: all 0.25s ease;
}


.back-button:hover {

    background: #6f9d2d;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(131,183,53,0.25);
}


/* ==================================================
   کارت کلی صفحه
================================================== */

body > h2,
body > h3,
body > p,
body > table {

    max-width: 1200px;

    margin-left: auto;

    margin-right: auto;
}


/* ==================================================
   موبایل
================================================== */

@media (max-width: 768px) {

    body {

        padding: 15px;

    }


    h2 {

        font-size: 19px;

        padding: 20px;

        margin-bottom: 20px;

    }


    h3 {

        font-size: 16px;

        padding: 15px;

    }


    table {

        display: block;

        overflow-x: auto;

        white-space: nowrap;

    }


    table th,
    table td {

        padding: 12px 10px;

        font-size: 12px;

    }


    table td img {

        width: 55px !important;

        height: 55px;

    }


    h3:last-of-type {

        font-size: 17px;

        text-align: center;

    }

}
