.cart-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 2;
}

.item-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.item-details {
    display: flex;
    padding-right: 10px;
    flex-direction: column;
}

.item-details h4 {
    margin-bottom: 5px;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.qty-btn {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.qty-display {
    min-width: 30px;
    text-align: center;
}

.item-price {
    flex: 1;
    text-align: right;
    font-weight: bold;
}

.remove-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.checkout {
    margin-top: 30px;
}

.summary {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-item.total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

.checkout button {
    background-color: #28a745;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

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

@media (max-width: 600px) {
    .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    }

    .item-info {
    flex-direction: row;
    align-items: center;
    }

    .item-price {
    width: 100%;
    text-align: left;
    }

    .checkout button {
    width: 100%;
    }
}