.cart-container {
    width: 90%;
    margin: -80px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.cart-header {
    font-size: 24px;
    height: 200px;
    background-color: #f8f9fa;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 20px;
    text-align: center;
}

.cart-total {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    margin-right: 50px;
    text-align: right;
}

.under_table{
    margin-right: 50px;
}
.add-to-cart{
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    width: 50%;
}
.cart-table {
    width: 100%;
    /* margin-top: 20px; */
    /* border-collapse: collapse; */
    font-size: 16px;
}

.cart-table thead th {
    /* background-color: #f8f9fa; */
    font-weight: bold;
    padding: 5px;
}

.cart-table tbody td {
    padding: 15px;
    /* vertical-align: middle; */
}


.product-img {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity-btn {
    background-color: black;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

.remove-link {
    color: black;
    cursor: pointer;
    font-size: 14px;
    border: none;
    background-color: transparent;
}

.under_table{
    margin-top: 150px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cart-table th,
    .cart-table td {
        font-size: 12px;
        padding: 8px;
    }

    .product-img {
        width: 40px;
        height: 40px;
    }

    .quantity-btn {
        padding: 3px 7px;
        font-size: 12px;
    }

    .quantity-input {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .cart-table {
        display: block; /* تحويل الجدول إلى شكل قائم */
    }

    .cart-table thead {
        display: none; /* إخفاء الرأس للشاشات الصغيرة */
    }

    .cart-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 5px;
    }

    .cart-table td {
        display: block;
        text-align: right;
        font-size: 14px;
    }

    .cart-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }
}
