h2 {
    text-align: center;
    font-size: 26px;
    margin: 40px 0 20px;
    color: #333;
}

/* کانتینر باکس‌مانند با سایه */
.cart-table-container {
    max-width: 1100px;          /* عرض ثابت باکس */
    margin: 0 auto 40px;        /* وسط صفحه */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* سایه قوی‌تر */
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

/* اسکرول افقی فقط در موبایل */
@media (max-width: 992px) {
    .cart-table-container {
        overflow-x: auto;
        padding: 15px;
        border-radius: 12px;
    }
}

/* استایل جدول */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
    background-color: transparent;
}

.cart-table thead {
    background-color: #007bff; /* زمینه آبی برای سطر عناوین */
    color: #ffffff;
}

.cart-table thead th {
    padding: 18px 20px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.cart-table tbody tr:nth-child(even) {
    background-color: #f8fbff; /* تضاد رنگ ملایم برای سطرهای زوج */
}

.cart-table tbody tr:nth-child(odd) {
    background-color: #ffffff; /* سطرهای فرد سفید */
}

.cart-table tbody tr:hover {
    background-color: #e3f2fd !important; /* hover آبی ملایم */
    transition: background-color 0.3s ease;
}

.cart-table tbody td {
    padding: 18px 20px;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    color: #444;
}

/* شماره تراکنش */
.cart-table td:first-child {
    font-family: monospace;
    direction: ltr;
    font-size: 14px;
    color: #666;
}

/* وضعیت پرداخت */
.cart-table .status {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    min-width: 100px;
}

/* درگاه پرداخت */
.cart-table .gateway {
    font-weight: bold;
    color: #333;
}

/* مبلغ */
.cart-table .amount {
    font-weight: bold;
    color: #28a745;
    font-size: 16px;
}

/* جمع کل - بزرگ و وسط */
.total-amount {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #f1f8ff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.total-amount p {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.total-amount strong {
    font-size: 32px;           /* خیلی بزرگ */
    color: #007bff;
    font-weight: bold;
}

/* دکمه پرداخت */
#payForm {
    text-align: center;
    margin: 40px 0;
}

#payForm .btn {
    display: inline-block;
    padding: 16px 50px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

#payForm .btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* پیام خطا */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 30px auto;
    max-width: 900px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .cart-table-container {
        max-width: 95%;
    }

    .cart-table thead th,
    .cart-table tbody td {
        padding: 14px 15px;
        font-size: 15px;
    }

    .total-amount strong {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .cart-table thead th,
    .cart-table tbody td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .total-amount strong {
        font-size: 26px;
    }

    #payForm .btn {
        padding: 14px 40px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 22px;
    }

    .total-amount strong {
        font-size: 24px;
    }
}