/* General styling for cart and checkorder pages */
.container--cart,
.container--checkoder {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container--cart h1,
.container--checkoder h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Cart Product Styling */
.cart--product {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart--img {
    flex: 0 0 100px;
    margin-right: 20px;
}

.cart--img img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.name--product {
    flex-grow: 1;
    font-size: 1.1em;
    font-weight: bold;
}

.choose {
    margin: 0 10px;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}

.price,
.total {
    flex: 0 0 120px;
    text-align: right;
    font-weight: bold;
    color: #e44d26; /* Example color */
}

.quantity {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.btn--cart {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

.btn--cart__number {
    background: none;
    border: 1px solid #ccc;
    padding: 5px 10px;
    margin: 0 5px;
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
}

.btn--delete button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.btn--delete button:hover {
    background-color: #c82333;
}

/* Pay section */
.pay {
    text-align: right;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.pay strong {
    font-size: 1.5em;
    color: #333;
}

.pay button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pay button:hover {
    background-color: #218838;
}

.pay button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Check Order Table Styling */
.checkoder--produce {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.checkoder--produce th,
.checkoder--produce td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.checkoder--produce th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #555;
}

.checkoder--produce tr:nth-child(even) {
    background-color: #f9f9f9;
}

.checkoder--produce tr:hover {
    background-color: #f1f1f1;
}

.checkoder--img img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart--product {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }

    .cart--img,
    .name--product,
    .price,
    .total,
    .quantity,
    .btn--delete {
        flex-basis: 100%;
        margin-bottom: 10px;
    }

    .cart--img {
        margin-right: 0;
    }

    .price, .total {
        text-align: center;
    }

    .pay {
        flex-direction: column;
        align-items: flex-end;
    }
}