.cart-page {
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-page h1 {
    text-align: center;
    margin-bottom: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    padding: 10px;
    text-align: left;  
}

#borderline {
    border-style: solid;
    
}

.cart-table th {
    font-weight: bold;
    background-color: #ee1490;
    color: white;
    border-style: solid;
    border-color: black;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}


.cart-table .product-info {
    display: flex;
    align-items: center;
}

.cart-table .product-info img {
    max-width: 80px;
    height: auto;
    margin-right: 5px;
    border-radius: 5px;
}

.cart-table .quantity-input {
    width: 50px;
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

.cart-table .remove-button {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.cart-table .remove-button:hover {
    background-color: #c82333;
}

.cart-table .subtotal {
    font-weight: bold;
    text-align: left;
}

.cart-table tfoot .total-label {
    font-weight: bold;
    text-align: left;
}

.cart-table tfoot .total-price {
    font-weight: bold;
    font-size: 1.2em;
    text-align: left;
    color: #28a745;
}

.cart-table tfoot .checkout-actions {
    text-align: right;
    padding-top: 20px;
}

.cart-table tfoot .checkout-actions a {
    margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4),
    .cart-table th:nth-child(5),
    .cart-table td:nth-child(5) {
        display: none; /* Hide Subtotal and Action on smaller screens */
    }

    .cart-page{
            padding: 0;
    }

    .cart-table {    
            padding: 0;
            width: 100%;
            max-width: 100%;
            font-size: small;
    }
         .cart-table th, .cart-table  td  {
            padding: 5px;
            text-align: left;
    }

    .cart-table .product-info {
        flex-direction: column;
        align-items: left;
    }

    .cart-table .product-info img {
        margin-bottom: 10px;
    }

    .cart-table td {
        padding: 8px 2px; /* Adjust padding */
    }

    .cart-table tfoot .checkout-actions {
        text-align: center;
    }

    .cart-table tfoot .checkout-actions a {
        display: block;
        margin: 10px 0;
    }
}
