.cart-section .table th {
    background: #f9fafc;
    padding: 18px;
}

.cart-section .table td {
    padding: 22px 18px;
}

.cart-section .card {
    border: 1px solid var(--talla-color-border);
    border-radius: var(--talla-radius-md);
    box-shadow: var(--talla-shadow-md);
}

/* إلغاء border-radius من الكوبون */
.coupon .input-group .form-control,
.coupon .input-group .btn,
.coupon .input-group {
    border-radius: 0 !important;
}

/* --- ستايل الجدول الأساسي --- */
.custom-cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px; /* مسافة بين الصفوف */
}

.custom-cart-table thead th {
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.custom-cart-table tbody tr {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.product-name-text {
    font-weight: 600;
    color: #111;
}

.remove-item-btn {
    color: #b7b7b7;
    transition: 0.3s;
}

.remove-item-btn:hover {
    color: #e53637;
}

/* --- السحر: التجاوب مع جميع الشاشات (Responsive) --- */
@media (max-width: 768px) {
    /* تحويل الجدول لـ Block */
    .custom-cart-table, 
    .custom-cart-table tbody, 
    .custom-cart-table tr, 
    .custom-cart-table td {
        display: block;
        width: 100%;
    }

    /* إخفاء رأس الجدول تماماً */
    .custom-cart-table thead {
        display: none;
    }

    .custom-cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        padding: 10px;
        position: relative;
        background: #fff;
    }

    .custom-cart-table td {
        text-align: left; /* أو right حسب لغة موقعك */
        padding: 10px 5px !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f9f9f9 !important;
    }

    /* إظهار اسم العمود من خلال الـ data-label */
    .custom-cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #111;
        font-size: 13px;
    }

    /* استثناءات لخلية المنتج والإزالة */
    .custom-cart-table td.product-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-cart-table td.product-cell::before {
        margin-bottom: 10px;
    }

    .custom-cart-table td.remove-cell {
        justify-content: center;
        border: none !important;
    }

    /* تكبير الصورة شوية في الموبايل */
    .custom-cart-table td img {
        width: 60px;
        height: auto;
    }
}

/* ضبط السايد بار (Sidebar) في الموبايل */
@media (max-width: 991px) {
    .col-lg-4 {
        margin-top: 30px;
    }
}

